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