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