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