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