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