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