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