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