More updates to Maintaining chapter of Emacs manual.
[bpt/emacs.git] / etc / NEWS
CommitLineData
29b7722a 1GNU Emacs NEWS -- history of user-visible changes.
5b87ad55 2
73b0cd50 3Copyright (C) 2010-2011 Free Software Foundation, Inc.
5b87ad55 4See the end of the file for license conditions.
a933dad1 5
893db5bc 6Please send Emacs bug reports to bug-gnu-emacs@gnu.org.
9a21d88b
KS
7If possible, use M-x report-emacs-bug.
8
eb199145 9This file is about changes in Emacs version 24.
9a21d88b 10
eb199145
GM
11See files NEWS.23, NEWS.22, NEWS.21, NEWS.20, NEWS.19, NEWS.18,
12and NEWS.1-17 for changes in older Emacs versions.
9a21d88b
KS
13
14You can narrow news to a specific version by calling `view-emacs-news'
15with a prefix argument or by typing C-u C-h C-n.
3f7194ed 16
adce950d
CY
17
18Temporary note:
19 +++ indicates that the appropriate manual has already been updated.
20 --- means no change in the manuals is called for.
21When you add a new item, please add it without either +++ or ---
22so we will look at it and add it to the manual.
23
24\f
eb199145 25* Installation Changes in Emacs 24.1
09e18d03 26
338648ad
GM
27** Configure links against libselinux if it is found.
28You can disable this by using --without-selinux.
29
30---
31** By default, the installed Info and man pages are compressed.
32You can disable this by configuring --without-compress-info.
33
aded53ff
GM
34---
35** There are new configure options:
36--with-mmdf, --with-mail-unlink, --with-mailhost.
37These provide no new functionality, they just remove the need to edit
38lib-src/Makefile by hand in order to use the associated features.
39
e547b051 40---
30c4d8dc 41** Emacs can be compiled against Gtk+ 3.0 if you pass --with-x-toolkit=gtk3
e547b051
J
42to configure. Note that other libraries used by Emacs, RSVG and GConf,
43also depend on Gtk+. You can disable them with --without-rsvg and
44--without-gconf.
45
3fd50d5c 46---
d9170db5
DN
47** There is a new configure option --enable-use-lisp-union-type.
48This is only useful for Emacs developers to debug certain types of bugs.
b2957ea8 49This is not a new feature; only the configure flag is new.
d9170db5 50
3fd50d5c 51---
81eafe29
PE
52** There is a new configure option --with-wide-int.
53With it, Emacs integers typically have 62 bits, even on 32-bit machines.
0a768890
PE
54On 32-bit hosts, this raises the limit on buffer sizes from about 512 MiB
55to about 2 GiB.
81eafe29 56
d064e6a6 57---
f042970d 58** New translation of the Emacs Tutorial in Hebrew is available.
d064e6a6
EZ
59Type `C-u C-h t' to choose it in case your language setup doesn't
60automatically select it.
61
ddb54206 62** Emacs can be compiled with ImageMagick support.
041d709f 63Emacs links to ImageMagick if version 6.2.8 or newer of the library is
ddb54206
CY
64present at build time. To inhibit ImageMagick, use the configure
65option `--without-imagemagick' .
041d709f 66
ddb54206 67---
041d709f
CY
68** The standalone programs digest-doc and sorted-doc are removed.
69Emacs now uses Lisp commands `doc-file-to-man' and `doc-file-to-info'.
70
71---
72** The standalone program `fakemail' is removed.
73If you need it, feedmail.el provides a superset of the functionality.
74
0bfd685e 75\f
eb199145 76* Startup Changes in Emacs 24.1
4a263588 77
fdeb32ec 78---
198a7a97 79** The --unibyte, --multibyte, --no-multibyte, and --no-unibyte
adbf62ff
GM
80command line arguments, and the EMACS_UNIBYTE environment variable, no
81longer have any effect. (They were declared obsolete in Emacs 23.)
198a7a97 82
fdeb32ec 83+++
66b7b0fe
GM
84** New command line option `--no-site-lisp' removes site-lisp directories
85from load-path. -Q now implies this.
86
fdeb32ec 87---
71edd0ec
JB
88** On Windows, Emacs now warns when the obsolete _emacs init file is used,
89and also when HOME is set to C:\ by default.
8a05b668 90
0bfd685e 91\f
eb199145 92* Changes in Emacs 24.1
7841339b 93
3fd50d5c 94+++
041d709f 95** auto-mode-case-fold is now enabled by default.
2a847524 96
a2a25d24 97** Completion
fdeb32ec 98
e17d9003 99*** shell-mode uses pcomplete rules, with the standard completion UI.
3d992aa0 100+++
de0bde62
CY
101*** Many packages have been changed to use `completion-at-point'
102rather than their own completion code.
3d992aa0 103+++
de0bde62 104*** `completion-at-point' now handles tags and semantic completion.
27a16462 105---
a2a25d24
SM
106*** Completion in a non-minibuffer now tries to detect the end of completion
107and pops down the *Completions* buffer accordingly.
de09aa52 108+++
a2a25d24 109*** Completion can cycle, depending on completion-cycle-threshold.
27a16462 110+++
a2a25d24 111*** New completion style `substring'.
939db9ac 112+++
620c53a6 113*** Completion style can be set per-category `completion-category-overrides'.
939db9ac 114+++
620c53a6
SM
115*** Completion of buffers now uses substring completion by default.
116
6870aaef
LMI
117** Mail changes
118
041d709f
CY
119The default of `send-mail-function' is now `sendmail-query-once',
120which asks the user (once) whether to use the smtpmail package to send
121email, or to use the old defaults that rely on external mail
122facilities (`sendmail-send-it' on GNU/Linux and other Unix-like
123systems, and `mailclient-send-it' on Windows).
6870aaef 124
041d709f 125*** smtpmail changes
95f41d9a 126
041d709f
CY
127**** smtpmail now uses encrypted connections (via STARTTLS) if the
128mail server supports them. It also uses the auth-source framework for
129getting credentials.
95f41d9a 130
041d709f
CY
131**** The variable `smtpmail-auth-credentials' has been removed.
132That variable used to have the default value "~/.authinfo", in which
133case you won't see any difference. But if you changed it to be a list
134of user names and passwords, that setting is now ignored; you will be
135prompted for the user name and the password, which will then be saved
ffdcbd1c
LMI
136to ~/.authinfo. (To control where and how the credentials are stored,
137see the auth-source manual. You may want to change the auth-source
138preferences if you want to store the credentials encrypted, for
139instance.)
e2430e31 140
041d709f
CY
141You can also manually copy the credentials to your ~/.authinfo file.
142For example, if you had
e2430e31 143
041d709f
CY
144 (setq smtpmail-auth-credentials
145 '(("mail.example.org" 25 "jim" "s!cret")))
e2430e31
LMI
146
147then the equivalent line in ~/.authinfo would be
148
041d709f
CY
149 machine mail.example.org port 25 login jim password s!cret
150
151**** The variable `smtpmail-starttls-credentials' has been removed.
95f41d9a 152
cd1181db 153If you had that set, then you need to put
95f41d9a 154
041d709f 155 machine smtp.whatever.foo port 25 key "~/.my_smtp_tls.key" cert "~/.my_smtp_tls.cert"
95f41d9a
LMI
156
157in your ~/.authinfo file instead.
158
c3760c17
EZ
159*** sendmail changes
160+++
161You can now add MIME attachments to outgoing messages with the new
162command `mail-add-attachment'.
163
164---
165The command `mail-attach-file' was renamed to `mail-insert-file'; the
166old name is now an obsolete alias to the new name.
167
041d709f 168** Emacs server and client changes
ddb54206 169+++
041d709f
CY
170*** New option `server-port' specifies the port on which the Emacs
171server should listen.
172+++
173*** New emacsclient argument -q/--quiet suppresses some status messages.
174+++
175*** New emacsclient argument --frame-parameters can be used to set the
176frame parameters of a newly-created graphical frame.
177+++
8350f087 178*** If emacsclient shuts down as a result of Emacs signaling an
041d709f
CY
179error, its exit status is 1.
180+++
181*** New emacsclient argument --parent-id ID.
182This opens a client frame in parent X window ID, via XEmbed, similar
183to the --parent-id argument to Emacs.
184
d0ce9f8c
MB
185** Internationalization changes
186
f4b6ba46 187+++
d0ce9f8c 188*** Emacs now supports display and editing of bidirectional text.
f4b6ba46 189
f1816485
EZ
190Text that includes characters from right-to-left (RTL) scripts, such
191as Arabic, Farsi, or Hebrew, is displayed in the correct visual order
192as expected by users of those scripts. This display reordering is a
193"Full bidirectionality" class implementation of the Unicode
7850ac23
EZ
194Bidirectional Algorithm. Buffers with no RTL text should look exactly
195the same as before.
f4b6ba46 196
041d709f
CY
197For more information, see the node "Bidirectional Editing" in the
198Emacs Manual.
f4b6ba46 199
041d709f
CY
200+++
201**** New buffer-local variable `bidi-display-reordering'.
202To disable display reordering in any given buffer, change this to nil.
d20e1419 203
041d709f
CY
204+++
205**** New buffer-local variable `bidi-paragraph-direction'.
206If nil (the default), Emacs determines the base direction of each
207paragraph from its text, as specified by the Unicode Bidirectional
f4b6ba46
EZ
208Algorithm.
209
041d709f
CY
210Setting this to `right-to-left' or `left-to-right' forces a particular
211base direction on each paragraph in the buffer.
212
f1816485
EZ
213Paragraphs whose base direction is right-to-left are displayed
214starting at the right margin of the window.
215
d0ce9f8c 216+++
041d709f
CY
217*** Enhanced support for characters with no glyphs in available fonts.
218If a character has no glyphs in any of the available fonts, Emacs
219normally displays it either as a hexadecimal code in a box or as a
d0ce9f8c
MB
220thin 1-pixel space. In addition to these two methods, Emacs can
221display these characters as empty box, as an acronym, or not display
222them at all. To change how these characters are displayed, customize
223the variable `glyphless-char-display-control'.
224
041d709f 225On character terminals, these methods are used for characters that
d0ce9f8c
MB
226cannot be encoded by the `terminal-coding-system'.
227
ddb54206 228---
041d709f
CY
229*** New input methods for Farsi: farsi and farsi-translit.
230
939db9ac
CY
231+++
232*** `nobreak-char-display' now also highlights Unicode hyphen chars
233(U+2010 and U+2011).
234
041d709f 235** Improved GTK integration
da97a9e6 236+++
041d709f 237*** GTK scroll-bars are now placed on the right by default.
52834b6b 238Use `set-scroll-bar-mode' to change this.
da97a9e6 239+++
041d709f 240*** GTK tool bars can have just text, just images or images and text.
d8004abe 241Customize `tool-bar-style' to choose style. On a Gnome desktop, the default
20fe03ad 242is taken from the desktop settings.
da97a9e6 243---
041d709f 244*** GTK tool bars can be placed on the left/right or top/bottom of the frame.
8b2dd508 245The frame-parameter tool-bar-position controls this. It takes the values
1c0d77cc 246top, left, right or bottom. The Options => Show/Hide menu has entries
8b2dd508 247for this.
d366bd53 248+++
67e729a5
CY
249*** The colors for selected text (the `region' face) are taken from
250the GTK theme when Emacs is built with GTK.
d366bd53 251+++
041d709f
CY
252*** Emacs uses GTK tooltips by default if built with GTK. You can turn that
253off by customizing x-gtk-use-system-tooltips.
16a91140 254
35137ed3 255+++
bc987f8b
JL
256** New basic faces `error', `warning', `success' are available to
257highlight strings that indicate failure, caution or successful operation.
258
b22b1918 259---
1ecb2d3f 260** Lucid menus and dialogs can display antialiased fonts if Emacs is built
3928f2b6
JD
261with Xft. To change font, use the X resource font, for example:
262Emacs.pane.menubar.font: Courier-12
99852628 263
21100e7d 264+++
917794d5 265** On graphical displays, the mode-line no longer ends in dashes.
1dd3c2d9
CY
266Also, the first dash (which does not indicate anything) is just
267displayed as a space.
917794d5 268
b7d65a5f
GM
269** Basic SELinux support has been added.
270This requires Emacs to be linked with libselinux at build time.
271
d8004abe
GM
272*** Emacs preserves the SELinux file context when backing up, and
273optionally when copying files. To this end, copy-file has an extra
274optional argument, and backup-buffer and friends include the SELinux
275context in their return values.
b7d65a5f
GM
276
277*** The new functions file-selinux-context and set-file-selinux-context
278get and set the SELinux context of a file.
bfd779dd 279---
a5bee597
MA
280*** Tramp offers handlers for file-selinux-context and set-file-selinux-context
281for remote machines which support SELinux.
282
041d709f 283** Changes for exiting Emacs
ddb54206 284+++
041d709f
CY
285*** The function kill-emacs is now run upon receipt of the signals
286SIGTERM and SIGHUP, and upon SIGINT in batch mode.
ddb54206 287+++
041d709f 288*** kill-emacs-hook is now also run in batch mode.
63c72eeb
GM
289If you have code that adds something to kill-emacs-hook, you should
290consider if it is still appropriate to add it in the noninteractive case.
9c524fcb 291
041d709f 292** Scrolling changes
550f41cd 293+++
041d709f 294*** New scrolling commands `scroll-up-command' and `scroll-down-command'
0a19a6f8
JB
295(bound to C-v/[next] and M-v/[prior]) do not signal errors at top/bottom
296of buffer at first key-press (instead move to top/bottom of buffer)
550f41cd 297when `scroll-error-top-bottom' is non-nil.
550f41cd
CY
298+++
299*** New variable `scroll-error-top-bottom' (see above).
e7a3ff06 300+++
041d709f 301*** New scrolling commands `scroll-up-line' and `scroll-down-line'
5a97d2da 302scroll a line instead of full screen.
550f41cd 303+++
041d709f 304*** New property `scroll-command' should be set on a command's symbol to
b2957ea8 305define it as a scroll command affected by `scroll-preserve-screen-position'.
d0f69533 306+++
041d709f 307*** If you customize `scroll-conservatively' to a value greater than 100,
d0f69533
EZ
308Emacs will never recenter point in the window when it scrolls due to
309cursor motion commands or commands that move point (e.f., `M-g M-g').
310Previously, you needed to use `most-positive-fixnum' as the value of
311`scroll-conservatively' to achieve the same effect.
d0f69533 312---
041d709f 313*** ``Aggressive'' scrolling now honors the scroll margins.
d0f69533
EZ
314If you customize `scroll-up-aggressively' or
315`scroll-down-aggressively' and move point off the window, Emacs now
316scrolls the window so as to avoid positioning point inside the scroll
317margin.
318
f1a5d776 319** Trash changes
04e2ce72 320+++
f1a5d776
CY
321*** `delete-by-moving-to-trash' now only affects commands that specify
322trashing. This avoids inadvertently trashing temporary files.
04e2ce72 323+++
f1a5d776
CY
324*** Calling `delete-file' or `delete-directory' with a prefix argument
325now forces true deletion, regardless of `delete-by-moving-to-trash'.
326
f0bf7c8e
JL
327** New option `list-colors-sort' defines the color sort order
328for `list-colors-display'.
329
44198b6e
CY
330** An Emacs Lisp package manager is now included.
331This is a convenient way to download and install additional packages,
3fd50d5c 332from a package repository at http://elpa.gnu.org.
d43f5a42 333+++
cb6c4991
CY
334*** `M-x list-packages' shows a list of packages, which can be
335selected for installation.
d43f5a42 336+++
cb6c4991 337*** New command `describe-package', bound to `C-h P'.
d43f5a42 338+++
44198b6e
CY
339*** By default, all installed packages are loaded and activated
340automatically when Emacs starts up. To disable this, set
341`package-enable-at-startup' to nil. To change which packages are
342loaded, customize `package-load-list'.
343
f065864f
CY
344** Custom Themes
345
346*** `M-x customize-themes' lists Custom themes which can be enabled.
347
782b5e8d
CY
348*** New option `custom-theme-load-path' is the load path for themes.
349Emacs no longer looks for custom themes in `load-path'. The default
350is to search in `custom-theme-directory', followed by a built-in theme
351directory named "themes/" in `data-directory'.
352
b7617f6d
CY
353*** New option `custom-safe-themes' records known-safe theme files.
354If a theme is not in this list, Emacs queries before loading it, and
355offers to save the theme to `custom-safe-themes' automatically. By
356default, all themes included in Emacs are treated as safe.
278f6845 357
4ddf410a
MA
358** The user option `remote-file-name-inhibit-cache' controls whether
359the remote file-name cache is used for read access.
360
041d709f 361** File- and directory-local variable changes
b8f82dc1 362+++
041d709f
CY
363*** You can stop directory local vars from applying to subdirectories.
364Add an element (subdirs . nil) to the alist portion of any variables
365settings to indicate that the section should not apply to
366subdirectories.
b8f82dc1 367
041d709f
CY
368*** Directory local variables can apply to some file-less buffers.
369Affected modes include dired, vc-dir, and log-edit. For example,
370adding "(diff-mode . ((mode . whitespace)))" to .dir-locals.el will
371turn on `whitespace-mode' for *vc-diff* buffers. Modes should call
372`hack-dir-local-variables-non-file-buffer' to support this.
041d709f
CY
373+++
374*** Using "mode: MINOR-MODE" to enable a minor mode is deprecated.
375Instead, use "eval: (minor-mode 1)".
c136e5cd 376
fdeb32ec 377+++
f13183cf
CY
378** The variable `focus-follows-mouse' now always defaults to nil.
379
7f3f739f
LL
380** New primitive `secure-hash' that supports many secure hash algorithms
381including md5, sha-1 and sha-2 (sha-224, sha-256, sha-384 and sha-512).
42d4bcc8
LL
382The elisp implementation sha1.el is removed. Feature sha1 is provided
383by default.
384
5d907d6c 385** Menu-bar changes
b22b1918 386---
5d907d6c
DA
387*** `menu-bar-select-buffer-function' lets you choose another operation
388instead of `switch-to-buffer' when selecting an item in the Buffers menu.
389
0a2132ba
CY
390** Window changes
391
392+++
393*** Resizing an Emacs frame now preserves proportional window sizes,
394modulo restrictions like window minimum sizes and fixed-size windows.
395
396*** The behavior of `display-buffer' is now customizable in detail.
717a1362 397+++
0a2132ba
CY
398**** New option `display-buffer-base-action' specifies a list of
399user-determined display "actions" (functions and optional arguments
400for choosing the displaying window).
401
402This takes precedence over the default display action, which is
403specified by `display-buffer-fallback-action'.
404
717a1362 405+++
0a2132ba
CY
406**** New option `display-buffer-alist' maps buffer name regexps to
407display actions, taking precedence over `display-buffer-base-action'.
408
409+++
a0c2d0ae
MR
410*** New option `window-combination-limit'.
411The new option `window-combination-limit' allows to return the space
412obtained for resizing or creating a window more reliably to the window
413from which such space was obtained.
0a2132ba
CY
414
415+++
a0c2d0ae
MR
416*** New option `window-combination-resize'.
417The new option `window-combination-resize' allows to split a window that
418otherwise cannot be split because it's too small by stealing space from
419other windows in the same combination. Subsequent resizing or deletion
420of the window will resize all windows in the same combination as well.
0a2132ba
CY
421
422+++
423*** New commands `maximize-window' and `minimize-window'.
53964682 424These maximize and minimize the size of a window within its frame.
0a2132ba
CY
425
426+++
427*** New commands `switch-to-prev-buffer' and `switch-to-next-buffer'.
428These functions allow to navigate through the live buffers that have
429been shown in a specific window.
430
ed6235ea
MR
431+++
432*** New functions `window-state-get' and `window-state-put'.
433These functions allow to save and restore the state of an arbitrary
434frame or window as an Elisp object.
435
041d709f
CY
436** The inactive minibuffer has its own major mode `minibuffer-inactive-mode'.
437This is handy for minibuffer-only frames, and is also used for the "mouse-1
438pops up *Messages*" feature, which can now easily be changed.
439
0bfd685e 440\f
eb199145 441* Editing Changes in Emacs 24.1
b350bdf2 442
892777ba 443** Search changes
892777ba
CY
444+++
445*** C-y in Isearch is now bound to isearch-yank-kill, instead of
446isearch-yank-line.
5abc31ef 447+++
25666126
LL
448*** M-y in Isearch is now bound to isearch-yank-pop, instead of
449isearch-yank-kill.
892777ba
CY
450+++
451*** M-s C-e in Isearch is now bound to isearch-yank-line.
452
ea4f7750 453+++
b2b0776e
CY
454** New commands `count-words-region' and `count-words'.
455
456*** `count-lines-region' is now an alias for `count-words-region',
457bound to M-=, which shows the number of lines, words, and characters.
ea4f7750 458
bfd779dd 459+++
d74cba8f
MA
460** The default value of `backup-by-copying-when-mismatch' is now t.
461
21100e7d 462+++
ec9da840 463** The command `just-one-space' (M-SPC), if given a negative argument,
1c708c1a
CY
464also deletes newlines around point.
465
b9229673 466** Deletion changes
50b063c3 467+++
b9229673 468*** New option `delete-active-region'.
ddb54206
CY
469If non-nil, [delete] and DEL delete the region if it is active and no
470prefix argument is given. If set to `kill', these commands kill
471instead.
50b063c3 472+++
59ee0542 473*** New command `delete-forward-char', bound to [delete].
42d9cffa
CY
474This is meant for interactive use, and obeys `delete-active-region'.
475The command `delete-char' does not obey `delete-active-region'.
50b063c3 476---
b9229673
CY
477*** `delete-backward-char' is now a Lisp function.
478Apart from obeying `delete-active-region', its behavior is unchanged.
479However, the byte compiler now warns if it is called from Lisp; you
480should use delete-char with a negative argument instead.
ddb54206 481---
b9229673
CY
482*** The option `mouse-region-delete-keys' has been deleted.
483
f9d71b42
CY
484** Selection changes.
485
b1ab31ae
CY
486The default handling of clipboard and primary selections was changed
487to conform with modern X applications. In short, most commands for
488killing and yanking text now use the clipboard, while mouse commands
489use the primary selection.
490
491In the following, we provide a list of these changes, followed by a
492list of steps to get the old behavior back if you prefer that.
493
963578d3 494+++
b1ab31ae
CY
495*** `select-active-regions' now defaults to t.
496Merely selecting text (e.g. with drag-mouse-1) no longer puts it in
963578d3 497the kill ring. The selected text is put in the primary selection, if
b1ab31ae
CY
498the system possesses a separate primary selection facility (e.g. X).
499
963578d3 500+++
b1ab31ae
CY
501**** `select-active-regions' also accepts a new value, `only'.
502This means to only set the primary selection for temporarily active
503regions (usually made by mouse-dragging or shift-selection);
504"ordinary" active regions, such as those made with C-SPC followed by
505point motion, do not alter the primary selection.
506
963578d3
CY
507---
508**** `mouse-drag-copy-region' now defaults to nil.
509
510+++
b1ab31ae
CY
511*** mouse-2 is now bound to `mouse-yank-primary'.
512This pastes from the primary selection, ignoring the kill-ring.
513Previously, mouse-2 was bound to `mouse-yank-at-click'.
514
963578d3 515+++
b1ab31ae 516*** `x-select-enable-clipboard' now defaults to t on all platforms.
963578d3 517+++
b1ab31ae
CY
518*** `x-select-enable-primary' now defaults to nil.
519Thus, commands that kill text or copy it to the kill-ring (such as
520M-w, C-w, and C-k) also use the clipboard---not the primary selection.
521
963578d3 522---
b1ab31ae
CY
523**** The "Copy", "Cut", and "Paste" items in the "Edit" menu are now
524exactly equivalent to, respectively M-w, C-w, and C-y.
525
963578d3 526---
b1ab31ae
CY
527**** Note that on MS-Windows, `x-select-enable-clipboard' was already
528non-nil by default, as Windows does not support the primary selection
529between applications.
530
963578d3 531---
b1ab31ae 532*** To return to the previous behavior, do the following:
104c2fe9 533**** Change `select-active-regions' to nil.
b1ab31ae
CY
534**** Change `mouse-drag-copy-region' to t.
535**** Change `x-select-enable-primary' to t (on X only).
536**** Change `x-select-enable-clipboard' to nil.
537**** Bind `mouse-yank-at-click' to mouse-2.
f9d71b42 538
963578d3 539+++
084e6df3
JD
540*** Support for X cut buffers has been removed.
541
3fd50d5c
CY
542*** X clipboard managers are now supported.
543To inhibit this, change `x-select-enable-clipboard-manager' to nil.
4b80f674 544
50b063c3 545+++
99f053cf 546** New command `rectangle-number-lines', bound to `C-x r N', numbers
6b2c221e 547the lines in the current rectangle. With a prefix argument, this
99f053cf
JA
548prompts for a number to count from and for a format string.
549
6bf7006f 550+++
db7ab02f 551** The default value of redisplay-dont-pause is now t
6bf7006f
EZ
552This makes Emacs feel more responsive to editing commands that arrive
553at high rate, e.g. if you lean on some key, because stopping redisplay
554in the middle (when this variable is nil) forces more expensive
555updates later on, and Emacs appears to be unable to keep up.
556
e70b5064
CY
557+++
558** The behavior of <TAB> for active regions in Text mode has changed.
559In Text and related modes, typing <TAB> (`indent-for-tab-command')
560when the region is active causes Emacs to indent all the lines in the
561region, aligning them with the line previous to the first line in the
562region (or with the left margin if there is no previous line).
563
9bae34bf 564\f
eb199145 565* Changes in Specialized Modes and Packages in Emacs 24.1
efeb796b 566
bfd779dd 567+++
041d709f 568** Archive Mode has basic support for browsing and updating 7z archives.
d76674bb 569
041d709f
CY
570** browse-url has a new variable `browse-url-mailto-function'
571specifies how mailto: URLs are handled. The default is `browse-url-mail'.
cbf83ce9 572
29eabb8e 573---
b7c3692a
RW
574** BibTeX mode
575
2de69e00 576*** BibTeX mode now supports biblatex.
041d709f
CY
577Use the variable bibtex-dialect to select support for different BibTeX
578dialects. bibtex-entry-field-alist is now an obsolete alias for
2de69e00
RW
579bibtex-BibTeX-entry-alist.
580
34699b85
RW
581*** New command `bibtex-search-entries' bound to C-c C-a.
582
b7c3692a
RW
583*** New `bibtex-entry-format' option `sort-fields', disabled by default.
584
022fe7ce
RW
585*** New variable `bibtex-search-entry-globally'.
586
cf16af42
GM
587** Calendar, Diary, and Appt
588
548d0a63
GM
589+++
590*** Diary entries can contain non-printing `comments'.
591See the variable `diary-comment-start'.
592
5006e634
GM
593+++
594*** Appointments can specify their individual warning times.
595See the variable `appt-warning-time-regexp'.
596
0a2bb1a9
GM
597---
598*** The function specified by `appt-disp-window-function' may be passed
599lists of arguments if multiple appointments are due at similar times.
600If you are using a custom function for this, you should update it.
601
d306b4da 602+++
7454f200
GM
603*** New function `diary-hebrew-birthday'.
604
e565dd37
GM
605---
606*** Elements of `calendar-day-abbrev-array' and `calendar-month-abbrev-array'
607may no longer be nil, but must all be strings.
608
cf16af42
GM
609---
610*** The obsolete (since Emacs 22.1) method of enabling the appt package
611by adding appt-make-list to diary-hook has been removed. Use appt-activate.
612
613---
614*** Some appt variables (obsolete since Emacs 22.1) have been removed:
615appt-issue-message (use the function appt-activate)
616appt-visible/appt-msg-window (use the variable appt-display-format)
617
618---
619*** Some diary function aliases (obsolete since Emacs 22.1) have been removed:
620view-diary-entries, list-diary-entries, show-all-diary-entries
621
041d709f
CY
622** CC Mode (C, C++, etc.)
623
624*** New feature to "guess" the style in an existing buffer.
625
626** comint and modes derived from it use the generic completion code.
627
628** Compilation mode
29eabb8e 629---
041d709f
CY
630*** Compilation mode can be used without font-lock-mode.
631`compilation-parse-errors-function' is now obsolete.
632
633*** `compilation-filter-start' is let-bound to the start of the text
634inserted by the compilation filter function, when calling
635compilation-filter-hook.
636
1dce7193
SM
637*** `compilation-error-screen-columns' is obeyed in the editing buffer.
638So programming language modes can set it, whereas previously only the value
639in the *compilation* buffer was used.
640
52834b6b
CY
641** Customize
642
643*** Customize buffers now contain a search field.
644The search is performed using `customize-apropos'.
42d9cffa 645To turn off the search field, set custom-search-field to nil.
52834b6b
CY
646
647*** Custom options now start out hidden if at their default values.
648Use the arrow to the left of the option name to toggle visibility.
649
650*** custom-buffer-sort-alphabetically now defaults to t.
651
652*** The color widget now has a "Choose" button, which allows you to
653choose a color via list-colors-display.
654
041d709f
CY
655** D-Bus
656
657*** It is possible now, to access alternative buses than the default
658system or session bus.
659
660*** dbus-register-{service,method,property}
661The -method and -property functions do not automatically register
662names anymore.
663
664The new function dbus-register-service registers a service known name
665on a D-Bus without simultaneously registering a property or a method.
666
f5d6548a
JL
667** Dired-x
668
669*** dired-jump and dired-jump-other-window called with a prefix argument
670read a file name from the minibuffer instead of using buffer-file-name.
671
817b48a7
GM
672+++
673*** The `dired local variables' feature provided by Dired-x is obsolete.
674The standard directory local variables feature replaces it.
8117868f 675
041d709f 676** ERC changes
7492acc9 677
041d709f
CY
678*** New vars `erc-autojoin-timing' and `erc-autojoin-delay'.
679If the value of `erc-autojoin-timing' is 'ident, ERC autojoins after a
680successful NickServ identification, or after `erc-autojoin-delay'
681seconds. The default value, 'ident, means to autojoin immediately
682after connecting.
683
684*** New variable `erc-coding-system-precedence': If we use `undecided'
685as the server coding system, this variable will then be consulted.
686The default is to decode strings that can be decoded as utf-8 as
687utf-8, and do the normal `undecided' decoding for the rest.
7492acc9 688
041d709f 689** Eshell changes
7492acc9 690
041d709f
CY
691*** The default value of eshell-directory-name is a directory named
692"eshell" in `user-emacs-directory'. If the old "~/.eshell/" directory
693exists, that is used instead.
694
695** gdb-mi
696
697*** GDB User Interface migrated to GDB Machine Interface and now
698supports multithread non-stop debugging and debugging of several
699threads simultaneously.
700
701** In ido-mode, C-v is no longer bound to ido-toggle-vc.
702The reason is that this interferes with cua-mode.
7492acc9 703
18af70d0
CY
704** Image mode
705
706*** RET (`image-toggle-animation') toggles animation, if the displayed
707image can be animated.
708
709*** Option `image-animate-loop', if non-nil, loops the animation.
710If nil, `image-toggle-animation' plays the animation once.
711
041d709f 712** Info
723ee192 713
041d709f
CY
714*** New command `info-display-manual' displays an Info manual
715specified by its name. If that manual is already visited in some Info
716buffer within the current session, the command will display that
717buffer. Otherwise, it will load the manual and display it. This is
718handy if you have many manuals in many Info buffers, and don't
719remember the name of the buffer visiting the manual you want to
720consult.
691cf4a0 721
041d709f 722** The Landmark game is now invoked with `landmark', not `lm'.
691cf4a0 723
06b08b88 724** MH-E has been upgraded to MH-E version 8.3.1.
041d709f 725See MH-E-NEWS for details.
37221432 726
041d709f 727** Modula-2 mode provides auto-indentation.
37221432 728
041d709f 729** mpc.el: Can use pseudo tags of the form tag1|tag2 as a union of two tags.
3c3d4f5b 730
041d709f
CY
731** Prolog mode has been completely revamped, with lots of additional
732functionality such as more intelligent indentation, electricity, support for
733more variants, including Mercury, and a lot more.
734
735** Rmail
736
737*** The command `rmail-epa-decrypt' decrypts OpenPGP data
738in the Rmail incoming message.
739
50419064
GM
740---
741*** The variable `rmail-message-filter' no longer has any effect.
742This change was made in Emacs 23.1 but was not advertised at the time.
743Try using `rmail-show-message-hook' instead.
744
717a1362
CY
745** Shell mode
746
de0bde62
CY
747*** Shell mode uses pcomplete rules, with the standard completion UI.
748
717a1362
CY
749*** The `shell' command prompts for the shell path name if the default
750directory is a remote file name and neither the environment variable
751$ESHELL nor the variable `explicit-shell-file-name' is set.
752
753*** New variable `shell-dir-cookie-re'.
754If set to an appropriate regexp, Shell mode can track your cwd by
755reading it from your prompt.
041d709f 756
ddb54206 757---
041d709f
CY
758** SQL Mode enhancements.
759
760*** `sql-dialect' is an alias for `sql-product'.
761
762*** New variable `sql-port' specifies the port number for connecting
763to a MySQL or Postgres server.
764
765*** The command `sql-product-interactive' now takes a prefix argument,
766which causes it to prompt for an SQL product instead of the current
767value of `sql-product'.
768
769*** Product-specific SQL interactive commands now take prefix args.
770These commands (`sql-sqlite', `sql-postgres', `sql-mysql', etc.),
771given a prefix argument, prompt for a name for the SQL interactive
772buffer. This reduces the need for calling `sql-rename-buffer'.
773
774*** SQL interactive modes suppress command continuation prompts, and
775replace tabs with spaces. The first change impacts multiple line SQL
776statements entered with C-j between each line, statements yanked into
777the buffer and statements sent with `sql-send-*' functions. The
778second change prevents the MySQL and Postgres interpreters from
779listing object name completions when sent text via `sql-send-*'
780functions.
781
782*** New custom variables control prompting for login parameters.
783Each supported product has a custom variable `sql-*-login-params',
784which is a list of the parameters to be prompted for before a
785connection is established.
786
787*** New variable `sql-connection-alist' for login parameter values.
788This can be used to store different username, database and server
789values. Connections defined in this variable appear in the submenu
790SQL->Start... for making new SQLi sessions.
791
792*** New command `sql-connect' starts a predefined SQLi session,
793using the login parameters from `sql-connection-alist'.
794
795*** New "Save Connection" menu item in SQLi buffers.
796This gathers the login params specified for the SQLi session, if it
797was not started by a connection, and saves them as a new connection.
798
799*** Commands for listing database objects and details.
800In an SQLi session, you can get a list of objects in the database.
801The contents of these lists are product specific.
802
803**** `C-c C-l a' or the "SQL->List all objects" menu item
804lists all the objects in the database. With a prefix argument, it
805displays additional details or extend the listing to include other
806schemas objects.
807
808**** `C-c C-l t' or the "SQL->List Table details" menu item
809prompts for the name of a database table or view and displays the list
810of columns in the relation. With a prefix argument, it displays
811additional details about each column.
812
813*** New options `sql-send-terminator' and `sql-oracle-scan-on'.
814
815*** An API for manipulating SQL product definitions has been added.
816
817** TeX modes
818
819*** latex-electric-env-pair-mode keeps \begin..\end matched on the fly.
412b9ee5 820
459bba37 821** Tramp
bfd779dd 822---
a808d31f 823*** There exists a new inline access method "ksu" (kerberized su).
bfd779dd 824---
459bba37 825*** The following access methods are discontinued: "ssh1_old",
ea843702 826"ssh2_old", "scp1_old", "scp2_old", "imap", "imaps" and "fish".
bfd779dd 827---
58f74fe4
MA
828*** The option `ange-ftp-binary-file-name-regexp' has changed its
829default value to "".
830
041d709f
CY
831** `url-queue-retrieve' downloads web pages asynchronously, but allow
832controlling the degree of parallelism.
177549d0 833
0c32ce32
CY
834** VC and related modes
835
2edef1a0 836+++
0c32ce32 837*** Support for pulling on distributed version control systems.
2edef1a0
CY
838`C-x v +' (`vc-pull') runs a "pull" operation, if it is supported, to
839update the current branch and working tree. A prefix argument means
840to prompt the user for specifics, e.g. a pull location.
0c32ce32 841
7d93eca9 842**** `vc-update' is now an alias for `vc-pull'.
0c32ce32 843
659114fd 844**** Currently supported by Bzr, Git, and Mercurial.
0c32ce32 845
2edef1a0 846+++
0c32ce32 847*** Support for merging on distributed version control systems.
2edef1a0
CY
848The vc-merge command now runs a "merge" operation, if it is supported,
849to merge changes from another branch into the current one. It prompts
850for specifics, e.g. a merge source.
0c32ce32 851
33f6cf7b 852**** Currently supported for Bzr, Git, and Mercurial.
0c32ce32 853
bc859d5f 854+++
2afef60a 855*** New option `vc-revert-show-diff' controls whether `vc-revert'
bbe43420 856shows a diff while querying the user. It defaults to t.
2afef60a 857
9cff91f8 858+++
d4eb88c7
CY
859*** Log entries in some Log View buffers can be toggled to display a
860longer description by typing RET (log-view-toggle-entry-display).
861In the Log View buffers made by `C-x v L' (vc-print-root-log), you can
862use this to display the full log entry for the revision at point.
863
33f6cf7b 864**** Currently supported for Bzr, Git, and Mercurial.
d4eb88c7
CY
865
866**** Packages using Log View mode can enable this functionality by
867binding `log-view-expanded-log-entry-function' to a suitable function.
868
9cff91f8 869+++
1c6c854e
CS
870*** New command `vc-ediff' allows visual comparison of two revisions
871of a file similar to `vc-diff', but using ediff backend.
872
80c6d77f 873+++
86c60681
CY
874*** The option `vc-initial-comment' was removed in Emacs 23.2, but
875this was not advertised at the time.
876
877+++
878*** `vc-toggle-read-only' is an obsolete alias for `toggle-read-only'.
879Since Emacs 23, it has done the same thing as `toggle-read-only', but
80c6d77f
GM
880this was not advertised at the time.
881
041d709f 882** FIXME: xdg-open for browse-url and reportbug, 2010/08.
ca5eed61 883
041d709f
CY
884** Obsolete modes
885
886*** partial-completion-mode is obsolete.
887You can get a comparable behavior with:
888(setq completion-styles '(partial-completion initials))
889(setq completion-pcm-complete-word-inserts-delimiters t)
890
891*** pc-mode.el is obsolete.
892
893*** sregex.el is obsolete, since rx.el is a strict superset.
894
895*** s-region.el and pc-select are obsolete.
896They are superseded by shift-select-mode enabled by default in 23.1.
ca5eed61 897
0fe719e6
GM
898** Miscellaneous
899
9f678528
GM
900+++
901*** f90.el has some support for Fortran 2008 syntax.
902
0fe719e6
GM
903---
904*** `copyright-fix-years' can optionally convert consecutive years to ranges.
905
5b3e6db8
GM
906*** New command `nato-region' converts text to NATO phonetic alphabet.
907
eb199145
GM
908\f
909* New Modes and Packages in Emacs 24.1
d445b3f8 910
5abc31ef 911+++
60e56523 912** Occur Edit mode applies edits made in *Occur* buffers to the
8c0f49f0 913original buffers. It is bound to "e" in Occur mode.
60e56523 914
7100ff98
SM
915** New global minor modes electric-pair-mode, electric-indent-mode,
916and electric-layout-mode.
3b843809 917
a83ec3c9
CY
918** tabulated-list.el provides a generic major mode for tabulated data,
919from which other modes can be derived.
920
d02c9bcd
SM
921** pcase.el provides the ML-style pattern matching macro `pcase'.
922
7725ebb7
MA
923** secrets.el is an implementation of the Secret Service API, an
924interface to password managers like GNOME Keyring or KDE Wallet. The
065f2743
MA
925Secret Service API requires D-Bus for communication. The command
926`secrets-show-secrets' offers a buffer with a visualization of the
927secrets.
7725ebb7 928
f9e78150
MA
929** notifications.el provides an implementation of the Desktop
930Notifications API. It requires D-Bus for communication.
931
12fe5bcc
MA
932** soap-client.el supports access to SOAP web services from Emacs.
933soap-inspect.el is an interactive inspector for SOAP WSDL structures.
934
ad7d6ecb
GM
935** xmodmap-generic-mode for xmodmap files.
936
53bbe3ad
JB
937** New emacs-lock.el package.
938(The pre-existing one has been renamed to old-emacs-lock.el and moved
939to obsolete/.) Now, Emacs Lock is a proper minor mode
940`emacs-lock-mode'. Protection against exiting Emacs and killing the
941buffer can be set separately. The mechanism for auto turning off
942protection for buffers with inferior processes has been generalized.
943
eb199145
GM
944\f
945* Incompatible Lisp Changes in Emacs 24.1
6dfcbe31 946
fa6996bc
EZ
947---
948** `char-direction-table' and the associated function `char-direction'
949were deleted. They were buggy and inferior to the new support of
950bidirectional editing introduced in Emacs 24. If you need the
951bidirectional properties of a character, use `get-char-code-property'
952with the last argument `bidi-class'.
953
a6326082 954+++
470d996d
TV
955** `copy-directory' now copies the source directory as a subdirectory
956of the target directory, if the latter is an existing directory. The
957new optional arg COPY-CONTENTS, if non-nil, makes the function copy
958the contents directly into a pre-existing target directory.
959
25ca2e61
CY
960** `compose-mail' now accepts an optional 8th arg, RETURN-ACTION, and
961passes it to the mail user agent function. This argument specifies an
962action for returning to the caller after finishing with the mail.
963This is currently used by Rmail to delete a mail window.
964
9173a8fb
CY
965** For mouse click input events in the text area, the Y pixel
966coordinate in the POSITION list now counts from the top of the text
967area, excluding any header line. Previously, it counted from the top
968of the header line.
969
ddb54206 970** Removed obsolete name `e' (use `float-e' instead).
c4d17d50 971
288cf4e9
SM
972** A backquote not followed by a space is now always treated as new-style.
973
fd5c9dfa 974** Test for special mode-class was moved from view-file to view-buffer.
288cf4e9
SM
975FIXME: This only says what was changed, but not what are the
976programmer-visible consequences.
fd5c9dfa 977
3b7e1d5f 978** Passing a nil argument to a minor mode function now turns the mode
0a19a6f8 979ON unconditionally.
6431f2e6 980
ddb54206 981+++
6431f2e6 982** During startup, Emacs no longer adds entries for `menu-bar-lines'
0a19a6f8
JB
983and `tool-bar-lines' to `default-frame-alist' and `initial-frame-alist'.
984With these alist entries omitted, `make-frame' checks the value of the
985variable `menu-bar-mode'/`tool-bar-mode' to determine whether to create
986a menu-bar or tool-bar, respectively. If the alist entries are added,
987they override the value of `menu-bar-mode'/`tool-bar-mode'.
6431f2e6 988
50b063c3 989+++
fe0aa820
CY
990** Regions created by mouse dragging are now normal active regions,
991similar to the ones created by shift-selection. In previous Emacs
992versions, these regions were delineated by `mouse-drag-overlay', which
993has now been removed.
d6d8ee7a 994
4583e796
GM
995** cl.el no longer provides `cl-19'.
996
be890cb8
SM
997** The menu bar bindings's caches are not used any more.
998Use (where-is-internal <def> nil t) instead.
999
041d709f 1000** The following obsolete functions and aliases were removed:
3226d6ca
GM
1001comint-kill-output, decompose-composite-char, outline-visible,
1002internal-find-face, internal-get-face, frame-update-faces,
1003frame-update-face-colors, x-frob-font-weight, x-frob-font-slant,
1004x-make-font-bold, x-make-font-demibold, x-make-font-unbold
1005x-make-font-italic, x-make-font-oblique, x-make-font-unitalic
1006x-make-font-bold-italic, mldrag-drag-mode-line, mldrag-drag-vertical-line,
922ad43e
GM
1007iswitchb-default-keybindings, char-bytes, isearch-return-char,
1008make-local-hook
3226d6ca 1009
041d709f
CY
1010** The following obsolete variables and varaliases were removed:
1011checkdoc-minor-keymap, vc-header-alist, directory-sep-char, and
1012font-lock-defaults-alist.
3226d6ca 1013
041d709f 1014** The following obsolete files were removed:
7b0e3048
GM
1015sc.el, x-menu.el, rnews.el, rnewspost.el
1016
33658d4e
CY
1017** FIXME finder-inf.el changes.
1018
eb199145
GM
1019\f
1020* Lisp changes in Emacs 24.1
9097e8af 1021
041d709f
CY
1022** Code can now use lexical scoping by default instead of dynamic scoping.
1023The `lexical-binding' variable lets code use lexical scoping for local
1024variables. It is typically set via file-local variables, in which case it
1025applies to all the code in that file.
1026
1027*** `eval' takes a new optional argument `lexical' to choose the new lexical
1028binding instead of the old dynamic binding mode.
1029
1030*** Lexically scoped interpreted functions are represented with a new form
1031of function value which looks like (closure ENV ARGS &rest BODY).
1032
1033*** New macro `letrec' to define recursive local functions.
1034
1035*** New function `special-variable-p' to check whether a variable is
1036declared as dynamically bound.
1037
1038** An Emacs Lisp testing tool is now included.
1039Emacs Lisp developers can use this tool to write automated tests for
1040their code. See the ERT info manual for details.
1041
1042** Changes for bidirectional display and editing
f1816485 1043
041d709f
CY
1044+++
1045*** New function `current-bidi-paragraph-direction'.
f1816485
EZ
1046This returns the actual value of base direction of the paragraph at
1047point.
041d709f
CY
1048
1049+++
1050*** New function `bidi-string-mark-left-to-right'.
f1816485
EZ
1051Given a string containing characters from right-to-left (RTL) scripts,
1052this function returns another string which can be safely inserted into
1053a buffer, such that any following text will be always displayed to the
1054right of that string. (This works by appending the Unicode
1055"LEFT-TO-RIGHT MARK" character when the argument string might need that.)
041d709f
CY
1056
1057This is useful when the buffer has overall left-to-right (LTR)
1058paragraph direction and you need to insert a string whose contents and
f1816485
EZ
1059directionality are not known in advance, without disrupting the layout
1060of the line.
041d709f 1061
bee0fcef 1062** Window changes
c4682d18
MR
1063+++
1064*** Window tree functions are accessible in Elisp.
1065Functions are provided to return the parent, siblings or child windows
1066of any window including internal windows (windows not associated with a
1067buffer) in the window tree.
291d142b 1068+++
24300f5f
CY
1069**** New function `window-valid-p' gives non-nil for live and internal
1070windows.
c4682d18 1071+++
24300f5f 1072**** Window manipulation can deal with internal windows.
c4682d18
MR
1073Many window handling functions like `split-window', `delete-window', or
1074`delete-other-windows' as well as the window resizing functions can now
1075act on any window including internal ones.
c4682d18
MR
1076+++
1077*** window-total-height/-width vs window-body-height/-width.
1078The function `window-height' has been renamed to `window-total-height'
1079and `window-width' has been renamed to `window-body-width'. The old
1080names are provided as aliases. Two new functions `window-total-width'
1081and `window-body-height' are provided.
c4682d18
MR
1082+++
1083*** Window parameters specific to window handling functions.
1084For each window you can specify a parameter to override the default
1085behavior of a number of functions like `split-window', `delete-window'
ed6235ea
MR
1086and `delete-other-windows'. The variable `ignore-window-parameters'
1087allows to ignore processing such parameters.
c4682d18
MR
1088+++
1089*** New semantics of third argument of `split-window'.
c4682d18
MR
1090The third argument of `split-window' has been renamed to SIDE and can be
1091set to any of the values 'below, 'right, 'above, or 'left to make the
1092new window appear on the corresponding side of the window that shall be
1093split. Any other value of SIDE will cause `split-window' to split the
1094window into two side-by-side windows as before.
c4682d18
MR
1095+++
1096*** Window resizing functions.
487ffd7a 1097A new standard function for resizing windows called `window-resize' has
c4682d18
MR
1098been introduced. This and all other functions for resizing windows no
1099longer delete any windows when they become too small.
b3c0dbfd
MR
1100+++
1101*** Deleting the selected window now selects the most recently selected
1102live window on that frame instead.
c4682d18
MR
1103+++
1104*** `adjust-window-trailing-edge' adjustments.
1105`adjust-window-trailing-edge' can now deal with fixed-size windows and
1106is able to resize other windows if a window adjacent to the trailing
1107edge cannot be shrunk any more. This makes its behavior more similar to
1108that of Emacs 21 without compromising, however, its inability to delete
1109windows which was introduced in Emacs 22.
c4682d18
MR
1110+++
1111*** Window-local buffer lists.
1112Windows now have local buffer lists. This means that removing a buffer
1113from display in a window will preferably show the buffer previously
1114shown in that window with its previous window-start and window-point
1115positions. This also means that the same buffer may be automatically
1116shown twice even if it already appears in another window.
0e406a72 1117+++
bee0fcef
CY
1118*** `switch-to-buffer' has a new optional argument FORCE-SAME-WINDOW,
1119which if non-nil requires the buffer to be displayed in the currently
1120selected window, signaling an error otherwise. If nil, another window
1121can be used, e.g. if the selected one is strongly dedicated.
24300f5f 1122+++
0a2132ba 1123*** `split-window-vertically' and `split-window-horizontally' renamed
2d197ffb
CY
1124to `split-window-below' and `split-window-right' respectively.
1125The old names are kept as aliases.
24300f5f 1126+++
0a2132ba
CY
1127*** Display actions
1128
1129**** The second arg to `display-buffer' and `pop-to-buffer' is now
1130named ACTION, and takes a display action of the same form as
1131`display-buffer-base-action' (see Changes, above). A non-nil,
1132non-list value is treated specially, as the old meaning.
1133
1134**** New variable `display-buffer-overriding-action'.
1135
1136**** The procedure of `display-buffer' etc. to choose a window is
1137determined by combining `display-buffer-overriding-action',
1138`display-buffer-alist', the ACTION arg, `display-buffer-base-action',
1139and `display-buffer-fallback-action'. The second and fourth of these
1140are user-customizable variables.
1141
1142See the docstring of `display-buffer' for details.
bee0fcef 1143
ed6235ea
MR
1144+++
1145*** New behavior of `quit-window'.
1146The behavior of `quit-window' has been changed in order to restore the
1147state before the last buffer display operation in that window.
1148
d83dc65b
MR
1149+++
1150*** The new option `frame-auto-hide-function' lets you choose between
53964682 1151iconifying or deleting a frame when burying a buffer shown in a dedicated
d83dc65b
MR
1152frame or quitting a window showing a buffer in a frame of its own.
1153
a2a25d24 1154** Completion
041d709f 1155
a2a25d24
SM
1156*** New variable completion-extra-properties used to specify extra properties
1157of the current completion:
1158- :annotate-function, same as the old completion-annotate-function.
1159- :exit-function, function to call after completion took place.
1160
1161*** Functions on completion-at-point-functions can return any of the properties
1162valid for completion-extra-properties.
1163
1164*** completion-annotate-function is obsolete.
1165
620c53a6
SM
1166*** New `metadata' method for completion tables. The metadata thus returned
1167can specify various details of the data returned by `all-completions':
1168- `category' is the kind of objects returned (e.g., `buffer', `file', ...),
1169 used to select a style in completion-category-overrides.
1170- `annotation-function' to add annotations in *Completions*.
1171- `display-sort-function' to specify how to sort entries in *Completions*.
1172- `cycle-sort-function' to specify how to sort entries when cycling.
1173
de09aa52
CY
1174*** minibuffer-local-filename-must-match-map is not used any more.
1175Instead, the bindings in minibuffer-local-filename-completion-map are
1176combined with minibuffer-local-must-match-map.
1177
1178*** New variable `completing-read-function' allows overriding the
1179behavior of `completing-read'.
1180
d366bd53 1181+++
f042970d 1182** `glyphless-char-display' can now distinguish between graphical and
16a43933
CY
1183text terminal display, via a char-table entry that is a cons cell.
1184
da91b5f2
CY
1185** `open-network-stream' can now be used to open an encrypted stream.
1186It now accepts an optional `:type' parameter for initiating a TLS
1187connection, directly or via STARTTLS. To do STARTTLS, additional
1188parameters (`:end-of-command', `:success', `:capabilities-command')
1189must also be supplied.
1190
ddb54206 1191+++
f6d62986
SM
1192** pre/post-command-hook are not reset to nil upon error.
1193Instead, the offending function is removed.
1194
b1f6fa26
CY
1195** New hook types
1196
1197*** New function `run-hook-wrapped' for running an abnormal hook by
1198passing the hook functions as arguments to a "wrapping" function.
1199+++
1200*** New macro `with-wrapper-hook' for running an abnormal hook as a
1201set of "wrapping" filters, similar to around advice.
f6d62986 1202
7deebf1b
LMI
1203** `server-eval-at' is provided to allow evaluating forms on different
1204Emacs server instances.
1205
1206** `call-process' allows a `(:file "file")' spec to redirect STDOUT to
1207a file.
1208
04e2ce72
CY
1209---
1210** Variable `stack-trace-on-error' removed.
e7f7fbaa
SM
1211Also the debugger can now "continue" from an error, which means it will jump
1212to the error handler as if the debugger had not been invoked instead of
1213jumping all the way to the top-level.
1214
da97a9e6
CY
1215+++
1216** The function format-time-string now supports the %N directive, for
1217higher-resolution time stamps.
1218
3ef01959
CY
1219** New function `read-char-choice' reads a restricted set of characters,
1220discarding any inputs not inside the set.
1221
2e288d54
JB
1222** `image-library-alist' is renamed to `dynamic-library-alist'.
1223The variable is now used to load all kind of supported dynamic libraries,
1224not just image libraries. The previous name is still available as an
1225obsolete alias.
1226
04e2ce72
CY
1227** New variable `syntax-propertize-function'.
1228This replaces `font-lock-syntactic-keywords' which is now obsolete.
cf38dd42
SM
1229This allows syntax-table properties to be set independently from font-lock:
1230just call syntax-propertize to make sure the text is propertized.
1231Together with this new variable come a new hook
1232syntax-propertize-extend-region-functions, as well as two helper functions:
1233syntax-propertize-via-font-lock to reuse old font-lock-syntactic-keywords
1234as-is; and syntax-propertize-rules which provides a new way to specify
1235syntactic rules.
1236
a2e5caf7
SM
1237** New hook post-self-insert-hook run at the end of self-insert-command.
1238
7cf78aac 1239+++
c5683ceb 1240** Syntax tables support a new "comment style c" additionally to style b.
041d709f 1241
4e2db1fe 1242** frame-local variables cannot be let-bound any more.
041d709f 1243
15de15c6 1244** Major and minor mode changes
3fd50d5c 1245+++
15de15c6
CY
1246*** `prog-mode' is a new major mode from which programming modes
1247should be derived.
041d709f 1248
15de15c6
CY
1249**** `prog-mode-hook' can be used to enable features for programming
1250modes, e.g. (add-hook 'prog-mode-hook 'flyspell-prog-mode) to enable
1251on-the-fly spell checking for comments and strings.
1252
1253*** New hook `change-major-mode-after-body-hook', run by
1254`run-mode-hooks' just before any other mode hooks.
1255
1256*** Enabled globalized minor modes can be disabled in specific modes,
1257by running (FOO-mode-hook 0) via a mode hook.
1258
1259*** `define-minor-mode' accepts a new keyword :variable.
f44379e7 1260
04e2ce72 1261+++
b2957ea8 1262** `delete-file' and `delete-directory' now accept optional arg TRASH.
f1a5d776
CY
1263Trashing is performed if TRASH and `delete-by-moving-to-trash' are
1264both non-nil. Interactively, TRASH defaults to t, unless a prefix
1265argument is supplied (see Trash changes, above).
53967e09 1266
9317e499
CY
1267** `facemenu-read-color' is now an alias for `read-color'.
1268The command `read-color' now requires a match for a color name or RGB
8350f087 1269triplet, instead of signaling an error if the user provides a invalid
9317e499
CY
1270input.
1271
4039c786
CY
1272** Tool-bars can display separators.
1273Tool-bar separators are handled like menu separators in menu-bar maps,
94975270 1274i.e. via menu entries of the form `(menu-item "--")'.
9317e499 1275
00fe2df1
JL
1276** Image API
1277
18af70d0
CY
1278*** Animated images support (currently animated gifs only).
1279
1280**** `image-animated-p' returns non-nil if an image can be animated.
1281
1282**** `image-animate' animates a supplied image spec.
1283
1284**** `image-animate-timer' returns the timer object for an image that
1285is being animated.
00fe2df1 1286
1546c559
JL
1287*** `image-extension-data' is renamed to `image-metadata'.
1288
041d709f
CY
1289*** If Emacs is compiled with ImageMagick support (see Startup
1290Changes), the function `imagemagick-types' returns a list of image
1291file extensions that your installation of ImageMagick supports. The
1292function `imagemagick-register-types' enables ImageMagick support for
1293these image types, minus those listed in `imagemagick-types-inhibit'.
1294
1295See the Emacs Lisp Reference Manual for more information.
1296
71c17aec
LMI
1297** XML and HTML parsing
1298
1299*** If Emacs is compiled with libxml2 support (which is the default),
4b9832a6 1300two new Emacs Lisp-level functions are defined:
84156e94
MA
1301`libxml-parse-html-region' (which will parse "real world" HTML)
1302and `libxml-parse-xml-region' (which parses XML). Both return an
4b9832a6
CY
1303Emacs Lisp parse tree.
1304
1305FIXME: These should be front-ended by xml.el.
1306
e2574f2c
TZ
1307** GnuTLS
1308
1309*** Emacs can be compiled with libgnutls support
1310This is the default. You will then be able to use the functionality
1311in gnutls.el, namely the `open-gnutls-stream' and `gnutls-negotiate'
1312functions. It's easiest to use these functions through
1313`open-network-stream' because it can upgrade connections through
1314STARTTLS opportunistically or use plain SSL, depending on your needs.
1315
1316Only versions 2.8.x and higher or GnuTLS have been tested.
9f77899d
GM
1317[FIXME: this statement needs clarifying, given that GnuTLS >= 2.6.6
1318is the test used by configure.]
e2574f2c
TZ
1319
1320*** gnutls-log-level
1321Set `gnutls-log-level' higher than 0 to get debug output. 1 is for
1322important messages, 2 is for debug data, and higher numbers are as per
1323the GnuTLS logging conventions. The output is in *Messages*.
71c17aec 1324
a6020335
MH
1325** Isearch
1326
1327*** New hook `isearch-update-post-hook' that runs in `isearch-update'.
1328
ddb54206 1329+++
9326ba26
CY
1330** Progress reporters can now "spin".
1331The MIN-VALUE and MAX-VALUE arguments of `make-progress-reporter' can
1332now be nil, or omitted. This makes a "non-numeric" reporter. Each
1333time you call `progress-reporter-update' on that progress reporter,
1334with a nil or omitted VALUE argument, the reporter message is
1335displayed with a "spinning bar".
1336
3e214b50
JB
1337** New variable `revert-buffer-in-progress-p' is true while a buffer is
1338being reverted, even if the buffer has a local `revert-buffer-function'.
1339
638f053a
JB
1340** New variables `delayed-warnings-list' and `delayed-warnings-hook' allow
1341deferring warnings until the main command loop is executed.
1342
e145f188
GM
1343+++
1344** `set-auto-mode' now respects mode: local variables at the end of files,
1345as well as those in the -*- line.
1346
6420d28b
CY
1347---
1348** rx.el has a new `group-n' construct for explicitly numbered groups.
1349
3349e122 1350** keymaps can inherit from multiple parents.
43dc9f5b 1351
12ca40ec
SM
1352** `debug-on-event' lets you debug Emacs when stuck because of inhibit-quit.
1353
ddb54206 1354+++
43dc9f5b
AS
1355** New reader macro ## which stands for the empty symbol.
1356This means that the empty symbol can now be read back. Also, #: by itself
1357(when not immediately followed by a possible symbol character) stands for
1358an empty uninterned symbol.
041d709f
CY
1359
1360** Obsolete functions and variables
1361
1362*** buffer-substring-filters is obsolete.
1363Use `filter-buffer-substring-functions' instead.
1364
1365*** `byte-compile-disable-print-circle' is obsolete.
1366
1367*** `deferred-action-list' and `deferred-action-function' are obsolete.
d366bd53 1368+++
67e729a5
CY
1369*** `font-lock-maximum-size' is obsolete.
1370
eb199145
GM
1371\f
1372* Changes in Emacs 24.1 on non-free operating systems
d53a60a6 1373
0a19a6f8 1374** New configure.bat option --enable-checking builds Emacs with extra
04779484
JB
1375runtime checks.
1376
e3aef5c6 1377** New configure.bat option --distfiles to specify files to be
0a19a6f8 1378included in binary distribution.
e3aef5c6 1379
e2574f2c
TZ
1380** New configure.bat option --without-gnutls to disable automatic
1381GnuTLS detection.
1382
1383** New configure.bat option --lib for general library linkage, works
1384with the USER_LIBS build variable.
1385
0a19a6f8 1386** New make target `dist' to create binary distribution for MS Windows.
e3aef5c6 1387
5430d399
JB
1388** Function `w32-default-color-map' is now obsolete.
1389
04e2ce72
CY
1390** On Nextstep/OSX, the menu bar can be hidden by customizing
1391ns-auto-hide-menu-bar.
1392
05197f40 1393\f
a933dad1 1394----------------------------------------------------------------------
5b87ad55 1395This file is part of GNU Emacs.
a933dad1 1396
ab73e885 1397GNU Emacs is free software: you can redistribute it and/or modify
5b87ad55 1398it under the terms of the GNU General Public License as published by
ab73e885
GM
1399the Free Software Foundation, either version 3 of the License, or
1400(at your option) any later version.
5b87ad55
GM
1401
1402GNU Emacs is distributed in the hope that it will be useful,
1403but WITHOUT ANY WARRANTY; without even the implied warranty of
1404MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1405GNU General Public License for more details.
a933dad1 1406
5b87ad55 1407You should have received a copy of the GNU General Public License
ab73e885 1408along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
a933dad1 1409
05197f40 1410\f
a933dad1
DL
1411Local variables:
1412mode: outline
1413paragraph-separate: "[ \f]*$"
1414end: