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