Add 24.2 NEWS section (do not merge to trunk)
[emacs.git] / etc / NEWS
blob6c0014d0bf76619bbfd003a8ffb29b4530ff2746
1 GNU Emacs NEWS -- history of user-visible changes.
3 Copyright (C) 2010-2012  Free Software Foundation, Inc.
4 See the end of the file for license conditions.
6 Please send Emacs bug reports to bug-gnu-emacs@gnu.org.
7 If possible, use M-x report-emacs-bug.
9 This file is about changes in Emacs version 24.
11 See files NEWS.23, NEWS.22, NEWS.21, NEWS.20, NEWS.19, NEWS.18,
12 and NEWS.1-17 for changes in older Emacs versions.
14 You can narrow news to a specific version by calling `view-emacs-news'
15 with a prefix argument or by typing C-u C-h C-n.
18 * Changes in Emacs 24.2
20 ** This is mainly a bug-fix release.
23 * Installation Changes in Emacs 24.1
25 ** Emacs can be compiled with Gtk+ 3.0 if you pass --with-x-toolkit=gtk3
26 to configure.  Note that other libraries used by Emacs, RSVG and GConf,
27 also depend on Gtk+.  You can disable them with --without-rsvg and
28 --without-gconf.
30 ** Emacs can be compiled with GnuTLS support.
31 This happens by default if a suitably recent version of the library is
32 found at build time.  To prevent this, use the configure option
33 `--without-gnutls'.  See below for GnuTLS features.
35 ** Emacs can be compiled with SELinux support.
36 This happens by default if a suitably recent version of the library is
37 found at build time.  To prevent this, use the configure option
38 `--without-selinux'.  See below for SELinux features.
40 ** Emacs can be compiled with ImageMagick support.
41 This happens by default if a suitably recent version of the library is
42 found at build time.  To prevent this, use the configure option
43 `--without-imagemagick'.  See below for ImageMagick features.
44 This feature is not available for the Nextstep or MS ports.
46 ** Emacs can be compiled with libxml2 support.
47 This happens by default if a suitably recent version of the library is
48 found at build time.  To prevent this, use the configure option
49 `--without-xml2'.  See below for libxml2 features.
51 ** By default, the installed Info and man pages are compressed.
52 You can disable this by configuring --without-compress-info.
54 ** New configure option --with-wide-int.
55 With it, Emacs integers typically have 62 bits, even on 32-bit machines.
56 On 32-bit hosts, this raises the limit on buffer sizes from about 512 MiB
57 to about 2 GiB.
59 ** New configure options: --with-mmdf, --with-mail-unlink, --with-mailhost.
60 These provide no new functionality, they just remove the need to edit
61 lib-src/Makefile by hand in order to use the associated features.
63 ** New configure option --enable-use-lisp-union-type.
64 This is only useful for Emacs developers to debug certain types of bugs.
65 This is not a new feature; only the configure flag is new.
67 ** The standalone programs digest-doc and sorted-doc are removed.
68 Emacs now uses Lisp commands `doc-file-to-man' and `doc-file-to-info'.
70 ** The standalone program `fakemail' is removed.
71 If you need it, feedmail.el provides a superset of the functionality.
74 * Startup Changes in Emacs 24.1
76 ** The --unibyte, --multibyte, --no-multibyte, and --no-unibyte
77 command line arguments, and the EMACS_UNIBYTE environment variable, no
78 longer have any effect.  (They were declared obsolete in Emacs 23.)
80 ** New command line option `--no-site-lisp' removes site-lisp directories
81 from load-path.  -Q now implies this.  This option does not affect the
82 EMACSLOADPATH environment variable (and hence has no effect for
83 Nextstep builds).
86 * Changes in Emacs 24.1
88 ** Completion
90 *** Many packages now use the `completion-at-point' command,
91 rather than implementing separate completion commands.
93 *** `completion-at-point' now handles tags and semantic completion.
95 *** Completion in a non-minibuffer now tries to detect the end of completion
96 and pops down the *Completions* buffer accordingly.
98 *** New option `completion-cycle-threshold' allows completion cycling.
100 *** New option `completion-category-overrides' for overriding the
101 default completion style in certain circumstances.
103 *** New completion style `substring'.
105 *** Completion of buffer names uses `substring' completion by default.
107 *** The option `widget-complete-field' has been removed.
109 ** Mail changes
111 *** The first time you try sending mail, Emacs asks for a mail method.
112 This is implemented by a new default for `send-mail-function', which
113 is `sendmail-query-once'.  This offers to use the smtpmail package, or
114 to use the old defaults relying on external mail facilities
115 (`sendmail-send-it' on GNU/Linux and other Unix-like systems, and
116 `mailclient-send-it' on Windows).
118 *** Typing C-c m in the buffer made by M-x report-emacs-bug transfers
119 the report to your desktop's preferred mail client, if there is one.
120 This uses either the "xdg-email" utility, or Mac OS's "open" command.
122 *** See Changes in Specialized Modes and Packages for SMTPmail changes
123 and Mail mode changes
125 ** Emacs server and client changes
127 *** New option `server-port' specifies the port for TCP Emacs servers.
129 *** New emacsclient argument -q/--quiet suppresses some status messages.
131 *** New emacsclient argument --frame-parameters specifies the frame
132 parameters of any newly-created graphical frame.
134 *** If emacsclient shuts down due to Emacs signaling an error,
135 its exit status is 1.
137 *** New emacsclient argument --parent-id ID.
138 This opens a client frame in parent X window ID, via XEmbed, similar
139 to the --parent-id argument to Emacs.
141 ** Internationalization changes
143 *** Emacs now supports display and editing of bidirectional text.
144 Right-to-left (RTL) scripts, such as Arabic, Farsi, and Hebrew, are
145 displayed in the correct visual order as expected by users of those
146 scripts.  The display reordering is a "full bidirectionality" class
147 implementation of the Unicode Bidirectional Algorithm (UBA).  Buffers
148 with no RTL text should look exactly the same as before.
150 **** New buffer-local variable `bidi-display-reordering'.
151 To disable display reordering in a buffer, change this to nil.
153 **** New buffer-local variable `bidi-paragraph-direction'.
154 If nil (the default), Emacs determines the base direction of each
155 paragraph from its text, as specified by the UBA.  Setting the value
156 to `right-to-left' or `left-to-right' forces a base direction on each
157 paragraph.
159 Paragraphs with right-to-left base direction are displayed starting at
160 the right window edge.
162 *** Enhanced support for characters with no glyphs in available fonts,
163 or, on text terminals, characters that cannot be encoded by the
164 terminal coding system.  The new option `glyphless-char-display-control'
165 specifies how to display them: as a hexadecimal code in a box, a thin
166 1-pixel space, an empty box, etc.
168 *** New input methods for Farsi and Bulgarian
169 (farsi-isiri-9147, farsi-transliterate-banan, bulgarian-alt-phonetic).
171 *** `nobreak-char-display' now also highlights Unicode hyphen chars
172 (U+2010 and U+2011).
174 *** New Hebrew translation of the Emacs Tutorial.
175 Type `C-u C-h t' to choose it in case your language setup doesn't
176 automatically select it.
178 ** An Emacs Lisp package manager is now included.
179 This is a convenient way to download and install additional packages,
180 from a package repository at http://elpa.gnu.org.
182 *** M-x list-packages shows a list of packages, which can be
183 selected for installation.
185 *** New command `describe-package', bound to `C-h P'.
187 *** By default, all installed packages are loaded automatically when
188 Emacs starts up.  To disable this, set `package-enable-at-startup' to
189 nil.  To specify the packages to load, customize `package-load-list'.
191 ** Custom theme changes
193 *** New command `M-x customize-themes', which provides a convenient
194 interface for enabling and disabling Custom themes.
196 *** New option `custom-theme-load-path' is the load path for themes.
197 Emacs no longer looks for Custom themes in `load-path'.  The default
198 value of `custom-theme-load-path' says to look for themes in
199 `custom-theme-directory', followed by a subdirectory of
200 `data-directory' named "themes/", which contains a small selection of
201 built-in Custom themes.
203 *** New option `custom-safe-themes' records known-safe theme files.
204 If a theme is not in this list, Emacs queries before loading it, and
205 offers to save the theme to `custom-safe-themes' automatically.  By
206 default, all themes included in Emacs are treated as safe.
208 ** Improved GTK integration
210 *** GTK scroll-bars are now placed on the right by default.
211 The function `set-scroll-bar-mode' can change this.
213 *** GTK tool bars can have just text, just images or images and text.
214 Customize `tool-bar-style' to choose the style.  On a Gnome desktop,
215 the default is taken from desktop settings.
217 *** GTK tool bars can be placed on any edge of the frame.
218 The frame-parameter tool-bar-position controls this.  It takes the
219 values top, left, right or bottom.  The Options => Show/Hide menu has
220 entries for this.
222 *** The default colors for selected text (the `region' face) are taken
223 from the GTK theme when Emacs is built with GTK.
225 *** Emacs uses GTK tooltips by default if built with GTK.
226 You can disable this by changing `x-gtk-use-system-tooltips' to nil.
228 ** Graphical interface changes
230 *** On graphical displays, the mode-line no longer ends in dashes.
231 Also, the first dash (which does not indicate anything) is just
232 displayed as a space.
234 *** `menu-bar-select-buffer-function' lets you choose another operation
235 instead of `switch-to-buffer' when selecting an item in the Buffers menu.
237 *** Lucid menus and dialogs can display antialiased fonts if Emacs is
238 built with Xft.  These fonts can be set via X resources, for example:
239 Emacs.pane.menubar.font: Courier-12
241 ** Exiting changes
243 *** Emacs now calls `kill-emacs' if it receives SIGTERM or SIGHUP,
244 or if it receives a SIGINT signal in batch mode.
246 *** `kill-emacs-hook' is now also run in batch mode.
247 Third-party code which adds to `kill-emacs-hook' should check if they
248 do the right thing in batch mode.
250 ** Scrolling changes
252 *** New scrolling commands `scroll-up-command' and `scroll-down-command'
253 (bound to C-v/[next] and M-v/[prior]) do not signal errors at top/bottom
254 of buffer at first key-press (instead they move to top/bottom of buffer)
255 when `scroll-error-top-bottom' is non-nil.
257 *** New option `scroll-error-top-bottom' (see above).
259 *** New scrolling commands `scroll-up-line' and `scroll-down-line'
260 scroll a line instead of full screen.
262 *** New property `scroll-command' should be set on a command's symbol to
263 define it as a scroll command affected by `scroll-preserve-screen-position'.
265 *** If you customize `scroll-conservatively' to a value greater than 100,
266 Emacs will never recenter point in the window when it scrolls due to
267 cursor motion commands or commands that move point (e.f., `M-g M-g').
268 Previously, you needed to use `most-positive-fixnum' as the value of
269 `scroll-conservatively' to achieve the same effect.
271 *** "Aggressive" scrolling now honors the scroll margins.
272 If you customize `scroll-up-aggressively' or
273 `scroll-down-aggressively' and move point off the window, Emacs now
274 scrolls the window so as to avoid positioning point inside the scroll
275 margin.
277 ** Basic SELinux support has been added.
278 This requires Emacs to be linked with libselinux at build time.
280 *** Emacs preserves the SELinux file context when backing up.
281 Also, the function `copy-file' has an extra optional argument for
282 preserving SELinux context, and the return value of `backup-buffer'
283 now includes the SELinux context.
285 *** New functions `file-selinux-context' and `set-file-selinux-context'
286 get and set the SELinux context of a file.
288 ** Trash changes
290 *** `delete-by-moving-to-trash' now only affects commands that specify
291 trashing.  This avoids inadvertently trashing temporary files.
293 *** Calling `delete-file' or `delete-directory' with a prefix argument
294 now forces true deletion, regardless of `delete-by-moving-to-trash'.
296 ** File- and directory-local variable changes
298 *** You can stop directory local vars from applying to subdirectories.
299 Add an element (subdirs . nil) to the alist portion of any variables
300 settings to indicate that the section should not apply to
301 subdirectories.
303 *** Directory local variables can apply to some file-less buffers.
304 Affected modes include dired, vc-dir, and log-edit.  For example,
305 adding "(diff-mode . ((mode . whitespace)))" to .dir-locals.el will
306 turn on `whitespace-mode' for *vc-diff* buffers.  Modes should call
307 `hack-dir-local-variables-non-file-buffer' to support this.
309 *** Using "mode: MINOR-MODE" to enable a minor mode is deprecated.
310 Instead, use "eval: (minor-mode 1)".
312 *** The variable `inhibit-first-line-modes-regexps' has been renamed
313 to `inhibit-local-variables-regexps'.  As the name suggests, it now
314 applies to ALL file local variables, not just -*- lines.  The
315 associated `inhibit-first-line-modes-suffixes' has been renamed in the
316 corresponding way.
318 ** Window changes
320 *** The `quit-window' command now restores the last buffer displayed
321 in the quitted window.
323 *** Resizing an Emacs frame now preserves proportional window sizes,
324 modulo restrictions like window minimum sizes and fixed-size windows.
326 *** The behavior of `display-buffer' is now customizable in detail.
328 **** New option `display-buffer-base-action' specifies a list of
329 user-determined display "actions" (functions and optional arguments
330 for choosing the displaying window).
332 This takes precedence over the default display action, which is
333 specified by `display-buffer-fallback-action'.
335 **** New option `display-buffer-alist' maps buffer name regexps to
336 display actions, taking precedence over `display-buffer-base-action'.
338 *** New option `window-combination-limit'.
339 The new option `window-combination-limit' allows to return the space
340 obtained for resizing or creating a window more reliably to the window
341 from which such space was obtained.
343 *** New option `window-combination-resize'.
344 The new option `window-combination-resize' allows to split a window that
345 otherwise cannot be split because it's too small by stealing space from
346 other windows in the same combination.  Subsequent resizing or deletion
347 of the window will resize all windows in the same combination as well.
349 *** New option `frame-auto-hide-function' lets you choose between
350 iconifying or deleting a frame when burying a buffer in a dedicated
351 frame, or quitting a window showing a buffer in a frame of its own.
353 *** New commands `maximize-window' and `minimize-window'.
354 These maximize and minimize the size of a window within its frame.
356 *** New commands `switch-to-prev-buffer' and `switch-to-next-buffer'.
357 These functions allow to navigate through the live buffers that have
358 been shown in a specific window.
360 ** Minibuffer changes
362 *** The inactive minibuffer has its own major mode `minibuffer-inactive-mode'.
363 This is handy for minibuffer-only frames, and is also used for the feature
364 where mouse-1 pops up *Messages*"', which can now easily be changed.
366 *** Minibuffers set `truncate-lines' to nil.
367 If you want to change the value to something else, you could use
368 for example `minibuffer-setup-hook'.
370 ** `auto-mode-case-fold' is now enabled by default.
372 ** `backup-by-copying-when-mismatch' now defaults to t.
374 ** New basic faces `error', `warning', `success'.
375 These are used to highlight text indicating failure, caution or
376 successful operation.
378 ** New option `list-colors-sort' defines the color sort order
379 for `list-colors-display'.
381 ** The variable `focus-follows-mouse' now always defaults to nil.
384 * Editing Changes in Emacs 24.1
386 ** Search changes
388 *** C-y in Isearch is now bound to `isearch-yank-kill', instead of
389 `isearch-yank-line'.
391 *** M-y in Isearch is now bound to `isearch-yank-pop', instead of
392 `isearch-yank-kill'.
394 *** M-s C-e in Isearch is now bound to `isearch-yank-line'.
396 ** New commands `count-words-region' and `count-words'.
398 *** M-= is bound to `count-words-region', not `count-lines-region'.
399 The `count-words-region' command, when called interactively, reports
400 the number of lines, words, and characters in the region.  It is a
401 superset of the old `count-lines-region', which is now an obsolete
402 alias for it.
404 ** The command `just-one-space' (M-SPC), if given a negative argument,
405 also deletes newlines around point.
407 ** Deletion changes
409 *** New option `delete-active-region'.
410 If non-nil, [delete] and DEL delete the region if it is active and no
411 prefix argument is given.  If set to `kill', those commands kill
412 instead.
414 *** New command `delete-forward-char', bound to [delete].
415 This is meant for interactive use, and obeys `delete-active-region'.
416 The command `delete-char' does not obey `delete-active-region'.
418 *** `delete-backward-char' is now a Lisp function.
419 Apart from obeying `delete-active-region', its behavior is unchanged.
420 However, the byte compiler now warns if it is called from Lisp; Lisp
421 callers should use delete-char with a negative argument instead.
423 *** The option `mouse-region-delete-keys' has been deleted.
425 ** Selection changes.
427 The default handling of clipboard and primary selections has been
428 changed to conform with modern X applications.  In short, most
429 commands for killing and yanking text now use the clipboard, while
430 mouse commands use the primary selection.
432 In the following, we provide a list of these changes, followed by a
433 list of steps to get the old behavior back if you prefer that.
435 *** `select-active-regions' now defaults to t.
436 Merely selecting text (e.g. with drag-mouse-1) no longer puts it in
437 the kill ring.  The selected text is put in the primary selection, if
438 the system possesses a separate primary selection facility (e.g. X).
440 **** `select-active-regions' also accepts a new value, `only'.
441 This means to only set the primary selection for temporarily active
442 regions (usually made by mouse-dragging or shift-selection);
443 "ordinary" active regions, such as those made with C-SPC followed by
444 point motion, do not alter the primary selection.
446 **** `mouse-drag-copy-region' now defaults to nil.
448 *** mouse-2 is now bound to `mouse-yank-primary'.
449 This pastes from the primary selection, ignoring the kill-ring.
450 Previously, mouse-2 was bound to `mouse-yank-at-click'.
452 *** `x-select-enable-clipboard' now defaults to t on all platforms.
454 *** `x-select-enable-primary' now defaults to nil.
455 Thus, commands that kill text or copy it to the kill-ring (such as
456 M-w, C-w, and C-k) also use the clipboard---not the primary selection.
458 **** The "Copy", "Cut", and "Paste" items in the "Edit" menu are now
459 exactly equivalent to M-w, C-w, and C-y respectively.
461 **** Note that on MS-Windows, `x-select-enable-clipboard' was already
462 non-nil by default, as Windows does not support the primary selection
463 between applications.
465 *** To return to the previous behavior, do the following:
467 **** Change `select-active-regions' to nil.
468 **** Change `mouse-drag-copy-region' to t.
469 **** Change `x-select-enable-primary' to t (on X only).
470 **** Change `x-select-enable-clipboard' to nil.
471 **** Bind `mouse-yank-at-click' to mouse-2.
473 *** Support for X cut buffers has been removed.
475 *** X clipboard managers are now supported.
476 To inhibit this, change `x-select-enable-clipboard-manager' to nil.
478 ** New command `C-x r N' (`rectangle-number-lines') numbers the lines
479 in the current rectangle.  With a prefix argument, this prompts for a
480 number to count from and for a format string.
482 ** `redisplay-dont-pause' now defaults to t.
483 This makes Emacs feel more responsive to editing commands that arrive
484 at high rate, e.g. if you lean on some key, because stopping redisplay
485 in the middle (when this variable is nil) forces more expensive
486 updates later on, and Emacs appears to be unable to keep up.
488 ** The behavior of <TAB> for active regions in Text mode has changed.
489 In Text and related modes, typing <TAB> (`indent-for-tab-command')
490 when the region is active causes Emacs to indent all the lines in the
491 region, aligning them with the line previous to the first line in the
492 region (or with the left margin if there is no previous line).
494 ** When `occur' is called with a prefix argument, matching strings are
495 collected into the `*Occur*' buffer without line numbers.  If there
496 are parenthesized subexpressions in the specified regexp, `occur'
497 reads replacement text that may contain \\& and \\N whose convention
498 follows `replace-match'.
501 * Changes in Specialized Modes and Packages in Emacs 24.1
503 ** Archive Mode has basic support for browsing and updating 7z archives.
505 ** BibTeX mode
507 *** BibTeX mode now supports biblatex.
508 Use the variable `bibtex-dialect' to select different BibTeX dialects.
509 `bibtex-entry-field-alist' is now an obsolete alias for
510 `bibtex-BibTeX-entry-alist'.
512 *** New command `bibtex-search-entries', bound to C-c C-a.
514 *** New `bibtex-entry-format' option `sort-fields', disabled by default.
516 *** New variable `bibtex-search-entry-globally'.
518 ** Browse-url
520 *** New option `browse-url-mailto-function' specifies how to handle "mailto:"s.
522 *** The default browser used by the package is now the "xdg-open" program,
523 on platforms that support it.  This calls your desktop's preferred browser.
525 ** Calendar, Diary, and Appt
527 *** Diary entries can contain non-printing "comments".
528 See the variable `diary-comment-start'.
530 *** Appointments can specify their individual warning times.
531 See the variable `appt-warning-time-regexp'.
533 *** The function specified by `appt-disp-window-function' may be passed
534 lists of arguments if multiple appointments are due at similar times.
535 If you are using a custom function for this, you should update it.
537 *** New function `diary-hebrew-birthday'.
539 *** Elements of `calendar-day-abbrev-array' and `calendar-month-abbrev-array'
540 may no longer be nil, but must all be strings.
542 *** The obsolete (since Emacs 22.1) method of enabling the appt
543 package by adding `appt-make-list' to `diary-hook' has been removed.
544 Use `appt-activate' instead.
546 *** Some appt variables (obsolete since Emacs 22.1) have been removed:
547 appt-issue-message (use the function appt-activate)
548 appt-visible/appt-msg-window (use the variable appt-display-format)
550 *** Some diary function aliases (obsolete since Emacs 22.1) have been removed:
551 view-diary-entries, list-diary-entries, show-all-diary-entries
553 ** CC Mode
555 *** New feature to "guess" the style in an existing buffer.
556 The main entry point is M-x c-guess.
558 *** Java Mode now supports Java 5.0 (Tiger) and 6 (Mustang).
560 *** `c-beginning-of-defun' and `c-end-of-defun' now respect nested scopes.
561 Thus C-M-a will, by default, go to the beginning of the immediate function,
562 not the top level.
564 *** "Macros with semicolons" can be registered for correct indentation.
565 Where such a macro ends a line (no semicolon) the next statement is no longer
566 parsed as a statement continuation.
568 ** Comint and modes derived from it use the standard completion code.
570 ** Compilation mode
572 *** Compilation mode can be used without Font Lock mode.
573 `compilation-parse-errors-function' is now obsolete.
575 *** New variable `compilation-filter-start', which is bound while
576 `compilation-filter-hook' runs.  It records the start position of the
577 text inserted by `compilation-filter'.
579 *** `compilation-error-screen-columns' and `compilation-first-column'
580 are obeyed in the editing buffer.  So programming language modes can
581 set them, whereas previously only the value in the *Compilation*
582 buffer was used.
584 ** Customize
586 *** Customize buffers now contain a search field.
587 The search is performed using `customize-apropos'.
588 To turn off the search field, set `custom-search-field' to nil.
590 *** Options in customize group buffers start out hidden if not customized.
591 Use the arrow to the left of the option name to toggle visibility.
593 *** custom-buffer-sort-alphabetically now defaults to t.
595 *** The color widget now has a "Choose" button, which allows you to
596 choose a color via `list-colors-display'.
598 ** D-Bus
600 *** It is now possible to access buses other than the default system
601 or session bus.
603 *** The `dbus-register-method' and `dbus-register-property' functions
604 optionally do not register names.
606 *** The new function `dbus-register-service' registers a known service
607 name on a D-Bus without also registering a property or a method.
609 ** Dired-x
611 *** C-x C-j (`dired-jump') and C-x 4 C-j (`dired-jump-other-window'),
612 if called with a prefix argument, read a file name from the minibuffer
613 instead of using the current buffer.
615 *** The "dired local variables" feature of Dired-x is obsolete.
616 The standard directory local variables feature replaces it.
618 ** ERC changes
620 *** New options `erc-autojoin-timing' and `erc-autojoin-delay',
621 controlling attempts to autojoin a channel.
623 *** New variable `erc-coding-system-precedence': If we use `undecided'
624 as the server coding system, this variable will then be consulted.
625 The default is to decode strings that can be decoded as utf-8 as
626 utf-8, and do the normal `undecided' decoding for the rest.
628 ** Eshell changes
630 *** The default value of `eshell-directory-name' has changed
631 to be an "eshell" directory in `user-emacs-directory'.
632 The old "~/.eshell/" directory is still used if it exists, though.
634 ** gdb-mi
636 *** The M-x gdb command now uses the GDB Machine Interface protocol.
637 It now supports multithread non-stop debugging and simultaneous
638 debugging of several threads.
640 ** Image mode
642 *** RET (`image-toggle-animation') toggles animation, if applicable.
643 Animation plays once, unless the option `image-animate-loop' is non-nil.
645 ** Info
647 *** New command M-x info-display-manual displays a named Info manual.
648 If that manual is already visited in some Info buffer, it displays
649 that buffer.  (This is handy if you have many manuals in many *info*
650 buffers, and don't remember the name of the buffer visiting the manual
651 you want to consult.)  Otherwise, it loads and displays the manual.
653 *** `e' is now bound to `end-of-buffer' rather than to `Info-edit'.
654 This is for compatibility with the stand-alone Info reader program,
655 and also because `Info-edit' is a rarely used command that is disabled
656 by default.
658 ** Mail mode changes (not Message mode)
660 *** New command M-x mail-add-attachment for adding MIME attachments
662 *** The command M-x mail-attach-file was renamed to M-x mail-insert-file.
663 (Its name is misleading, since it has nothing to do with MIME
664 attachments.)  The old name is now an obsolete alias to the new name.
666 ** MH-E has been updated to MH-E version 8.3.1.
667 See MH-E-NEWS for details.
669 ** Modula-2 mode provides auto-indentation.
671 ** mpc.el: Can use pseudo tags of the form tag1|tag2 as a union of two tags.
673 ** nXML mode no longer binds C-RET to `nxml-complete'.
674 Completion is now performed via `completion-at-point', bound to C-M-i
675 or M-TAB.  If `nxml-bind-meta-tab-to-complete-flag' is non-nil (the
676 default), this performs tag completion.
678 ** Org mode has been updated to version 7.8.09.
679 See ORG-NEWS for details.
681 ** Prolog mode has been completely revamped, with lots of additional
682 functionality such as more intelligent indentation, electricity,
683 support for more variants, including Mercury, and a lot more.
685 ** Rmail
687 *** The command `rmail-epa-decrypt' decrypts OpenPGP data
688 in the Rmail incoming message.
690 *** The variable `rmail-message-filter' no longer has any effect.
691 This change was made in Emacs 23.1 but was not advertised at the time.
692 Try using `rmail-show-message-hook' instead.
694 ** Shell mode
696 *** M-x shell prompts for the shell path name if the default directory
697 is a remote file name and neither the environment variable $ESHELL nor
698 the variable `explicit-shell-file-name' is set.
700 *** TAB is now bound to the standard `completion-at-point' command,
701 which now implements the pcomplete rules for shell command completion.
703 ** SMTPmail
705 *** SMTPmail now uses encrypted connections (via STARTTLS) by default
706 if the mail server supports them.  This uses either built-in GnuTLS
707 support, or the starttls.el library.  Customize `smtpmail-stream-type'
708 to change this.
710 *** The variable `smtpmail-auth-credentials' has been removed.
711 By default, the information is now stored in the file ~/.authinfo.
712 This was the default value of smtpmail-auth-credentials.  If you had
713 customized smtpmail-auth-credentials to a list of user names and
714 passwords, those settings are not used.  During your first connection
715 to the smtp server, Emacs will prompt for the user name and password,
716 and offer to save them to ~/.authinfo.  Or you can manually copy the
717 credentials to ~/.authinfo.  For example, if you had
719   (setq smtpmail-auth-credentials
720         '(("mail.example.org" 25 "jim" "s!cret")))
722 then the equivalent line in ~/.authinfo would be
724   machine mail.example.org port 25 login jim password s!cret
726 See the auth-source manual for more information, e.g. on encrypting
727 the credentials file.
729 *** The variable `smtpmail-starttls-credentials' has been removed.
730 If you had that set, you need to put
732   machine smtp.whatever.foo port 25 key "~/.my_smtp_tls.key" cert "~/.my_smtp_tls.cert"
734 in your ~/.authinfo file instead.
736 ** SQL mode
738 *** New options `sql-port', `sql-connection-alist', `sql-send-terminator',
739 and `sql-oracle-scan-on'.
741 *** New options controlling prompting for login parameters.
742 Each supported product has a custom variable `sql-*-login-params',
743 which is a list of the parameters to be prompted for before a
744 connection is established.
746 *** The command `sql-product-interactive' now takes a prefix argument,
747 which causes it to prompt for an SQL product.
749 *** Product-specific SQL interactive commands now take prefix arguments.
750 These commands (`sql-sqlite', `sql-postgres', `sql-mysql', etc.),
751 given a prefix argument, prompt for a name for the SQL interactive
752 buffer.  This reduces the need for calling `sql-rename-buffer'.
754 *** SQL interactive modes suppress command continuation prompts, and
755 replace tabs with spaces.  The first change impacts multiple line SQL
756 statements entered with C-j between each line, statements yanked into
757 the buffer and statements sent with `sql-send-*' functions.  The
758 second prevents the MySQL and Postgres interpreters from listing
759 object name completions when sent text via `sql-send-*' functions.
761 *** New command `sql-connect' starts a predefined SQLi session,
762 using the login parameters from `sql-connection-alist'.
764 *** New "Save Connection" menu item in SQLi buffers.
765 This gathers the login params specified for the SQLi session, if it
766 was not started by a connection, and saves them as a new connection.
768 *** New commands for listing database objects and details:
769 sql-list-all and sql-list-table.
771 *** An API for manipulating SQL product definitions has been added.
773 ** TeX modes
775 *** latex-electric-env-pair-mode keeps \begin..\end matched on the fly.
777 ** Tramp
779 *** New inline access method "ksu" (kerberized su).
781 *** The following access methods are discontinued: "ssh1_old",
782 "ssh2_old", "scp1_old", "scp2_old", "imap", "imaps" and "fish".
784 *** The user option `remote-file-name-inhibit-cache' controls whether
785 remote file attributes are cached for better performance.
787 *** The option `ange-ftp-binary-file-name-regexp' has changed its
788 default value to "".
790 *** Handlers for `file-selinux-context' and `set-file-selinux-context'
791 for remote machines which support SELinux.
793 ** New function `url-queue-retrieve', which behaves like url-retrieve,
794 but with limits (`url-queue-parallel-processes', `url-queue-timeout') on
795 the degree of parallelism.
797 ** VC and related modes
799 *** Support for pulling on distributed version control systems.
800 The command C-x v + (`vc-pull') runs a "pull" operation, if it is
801 supported (currently with Bzr, Git, and Mercurial), to update the
802 current branch and working tree.  A prefix argument means to prompt
803 the user for specifics, e.g. a pull location.
805 *** `vc-update' is now an alias for `vc-pull'.
807 *** Support for merging on distributed version control systems.
808 The command C-x v m (`vc-merge') now runs a "merge" operation, if it
809 is supported (currently with Bzr, Git, and Mercurial), to merge
810 changes from another branch into the current one.  It prompts for
811 specifics, e.g. a merge source.
813 *** New option `vc-revert-show-diff' controls whether `vc-revert'
814 shows a diff while querying the user.  It defaults to t.
816 *** Log entries in some Log View buffers can be toggled to display a
817 longer description by typing RET (log-view-toggle-entry-display).
818 This is currently supported for Bzr, Git, and Mercurial (to support
819 another backend, define a `log-view-expanded-log-entry-function').
820 In the Log View buffers made by C-x v L (`vc-print-root-log'), you can
821 use this to display the full log entry for the revision at point.
823 *** New command `vc-ediff' allows visual comparison of two revisions
824 of a file similar to `vc-diff', but using ediff backend.
826 *** The option `vc-initial-comment' was removed in Emacs 23.2, but
827 this was not advertised at the time.
829 *** `vc-toggle-read-only' is an obsolete alias for `toggle-read-only'.
830 Since Emacs 23, it has done the same thing as `toggle-read-only', but
831 this was not advertised at the time.
833 ** Obsolete modes
835 *** abbrevlist.el
837 *** erc-hecomplete.el (use erc-pcomplete.el instead)
839 *** partial-completion-mode (complete.el) is obsolete.
840 You can get a comparable behavior with:
841 (setq completion-styles '(partial-completion initials))
842 (setq completion-pcm-complete-word-inserts-delimiters t)
844 *** pc-mode.el is obsolete (CUA mode is much more comprehensive).
846 *** pgg is obsolete (use EasyPG instead).
848 *** sregex.el is obsolete, since rx.el is a strict superset.
850 *** s-region.el and pc-select.el are obsolete.
851 They are superseded by shift-select-mode, enabled by default since 23.1.
853 *** vc-mcvs.el is obsolete (for lack of a maintainer).
855 ** Miscellaneous
857 *** The Landmark game is now invoked with `landmark', not `lm'.
858 Its functions and variables have been similarly renamed.
860 *** In `ido-file-completion-map', C-v is no longer bound to `ido-toggle-vc'.
861 (This interfered with cua-mode.)
863 *** f90.el has some support for Fortran 2008 syntax.
865 *** `copyright-fix-years' can optionally convert consecutive years to ranges.
867 *** New command `nato-region' converts text to NATO phonetic alphabet.
870 * New Modes and Packages in Emacs 24.1
872 ** Occur Edit mode applies edits made in *Occur* buffers to the
873 original buffers.  It is bound to "e" in Occur mode.
875 ** New global minor mode electric-pair-mode.
876 When enabled, typing an open parenthesis automatically inserts the
877 matching closing one.
879 ** New global minor mode electric-indent-mode.
880 When enabled, typing certain characters triggers reindentation.
881 Major modes wishing to use this can set electric-indent-chars or
882 electric-indent-functions.
884 ** New global minor mode electric-layout-mode.
885 When enabled, typing certain characters automatically inserts newlines.
886 Major modes wishing to use this can set electric-layout-rules.
888 ** tabulated-list.el provides a generic major mode for tabulated data,
889 from which other modes can be derived.
891 ** pcase.el provides the ML-style pattern matching macro `pcase'.
893 ** secrets.el is an implementation of the Secret Service API, an
894 interface to password managers like GNOME Keyring or KDE Wallet.  The
895 Secret Service API requires D-Bus for communication.  The command
896 `secrets-show-secrets' offers a buffer with a visualization of the
897 secrets.
899 ** notifications.el provides an implementation of the Desktop
900 Notifications API.  It requires D-Bus for communication.
902 ** soap-client.el supports access to SOAP web services from Emacs.
903 soap-inspect.el is an interactive inspector for SOAP WSDL structures.
905 ** New generic mode, xmodmap-generic-mode, for xmodmap files.
907 ** New emacs-lock.el package.
908 The previous version has been moved to obsolete/old-emacs-lock.el.
909 Now, there is a proper minor mode `emacs-lock-mode'.  Protection
910 against exiting Emacs and killing the buffer can be set separately.
911 The mechanism for automatically turning off protection for buffers
912 with dead inferior processes has been generalized.
915 * Incompatible Lisp Changes in Emacs 24.1
917 ** Passing a nil argument to a minor mode function call now ENABLES
918 the minor mode unconditionally.  This is so that you can write e.g.
920  (add-hook 'text-mode-hook 'foo-mode)
922 to enable foo-mode in Text mode buffers, removing the need for
923 `turn-on-foo-mode' style functions.  This affects all mode commands
924 defined by `define-minor-mode'.  If called interactively, the mode
925 command still toggles the minor mode.
927 ** The return value of `backup-buffer' has changed.
928 It is now a list of three elements, where the second element is a list
929 describing the original file's SELinux context.  If Emacs or the
930 system lacks SELinux support, the context list is (nil nil nil nil).
931 See "Basic SELinux support" above, under "Changes in Emacs 24.1".
933 ** `char-direction-table' and the `char-direction' function were deleted.
934 They were buggy and inferior to the new support of bidirectional
935 editing introduced in Emacs 24.  If you need the bidirectional
936 properties of a character, use `get-char-code-property' with the last
937 argument `bidi-class'.
939 ** `copy-directory' now copies the source directory as a subdirectory
940 of the target directory, if the latter is an existing directory.  The
941 new optional arg COPY-CONTENTS, if non-nil, makes the function copy
942 the contents directly into a pre-existing target directory.
944 ** For mouse click input events in the text area, the Y pixel
945 coordinate in the POSITION list now counts from the top of the text
946 area, excluding any header line.  Previously, it counted from the top
947 of the header line.
949 ** Support for "old-style" backquotes, obsolete for 10+ years, has
950 been further reduced.  Now a backquote not followed by a space is
951 always treated as a "new-style" backquote.  Please remove all
952 "old-style" backquotes from your code.  If your code uses backquotes
953 as documented in the Elisp manual, and compiles without warning, then
954 you have nothing to do in this regard.  Code not following the
955 appropriate conventions may fail to compile.
957 The most common cause of trouble seems to be an old-style backquote
958 followed by a newline.  Another cause of trouble is vector notation
959 for key sequence notation: instead of [(control ,)] and [(control ')],
960 you should write [(control ?,)] and [(control ?')], which will work in
961 older Emacsen too.
963 ** The macro `eval-at-startup' was removed in Emacs 23.2, but this
964 was not advertised at the time.  The function `custom-initialize-delay'
965 replaced all known uses.
967 ** `view-buffer' now treats special mode-class in the same way that
968 `view-file' has since Emacs 22 (i.e. it won't enable View mode if the
969 major mode is special).
971 ** Menu and tool bar changes
973 *** During startup, Emacs no longer adds entries for `menu-bar-lines'
974 and `tool-bar-lines' to `default-frame-alist' and `initial-frame-alist'.
975 With these alist entries omitted, `make-frame' checks the value of the
976 variable `menu-bar-mode'/`tool-bar-mode' to determine whether to create
977 a menu-bar or tool-bar, respectively.  If the alist entries are added,
978 they override the value of `menu-bar-mode'/`tool-bar-mode'.
980 *** The menu bar bindings's caches are not used any more.
981 Use (where-is-internal <def> nil t) instead.
983 ** Regions created by mouse dragging are now normal active regions,
984 similar to those created by shift-selection (see Selection changes
985 above).  In previous Emacs versions, these regions were delineated by
986 `mouse-drag-overlay'; that variable has been removed.
988 ** The fourth argument of `filter-buffer-substring' has been removed.
989 If you want to remove text properties from the final result, simply
990 pass the result through substring-no-properties.
992 ** cl.el no longer provides `cl-19'.
994 ** The following obsolete functions and aliases have been removed
995 (the appropriate new function is given in parentheses; "not needed"
996 means you can just remove all calls to the function in question):
998 *** `comint-kill-output' (`comint-delete-output')
999 *** `decompose-composite-char' (`char-to-string')
1000 *** `outline-visible' (`outline-invisible-p')
1001 *** `internal-find-face' (`facep')
1002 *** `internal-get-face' (`facep and check-face')
1003 *** `frame-update-faces' (not needed)
1004 *** `frame-update-face-colors' (`frame-set-background-mode')
1005 *** `x-frob-font-weight' and `x-frob-font-slant' (`make-face-*' functions)
1006 *** `x-make-font-bold and x-make-font-demibold (`make-face-bold')
1007 *** `x-make-font-italic' and `x-make-font-oblique' (`make-face-italic')
1008 *** `x-make-font-bold-italic' (`make-face-bold-italic')
1009 *** `x-make-font-unbold' (`make-face-unbold')
1010 *** `x-make-font-unitalic' (`make-face-unitalic')
1011 *** `mldrag-drag-mode-line' (`mouse-drag-mode-line')
1012 *** `mldrag-drag-vertical-line' (`mouse-drag-vertical-line')
1013 *** `iswitchb-default-keybindings' (`iswitchb-mode')
1014 *** `char-bytes' (== 1)
1015 *** `isearch-return-char' (`isearch-printing-char')
1016 *** `make-local-hook' (not needed)
1017 *** `set-screen-height' (`set-frame-height')
1018 *** `set-screen-width' (`set-frame-width')
1020 ** The following obsolete variables and varaliases have been removed
1021 (the appropriate new variable is given in parentheses):
1023 *** `checkdoc-minor-keymap' (`checkdoc-minor-mode-map')
1024 *** `vc-header-alist' (`vc-BACKEND-header')
1025 *** `directory-sep-char' (== ?/)
1026 *** `font-lock-defaults-alist' (`font-lock-defaults')
1027 *** `e' (`float-e').
1029 ** The following obsolete files were removed:
1030 sc.el, x-menu.el, rnews.el, rnewspost.el
1032 ** The format of the finder-inf.el file has changed, since the Finder
1033 mechanism is now based on the package system.  The variable
1034 `finder-package-info' is replaced by `package--builtins' and
1035 `finder-keywords-hash'.
1037 ** When generating autoloads, `update-directory-autoloads' no longer
1038 assumes every inspected file is in your `load-path'.  It instead
1039 generates relative names according to the current `load-path'.
1042 * Lisp changes in Emacs 24.1
1044 ** Code can now use lexical scoping by default instead of dynamic scoping.
1045 The `lexical-binding' variable enables lexical scoping for local
1046 variables.  It is typically set via a file-local variable in the first
1047 line of the file, in which case it applies to all the code in that
1048 file.
1050 *** `eval' takes a new optional argument `lexical' to choose the new lexical
1051 binding instead of the old dynamic binding mode.
1053 *** Lexically scoped interpreted functions are represented with a new form
1054 of function value which looks like (closure ENV ARGS &rest BODY).
1056 *** New macro `letrec' to define recursive local functions.
1058 *** `defvar' and `defconst' now mark the variable as special (dynamic).
1059 So do `defcustom' and other forms that call `defvar' as a subroutine.
1061 *** New function `special-variable-p' to check whether a variable is
1062 declared as dynamically bound.
1064 *** The form ((lambda ...) ...) is deprecated.
1066 ** An Emacs Lisp testing tool is now included.
1067 Emacs Lisp developers can use this tool to write automated tests for
1068 their code.  See the ERT info manual for details.
1070 ** Changes for bidirectional display and editing
1072 *** New function `current-bidi-paragraph-direction'.
1073 This returns the base direction of the paragraph at point.
1075 *** New function `bidi-string-mark-left-to-right'.
1076 Given a string containing characters from right-to-left scripts, this
1077 function returns another string which can be safely inserted into a
1078 buffer, such that any following text will be always displayed to the
1079 right of that string.  (This works by appending an invisible Unicode
1080 "LEFT-TO-RIGHT MARK" character if the argument string might need it.)
1082 This is useful when the buffer has overall left-to-right paragraph
1083 direction and you need to insert a string whose contents are not known
1084 in advance, without disrupting the layout of the line.
1086 ** Window changes
1088 *** Window tree functions are accessible in Elisp.
1089 Functions are provided to return the parent, siblings or child windows
1090 of any window including internal windows (windows not associated with a
1091 buffer) in the window tree.
1093 **** New function `window-valid-p' gives non-nil for live and internal
1094 windows.
1096 **** Window manipulation can deal with internal windows.
1097 Many window handling functions like `split-window', `delete-window', or
1098 `delete-other-windows' as well as the window resizing functions can now
1099 act on any window including internal ones.
1101 *** window-total-height/-width vs window-body-height/-width.
1102 The function `window-height' has been renamed to `window-total-height'
1103 and `window-width' has been renamed to `window-body-width'.  The old
1104 names are provided as aliases.  Two new functions `window-total-width'
1105 and `window-body-height' are provided.
1107 *** Window parameters specific to window handling functions.
1108 For each window you can specify a parameter to override the default
1109 behavior of a number of functions like `split-window', `delete-window'
1110 and `delete-other-windows'.  The variable `ignore-window-parameters'
1111 allows to ignore processing such parameters.
1113 *** New semantics of third argument of `split-window'.
1114 The third argument of `split-window' has been renamed to SIDE and can be
1115 set to any of the values 'below, 'right, 'above, or 'left to make the
1116 new window appear on the corresponding side of the window that shall be
1117 split.  Any other value of SIDE will cause `split-window' to split the
1118 window into two side-by-side windows as before.
1120 *** Window resizing functions.
1121 A new standard function for resizing windows called `window-resize' has
1122 been introduced.  This and all other functions for resizing windows no
1123 longer delete any windows when they become too small.
1125 *** Deleting the selected window now selects the most recently selected
1126 live window on that frame instead.
1128 *** `adjust-window-trailing-edge' adjustments.
1129 `adjust-window-trailing-edge' can now deal with fixed-size windows and
1130 is able to resize other windows if a window adjacent to the trailing
1131 edge cannot be shrunk any more.  This makes its behavior more similar to
1132 that of Emacs 21 without compromising, however, its inability to delete
1133 windows which was introduced in Emacs 22.
1135 *** Window-local buffer lists.
1136 Windows now have local buffer lists.  This means that removing a buffer
1137 from display in a window will preferably show the buffer previously
1138 shown in that window with its previous window-start and window-point
1139 positions.  This also means that the same buffer may be automatically
1140 shown twice even if it already appears in another window.
1142 *** `switch-to-buffer' has a new optional argument FORCE-SAME-WINDOW,
1143 which if non-nil requires the buffer to be displayed in the currently
1144 selected window, signaling an error otherwise.  If nil, another window
1145 can be used, e.g. if the selected one is strongly dedicated.
1147 *** `split-window-vertically' and `split-window-horizontally' renamed
1148 to `split-window-below' and `split-window-right' respectively.
1149 The old names are kept as aliases.
1151 *** Display actions
1153 **** The second arg to `display-buffer' and `pop-to-buffer' is now
1154 named ACTION, and takes a display action of the same form as
1155 `display-buffer-base-action' (see Changes, above).  A non-nil,
1156 non-list value is treated specially, as the old meaning.
1158 **** New variable `display-buffer-overriding-action'.
1160 **** The procedure of `display-buffer' etc. to choose a window is
1161 determined by combining `display-buffer-overriding-action',
1162 `display-buffer-alist', the ACTION arg, `display-buffer-base-action',
1163 and `display-buffer-fallback-action'.  The second and fourth of these
1164 are user-customizable variables.
1166 See the docstring of `display-buffer' for details.
1168 *** New functions `window-state-get' and `window-state-put'.
1169 These functions allow to save and restore the state of an arbitrary
1170 frame or window as an Elisp object.
1172 ** Completion
1174 *** New variable `completion-extra-properties' used to specify extra
1175 properties of the current completion:
1176 - :annotate-function, same as the old completion-annotate-function.
1177 - :exit-function, function to call after completion took place.
1179 *** Functions on `completion-at-point-functions' can return any of the
1180 properties valid for `completion-extra-properties'.
1182 *** `completion-annotate-function' is obsolete.
1184 *** New `metadata' method for completion tables.  The metadata thus returned
1185 can specify various details of the data returned by `all-completions':
1186 - `category' is the kind of objects returned (e.g., `buffer', `file', ...),
1187   used to select a style in completion-category-overrides.
1188 - `annotation-function' to add annotations in *Completions*.
1189 - `display-sort-function' to specify how to sort entries in *Completions*.
1190 - `cycle-sort-function' to specify how to sort entries when cycling.
1192 *** `minibuffer-local-filename-must-match-map' is not used any more.
1193 Instead, the bindings in `minibuffer-local-filename-completion-map'
1194 are combined with `minibuffer-local-must-match-map'.
1196 *** New variable `completing-read-function' allows overriding the
1197 behavior of `completing-read'.
1199 ** `glyphless-char-display' can now distinguish between graphical and
1200 text terminal display, via a char-table entry that is a cons cell.
1202 ** `pre-command-hook'/`post-command-hook' are not reset to nil on error.
1203 Instead, the offending function is removed.
1205 ** New hook types
1207 *** New function `run-hook-wrapped' for running an abnormal hook by
1208 passing the hook functions as arguments to a "wrapping" function.
1209 Like `run-hook-with-args-until-success', it stops at the first
1210 non-nil return value.
1212 *** New macro `with-wrapper-hook' for running an abnormal hook as a
1213 set of "wrapping" filters, similar to around advice.
1214 (A version of this macro was actually added in Emacs 23.2 but was not
1215 advertised at the time.)
1217 ** Debugger changes
1219 *** New macro `condition-case-unless-debug' (this was actually added in
1220 Emacs 23.1 as condition-case-no-debug, but not advertised)
1222 *** The macro `with-demoted-errors' was added in Emacs 23.1, but not advertised.
1224 *** Variable `stack-trace-on-error' removed.
1226 *** The debugger can now "continue" from an error, which means it will
1227 jump to the error handler as if the debugger had not been invoked
1228 instead of jumping all the way to the top-level.
1230 *** Set `debug-on-event' to enter the debugger on events like SIGUSR1.
1231 This can be useful when `inhibit-quit' is set.
1233 ** The new function `server-eval-at' allows evaluation of Lisp forms on
1234 named Emacs server instances.
1236 ** `call-process' and `call-process-region' allow a `(:file "file")' spec
1237 to redirect STDOUT to a file.
1239 ** The function `format-time-string' now supports the %N directive,
1240 for higher-resolution time stamps.
1242 ** New input reading functions
1244 *** New function `read-char-choice' reads a restricted set of
1245 characters, discarding any inputs not inside the set.
1247 *** The command `read-color' now requires a match for a color name
1248 or RGB triplet, instead of signaling an error if the user provides
1249 invalid input.
1251 **** `facemenu-read-color' is now an alias for `read-color'.
1253 ** `image-library-alist' is renamed to `dynamic-library-alist'.
1254 The variable is now used to load all kind of supported dynamic libraries,
1255 not just image libraries.  The previous name is still available as an
1256 obsolete alias.
1258 ** Syntax parsing changes
1260 *** New variable `syntax-propertize-function'.
1261 This replaces `font-lock-syntactic-keywords' which is now obsolete.
1262 This allows syntax-table properties to be set independently from font-lock:
1263 just call syntax-propertize to make sure the text is propertized.
1264 Together with this new variable come a new hook
1265 syntax-propertize-extend-region-functions, as well as two helper functions:
1266 syntax-propertize-via-font-lock to reuse old font-lock-syntactic-keywords
1267 as-is; and syntax-propertize-rules which provides a new way to specify
1268 syntactic rules.
1270 *** Syntax tables support a new "comment style c" additionally to style b.
1272 ** New hook `post-self-insert-hook', run after `self-insert-command'.
1274 ** frame-local variables cannot be let-bound any more.
1276 ** Major and minor mode changes
1278 *** `set-auto-mode' now respects mode: local variables at the end of files,
1279 as well as those in the -*- line.
1281 *** `prog-mode' is a new major mode from which programming modes
1282 should be derived.
1284 **** `prog-mode-hook' can be used to enable features for programming
1285 modes, e.g. (add-hook 'prog-mode-hook 'flyspell-prog-mode) to enable
1286 on-the-fly spell checking for comments and strings.
1288 *** New hook `change-major-mode-after-body-hook', run by
1289 `run-mode-hooks' just before any other mode hooks.
1291 *** Enabled globalized minor modes can be disabled in specific major modes.
1292 If the global mode is global-FOO-mode, then run (FOO-mode -1) in the
1293 major mode's hook, where FOO-mode toggles the mode on a per-buffer basis.
1295 *** `define-minor-mode' accepts new keywords :variable, :after-hook.
1297 ** File-handling changes
1299 *** `delete-file' and `delete-directory' now accept optional arg TRASH.
1300 Trashing is performed if TRASH and `delete-by-moving-to-trash' are
1301 both non-nil.  Interactively, TRASH defaults to t, unless a prefix
1302 argument is supplied (see Trash changes, above).
1304 *** New file predicates: `file-equal-p', `file-in-directory-p'.
1306 ** Tool-bars can display separators.
1307 Tool-bar separators are handled like menu separators in menu-bar maps,
1308 i.e. via menu entries of the form `(menu-item "--")'.
1310 ** Image API
1312 *** Animated images support (currently animated gifs only).
1314 **** `image-animated-p' returns non-nil if an image can be animated.
1316 **** `image-animate' animates a supplied image spec.
1318 **** `image-animate-timer' returns the timer object for an image that
1319 is being animated.
1321 *** `image-extension-data' has been renamed to `image-metadata'.
1322 The old name is an obsolete alias to the new one.
1324 *** Image mode can view any image type that ImageMagick supports.
1325 This requires Emacs to be built with ImageMagick support.
1327 **** New function `imagemagick-types', defined if ImageMagick support
1328 is enabled, returns a list of image file extensions that your
1329 ImageMagick installation supports.
1331 **** New function `imagemagick-register-types' enables ImageMagick
1332 image types in Image mode and in `create-image' and other helper
1333 functions.
1335 **** New option `imagemagick-types-inhibit' excludes certain
1336 ImageMagick image types from `imagemagick-register-types'.
1338 **** With ImageMagick support, there are extra Image mode commands to
1339 resize and rotate images: `image-transform-fit-to-height',
1340 `image-transform-fit-to-width', `image-transform-set-rotation', and
1341 `image-transform-set-scale'.
1343 ** `compose-mail' now accepts an optional 8th arg, RETURN-ACTION, and
1344 passes it to the mail user agent function.  This argument specifies an
1345 action for returning to the caller after finishing with the mail.  For
1346 example, this is used by Rmail to optionally delete a mail window.
1348 ** XML and HTML parsing
1349 If Emacs is compiled with libxml2 support, there are two new
1350 functions: `libxml-parse-html-region' (which parses "real world" HTML)
1351 and `libxml-parse-xml-region' (which parses XML).  Both return an
1352 Emacs Lisp parse tree.
1354 ** Networking and encryption changes
1356 *** `open-network-stream' can now be used to open an encrypted stream.
1357 It now accepts an optional `:type' parameter for initiating a TLS
1358 connection, directly or via STARTTLS.  To do STARTTLS, additional
1359 parameters (`:end-of-command', `:success', `:capabilities-command')
1360 must also be supplied.
1362 *** New library gnutls.el.
1363 The new function `gnutls-available-p' returns non-nil if Emacs is
1364 built with GnuTLS support.  The main entry points are
1365 `open-gnutls-stream' and `gnutls-negotiate'.  It's easiest to use
1366 these functions through `open-network-stream', because that can
1367 upgrade connections through STARTTLS opportunistically or use plain
1368 SSL, depending on your needs.  For debugging, set `gnutls-log-level'
1369 greater than 0.
1371 *** New primitive `secure-hash' that supports many secure hash algorithms:
1372 md5, sha1, sha2, sha224, sha256, sha384, and sha512.  The lisp library
1373 sha1.el has been removed.  The `sha1' feature is provided by default.
1375 ** Isearch
1377 *** New hook `isearch-update-post-hook' that runs in `isearch-update'.
1379 ** Progress reporters can now "spin".
1380 The MIN-VALUE and MAX-VALUE arguments of `make-progress-reporter' can
1381 now be nil, or omitted.  This makes a "non-numeric" reporter.  Each
1382 time you call `progress-reporter-update' on that progress reporter,
1383 with a nil or omitted VALUE argument, the reporter message is
1384 displayed with a "spinning bar".
1386 ** New variable `revert-buffer-in-progress-p' is true while a buffer is
1387 being reverted, even if the buffer has a local `revert-buffer-function'.
1389 ** New variables `delayed-warnings-list' and `delayed-warnings-hook'.
1390 If delayed-warnings-list is non-nil, the command loop calls
1391 `delayed-warnings-hook' after `post-command-hook'.  At present, this
1392 is only used by Emacs on some platforms to display warnings during
1393 startup, which might otherwise not be noticed.  This uses the
1394 functions `display-delayed-warnings' and `collapse-delayed-warnings'.
1396 ** rx.el has a new `group-n' construct for explicitly numbered groups.
1398 ** New function `make-composed-keymap' that constructs a new keymap
1399 from multiple input maps.  You can use this to make a keymap that
1400 inherits from multiple maps, eg:
1401  (set-keymap-parent newmap (make-composed-keymap othermap parent))
1403 ** New function `string-prefix-p'.
1404 (This was actually added in Emacs 23.2 but was not advertised at the time.)
1406 ** New reader macro ## that stands for the empty symbol.
1407 This means that the empty symbol can now be read back.  Also, #: by itself
1408 (when not immediately followed by a possible symbol character) stands for
1409 an empty uninterned symbol.
1411 ** New math functions `isnan', `copysign', `frexp', `ldexp'.
1413 ** The following functions and variables are obsolete:
1415 *** `tooltip-use-echo-area' is obsolete.
1416 Rather than setting this to t, disable Tooltip mode instead.
1418 *** buffer-substring-filters is obsolete.
1419 Use `filter-buffer-substring-functions' instead.
1421 *** `byte-compile-disable-print-circle' is obsolete.
1423 *** `deferred-action-list' and `deferred-action-function' are obsolete.
1424 Use `post-command-hook' instead.
1426 *** `font-lock-maximum-size' is obsolete.
1429 * Changes in Emacs 24.1 on non-free operating systems
1431 ** On MS Windows, Emacs warns when using the obsolete init file _emacs,
1432 and also when HOME is set to C:\ by default.
1434 ** New configure.bat options
1436 *** --enable-checking builds Emacs with extra runtime checks.
1438 *** --distfiles specifies files to be included in binary distribution.
1440 *** --without-gnutls disables automatic GnuTLS detection.
1442 *** --lib for general library linkage, works with the USER_LIBS build variable.
1444 ** New make target `dist' to create binary distribution for MS Windows.
1446 ** The Lisp function `w32-default-color-map' is now obsolete.
1447 (It is only used internally in the Emacs C code.)
1449 ** Customize ns-auto-hide-menu-bar to have the menu-bar hidden, but
1450 reappear on mouse-over.  (Requires OS X 10.6 or later.)
1452 ** On Mac OS X, dragging a file into Emacs visits the file, like on
1453 other platforms, rather than inserting its contents into the buffer.
1456 ----------------------------------------------------------------------
1457 This file is part of GNU Emacs.
1459 GNU Emacs is free software: you can redistribute it and/or modify
1460 it under the terms of the GNU General Public License as published by
1461 the Free Software Foundation, either version 3 of the License, or
1462 (at your option) any later version.
1464 GNU Emacs is distributed in the hope that it will be useful,
1465 but WITHOUT ANY WARRANTY; without even the implied warranty of
1466 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
1467 GNU General Public License for more details.
1469 You should have received a copy of the GNU General Public License
1470 along with GNU Emacs.  If not, see <http://www.gnu.org/licenses/>.
1473 Local variables:
1474 mode: outline
1475 paragraph-separate: "[  \f]*$"
1476 end: