Merge latest Org fixes (commit 7524ef2).
[bpt/emacs.git] / etc / NEWS
CommitLineData
29b7722a 1GNU Emacs NEWS -- history of user-visible changes.
5b87ad55 2
ab422c4d 3Copyright (C) 2010-2013 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.
6bc66c10 16
a1ed8b05 17\f
2a1e2476 18* Installation Changes in Emacs 24.3
b8df54ff 19
6bc66c10 20** The default X toolkit is now Gtk+ version 3.
823b2fb6
GM
21If you don't pass `--with-x-toolkit' to configure, or if you use
22`--with-x-toolkit=gtk' or `--with-x-toolkit=yes', configure will try
23to build with Gtk+ version 3, and if that fails, try Gtk+ version 2.
d71a6517 24You can explicitly require a specific version by passing
823b2fb6 25`--with-x-toolkit=gtk2' or `--with-x-toolkit=gtk3' to configure.
d71a6517 26
6bc66c10 27** New configure option `--enable-link-time-optimization', to utilize
da3d2105
DA
28an appropriate feature provided by GCC since version 4.5.0.
29
33cb2043
GM
30** New configure option `--without-all' to disable most of the optional
31features (image support, etc.) that are normally enabled by default.
32
33** New configure option `--enable-gcc-warnings' (for developing/debugging
34Emacs). If building with GCC, this enables compile-time checks that
64420fcd
GM
35warn/give errors about possibly-questionable C code. On a recent GNU
36system there should be no warnings; on older and on non-GNU systems
37the results may be useful to developers.
b8df54ff 38
823b2fb6 39** The configure option `--enable-use-lisp-union-type' has been
6bc66c10 40renamed to `--enable-check-lisp-object-type', as the resulting
d71a6517
GM
41Lisp_Object type no longer uses a union to implement the compile time
42check that this option enables.
43
823b2fb6 44** The configure option `--disable-maintainer-mode' has been removed,
501390c5
PE
45as it was confusingly-named and rarely useful.
46
f14a4380
GM
47** The configure options `--program-prefix', `--program-suffix', and
48`--program-transform-name' apply to more than just the installed
49binaries. Now they also affect the man pages, icons, and the
50etc/emacs.desktop file; but not the info pages, since this would break
51links between the various manuals.
1a9c6830 52
823b2fb6
GM
53** You can use `NO_BIN_LINK=t make install' to prevent the installation
54overwriting "emacs" in the installation bin/ directory with a link
6bc66c10 55to "emacs-VERSION".
823b2fb6 56
a4a18b8b
GM
57** Emacs uses libtinfo in preference to libncurses, if available.
58
187e9b90
GM
59** On FreeBSD and NetBSD, configure no longer adds /usr/local/lib and
60/usr/pkg/lib to the linker search path. You must add them yourself if
61you want them.
62
6bc66c10 63** The standalone scripts `rcs-checkin' and `vcdiff' have been removed
276d5f5d
GM
64(from the bin and libexec directories, respectively). The former is
65no longer relevant, the latter is replaced by lisp (in vc-sccs.el).
66
a1ed8b05 67\f
2a1e2476 68* Startup Changes in Emacs 24.3
e5fcdb5e
GM
69
70** Emacs no longer searches for `leim-list.el' files beneath the standard
71lisp/ directory. There should not be any there anyway. If you have
823b2fb6 72been adding them there, put them somewhere else; e.g., site-lisp.
e5fcdb5e 73
4107c81e
GM
74** The `--no-site-lisp' command line option now works for Nextstep builds.
75
a1ed8b05 76\f
2a1e2476 77* Changes in Emacs 24.3
a1ed8b05 78
6bc66c10 79** Help
c89926a5 80
6bc66c10 81*** `C-h f' (`describe-function') can now perform autoloading.
c89926a5
CY
82When this command is called for an autoloaded function whose docstring
83contains a key substitution construct, that function's library is
84automatically loaded, so that the documentation can be shown
85correctly. To disable this, set `help-enable-auto-load' to nil.
86
87*** `C-h f' now reports previously-autoloaded functions as "autoloaded",
88even after their associated libraries have been loaded (and the
89autoloads have been redefined as functions).
90
6bc66c10 91** ImageMagick
2f940384 92
6bc66c10
GM
93*** Images displayed via ImageMagick now support transparency and the
94:background image specification property.
cd996018 95
6bc66c10 96*** When available, ImageMagick support is automatically enabled.
c505aaeb
CY
97It is no longer necessary to call `imagemagick-register-types'
98explicitly to install ImageMagick image types; that function is called
7d806bfe 99automatically at startup, or when customizing an imagemagick- option.
2f940384 100
c505aaeb 101*** Setting `imagemagick-types-inhibit' to t now disables the use of
823b2fb6
GM
102ImageMagick to view images. (You must call `imagemagick-register-types'
103afterwards if you do not use customize to change this.)
2f940384 104
7afbaca4 105*** The new variable `imagemagick-enabled-types' also affects which
60b5f187
GM
106ImageMagick types are treated as images. The function
107`imagemagick-filter-types' returns the list of types that will be
108treated as images.
2f940384 109
6bc66c10
GM
110** Minibuffer
111
112*** In minibuffer filename prompts, `C-M-f' and `C-M-b' now move to the
113next and previous path separator, respectively.
c505aaeb 114
6bc66c10
GM
115*** `minibuffer-electric-default-mode' can shorten "(default ...)" to "[...]"
116in minibuffer prompts. Just set `minibuffer-eldef-shorten-default'
117non-nil before enabling the mode.
118
119** Mode line
120
121*** New option `mode-line-default-help-echo' specifies the help text
122(shown in a tooltip or in the echo area) for any part of the mode line
123that does not have its own specialized help text.
124
125*** You can now click mouse-3 in the coding system indicator to invoke
126`set-buffer-file-coding-system'.
127
128** Server and client
2f940384 129
f938eda9
CY
130*** emacsclient now obeys string values for `initial-buffer-choice',
131if it is told to open a new frame without specifying any file to visit
132or expression to evaluate.
2f940384 133
f938eda9 134*** New option `server-auth-key' specifies a shared server key.
db80bdc8 135
f938eda9
CY
136** Emacs now generates backtraces on fatal errors.
137On encountering a fatal error, Emacs now outputs a textual description
138of the fatal signal, and a short backtrace on platforms like glibc
139that support backtraces.
2e2d2a13 140
6bc66c10
GM
141** `C-x C-q' is now bound to the new minor mode `read-only-mode'.
142This minor mode replaces `toggle-read-only', which is now obsolete.
143
144** Most `y-or-n' prompts now allow you to scroll the selected window.
145Typing `C-v' or `M-v' at a y-or-n prompt scrolls forward or backward
146respectively, without exiting from the prompt.
147
148** In the Package Menu, newly-available packages are listed as "new",
149and sorted above the other "available" packages by default.
150
f938eda9
CY
151** If your Emacs was built from a bzr checkout, the new variable
152`emacs-bzr-version' contains information about the bzr revision used.
de6ff46d 153
6bc66c10 154** New option `create-lockfiles' specifies usage of lockfiles.
f938eda9
CY
155It defaults to t. Changing it to nil inhibits the creation of lock
156files (use this with caution).
dc0f75c8 157
6bc66c10
GM
158** New option `enable-remote-dir-locals', if non-nil, allows directory-local
159variables on remote hosts.
21ffb35a 160
f85f636a
CY
161** The entry for PCL-CVS has been removed from the Tools menu.
162The PCL-CVS commands are still available via the keyboard.
163
6bc66c10
GM
164** Using "unibyte: t" in Lisp source files is obsolete.
165Use "coding: raw-text" instead.
166
e78e7e48
CY
167** In the buffer made by `M-x report-emacs-bug', the `C-c m' binding
168has been changed to `C-c M-i' (`report-emacs-bug-insert-to-mailer').
169The previous binding, introduced in Emacs 24.1, was a mistake, because
170`C-c LETTER' bindings are reserved for user customizations.
171
6bc66c10 172** Internationalization
2f940384 173
f938eda9 174*** New language environment: Persian.
2f940384 175
f938eda9
CY
176*** New input method `vietnamese-vni'.
177
6bc66c10 178** Nextstep (GNUstep / Mac OS X) port
2f940384 179
823b2fb6 180*** Support for fullscreen and the frame parameter fullscreen.
2f940384 181
1a9c6830
GM
182*** A file dialog is used for open/save operations initiated from the
183menu/toolbar.
184
a1ed8b05 185\f
2a1e2476 186* Editing Changes in Emacs 24.3
c25df26e 187
6bc66c10 188** Search and Replace
2f940384 189
f938eda9
CY
190*** Non-regexp Isearch now performs "lax" space matching.
191Each sequence of spaces in the supplied search string may match any
192sequence of one or more whitespace characters, as specified by the
193variable `search-whitespace-regexp'. (This variable is also used by a
823b2fb6 194similar existing feature for regexp Isearch.)
2f940384 195
f938eda9
CY
196*** New Isearch command `M-s SPC' toggles lax space matching.
197This applies to both ordinary and regexp Isearch.
2f940384 198
f938eda9
CY
199*** New option `replace-lax-whitespace'.
200If non-nil, `query-replace' uses flexible whitespace matching too.
201The default is nil.
2f940384 202
b9cb2387
JL
203*** Global `M-s _' starts a symbol (identifier) incremental search,
204and `M-s _' in Isearch toggles symbol search mode.
205`M-s c' in Isearch toggles search case-sensitivity.
206
6bc66c10
GM
207** Navigation commands
208
209*** New binding `M-g c' for `goto-char'.
210
211*** New binding `M-g TAB' for `move-to-column'.
212
213*** `M-g TAB' (`move-to-column') prompts for a column number if called
214interactively with no prefix arg. Previously, it moved to column 1.
215
216** New option `yank-handled-properties' allows processing of text
217properties on yanked text, in ways that are more general than just
218removing them (as is done by `yank-excluded-properties').
219
220** New option `delete-trailing-lines' specifies whether
221M-x delete-trailing-whitespace should delete trailing lines at the end
222of the buffer. It defaults to t.
223
224** `C-u M-=' now counts lines/words/characters in the entire buffer.
225
48de8b12
CY
226** `C-x 8 RET' is now bound to `insert-char', which is now a command.
227`ucs-insert' is now an obsolete alias for `insert-char'.
228
48de8b12
CY
229** The `z' key no longer has a binding in most special modes.
230It used to be bound to `kill-this-buffer', but `z' is too easy to
231accidentally type.
232
6bc66c10
GM
233** New command `C-x r M-w' (`copy-rectangle-as-kill').
234It copies the region-rectangle as the last rectangle kill.
48de8b12 235
6bc66c10 236** Registers
2f940384 237
823b2fb6 238*** `C-x r +' is now overloaded to invoke `append-to-register'.
2f940384 239
f938eda9 240*** New option `register-separator' specifies the register containing
823b2fb6
GM
241the text to put between collected texts for use with
242M-x append-to-register and M-x prepend-to-register.
dd7ffad6 243
a1ed8b05 244\f
2a1e2476 245* Changes in Specialized Modes and Packages in Emacs 24.3
b2459884 246
6bc66c10 247** Common Lisp emulation (CL)
f938eda9 248
89660017 249*** CL's main entry is now (require 'cl-lib).
823b2fb6
GM
250`cl-lib' is like the old `cl' except that it uses the namespace cleanly;
251i.e., all its definitions have the "cl-" prefix (and internal definitions
252use the "cl--" prefix).
7c1898a7 253
823b2fb6
GM
254If `cl' provided a feature under the name `foo', then `cl-lib'
255provides it under the name `cl-foo' instead; with the exceptions of the
256few `cl' definitions that had to use `foo*' to avoid conflicts with
257pre-existing Elisp entities. These have been renamed to `cl-foo'
258rather than `cl-foo*'.
7c1898a7 259
92246540 260The old `cl' is now deprecated and is mainly just a bunch of aliases that
823b2fb6 261provide the old, non-prefixed names. Some exceptions are listed below:
7c1898a7 262
89660017
SM
263*** `cl-flet' is not like `flet' (which is deprecated).
264Instead it obeys the behavior of Common-Lisp's `flet'.
e8693c96
GM
265In particular, in cl-flet function definitions are lexically scoped,
266whereas in flet the scoping is dynamic.
89660017
SM
267
268*** `cl-labels' is slightly different from `labels'.
823b2fb6
GM
269The difference is that it relies on the `lexical-binding' machinery
270(as opposed to the `lexical-let' machinery used previously) to capture
271definitions in closures, so such closures will only work if `lexical-binding'
272is in use.
89660017 273
f94b04fc 274*** `cl-letf' is not exactly like `letf'.
4ddedf94
GM
275The only difference is in details that relate to some deprecated usage
276of `symbol-function' in place forms.
f94b04fc 277
89660017 278*** `progv' was rewritten to use the `let' machinery.
823b2fb6
GM
279A side effect is that variables without corresponding values are bound
280to nil rather than being made unbound.
89660017 281
9512f820
GM
282*** The following methods of extending `setf' are obsolete
283(use features from gv.el instead):
284`define-modify-macro' (use `gv-letplace')
031b2ea7
GM
285`defsetf' (use `gv-define-simple-setter' or `gv-define-setter')
286`define-setf-expander' (use `gv-define-setter' or `gv-define-expander')
2b4da3ff 287`get-setf-method' no longer exists (see "Incompatible Lisp Changes")
f94b04fc 288
6bc66c10 289** Diff mode
f938eda9 290
6bc66c10
GM
291*** Changes are now highlighted using the same color scheme as in
292modern VCSes. Deletions are displayed in red (new faces
293`diff-refine-removed' and `smerge-refined-removed', and new definition
294of `diff-removed'), insertions in green (new faces `diff-refine-added'
295and `smerge-refined-added', and new definition of `diff-added').
2f940384 296
6bc66c10
GM
297*** The variable `diff-use-changed-face' defines whether to use the
298face `diff-changed', or `diff-removed' and `diff-added' to highlight
299changes in context diffs.
2f940384 300
6bc66c10
GM
301*** The new command `diff-delete-trailing-whitespace' removes trailing
302whitespace introduced by a diff.
f938eda9 303
6bc66c10
GM
304** Ediff now uses the same color scheme as Diff mode.
305
306** Python mode
307
308A new version of python.el, which provides several new features, including:
309per-buffer shells, better indentation, Python 3 support, and improved
310shell-interaction compatible with iPython (and virtually any other
311text based shell).
312
313*** Some user options have been replaced/renamed, including (old -> new):
314**** python-indent -> python-indent-offset
315**** python-guess-indent -> python-indent-guess-indent-offset
316**** python-pdbtrack-do-tracking-p -> python-pdbtrack-activate
317**** python-use-skeletons -> python-skeleton-autoinsert
318
319*** Some user options have been removed, including:
320
321**** `python-indent-string-contents': Strings are never indented.
322
323**** `python-honour-comment-indentation':
d5b1b1aa 324Comments are always considered as indentation markers.
6bc66c10
GM
325
326**** `python-continuation-offset': Indentation is automatically
327calculated in a pep8 compliant way depending on the context.
328
329**** `python-shell-prompt-alist', `python-shell-continuation-prompt-alist':
330Have no direct mapping as the shell interaction is completely different.
331
332**** `python-python-command', `python-jython-command':
333Replaced by `python-shell-interpreter'.
334
335**** `inferior-python-filter-regexp', `python-remove-cwd-from-path',
336`python-pdbtrack-minor-mode-string', `python-source-modes':
337No longer relevant.
338
339*** Some commands have been replaced (old -> new):
340**** python-insert-class -> python-skeleton-class
341**** python-insert-def -> python-skeleton-def
342**** python-insert-for -> python-skeleton-for
343**** python-insert-if -> python-skeleton-if
344**** python-insert-try/except -> python-skeleton-try
345**** python-insert-try/finally -> python-skeleton-try
346**** python-insert-while -> python-skeleton-while
347**** python-find-function -> python-nav-jump-to-defun
348**** python-next-statement -> python-nav-forward-sentence
349**** python-previous-statement -> python-nav-backward-sentence
350**** python-beginning-of-defun-function -> python-nav-beginning-of-defun
351**** python-end-of-defun-function -> python-nav-end-of-defun
352**** python-send-buffer -> python-shell-send-buffer
353**** python-send-defun -> python-shell-send-defun
354**** python-send-region -> python-shell-send-region
355**** python-send-region-and-go -> emulate with python-shell-send-region
356and python-shell-switch-to-shell
357**** python-send-string -> python-shell-send-string
358**** python-switch-to-python -> python-shell-switch-to-shell
359**** python-describe-symbol -> python-eldoc-at-point
e76f0800 360
f938eda9
CY
361** D-Bus
362
f938eda9
CY
363*** New variables `dbus-compiled-version' and `dbus-runtime-version'.
364
f938eda9
CY
365*** The D-Bus object manager interface is implemented.
366
f938eda9
CY
367*** Variables of type :(u)int32 and :(u)int64 accept floating points,
368if their value does not fit into Emacs's integer range.
369
823b2fb6
GM
370*** The function `dbus-call-method' is now non-blocking.
371It can be interrupted by `C-g'. `dbus-call-method-non-blocking' is obsolete.
f938eda9 372
823b2fb6 373*** Signals can also be sent as unicast messages.
f938eda9 374
f938eda9 375*** The argument list of `dbus-register-signal' has been extended,
6bc66c10 376according to the new match rule types of D-Bus.
f938eda9 377
f938eda9
CY
378*** `dbus-init-bus' supports private connections.
379
f938eda9
CY
380*** There is a new function `dbus-setenv'.
381
6bc66c10
GM
382** `desktop-path' no longer includes the "." directory.
383Desktop files are now located in ~/.emacs.d by default.
f938eda9
CY
384
385** Dired
2f940384 386
f938eda9
CY
387*** `dired-do-async-shell-command' executes each file sequentially
388if the command ends in `;' (when operating on multiple files).
389Otherwise, it executes the command on each file in parallel.
2f940384 390
823b2fb6
GM
391*** Typing `M-n' in the minibuffer of `dired-do-chmod', `dired-do-chgrp',
392`dired-do-chown', and `dired-do-touch' yanks the attributes of the
f938eda9 393file at point.
2f940384 394
f938eda9 395*** When the region is active, `m' (`dired-mark'), `u' (`dired-unmark'),
823b2fb6 396`DEL' (`dired-unmark-backward'), and `d' (`dired-flag-file-deletion')
f938eda9 397mark/unmark/flag all files in the active region.
2f940384 398
f938eda9
CY
399*** The minibuffer default for `=' (`dired-diff) has changed.
400It is now the backup file for the file at point, if one exists.
401In Transient Mark mode the default is the file at the active mark.
2f940384 402
f938eda9
CY
403*** `M-=' is no longer bound to `dired-backup-diff' in Dired buffers.
404The global binding for `M-=', `count-words-region' is in effect.
405
02969baf
GM
406** ERC
407
6e5e9b70
GM
408*** New module "notifications", which can send a notification when you
409receive a private message or your nickname is mentioned.
02969baf
GM
410
411*** ERC will look up server/channel names via auth-source and use any
412channel keys found.
f938eda9 413
274f5de6
GM
414*** New option `erc-lurker-hide-list', similar to `erc-hide-list', but
415only applies to messages sent by lurkers.
f925b109 416
6bc66c10 417** reStructuredText mode
f938eda9 418
6bc66c10
GM
419*** Keybindings (see `C-c C-h'), TAB indentation, filling and auto-filling,
420fontification, comment handling, and customization have all been revised
421and improved.
f938eda9 422
6bc66c10 423*** Support for `imenu' and `which-function-mode'.
f938eda9 424
6bc66c10
GM
425*** The reStructuredText syntax is more closely covered.
426Sphinx support has been improved.
f938eda9 427
6bc66c10 428*** `rst-insert-list' inserts new list or continues existing lists.
bc7be45d 429
6bc66c10 430*** A negative prefix argument always works for `rst-adjust'.
358c19d9 431
6bc66c10 432*** The window configuration is reset after displaying a TOC.
40d8bcb8 433
6bc66c10 434*** The constant `rst-version' describes the rst.el package version.
40d8bcb8 435
6bc66c10 436** Shell Script mode
40d8bcb8 437
6bc66c10 438*** Pairing of parens/quotes uses `electric-pair-mode' instead of skeleton-pair.
40d8bcb8 439
6bc66c10 440*** `sh-electric-here-document-mode' now controls auto-insertion of here-docs.
40d8bcb8 441
6bc66c10 442*** `sh-use-smie' lets you choose a new indentation and navigation code.
40d8bcb8 443
6bc66c10 444** VHDL mode
40d8bcb8 445
6bc66c10 446*** The free software compiler GHDL is supported (and now the default).
40d8bcb8 447
6bc66c10 448*** Support for the VHDL-AMS packages has been added/updated.
40d8bcb8 449
6bc66c10 450*** Updated to the 2002 revision of the VHDL standard.
40d8bcb8 451
6bc66c10 452*** Accepts \r and \f as whitespace.
d13c8be6 453
6bc66c10 454** Apropos
d13c8be6 455
6bc66c10
GM
456*** The faces used by Apropos are now directly customizable.
457These faces are named `apropos-symbol', `apropos-keybinding', and so on;
458see the `apropos' Custom group for details.
d13c8be6 459
6bc66c10
GM
460*** The old options whose values specified faces to use have been removed
461(i.e. `apropos-symbol-face', `apropos-keybinding-face', etc.).
d13c8be6 462
6bc66c10 463** Buffer Menu
d13c8be6 464
6bc66c10 465*** This package has been rewritten to use Tabulated List mode.
d13c8be6 466
6bc66c10
GM
467*** Option `Buffer-menu-buffer+size-width' is now obsolete.
468Use `Buffer-menu-name-width' and `Buffer-menu-size-width' instead.
d13c8be6 469
6bc66c10 470** Calendar
ee97deee 471
6bc66c10
GM
472*** You can customize the header text that appears above each calendar month.
473See the variable `calendar-month-header'.
8b0823d6 474
6bc66c10 475*** New LaTeX calendar style, produced by `cal-tex-cursor-week2-summary'.
42917e79 476
6bc66c10
GM
477*** The calendars produced by cal-html include holidays.
478Customize `cal-html-holidays' to change this.
35d98877 479
6bc66c10 480** Compile has a new option `compilation-always-kill'.
35d98877 481
6bc66c10 482** Customize
17711ed9 483
6bc66c10 484*** `custom-reset-button-menu' now defaults to t.
782fbf2a 485
6bc66c10
GM
486*** Non-option variables are never matched in `customize-apropos' and
487`customize-apropos-options' (i.e., the prefix argument does nothing for
488these commands now).
fc72b15c 489
f938eda9 490** Term
2f940384 491
823b2fb6
GM
492*** The variables `term-default-fg-color' and `term-default-bg-color'
493are now deprecated in favor of the customizable face `term'.
2f940384 494
02969baf
GM
495*** You can customize how to display ANSI terminal colors and styles
496by customizing the corresponding `term-color-<COLOR>',
497`term-color-underline' and `term-color-bold' faces.
cf20dee0 498
05ecb497 499** Tramp
2f940384 500
02969baf 501*** The syntax has been extended in order to allow ad-hoc proxy definitions.
2f940384 502
823b2fb6 503*** Remote processes are now also supported on remote MS-Windows hosts.
05ecb497 504
ce7b18ec 505** URL
2f940384 506
ce7b18ec
CY
507*** Structs made by `url-generic-parse-url' have nil `attributes' slot.
508Previously, this slot stored semicolon-separated attribute-value pairs
509appended to some imap URLs, but this is not compatible with RFC 3986.
823b2fb6 510So now the `filename' slot stores the entire path and query components,
ce7b18ec 511and the `attributes' slot is always nil.
2f940384 512
ce7b18ec
CY
513*** New function `url-encode-url' for encoding a URI string.
514The `url-retrieve' function now uses this to encode its URL argument,
515in case that is not properly encoded.
516
5b8ccc5e
DE
517** CEDET
518
519*** The major modes from the parser generators "Bovine" and "Wisent"
520are now properly integrated within Emacs. The file suffixes ".by" and
521".wy" are registered in `auto-mode-alist', and the corresponding
522manuals are now included.
523
524*** EDE
525
526**** Menu support for the "Configuration" feature. Allows users to choose the
527active configuration (such as debug or install) from the menu.
528**** `ede-set': New command to interactively set project-local variables.
529**** Support for compiling, debugging, and running in "generic" projects.
530**** Autoconf editing support for M4 macros with complex arguments.
531**** Support compilation for "linux" project type.
532**** "simple" projects were removed; use "generic" projects instead.
533
534*** Semantic
535
536**** (C/C++) Support for parsing #include statements inside a namespace.
537**** (C/C++) Improved support for 'extern "C"' declarations.
538**** (C/C++) Support to ignore more common special preprocessor symbols, such as
539'__nonnull' and '__asm'. Add '__cplusplus' macro when parsing C++. If
540available, include cdefs.h as an additional source of preprocessor symbols.
541**** (C/C++) Improved function pointer parsing.
542**** (Python) Support for converting imports to include file names.
543**** (Python) Ability to dynamically determine the load path.
544**** (Python) Support for 'WITH' and 'AT' keywords.
545**** Improved tooltip completion.
546
547*** SRecode
548
549**** The SRecode manual is now included.
550**** Tag generation supports constructor/destructor settings and system include
551differentiation.
552**** Added a 'Framework' support: Frameworks are specified when a particular
553kind of library (such as Android) is needed in a common language mode (like
554Java).
555**** Support nested templates and let variables override based on priority.
556**** Support merging tables from multiple related modes, such as
557default -> c++ -> arduino.
558
6bc66c10
GM
559** notifications.el supports now version 1.2 of the Notifications API.
560The function `notifications-get-capabilities' returns the supported
561server properties.
f938eda9 562
6bc66c10
GM
563** Flymake uses fringe bitmaps to indicate errors and warnings.
564See `flymake-fringe-indicator-position', `flymake-error-bitmap' and
565`flymake-warning-bitmap'.
f938eda9 566
6bc66c10
GM
567** The FFAP option `ffap-url-unwrap-remote' can now be a list of strings,
568specifying URL types that should be converted to remote file names at
569the FFAP prompt. The default is now '("ftp").
f938eda9 570
6bc66c10
GM
571** New Ibuffer `derived-mode' filter, bound to `/ M'.
572The old binding for `/ M' (filter by used-mode) is now bound to `/ m'.
f938eda9 573
6bc66c10
GM
574** New option `mouse-avoidance-banish-position' specifies where the
575`banish' mouse avoidance setting moves the mouse.
576
577** In Perl mode, new option `perl-indent-parens-as-block' causes non-block
578closing brackets to be aligned with the line of the opening bracket.
579
580** In Proced mode, new command `proced-renice' renices marked processes.
581
582** New option `async-shell-command-buffer' specifies the buffer to use
583for a new asynchronous `shell-command' when the default output buffer
584`*Async Shell Command*' is already in use.
585
586** SQL mode has a new option `sql-db2-escape-newlines'.
587If non-nil, newlines sent to the command interpreter will be escaped
588by a backslash. The default does not escape the newlines and assumes
589that the sql statement will be terminated by a semicolon.
590
591** New command `tabulated-list-sort', bound to `S' in Tabulated List mode
592(and modes that derive from it), sorts the column at point, or the Nth
593column if a numeric prefix argument is given.
f938eda9 594
02969baf 595** `which-func-modes' now defaults to t, so Which Function mode, when
05b621a6 596enabled, applies to all applicable major modes.
f938eda9 597
6bc66c10 598** `winner-mode-hook' now runs when the mode is disabled, as well as when
823b2fb6 599it is enabled.
f938eda9 600
6bc66c10
GM
601** Follow mode no longer works by using advice.
602The option `follow-intercept-processes' has been removed.
603
604** `javascript-generic-mode' is now an obsolete alias for `js-mode'.
605
d1069532
SM
606** Hooks renamed to avoid obsolete "-hooks" suffix:
607*** semantic-lex-reset-hooks -> semantic-lex-reset-functions
608*** semantic-change-hooks -> semantic-change-functions
609*** semantic-edits-new-change-hooks -> semantic-edits-new-change-functions
610*** semantic-edits-delete-change-hooks -> semantic-edits-delete-change-functions
611*** semantic-edits-reparse-change-hooks -> semantic-edits-reparse-change-functions
612*** semanticdb-save-database-hooks -> semanticdb-save-database-functions
613*** c-prepare-bug-report-hooks -> c-prepare-bug-report-hook
614*** rcirc-sentinel-hooks -> rcirc-sentinel-functions
615*** rcirc-receive-message-hooks -> rcirc-receive-message-functions
616*** rcirc-activity-hooks -> rcirc-activity-functions
617*** rcirc-print-hooks -> rcirc-print-functions
618*** dbus-event-error-hooks -> dbus-event-error-functions
619*** eieio-pre-method-execution-hooks -> eieio-pre-method-execution-functions
620*** checkdoc-style-hooks -> checkdoc-style-functions
621*** checkdoc-comment-style-hooks -> checkdoc-comment-style-functions
622*** archive-extract-hooks -> archive-extract-hook
623*** filesets-cache-fill-content-hooks -> filesets-cache-fill-content-hook
624*** hfy-post-html-hooks -> hfy-post-html-hook
625*** nndiary-request-create-group-hooks -> nndiary-request-create-group-functions
626*** nndiary-request-update-info-hooks -> nndiary-request-update-info-functions
627*** nndiary-request-accept-article-hooks -> nndiary-request-accept-article-functions
628*** gnus-subscribe-newsgroup-hooks -> gnus-subscribe-newsgroup-functions
f938eda9 629
6bc66c10 630** Obsolete packages
2f940384 631
797e6e88
SM
632*** assoc.el
633In most cases, assoc+member+push+delq work just as well.
634And in any case it's just a terrible package: ugly semantics, terrible
635inefficiency, and not namespace-clean.
3c74813a 636*** bruce.el
b4617547 637*** cust-print.el
daed4003 638*** ledit.el
82f289a4 639*** mailpost.el
d57de7fe 640*** mouse-sel.el
3c74813a 641*** patcomp.el
d32926ff 642
a1ed8b05 643\f
2a1e2476 644* Incompatible Lisp Changes in Emacs 24.3
b4d3bc10 645
6bc66c10
GM
646** Docstrings starting with `*' no longer indicate user options.
647Only variables defined using `defcustom' are considered user options.
648The function `user-variable-p' is now an obsolete alias for
649`custom-variable-p'.
650
651** The return values of `defalias', `defun' and `defmacro' have changed,
652and are now undefined. For backwards compatibility, `defun' and
653`defmacro' currently return the name of the newly defined
654function/macro, but this should not be relied upon.
090cf9db 655
823b2fb6
GM
656** `random' by default now returns a different random sequence in
657every Emacs run. Use `(random S)', where S is a string, to set the
0e23ef9d
PE
658random seed to a value based on S, in order to get a repeatable
659sequence in later calls.
660
d32e47af
LM
661** If the NEWTEXT arg to `replace-match' contains a substring "\?",
662that substring is inserted literally even if the LITERAL arg is
663non-nil, instead of causing an error to be signaled.
664
2cec368c
MR
665** `select-window' now always makes the window's buffer current.
666It does so even if the window was selected before.
667
6bc66c10
GM
668** The function `x-select-font' can return a font spec, instead of a
669font name as a string. Whether it returns a font spec or a font name
670depends on the graphical library.
bbf908bc 671
eeddc531
CY
672** `face-spec-set' no longer sets frame-specific attributes when the
673third argument is a frame (that usage was obsolete since Emacs 22.2).
674
6bc66c10 675** `set-buffer-multibyte' now signals an error in narrowed buffers.
a59d531e 676
ab7f1c43
GM
677** The CL package's `get-setf-method' function no longer exists.
678Generalized variables are now part of core Emacs Lisp, and implemented
679differently to the way cl.el used to do it. It is not possible to
680define a compatible replacement for `get-setf-method'. See the file
681gv.el for internal details of the new implementation.
682
6bc66c10
GM
683** The arguments of `dbus-register-signal' are no longer just strings,
684but keywords or keyword-string pairs. The old argument list will
685still be supported for Emacs 24.x.
686
687** Miscellaneous name changes
823b2fb6
GM
688Some Lisp symbols have been renamed to correct their spelling,
689or to be more consistent with standard Emacs terminology.
72b255c7
PE
690
691*** Renamed functions
72b255c7
PE
692**** hangul-input-method-inactivate -> hangul-input-method-deactivate
693**** inactivate-input-method -> deactivate-input-method
694**** quail-inactivate -> quail-deactivate
695**** robin-inactivate -> robin-deactivate
696**** viper-inactivate-input-method -> viper-deactivate-input-method
697**** viper-inactivate-input-method-action ->
698 viper-deactivate-input-method-action
699**** ucs-input-inactivate -> ucs-input-deactivate
700
701*** Renamed hooks
702The old hooks are still supported for backward compatibility, but they
703are deprecated and will be removed eventually.
72b255c7
PE
704**** input-method-inactivate-hook -> input-method-deactivate-hook
705**** robin-inactivate-hook -> robin-deactivate-hook
706**** quail-inactivate-hook -> quail-deactivate-hook
707
6bc66c10 708*** Renamed variables
72b255c7
PE
709**** follow-deactive-menu -> follow-inactive-menu
710**** inactivate-current-input-method-function ->
711 deactivate-current-input-method-function
712
02969baf
GM
713** Some obsolete functions, variables, and faces have been removed:
714*** `last-input-char', `last-command-char', `unread-command-char'
78f3273a
CY
715*** `facemenu-unlisted-faces'
716*** `rmail-decode-mime-charset'
a5f2b6ec
CY
717*** `iswitchb-read-buffer'
718*** `sc-version', `sc-submit-bug-report'
719*** `set-char-table-default'
02969baf 720*** `string-to-sequence' (use `string-to-list' or `string-to-vector')
a5f2b6ec 721*** `compile-internal'
02969baf 722*** `modeline'
59f7af81 723*** `mode-line-inverse-video'
02969baf 724*** `follow-mode-off-hook'
a5f2b6ec 725*** `cvs-commit-buffer-require-final-newline'
63820c5c 726(use `log-edit-require-final-newline' instead)
a5f2b6ec
CY
727*** `cvs-changelog-full-paragraphs'
728(use `log-edit-changelog-full-paragraphs' instead)
729*** `cvs-diff-ignore-marks', `cvs-diff-buffer-name'
730*** `vc-ignore-vc-files' (use `vc-handled-backends' instead)
731*** `vc-master-templates' (use `vc-handled-backends' instead)
732*** `vc-checkout-carefully'
78f3273a 733
a1ed8b05 734\f
93e0bed6 735* Lisp Changes in Emacs 24.3
ef24141c 736
2ee3d7f0 737** CL-style generalized variables are now in core Elisp.
f938eda9 738`setf' is autoloaded; `push' and `pop' accept generalized variables.
ebdbfb95
GM
739You can define your own generalized variables using `gv-define-simple-setter',
740`gv-define-setter', etc.
2ee3d7f0 741
6bc66c10
GM
742** Emacs tries to macroexpand interpreted (non-compiled) files during load.
743This can significantly speed up execution of non-byte-compiled code,
744but can also bump into previously unnoticed cyclic dependencies.
745These are generally harmless: they will simply cause the macro calls
746to be left for later expansion (as before), but will result in a
747warning ("Eager macro-expansion skipped due to cycle") describing the cycle.
748You may wish to restructure your code so this does not happen.
749
750** New sampling-based Elisp profiler.
751Try M-x profiler-start, do some work, and then call M-x profiler-report.
752When finished, use M-x profiler-stop. The sampling rate can be based on
753CPU time or memory allocations.
754
500fcedc
SM
755** `defun' also accepts a (declare DECLS) form, like `defmacro'.
756The interpretation of the DECLS is determined by `defun-declarations-alist'.
757
6bc66c10
GM
758** New macros `setq-local' and `defvar-local'.
759
760** Face underlining can now use a wave.
2f940384 761
6bc66c10 762** `read-regexp' has a new argument HISTORY; the first argument PROMPT
cd996018 763of `read-regexp' accepts a string ending with a colon and space, and its
823b2fb6 764second argument DEFAULTS can be a list of strings accessible via `M-n'
cd996018
CY
765in the minibuffer ahead of other hard-coded useful regexp-related values.
766More commands use `read-regexp' now to read their regexp arguments.
767
f938eda9 768** Completion
500fcedc 769
f938eda9
CY
770*** New function `completion-table-with-quoting' to handle completion
771in the presence of quoting, such as file completion in shell buffers.
f95e9344 772
f938eda9
CY
773*** New function `completion-table-subvert' to use an existing completion
774table, but with a different prefix.
775
6bc66c10 776** Debugger
f95e9344 777
f938eda9
CY
778*** New error type and new function `user-error'.
779These do not trigger the debugger.
f95e9344 780
57fc0fee
GM
781*** New option `debugger-bury-or-kill', saying what to do with the
782debugger buffer when exiting debug.
45b82ad0
SM
783
784*** Set `debug-on-message' to enter the debugger when a certain
785message is displayed in the echo area. This can be useful when trying
786to work out which code is doing something.
2f940384 787
45b82ad0
SM
788*** New var `inhibit-debugger', automatically set to prevent accidental
789recursive invocations.
fa2bcf43 790
6bc66c10 791** Window handling
2f940384 792
6bc66c10
GM
793*** New command `fit-frame-to-buffer' adjusts the frame height to
794fit the contents.
2f940384 795
6bc66c10
GM
796*** The command `fit-window-to-buffer' can adjust the frame height
797if the new option `fit-frame-to-buffer' is non-nil.
8e17c9ba 798
7fe37cfc
GM
799*** New macro `with-temp-buffer-window', similar to
800`with-output-to-temp-buffer'.
fa2bcf43 801
8e17c9ba
MR
802*** `temp-buffer-resize-mode' no longer resizes windows that have been
803reused.
c5e28e39 804
823b2fb6 805*** New option `switch-to-buffer-preserve-window-point' to restore a
43bcfda6 806window's point when switching buffers.
2f940384 807
6bc66c10
GM
808*** New display action alist entries `window-height' and `window-width'
809specify the size of new windows created by `display-buffer'.
810
811*** New display action alist entry `pop-up-frame-parameters', if
812non-nil, specifies frame parameters to give any newly-created frame.
2f940384 813
fa2bcf43
MR
814*** New display action alist entry `inhibit-switch-frame', if non-nil,
815tells display action functions to avoid changing which frame is
816selected.
2f940384 817
fa2bcf43
MR
818*** New display action alist entry `previous-window', if non-nil,
819specifies window to reuse in `display-buffer-in-previous-window'.
2f940384 820
6bc66c10
GM
821*** New display action functions `display-buffer-below-selected',
822and `display-buffer-in-previous-window'.
823
824*** The functions `get-lru-window', `get-mru-window' and `get-largest-window'
825now accept a third argument to avoid choosing the selected window.
826
827*** Additional values recognized for option `window-combination-limit'.
5938d519 828
77f1f99c
CY
829*** The following variables are obsolete, as they can be replaced by
830appropriate entries in the `display-buffer-alist' function introduced
831in Emacs 24.1:
823b2fb6 832**** `dired-shrink-to-fit'
77f1f99c 833**** `display-buffer-reuse-frames'
823b2fb6 834**** `display-buffer-function'
77f1f99c 835**** `special-display-buffer-names'
823b2fb6 836**** `special-display-frame-alist'
77f1f99c 837**** `special-display-function'
823b2fb6 838**** `special-display-regexps'
77f1f99c 839
ab0fa4e4 840** Time
2f940384 841
ab0fa4e4
PE
842*** `current-time-string' no longer requires that its argument's year
843must be in the range 1000..9999. It now works with any year supported
844by the underlying C implementation.
2f940384 845
f938eda9
CY
846*** `current-time' now returns extended-format time stamps
847(HIGH LOW USEC PSEC), where the new PSEC slot specifies picoseconds.
848PSEC is typically a multiple of 1000 on current machines. Other
823b2fb6
GM
849functions that use this format, such as `file-attributes' and
850`format-time-string', have been changed accordingly. Old-format time
f938eda9 851stamps are still accepted.
2f940384 852
823b2fb6 853*** The format of timers in `timer-list' and `timer-idle-list' is now
f938eda9
CY
854[TRIGGERED-P HI-SECS LO-SECS USECS REPEAT-DELAY FUNCTION ARGS IDLE-DELAY PSECS].
855The PSECS slot is new, and uses picosecond resolution. It can be
823b2fb6 856accessed via the new `timer--psecs' accessor.
2f940384 857
c4132fd4
PE
858*** Last-modified time stamps in undo lists now are of the form
859(t HI-SECS LO-SECS USECS PSECS) instead of (t HI-SECS . LO-SECS).
860
f938eda9 861** Floating point functions now always return special values like NaN,
823b2fb6 862instead of signaling errors, if given invalid args; e.g., (log -1.0).
f938eda9
CY
863Previously, they returned NaNs on some platforms but signaled errors
864on others. The affected functions are acos, asin, tan, exp, expt,
865log, log10, sqrt, and mod.
866
6bc66c10 867** New fringe bitmap `exclamation-mark'.
f938eda9 868
6bc66c10
GM
869** Miscellaneous changes to special forms and macros
870
871*** `defun' and `defmacro' are now macros rather than special forms.
872
873*** `kbd' is now a function rather than a macro.
874
5b8ccc5e
DE
875** EIEIO
876
877*** Security was improved when handling persistent objects:
878**** `eieio-persistent-read' now features optional arguments for specifying the
879class to load, as well as a flag whether subclasses are allowed; if provided,
880other classes will be rejected by the reader. For staying compatible with
881existing code, only a warning will be issued if the class is omitted.
882**** New specialized reader for pulling in classes and signaling errors without
883evaluation of suspicious code.
884**** All slots that contain objects must have a :type. Slots with lists of
885objects must use a new type predicate for a list of an object type.
886
887*** Added filename support to generated symbols to support find-function and
888similar utilities.
889
6bc66c10
GM
890** Miscellaneous new functions
891
892*** `set-temporary-overlay-map' sets up a temporary keymap that
893takes precedence over most other maps for a short while (normally one key).
2f940384 894
847a0561 895*** `autoloadp' tests if its argument is an autoloaded object.
2f940384 896
847a0561 897*** `autoload-do-load' performs the autoloading operation.
2f940384 898
f938eda9 899*** `buffer-narrowed-p' tests if the buffer is narrowed.
2f940384 900
f938eda9 901*** `file-name-base' returns a file name sans directory and extension.
2f940384 902
f938eda9 903*** `function-get' fetches a function property, following aliases.
2f940384 904
f938eda9 905*** `posnp' tests if an object is a `posn'.
2f940384 906
f938eda9 907*** `system-users' returns the user names on the system.
2f940384 908
f938eda9 909*** `system-groups' returns the group names on the system.
2f940384 910
f938eda9 911*** `tty-top-frame' returns the topmost frame of a text terminal.
c990426a 912
f938eda9 913** The following functions and variables are obsolete:
847a0561 914*** `automount-dir-prefix' (use `directory-abbrev-alist')
f938eda9 915*** `buffer-has-markers-at'
1a9c6830 916*** `macro-declaration-function' (use `macro-declarations-alist')
847a0561 917*** `window-system-version' (provides no useful information)
93cacb6d 918*** `dired-pop-to-buffer' (use `dired-mark-pop-up')
0e2ae83d 919*** `query-replace-interactive'
49238e7f 920*** `font-list-limit' (has had no effect since Emacs < 23)
86aa551c 921
adce950d 922\f
93e0bed6 923* Changes in Emacs 24.3 on Non-Free Operating Systems
9078ead6 924
4e98ad15 925** Cygwin builds can use the native MS Windows user interface.
823b2fb6 926Pass `--with-w32' to configure. The default remains the X11 interface.
53a63be6 927
1a9c6830 928** Two new functions are available in Cygwin builds:
a16ac13f
DC
929`cygwin-convert-file-name-from-windows' and
930`cygwin-convert-file-name-to-windows'. These functions allow Lisp
931code to access the Cygwin file-name mapping machinery to convert
932between Cygwin and Windows-native file and directory names.
de6e3a60 933
4e98ad15 934** When invoked with the -nw switch to run on the Windows text-mode terminal,
1ab0c851 935Emacs now supports `mouse-highlight', help-echo (in the echo area), and
4e98ad15
GM
936`mouse-autoselect-window'.
937
1a9c6830 938** On MS Windows Vista and later Emacs now supports symbolic links.
4e98ad15 939
823b2fb6 940** On MS Windows, you can pass `--without-libxml2' to configure.bat to omit
4e98ad15
GM
941support for libxml2, even if its presence is detected.
942
4e98ad15
GM
943** On Mac OS X, the Nextstep port requires OS X 10.4 or later.
944
823b2fb6 945** On Mac OS X, configure no longer automatically adds the Fink "/sw"
4e98ad15
GM
946directories to the search path. You must add them yourself if you want them.
947
2a1e2476
GM
948\f
949* Changes in Emacs 24.2
950
5190da91 951** This is mainly a bug-fix release.
6dad7178 952
9078ead6 953\f
eb199145 954* Installation Changes in Emacs 24.1
09e18d03 955
31fd3586
GM
956** Emacs can be compiled with Gtk+ 3.0 if you pass --with-x-toolkit=gtk3
957to configure. Note that other libraries used by Emacs, RSVG and GConf,
958also depend on Gtk+. You can disable them with --without-rsvg and
959--without-gconf.
338648ad 960
31fd3586
GM
961** Emacs can be compiled with GnuTLS support.
962This happens by default if a suitably recent version of the library is
963found at build time. To prevent this, use the configure option
964`--without-gnutls'. See below for GnuTLS features.
338648ad 965
31fd3586
GM
966** Emacs can be compiled with SELinux support.
967This happens by default if a suitably recent version of the library is
968found at build time. To prevent this, use the configure option
969`--without-selinux'. See below for SELinux features.
aded53ff 970
31fd3586
GM
971** Emacs can be compiled with ImageMagick support.
972This happens by default if a suitably recent version of the library is
973found at build time. To prevent this, use the configure option
974`--without-imagemagick'. See below for ImageMagick features.
c1f10868 975This feature is not available for the Nextstep or MS ports.
d9170db5 976
043efd56
GM
977** Emacs can be compiled with libxml2 support.
978This happens by default if a suitably recent version of the library is
979found at build time. To prevent this, use the configure option
980`--without-xml2'. See below for libxml2 features.
981
7d301ae6
CY
982** By default, the installed Info and man pages are compressed.
983You can disable this by configuring --without-compress-info.
984
7d301ae6 985** New configure option --with-wide-int.
81eafe29 986With it, Emacs integers typically have 62 bits, even on 32-bit machines.
0a768890
PE
987On 32-bit hosts, this raises the limit on buffer sizes from about 512 MiB
988to about 2 GiB.
81eafe29 989
7d301ae6 990** New configure options: --with-mmdf, --with-mail-unlink, --with-mailhost.
31fd3586
GM
991These provide no new functionality, they just remove the need to edit
992lib-src/Makefile by hand in order to use the associated features.
993
7d301ae6 994** New configure option --enable-use-lisp-union-type.
31fd3586
GM
995This is only useful for Emacs developers to debug certain types of bugs.
996This is not a new feature; only the configure flag is new.
041d709f
CY
997
998** The standalone programs digest-doc and sorted-doc are removed.
999Emacs now uses Lisp commands `doc-file-to-man' and `doc-file-to-info'.
1000
041d709f
CY
1001** The standalone program `fakemail' is removed.
1002If you need it, feedmail.el provides a superset of the functionality.
1003
0bfd685e 1004\f
eb199145 1005* Startup Changes in Emacs 24.1
4a263588 1006
198a7a97 1007** The --unibyte, --multibyte, --no-multibyte, and --no-unibyte
adbf62ff
GM
1008command line arguments, and the EMACS_UNIBYTE environment variable, no
1009longer have any effect. (They were declared obsolete in Emacs 23.)
198a7a97 1010
66b7b0fe 1011** New command line option `--no-site-lisp' removes site-lisp directories
1b5e5b0c
GM
1012from load-path. -Q now implies this. This option does not affect the
1013EMACSLOADPATH environment variable (and hence has no effect for
c8d59ba3 1014Nextstep builds).
66b7b0fe 1015
0bfd685e 1016\f
eb199145 1017* Changes in Emacs 24.1
7841339b 1018
a2a25d24 1019** Completion
fdeb32ec 1020
dfdb4cad
CY
1021*** Many packages now use the `completion-at-point' command,
1022rather than implementing separate completion commands.
1023
de0bde62 1024*** `completion-at-point' now handles tags and semantic completion.
dfdb4cad 1025
a2a25d24
SM
1026*** Completion in a non-minibuffer now tries to detect the end of completion
1027and pops down the *Completions* buffer accordingly.
dfdb4cad
CY
1028
1029*** New option `completion-cycle-threshold' allows completion cycling.
1030
1031*** New option `completion-category-overrides' for overriding the
2c719188 1032default completion style in certain circumstances.
dfdb4cad 1033
a2a25d24 1034*** New completion style `substring'.
dfdb4cad
CY
1035
1036*** Completion of buffer names uses `substring' completion by default.
1037
1038*** The option `widget-complete-field' has been removed.
620c53a6 1039
6870aaef 1040** Mail changes
dfdb4cad 1041
7d301ae6
CY
1042*** The first time you try sending mail, Emacs asks for a mail method.
1043This is implemented by a new default for `send-mail-function', which
1044is `sendmail-query-once'. This offers to use the smtpmail package, or
1045to use the old defaults relying on external mail facilities
1046(`sendmail-send-it' on GNU/Linux and other Unix-like systems, and
1047`mailclient-send-it' on Windows).
dfdb4cad 1048
e78e7e48
CY
1049*** Typing `C-c m' in the buffer made by `M-x report-emacs-bug'
1050transfers the report to your desktop's preferred mail client, if there
1051is one. This uses either the "xdg-email" utility, or Mac OS's "open"
1052command.
dfdb4cad 1053
7d301ae6
CY
1054*** See Changes in Specialized Modes and Packages for SMTPmail changes
1055and Mail mode changes
3f88cd72 1056
041d709f 1057** Emacs server and client changes
dfdb4cad 1058
7d301ae6 1059*** New option `server-port' specifies the port for TCP Emacs servers.
dfdb4cad 1060
041d709f 1061*** New emacsclient argument -q/--quiet suppresses some status messages.
dfdb4cad 1062
7d301ae6
CY
1063*** New emacsclient argument --frame-parameters specifies the frame
1064parameters of any newly-created graphical frame.
dfdb4cad
CY
1065
1066*** If emacsclient shuts down due to Emacs signaling an error,
1067its exit status is 1.
1068
041d709f
CY
1069*** New emacsclient argument --parent-id ID.
1070This opens a client frame in parent X window ID, via XEmbed, similar
1071to the --parent-id argument to Emacs.
1072
d0ce9f8c
MB
1073** Internationalization changes
1074
d0ce9f8c 1075*** Emacs now supports display and editing of bidirectional text.
7d301ae6
CY
1076Right-to-left (RTL) scripts, such as Arabic, Farsi, and Hebrew, are
1077displayed in the correct visual order as expected by users of those
dfdb4cad
CY
1078scripts. The display reordering is a "full bidirectionality" class
1079implementation of the Unicode Bidirectional Algorithm (UBA). Buffers
1080with no RTL text should look exactly the same as before.
f4b6ba46 1081
041d709f 1082**** New buffer-local variable `bidi-display-reordering'.
7d301ae6 1083To disable display reordering in a buffer, change this to nil.
d20e1419 1084
041d709f
CY
1085**** New buffer-local variable `bidi-paragraph-direction'.
1086If nil (the default), Emacs determines the base direction of each
dfdb4cad
CY
1087paragraph from its text, as specified by the UBA. Setting the value
1088to `right-to-left' or `left-to-right' forces a base direction on each
1089paragraph.
f4b6ba46 1090
7d301ae6
CY
1091Paragraphs with right-to-left base direction are displayed starting at
1092the right window edge.
f1816485 1093
dfdb4cad
CY
1094*** Enhanced support for characters with no glyphs in available fonts,
1095or, on text terminals, characters that cannot be encoded by the
1096terminal coding system. The new option `glyphless-char-display-control'
1097specifies how to display them: as a hexadecimal code in a box, a thin
10981-pixel space, an empty box, etc.
d0ce9f8c 1099
9702b7a1
GM
1100*** New input methods for Farsi and Bulgarian
1101(farsi-isiri-9147, farsi-transliterate-banan, bulgarian-alt-phonetic).
041d709f 1102
939db9ac
CY
1103*** `nobreak-char-display' now also highlights Unicode hyphen chars
1104(U+2010 and U+2011).
1105
7d301ae6 1106*** New Hebrew translation of the Emacs Tutorial.
31fd3586
GM
1107Type `C-u C-h t' to choose it in case your language setup doesn't
1108automatically select it.
1109
7d301ae6
CY
1110** An Emacs Lisp package manager is now included.
1111This is a convenient way to download and install additional packages,
1112from a package repository at http://elpa.gnu.org.
dfdb4cad 1113
7d301ae6
CY
1114*** M-x list-packages shows a list of packages, which can be
1115selected for installation.
dfdb4cad 1116
7d301ae6 1117*** New command `describe-package', bound to `C-h P'.
dfdb4cad 1118
7d301ae6
CY
1119*** By default, all installed packages are loaded automatically when
1120Emacs starts up. To disable this, set `package-enable-at-startup' to
1121nil. To specify the packages to load, customize `package-load-list'.
16a91140 1122
dfdb4cad
CY
1123** Custom theme changes
1124
7d301ae6
CY
1125*** New command `M-x customize-themes', which provides a convenient
1126interface for enabling and disabling Custom themes.
dfdb4cad 1127
7d301ae6 1128*** New option `custom-theme-load-path' is the load path for themes.
dfdb4cad
CY
1129Emacs no longer looks for Custom themes in `load-path'. The default
1130value of `custom-theme-load-path' says to look for themes in
1131`custom-theme-directory', followed by a subdirectory of
1132`data-directory' named "themes/", which contains a small selection of
1133built-in Custom themes.
1134
7d301ae6
CY
1135*** New option `custom-safe-themes' records known-safe theme files.
1136If a theme is not in this list, Emacs queries before loading it, and
1137offers to save the theme to `custom-safe-themes' automatically. By
1138default, all themes included in Emacs are treated as safe.
b7d65a5f 1139
7d301ae6 1140** Improved GTK integration
dfdb4cad 1141
7d301ae6 1142*** GTK scroll-bars are now placed on the right by default.
dfdb4cad
CY
1143The function `set-scroll-bar-mode' can change this.
1144
7d301ae6 1145*** GTK tool bars can have just text, just images or images and text.
dfdb4cad
CY
1146Customize `tool-bar-style' to choose the style. On a Gnome desktop,
1147the default is taken from desktop settings.
1148
1149*** GTK tool bars can be placed on any edge of the frame.
7d301ae6
CY
1150The frame-parameter tool-bar-position controls this. It takes the
1151values top, left, right or bottom. The Options => Show/Hide menu has
1152entries for this.
dfdb4cad 1153
7d301ae6
CY
1154*** The default colors for selected text (the `region' face) are taken
1155from the GTK theme when Emacs is built with GTK.
dfdb4cad 1156
7d301ae6
CY
1157*** Emacs uses GTK tooltips by default if built with GTK.
1158You can disable this by changing `x-gtk-use-system-tooltips' to nil.
a5bee597 1159
dfdb4cad
CY
1160** Graphical interface changes
1161
1162*** On graphical displays, the mode-line no longer ends in dashes.
1163Also, the first dash (which does not indicate anything) is just
1164displayed as a space.
1165
1166*** `menu-bar-select-buffer-function' lets you choose another operation
1167instead of `switch-to-buffer' when selecting an item in the Buffers menu.
1168
1169*** Lucid menus and dialogs can display antialiased fonts if Emacs is
1170built with Xft. These fonts can be set via X resources, for example:
1171Emacs.pane.menubar.font: Courier-12
1172
7d301ae6 1173** Exiting changes
dfdb4cad 1174
7d301ae6 1175*** Emacs now calls `kill-emacs' if it receives SIGTERM or SIGHUP,
dfdb4cad
CY
1176or if it receives a SIGINT signal in batch mode.
1177
7d301ae6
CY
1178*** `kill-emacs-hook' is now also run in batch mode.
1179Third-party code which adds to `kill-emacs-hook' should check if they
1180do the right thing in batch mode.
9c524fcb 1181
041d709f 1182** Scrolling changes
dfdb4cad 1183
041d709f 1184*** New scrolling commands `scroll-up-command' and `scroll-down-command'
0a19a6f8 1185(bound to C-v/[next] and M-v/[prior]) do not signal errors at top/bottom
7d301ae6 1186of buffer at first key-press (instead they move to top/bottom of buffer)
550f41cd 1187when `scroll-error-top-bottom' is non-nil.
dfdb4cad
CY
1188
1189*** New option `scroll-error-top-bottom' (see above).
1190
041d709f 1191*** New scrolling commands `scroll-up-line' and `scroll-down-line'
5a97d2da 1192scroll a line instead of full screen.
dfdb4cad 1193
041d709f 1194*** New property `scroll-command' should be set on a command's symbol to
b2957ea8 1195define it as a scroll command affected by `scroll-preserve-screen-position'.
dfdb4cad 1196
041d709f 1197*** If you customize `scroll-conservatively' to a value greater than 100,
d0f69533
EZ
1198Emacs will never recenter point in the window when it scrolls due to
1199cursor motion commands or commands that move point (e.f., `M-g M-g').
1200Previously, you needed to use `most-positive-fixnum' as the value of
1201`scroll-conservatively' to achieve the same effect.
dfdb4cad 1202
7d301ae6 1203*** "Aggressive" scrolling now honors the scroll margins.
d0f69533
EZ
1204If you customize `scroll-up-aggressively' or
1205`scroll-down-aggressively' and move point off the window, Emacs now
1206scrolls the window so as to avoid positioning point inside the scroll
1207margin.
1208
7d301ae6
CY
1209** Basic SELinux support has been added.
1210This requires Emacs to be linked with libselinux at build time.
f1a5d776 1211
dfdb4cad
CY
1212*** Emacs preserves the SELinux file context when backing up.
1213Also, the function `copy-file' has an extra optional argument for
1214preserving SELinux context, and the return value of `backup-buffer'
1215now includes the SELinux context.
f0bf7c8e 1216
dfdb4cad 1217*** New functions `file-selinux-context' and `set-file-selinux-context'
7d301ae6 1218get and set the SELinux context of a file.
44198b6e 1219
7d301ae6 1220** Trash changes
dfdb4cad 1221
7d301ae6
CY
1222*** `delete-by-moving-to-trash' now only affects commands that specify
1223trashing. This avoids inadvertently trashing temporary files.
dfdb4cad 1224
7d301ae6
CY
1225*** Calling `delete-file' or `delete-directory' with a prefix argument
1226now forces true deletion, regardless of `delete-by-moving-to-trash'.
278f6845 1227
041d709f 1228** File- and directory-local variable changes
dfdb4cad 1229
041d709f
CY
1230*** You can stop directory local vars from applying to subdirectories.
1231Add an element (subdirs . nil) to the alist portion of any variables
1232settings to indicate that the section should not apply to
1233subdirectories.
dfdb4cad 1234
041d709f
CY
1235*** Directory local variables can apply to some file-less buffers.
1236Affected modes include dired, vc-dir, and log-edit. For example,
1237adding "(diff-mode . ((mode . whitespace)))" to .dir-locals.el will
1238turn on `whitespace-mode' for *vc-diff* buffers. Modes should call
1239`hack-dir-local-variables-non-file-buffer' to support this.
dfdb4cad 1240
041d709f
CY
1241*** Using "mode: MINOR-MODE" to enable a minor mode is deprecated.
1242Instead, use "eval: (minor-mode 1)".
c136e5cd 1243
7b447e9b
GM
1244*** The variable `inhibit-first-line-modes-regexps' has been renamed
1245to `inhibit-local-variables-regexps'. As the name suggests, it now
dfdb4cad
CY
1246applies to ALL file local variables, not just -*- lines. The
1247associated `inhibit-first-line-modes-suffixes' has been renamed in the
1248corresponding way.
5d907d6c 1249
0a2132ba
CY
1250** Window changes
1251
91b65361
CY
1252*** The `quit-window' command now restores the last buffer displayed
1253in the quitted window.
1254
0a2132ba
CY
1255*** Resizing an Emacs frame now preserves proportional window sizes,
1256modulo restrictions like window minimum sizes and fixed-size windows.
1257
1258*** The behavior of `display-buffer' is now customizable in detail.
dfdb4cad 1259
0a2132ba
CY
1260**** New option `display-buffer-base-action' specifies a list of
1261user-determined display "actions" (functions and optional arguments
1262for choosing the displaying window).
1263
1264This takes precedence over the default display action, which is
1265specified by `display-buffer-fallback-action'.
1266
1267**** New option `display-buffer-alist' maps buffer name regexps to
1268display actions, taking precedence over `display-buffer-base-action'.
1269
a0c2d0ae
MR
1270*** New option `window-combination-limit'.
1271The new option `window-combination-limit' allows to return the space
1272obtained for resizing or creating a window more reliably to the window
1273from which such space was obtained.
0a2132ba 1274
a0c2d0ae
MR
1275*** New option `window-combination-resize'.
1276The new option `window-combination-resize' allows to split a window that
1277otherwise cannot be split because it's too small by stealing space from
1278other windows in the same combination. Subsequent resizing or deletion
1279of the window will resize all windows in the same combination as well.
0a2132ba 1280
91b65361
CY
1281*** New option `frame-auto-hide-function' lets you choose between
1282iconifying or deleting a frame when burying a buffer in a dedicated
1283frame, or quitting a window showing a buffer in a frame of its own.
1284
0a2132ba 1285*** New commands `maximize-window' and `minimize-window'.
53964682 1286These maximize and minimize the size of a window within its frame.
0a2132ba 1287
0a2132ba
CY
1288*** New commands `switch-to-prev-buffer' and `switch-to-next-buffer'.
1289These functions allow to navigate through the live buffers that have
1290been shown in a specific window.
1291
7d301ae6 1292** Minibuffer changes
dfdb4cad 1293
7d301ae6 1294*** The inactive minibuffer has its own major mode `minibuffer-inactive-mode'.
104dc9c6
GM
1295This is handy for minibuffer-only frames, and is also used for the feature
1296where mouse-1 pops up *Messages*"', which can now easily be changed.
041d709f 1297
7d301ae6 1298*** Minibuffers set `truncate-lines' to nil.
f66eca26 1299If you want to change the value to something else, you could use
7d301ae6
CY
1300for example `minibuffer-setup-hook'.
1301
7d301ae6
CY
1302** `auto-mode-case-fold' is now enabled by default.
1303
7d301ae6 1304** `backup-by-copying-when-mismatch' now defaults to t.
f66eca26 1305
dfdb4cad
CY
1306** New basic faces `error', `warning', `success'.
1307These are used to highlight text indicating failure, caution or
1308successful operation.
1309
1310** New option `list-colors-sort' defines the color sort order
1311for `list-colors-display'.
1312
1313** The variable `focus-follows-mouse' now always defaults to nil.
1314
0bfd685e 1315\f
eb199145 1316* Editing Changes in Emacs 24.1
b350bdf2 1317
892777ba 1318** Search changes
dfdb4cad
CY
1319
1320*** C-y in Isearch is now bound to `isearch-yank-kill', instead of
1321`isearch-yank-line'.
1322
1323*** M-y in Isearch is now bound to `isearch-yank-pop', instead of
1324`isearch-yank-kill'.
1325
1326*** M-s C-e in Isearch is now bound to `isearch-yank-line'.
1327
b2b0776e 1328** New commands `count-words-region' and `count-words'.
dfdb4cad 1329
10607bea
CY
1330*** M-= is bound to `count-words-region', not `count-lines-region'.
1331The `count-words-region' command, when called interactively, reports
1332the number of lines, words, and characters in the region. It is a
1333superset of the old `count-lines-region', which is now an obsolete
1334alias for it.
ea4f7750 1335
ec9da840 1336** The command `just-one-space' (M-SPC), if given a negative argument,
1c708c1a
CY
1337also deletes newlines around point.
1338
b9229673 1339** Deletion changes
dfdb4cad 1340
b9229673 1341*** New option `delete-active-region'.
ddb54206 1342If non-nil, [delete] and DEL delete the region if it is active and no
dfdb4cad 1343prefix argument is given. If set to `kill', those commands kill
ddb54206 1344instead.
dfdb4cad 1345
59ee0542 1346*** New command `delete-forward-char', bound to [delete].
42d9cffa
CY
1347This is meant for interactive use, and obeys `delete-active-region'.
1348The command `delete-char' does not obey `delete-active-region'.
dfdb4cad 1349
b9229673
CY
1350*** `delete-backward-char' is now a Lisp function.
1351Apart from obeying `delete-active-region', its behavior is unchanged.
7d301ae6
CY
1352However, the byte compiler now warns if it is called from Lisp; Lisp
1353callers should use delete-char with a negative argument instead.
dfdb4cad 1354
b9229673
CY
1355*** The option `mouse-region-delete-keys' has been deleted.
1356
f9d71b42
CY
1357** Selection changes.
1358
7d301ae6
CY
1359The default handling of clipboard and primary selections has been
1360changed to conform with modern X applications. In short, most
1361commands for killing and yanking text now use the clipboard, while
1362mouse commands use the primary selection.
b1ab31ae
CY
1363
1364In the following, we provide a list of these changes, followed by a
1365list of steps to get the old behavior back if you prefer that.
1366
b1ab31ae
CY
1367*** `select-active-regions' now defaults to t.
1368Merely selecting text (e.g. with drag-mouse-1) no longer puts it in
963578d3 1369the kill ring. The selected text is put in the primary selection, if
b1ab31ae
CY
1370the system possesses a separate primary selection facility (e.g. X).
1371
1372**** `select-active-regions' also accepts a new value, `only'.
1373This means to only set the primary selection for temporarily active
1374regions (usually made by mouse-dragging or shift-selection);
1375"ordinary" active regions, such as those made with C-SPC followed by
1376point motion, do not alter the primary selection.
1377
963578d3
CY
1378**** `mouse-drag-copy-region' now defaults to nil.
1379
b1ab31ae
CY
1380*** mouse-2 is now bound to `mouse-yank-primary'.
1381This pastes from the primary selection, ignoring the kill-ring.
1382Previously, mouse-2 was bound to `mouse-yank-at-click'.
dfdb4cad 1383
b1ab31ae 1384*** `x-select-enable-clipboard' now defaults to t on all platforms.
dfdb4cad 1385
b1ab31ae
CY
1386*** `x-select-enable-primary' now defaults to nil.
1387Thus, commands that kill text or copy it to the kill-ring (such as
1388M-w, C-w, and C-k) also use the clipboard---not the primary selection.
1389
1390**** The "Copy", "Cut", and "Paste" items in the "Edit" menu are now
dfdb4cad 1391exactly equivalent to M-w, C-w, and C-y respectively.
b1ab31ae
CY
1392
1393**** Note that on MS-Windows, `x-select-enable-clipboard' was already
1394non-nil by default, as Windows does not support the primary selection
1395between applications.
1396
1397*** To return to the previous behavior, do the following:
dfdb4cad 1398
104c2fe9 1399**** Change `select-active-regions' to nil.
b1ab31ae
CY
1400**** Change `mouse-drag-copy-region' to t.
1401**** Change `x-select-enable-primary' to t (on X only).
1402**** Change `x-select-enable-clipboard' to nil.
1403**** Bind `mouse-yank-at-click' to mouse-2.
f9d71b42 1404
084e6df3 1405*** Support for X cut buffers has been removed.
dfdb4cad 1406
3fd50d5c
CY
1407*** X clipboard managers are now supported.
1408To inhibit this, change `x-select-enable-clipboard-manager' to nil.
4b80f674 1409
dfdb4cad
CY
1410** New command `C-x r N' (`rectangle-number-lines') numbers the lines
1411in the current rectangle. With a prefix argument, this prompts for a
1412number to count from and for a format string.
99f053cf 1413
7d301ae6 1414** `redisplay-dont-pause' now defaults to t.
6bf7006f
EZ
1415This makes Emacs feel more responsive to editing commands that arrive
1416at high rate, e.g. if you lean on some key, because stopping redisplay
1417in the middle (when this variable is nil) forces more expensive
1418updates later on, and Emacs appears to be unable to keep up.
1419
e70b5064
CY
1420** The behavior of <TAB> for active regions in Text mode has changed.
1421In Text and related modes, typing <TAB> (`indent-for-tab-command')
1422when the region is active causes Emacs to indent all the lines in the
1423region, aligning them with the line previous to the first line in the
1424region (or with the left margin if there is no previous line).
1425
dfdb4cad
CY
1426** When `occur' is called with a prefix argument, matching strings are
1427collected into the `*Occur*' buffer without line numbers. If there
1428are parenthesized subexpressions in the specified regexp, `occur'
1429reads replacement text that may contain \\& and \\N whose convention
1430follows `replace-match'.
1431
9bae34bf 1432\f
eb199145 1433* Changes in Specialized Modes and Packages in Emacs 24.1
efeb796b 1434
041d709f 1435** Archive Mode has basic support for browsing and updating 7z archives.
d76674bb 1436
b7c3692a 1437** BibTeX mode
dfdb4cad 1438
2de69e00 1439*** BibTeX mode now supports biblatex.
7d301ae6
CY
1440Use the variable `bibtex-dialect' to select different BibTeX dialects.
1441`bibtex-entry-field-alist' is now an obsolete alias for
1442`bibtex-BibTeX-entry-alist'.
1443
dfdb4cad
CY
1444*** New command `bibtex-search-entries', bound to C-c C-a.
1445
b7c3692a 1446*** New `bibtex-entry-format' option `sort-fields', disabled by default.
dfdb4cad 1447
022fe7ce
RW
1448*** New variable `bibtex-search-entry-globally'.
1449
7d301ae6 1450** Browse-url
dfdb4cad 1451
7d301ae6 1452*** New option `browse-url-mailto-function' specifies how to handle "mailto:"s.
dfdb4cad 1453
7d301ae6
CY
1454*** The default browser used by the package is now the "xdg-open" program,
1455on platforms that support it. This calls your desktop's preferred browser.
1456
cf16af42
GM
1457** Calendar, Diary, and Appt
1458
7d301ae6 1459*** Diary entries can contain non-printing "comments".
548d0a63
GM
1460See the variable `diary-comment-start'.
1461
5006e634
GM
1462*** Appointments can specify their individual warning times.
1463See the variable `appt-warning-time-regexp'.
1464
0a2bb1a9
GM
1465*** The function specified by `appt-disp-window-function' may be passed
1466lists of arguments if multiple appointments are due at similar times.
1467If you are using a custom function for this, you should update it.
1468
7454f200
GM
1469*** New function `diary-hebrew-birthday'.
1470
e565dd37
GM
1471*** Elements of `calendar-day-abbrev-array' and `calendar-month-abbrev-array'
1472may no longer be nil, but must all be strings.
1473
7d301ae6
CY
1474*** The obsolete (since Emacs 22.1) method of enabling the appt
1475package by adding `appt-make-list' to `diary-hook' has been removed.
1476Use `appt-activate' instead.
cf16af42 1477
cf16af42
GM
1478*** Some appt variables (obsolete since Emacs 22.1) have been removed:
1479appt-issue-message (use the function appt-activate)
1480appt-visible/appt-msg-window (use the variable appt-display-format)
1481
cf16af42
GM
1482*** Some diary function aliases (obsolete since Emacs 22.1) have been removed:
1483view-diary-entries, list-diary-entries, show-all-diary-entries
1484
551b046f 1485** CC Mode
dfdb4cad 1486
551b046f 1487*** New feature to "guess" the style in an existing buffer.
7d301ae6 1488The main entry point is M-x c-guess.
041d709f 1489
551b046f
AM
1490*** Java Mode now supports Java 5.0 (Tiger) and 6 (Mustang).
1491
dfdb4cad 1492*** `c-beginning-of-defun' and `c-end-of-defun' now respect nested scopes.
551b046f
AM
1493Thus C-M-a will, by default, go to the beginning of the immediate function,
1494not the top level.
1495
dfdb4cad 1496*** "Macros with semicolons" can be registered for correct indentation.
551b046f
AM
1497Where such a macro ends a line (no semicolon) the next statement is no longer
1498parsed as a statement continuation.
1499
dfdb4cad 1500** Comint and modes derived from it use the standard completion code.
041d709f
CY
1501
1502** Compilation mode
dfdb4cad 1503
7d301ae6 1504*** Compilation mode can be used without Font Lock mode.
041d709f
CY
1505`compilation-parse-errors-function' is now obsolete.
1506
dfdb4cad 1507*** New variable `compilation-filter-start', which is bound while
7d301ae6
CY
1508`compilation-filter-hook' runs. It records the start position of the
1509text inserted by `compilation-filter'.
041d709f 1510
47a6a35f
GM
1511*** `compilation-error-screen-columns' and `compilation-first-column'
1512are obeyed in the editing buffer. So programming language modes can
7d301ae6
CY
1513set them, whereas previously only the value in the *Compilation*
1514buffer was used.
1dce7193 1515
52834b6b
CY
1516** Customize
1517
1518*** Customize buffers now contain a search field.
1519The search is performed using `customize-apropos'.
7d301ae6 1520To turn off the search field, set `custom-search-field' to nil.
52834b6b 1521
8d5dd370 1522*** Options in customize group buffers start out hidden if not customized.
52834b6b
CY
1523Use the arrow to the left of the option name to toggle visibility.
1524
1525*** custom-buffer-sort-alphabetically now defaults to t.
1526
1527*** The color widget now has a "Choose" button, which allows you to
7d301ae6 1528choose a color via `list-colors-display'.
52834b6b 1529
041d709f
CY
1530** D-Bus
1531
5da3be7f
GM
1532*** It is now possible to access buses other than the default system
1533or session bus.
041d709f 1534
7d301ae6 1535*** The `dbus-register-method' and `dbus-register-property' functions
5da3be7f 1536optionally do not register names.
041d709f 1537
7d301ae6 1538*** The new function `dbus-register-service' registers a known service
dfdb4cad 1539name on a D-Bus without also registering a property or a method.
041d709f 1540
f5d6548a 1541** Dired-x
425a25f1 1542
7d301ae6
CY
1543*** C-x C-j (`dired-jump') and C-x 4 C-j (`dired-jump-other-window'),
1544if called with a prefix argument, read a file name from the minibuffer
1545instead of using the current buffer.
f5d6548a 1546
7d301ae6 1547*** The "dired local variables" feature of Dired-x is obsolete.
817b48a7 1548The standard directory local variables feature replaces it.
8117868f 1549
041d709f 1550** ERC changes
7492acc9 1551
c4077254
GM
1552*** New options `erc-autojoin-timing' and `erc-autojoin-delay',
1553controlling attempts to autojoin a channel.
041d709f
CY
1554
1555*** New variable `erc-coding-system-precedence': If we use `undecided'
1556as the server coding system, this variable will then be consulted.
1557The default is to decode strings that can be decoded as utf-8 as
1558utf-8, and do the normal `undecided' decoding for the rest.
7492acc9 1559
041d709f 1560** Eshell changes
7492acc9 1561
05f77e38
GM
1562*** The default value of `eshell-directory-name' has changed
1563to be an "eshell" directory in `user-emacs-directory'.
1564The old "~/.eshell/" directory is still used if it exists, though.
041d709f
CY
1565
1566** gdb-mi
dfdb4cad
CY
1567
1568*** The M-x gdb command now uses the GDB Machine Interface protocol.
05f77e38
GM
1569It now supports multithread non-stop debugging and simultaneous
1570debugging of several threads.
7492acc9 1571
18af70d0
CY
1572** Image mode
1573
05f77e38
GM
1574*** RET (`image-toggle-animation') toggles animation, if applicable.
1575Animation plays once, unless the option `image-animate-loop' is non-nil.
18af70d0 1576
041d709f 1577** Info
723ee192 1578
7d301ae6 1579*** New command M-x info-display-manual displays a named Info manual.
2ebc3b94
GM
1580If that manual is already visited in some Info buffer, it displays
1581that buffer. (This is handy if you have many manuals in many *info*
1582buffers, and don't remember the name of the buffer visiting the manual
1583you want to consult.) Otherwise, it loads and displays the manual.
691cf4a0 1584
24ea72d3
EZ
1585*** `e' is now bound to `end-of-buffer' rather than to `Info-edit'.
1586This is for compatibility with the stand-alone Info reader program,
1587and also because `Info-edit' is a rarely used command that is disabled
1588by default.
1589
7d301ae6 1590** Mail mode changes (not Message mode)
dfdb4cad 1591
7d301ae6 1592*** New command M-x mail-add-attachment for adding MIME attachments
7d301ae6 1593
dfdb4cad
CY
1594*** The command M-x mail-attach-file was renamed to M-x mail-insert-file.
1595(Its name is misleading, since it has nothing to do with MIME
1596attachments.) The old name is now an obsolete alias to the new name.
1597
f2c3a9eb 1598** MH-E has been updated to MH-E version 8.3.1.
041d709f 1599See MH-E-NEWS for details.
37221432 1600
041d709f 1601** Modula-2 mode provides auto-indentation.
37221432 1602
041d709f 1603** mpc.el: Can use pseudo tags of the form tag1|tag2 as a union of two tags.
3c3d4f5b 1604
5d1ac394 1605** nXML mode no longer binds C-RET to `nxml-complete'.
dfdb4cad
CY
1606Completion is now performed via `completion-at-point', bound to C-M-i
1607or M-TAB. If `nxml-bind-meta-tab-to-complete-flag' is non-nil (the
1608default), this performs tag completion.
5d1ac394 1609
f2c3a9eb
CY
1610** Org mode has been updated to version 7.8.09.
1611See ORG-NEWS for details.
1612
041d709f 1613** Prolog mode has been completely revamped, with lots of additional
7d301ae6
CY
1614functionality such as more intelligent indentation, electricity,
1615support for more variants, including Mercury, and a lot more.
041d709f
CY
1616
1617** Rmail
1618
1619*** The command `rmail-epa-decrypt' decrypts OpenPGP data
1620in the Rmail incoming message.
1621
50419064
GM
1622*** The variable `rmail-message-filter' no longer has any effect.
1623This change was made in Emacs 23.1 but was not advertised at the time.
1624Try using `rmail-show-message-hook' instead.
1625
717a1362 1626** Shell mode
dfdb4cad
CY
1627
1628*** M-x shell prompts for the shell path name if the default directory
1629is a remote file name and neither the environment variable $ESHELL nor
1630the variable `explicit-shell-file-name' is set.
1631
1632*** TAB is now bound to the standard `completion-at-point' command,
1633which now implements the pcomplete rules for shell command completion.
717a1362 1634
7d301ae6
CY
1635** SMTPmail
1636
dfdb4cad 1637*** SMTPmail now uses encrypted connections (via STARTTLS) by default
7d301ae6
CY
1638if the mail server supports them. This uses either built-in GnuTLS
1639support, or the starttls.el library. Customize `smtpmail-stream-type'
1640to change this.
1641
7d301ae6
CY
1642*** The variable `smtpmail-auth-credentials' has been removed.
1643By default, the information is now stored in the file ~/.authinfo.
dfdb4cad
CY
1644This was the default value of smtpmail-auth-credentials. If you had
1645customized smtpmail-auth-credentials to a list of user names and
1646passwords, those settings are not used. During your first connection
1647to the smtp server, Emacs will prompt for the user name and password,
1648and offer to save them to ~/.authinfo. Or you can manually copy the
1649credentials to ~/.authinfo. For example, if you had
7d301ae6
CY
1650
1651 (setq smtpmail-auth-credentials
1652 '(("mail.example.org" 25 "jim" "s!cret")))
1653
1654then the equivalent line in ~/.authinfo would be
1655
1656 machine mail.example.org port 25 login jim password s!cret
1657
1658See the auth-source manual for more information, e.g. on encrypting
1659the credentials file.
1660
7d301ae6 1661*** The variable `smtpmail-starttls-credentials' has been removed.
dfdb4cad 1662If you had that set, you need to put
7d301ae6
CY
1663
1664 machine smtp.whatever.foo port 25 key "~/.my_smtp_tls.key" cert "~/.my_smtp_tls.cert"
1665
1666in your ~/.authinfo file instead.
1667
8ce192e3
LI
1668*** SMTPmail defaults to using the address in the From: header as the
1669SMTP MAIL FROM envelope. To override this, set `mail-envelope-from'
1670to the address you wish to use instead.
1671
34e8a2da 1672** SQL mode
041d709f 1673
34e8a2da
GM
1674*** New options `sql-port', `sql-connection-alist', `sql-send-terminator',
1675and `sql-oracle-scan-on'.
041d709f 1676
dfdb4cad 1677*** New options controlling prompting for login parameters.
34e8a2da
GM
1678Each supported product has a custom variable `sql-*-login-params',
1679which is a list of the parameters to be prompted for before a
1680connection is established.
041d709f
CY
1681
1682*** The command `sql-product-interactive' now takes a prefix argument,
34e8a2da 1683which causes it to prompt for an SQL product.
041d709f 1684
34e8a2da 1685*** Product-specific SQL interactive commands now take prefix arguments.
041d709f
CY
1686These commands (`sql-sqlite', `sql-postgres', `sql-mysql', etc.),
1687given a prefix argument, prompt for a name for the SQL interactive
1688buffer. This reduces the need for calling `sql-rename-buffer'.
1689
1690*** SQL interactive modes suppress command continuation prompts, and
1691replace tabs with spaces. The first change impacts multiple line SQL
1692statements entered with C-j between each line, statements yanked into
1693the buffer and statements sent with `sql-send-*' functions. The
34e8a2da
GM
1694second prevents the MySQL and Postgres interpreters from listing
1695object name completions when sent text via `sql-send-*' functions.
041d709f
CY
1696
1697*** New command `sql-connect' starts a predefined SQLi session,
1698using the login parameters from `sql-connection-alist'.
1699
1700*** New "Save Connection" menu item in SQLi buffers.
1701This gathers the login params specified for the SQLi session, if it
1702was not started by a connection, and saves them as a new connection.
1703
34e8a2da
GM
1704*** New commands for listing database objects and details:
1705sql-list-all and sql-list-table.
041d709f
CY
1706
1707*** An API for manipulating SQL product definitions has been added.
1708
1709** TeX modes
1710
1711*** latex-electric-env-pair-mode keeps \begin..\end matched on the fly.
412b9ee5 1712
459bba37 1713** Tramp
dfdb4cad 1714
7d301ae6 1715*** New inline access method "ksu" (kerberized su).
dfdb4cad 1716
459bba37 1717*** The following access methods are discontinued: "ssh1_old",
ea843702 1718"ssh2_old", "scp1_old", "scp2_old", "imap", "imaps" and "fish".
dfdb4cad 1719
b011fbfe
GM
1720*** The user option `remote-file-name-inhibit-cache' controls whether
1721remote file attributes are cached for better performance.
dfdb4cad 1722
58f74fe4
MA
1723*** The option `ange-ftp-binary-file-name-regexp' has changed its
1724default value to "".
dfdb4cad 1725
7d301ae6
CY
1726*** Handlers for `file-selinux-context' and `set-file-selinux-context'
1727for remote machines which support SELinux.
58f74fe4 1728
dfdb4cad 1729** New function `url-queue-retrieve', which behaves like url-retrieve,
a48ec60c
GM
1730but with limits (`url-queue-parallel-processes', `url-queue-timeout') on
1731the degree of parallelism.
177549d0 1732
0c32ce32
CY
1733** VC and related modes
1734
1735*** Support for pulling on distributed version control systems.
7d301ae6
CY
1736The command C-x v + (`vc-pull') runs a "pull" operation, if it is
1737supported (currently with Bzr, Git, and Mercurial), to update the
1738current branch and working tree. A prefix argument means to prompt
1739the user for specifics, e.g. a pull location.
0c32ce32 1740
dab3703d 1741*** `vc-update' is now an alias for `vc-pull'.
0c32ce32
CY
1742
1743*** Support for merging on distributed version control systems.
7d301ae6
CY
1744The command C-x v m (`vc-merge') now runs a "merge" operation, if it
1745is supported (currently with Bzr, Git, and Mercurial), to merge
1746changes from another branch into the current one. It prompts for
1747specifics, e.g. a merge source.
0c32ce32 1748
2afef60a 1749*** New option `vc-revert-show-diff' controls whether `vc-revert'
bbe43420 1750shows a diff while querying the user. It defaults to t.
2afef60a 1751
d4eb88c7
CY
1752*** Log entries in some Log View buffers can be toggled to display a
1753longer description by typing RET (log-view-toggle-entry-display).
dab3703d
GM
1754This is currently supported for Bzr, Git, and Mercurial (to support
1755another backend, define a `log-view-expanded-log-entry-function').
7d301ae6 1756In the Log View buffers made by C-x v L (`vc-print-root-log'), you can
d4eb88c7
CY
1757use this to display the full log entry for the revision at point.
1758
1c6c854e
CS
1759*** New command `vc-ediff' allows visual comparison of two revisions
1760of a file similar to `vc-diff', but using ediff backend.
1761
86c60681
CY
1762*** The option `vc-initial-comment' was removed in Emacs 23.2, but
1763this was not advertised at the time.
1764
86c60681
CY
1765*** `vc-toggle-read-only' is an obsolete alias for `toggle-read-only'.
1766Since Emacs 23, it has done the same thing as `toggle-read-only', but
80c6d77f
GM
1767this was not advertised at the time.
1768
041d709f
CY
1769** Obsolete modes
1770
23d70505
GM
1771*** abbrevlist.el
1772
f8ca9162 1773*** erc-hecomplete.el (use erc-pcomplete.el instead)
23d70505
GM
1774
1775*** partial-completion-mode (complete.el) is obsolete.
041d709f
CY
1776You can get a comparable behavior with:
1777(setq completion-styles '(partial-completion initials))
1778(setq completion-pcm-complete-word-inserts-delimiters t)
1779
23d70505
GM
1780*** pc-mode.el is obsolete (CUA mode is much more comprehensive).
1781
2c719188 1782*** pgg is obsolete (use EasyPG instead).
041d709f
CY
1783
1784*** sregex.el is obsolete, since rx.el is a strict superset.
1785
23d70505
GM
1786*** s-region.el and pc-select.el are obsolete.
1787They are superseded by shift-select-mode, enabled by default since 23.1.
1788
2c719188 1789*** vc-mcvs.el is obsolete (for lack of a maintainer).
ca5eed61 1790
0fe719e6
GM
1791** Miscellaneous
1792
05f77e38 1793*** The Landmark game is now invoked with `landmark', not `lm'.
c6ad2a4e 1794Its functions and variables have been similarly renamed.
05f77e38 1795
dfdb4cad 1796*** In `ido-file-completion-map', C-v is no longer bound to `ido-toggle-vc'.
05f77e38
GM
1797(This interfered with cua-mode.)
1798
9f678528
GM
1799*** f90.el has some support for Fortran 2008 syntax.
1800
0fe719e6
GM
1801*** `copyright-fix-years' can optionally convert consecutive years to ranges.
1802
5b3e6db8
GM
1803*** New command `nato-region' converts text to NATO phonetic alphabet.
1804
eb199145
GM
1805\f
1806* New Modes and Packages in Emacs 24.1
d445b3f8 1807
60e56523 1808** Occur Edit mode applies edits made in *Occur* buffers to the
8c0f49f0 1809original buffers. It is bound to "e" in Occur mode.
60e56523 1810
a075a2c5
GM
1811** New global minor mode electric-pair-mode.
1812When enabled, typing an open parenthesis automatically inserts the
1813matching closing one.
1814
1815** New global minor mode electric-indent-mode.
1816When enabled, typing certain characters triggers reindentation.
cd3308f3
GM
1817Major modes wishing to use this can set electric-indent-chars or
1818electric-indent-functions.
a075a2c5
GM
1819
1820** New global minor mode electric-layout-mode.
1821When enabled, typing certain characters automatically inserts newlines.
cd3308f3 1822Major modes wishing to use this can set electric-layout-rules.
3b843809 1823
a83ec3c9
CY
1824** tabulated-list.el provides a generic major mode for tabulated data,
1825from which other modes can be derived.
1826
d02c9bcd
SM
1827** pcase.el provides the ML-style pattern matching macro `pcase'.
1828
7725ebb7
MA
1829** secrets.el is an implementation of the Secret Service API, an
1830interface to password managers like GNOME Keyring or KDE Wallet. The
065f2743
MA
1831Secret Service API requires D-Bus for communication. The command
1832`secrets-show-secrets' offers a buffer with a visualization of the
1833secrets.
7725ebb7 1834
f9e78150
MA
1835** notifications.el provides an implementation of the Desktop
1836Notifications API. It requires D-Bus for communication.
1837
12fe5bcc
MA
1838** soap-client.el supports access to SOAP web services from Emacs.
1839soap-inspect.el is an interactive inspector for SOAP WSDL structures.
1840
ff1796f3 1841** New generic mode, xmodmap-generic-mode, for xmodmap files.
ad7d6ecb 1842
53bbe3ad 1843** New emacs-lock.el package.
7d301ae6
CY
1844The previous version has been moved to obsolete/old-emacs-lock.el.
1845Now, there is a proper minor mode `emacs-lock-mode'. Protection
1846against exiting Emacs and killing the buffer can be set separately.
1847The mechanism for automatically turning off protection for buffers
1848with dead inferior processes has been generalized.
53bbe3ad 1849
eb199145
GM
1850\f
1851* Incompatible Lisp Changes in Emacs 24.1
6dfcbe31 1852
7d301ae6
CY
1853** Passing a nil argument to a minor mode function call now ENABLES
1854the minor mode unconditionally. This is so that you can write e.g.
1855
dfdb4cad 1856 (add-hook 'text-mode-hook 'foo-mode)
7d301ae6 1857
dfdb4cad
CY
1858to enable foo-mode in Text mode buffers, removing the need for
1859`turn-on-foo-mode' style functions. This affects all mode commands
1860defined by `define-minor-mode'. If called interactively, the mode
1861command still toggles the minor mode.
7d301ae6 1862
d268b4fe
CY
1863** The return value of `backup-buffer' has changed.
1864It is now a list of three elements, where the second element is a list
1865describing the original file's SELinux context. If Emacs or the
f003f294 1866system lacks SELinux support, the context list is (nil nil nil nil).
7d301ae6 1867See "Basic SELinux support" above, under "Changes in Emacs 24.1".
d268b4fe 1868
dfdb4cad
CY
1869** `char-direction-table' and the `char-direction' function were deleted.
1870They were buggy and inferior to the new support of bidirectional
1871editing introduced in Emacs 24. If you need the bidirectional
1872properties of a character, use `get-char-code-property' with the last
1873argument `bidi-class'.
fa6996bc 1874
470d996d
TV
1875** `copy-directory' now copies the source directory as a subdirectory
1876of the target directory, if the latter is an existing directory. The
1877new optional arg COPY-CONTENTS, if non-nil, makes the function copy
1878the contents directly into a pre-existing target directory.
1879
9173a8fb
CY
1880** For mouse click input events in the text area, the Y pixel
1881coordinate in the POSITION list now counts from the top of the text
1882area, excluding any header line. Previously, it counted from the top
1883of the header line.
1884
7d301ae6
CY
1885** Support for "old-style" backquotes, obsolete for 10+ years, has
1886been further reduced. Now a backquote not followed by a space is
1887always treated as a "new-style" backquote. Please remove all
1888"old-style" backquotes from your code. If your code uses backquotes
1889as documented in the Elisp manual, and compiles without warning, then
1890you have nothing to do in this regard. Code not following the
1891appropriate conventions may fail to compile.
50ab02c5
CY
1892
1893The most common cause of trouble seems to be an old-style backquote
1894followed by a newline. Another cause of trouble is vector notation
1895for key sequence notation: instead of [(control ,)] and [(control ')],
1896you should write [(control ?,)] and [(control ?')], which will work in
7d301ae6 1897older Emacsen too.
288cf4e9 1898
520f2425
GM
1899** The macro `eval-at-startup' was removed in Emacs 23.2, but this
1900was not advertised at the time. The function `custom-initialize-delay'
1901replaced all known uses.
1902
7d301ae6
CY
1903** `view-buffer' now treats special mode-class in the same way that
1904`view-file' has since Emacs 22 (i.e. it won't enable View mode if the
1905major mode is special).
fd5c9dfa 1906
7d301ae6 1907** Menu and tool bar changes
6431f2e6 1908
7d301ae6 1909*** During startup, Emacs no longer adds entries for `menu-bar-lines'
0a19a6f8
JB
1910and `tool-bar-lines' to `default-frame-alist' and `initial-frame-alist'.
1911With these alist entries omitted, `make-frame' checks the value of the
1912variable `menu-bar-mode'/`tool-bar-mode' to determine whether to create
1913a menu-bar or tool-bar, respectively. If the alist entries are added,
1914they override the value of `menu-bar-mode'/`tool-bar-mode'.
6431f2e6 1915
7d301ae6
CY
1916*** The menu bar bindings's caches are not used any more.
1917Use (where-is-internal <def> nil t) instead.
1918
fe0aa820 1919** Regions created by mouse dragging are now normal active regions,
dfdb4cad 1920similar to those created by shift-selection (see Selection changes
7d301ae6
CY
1921above). In previous Emacs versions, these regions were delineated by
1922`mouse-drag-overlay'; that variable has been removed.
d6d8ee7a 1923
7d301ae6
CY
1924** The fourth argument of `filter-buffer-substring' has been removed.
1925If you want to remove text properties from the final result, simply
1926pass the result through substring-no-properties.
34c99998 1927
4583e796
GM
1928** cl.el no longer provides `cl-19'.
1929
7d301ae6
CY
1930** The following obsolete functions and aliases have been removed
1931(the appropriate new function is given in parentheses; "not needed"
1932means you can just remove all calls to the function in question):
1933
1934*** `comint-kill-output' (`comint-delete-output')
1935*** `decompose-composite-char' (`char-to-string')
1936*** `outline-visible' (`outline-invisible-p')
1937*** `internal-find-face' (`facep')
1938*** `internal-get-face' (`facep and check-face')
1939*** `frame-update-faces' (not needed)
1940*** `frame-update-face-colors' (`frame-set-background-mode')
1941*** `x-frob-font-weight' and `x-frob-font-slant' (`make-face-*' functions)
2c719188 1942*** `x-make-font-bold and x-make-font-demibold (`make-face-bold')
7d301ae6
CY
1943*** `x-make-font-italic' and `x-make-font-oblique' (`make-face-italic')
1944*** `x-make-font-bold-italic' (`make-face-bold-italic')
1945*** `x-make-font-unbold' (`make-face-unbold')
1946*** `x-make-font-unitalic' (`make-face-unitalic')
1947*** `mldrag-drag-mode-line' (`mouse-drag-mode-line')
1948*** `mldrag-drag-vertical-line' (`mouse-drag-vertical-line')
1949*** `iswitchb-default-keybindings' (`iswitchb-mode')
1950*** `char-bytes' (== 1)
1951*** `isearch-return-char' (`isearch-printing-char')
1952*** `make-local-hook' (not needed)
1953*** `set-screen-height' (`set-frame-height')
1954*** `set-screen-width' (`set-frame-width')
1955
7d301ae6
CY
1956** The following obsolete variables and varaliases have been removed
1957(the appropriate new variable is given in parentheses):
1958
1959*** `checkdoc-minor-keymap' (`checkdoc-minor-mode-map')
1960*** `vc-header-alist' (`vc-BACKEND-header')
1961*** `directory-sep-char' (== ?/)
1962*** `font-lock-defaults-alist' (`font-lock-defaults')
1963*** `e' (`float-e').
3226d6ca 1964
041d709f 1965** The following obsolete files were removed:
7b0e3048
GM
1966sc.el, x-menu.el, rnews.el, rnewspost.el
1967
7d301ae6
CY
1968** The format of the finder-inf.el file has changed, since the Finder
1969mechanism is now based on the package system. The variable
1970`finder-package-info' is replaced by `package--builtins' and
1971`finder-keywords-hash'.
33658d4e 1972
c2c79260
DE
1973** When generating autoloads, `update-directory-autoloads' no longer
1974assumes every inspected file is in your `load-path'. It instead
1975generates relative names according to the current `load-path'.
1976
eb199145 1977\f
93e0bed6 1978* Lisp Changes in Emacs 24.1
9097e8af 1979
041d709f 1980** Code can now use lexical scoping by default instead of dynamic scoping.
dfdb4cad 1981The `lexical-binding' variable enables lexical scoping for local
48da7392 1982variables. It is typically set via a file-local variable in the first
dfdb4cad
CY
1983line of the file, in which case it applies to all the code in that
1984file.
1985
041d709f
CY
1986*** `eval' takes a new optional argument `lexical' to choose the new lexical
1987binding instead of the old dynamic binding mode.
dfdb4cad 1988
041d709f
CY
1989*** Lexically scoped interpreted functions are represented with a new form
1990of function value which looks like (closure ENV ARGS &rest BODY).
1991
1992*** New macro `letrec' to define recursive local functions.
dfdb4cad
CY
1993
1994*** `defvar' and `defconst' now mark the variable as special (dynamic).
1995So do `defcustom' and other forms that call `defvar' as a subroutine.
1996
041d709f
CY
1997*** New function `special-variable-p' to check whether a variable is
1998declared as dynamically bound.
1999
88ed9e87
SM
2000*** The form ((lambda ...) ...) is deprecated.
2001
041d709f
CY
2002** An Emacs Lisp testing tool is now included.
2003Emacs Lisp developers can use this tool to write automated tests for
2004their code. See the ERT info manual for details.
2005
2006** Changes for bidirectional display and editing
f1816485 2007
041d709f 2008*** New function `current-bidi-paragraph-direction'.
7d301ae6 2009This returns the base direction of the paragraph at point.
041d709f 2010
041d709f 2011*** New function `bidi-string-mark-left-to-right'.
dfdb4cad
CY
2012Given a string containing characters from right-to-left scripts, this
2013function returns another string which can be safely inserted into a
2014buffer, such that any following text will be always displayed to the
7d301ae6
CY
2015right of that string. (This works by appending an invisible Unicode
2016"LEFT-TO-RIGHT MARK" character if the argument string might need it.)
041d709f 2017
7d301ae6 2018This is useful when the buffer has overall left-to-right paragraph
dfdb4cad
CY
2019direction and you need to insert a string whose contents are not known
2020in advance, without disrupting the layout of the line.
041d709f 2021
bee0fcef 2022** Window changes
dfdb4cad 2023
c4682d18
MR
2024*** Window tree functions are accessible in Elisp.
2025Functions are provided to return the parent, siblings or child windows
2026of any window including internal windows (windows not associated with a
2027buffer) in the window tree.
dfdb4cad 2028
24300f5f
CY
2029**** New function `window-valid-p' gives non-nil for live and internal
2030windows.
dfdb4cad 2031
24300f5f 2032**** Window manipulation can deal with internal windows.
c4682d18
MR
2033Many window handling functions like `split-window', `delete-window', or
2034`delete-other-windows' as well as the window resizing functions can now
2035act on any window including internal ones.
dfdb4cad 2036
c4682d18
MR
2037*** window-total-height/-width vs window-body-height/-width.
2038The function `window-height' has been renamed to `window-total-height'
2039and `window-width' has been renamed to `window-body-width'. The old
2040names are provided as aliases. Two new functions `window-total-width'
2041and `window-body-height' are provided.
dfdb4cad 2042
c4682d18
MR
2043*** Window parameters specific to window handling functions.
2044For each window you can specify a parameter to override the default
2045behavior of a number of functions like `split-window', `delete-window'
ed6235ea
MR
2046and `delete-other-windows'. The variable `ignore-window-parameters'
2047allows to ignore processing such parameters.
dfdb4cad 2048
c4682d18 2049*** New semantics of third argument of `split-window'.
c4682d18
MR
2050The third argument of `split-window' has been renamed to SIDE and can be
2051set to any of the values 'below, 'right, 'above, or 'left to make the
2052new window appear on the corresponding side of the window that shall be
2053split. Any other value of SIDE will cause `split-window' to split the
2054window into two side-by-side windows as before.
dfdb4cad 2055
c4682d18 2056*** Window resizing functions.
487ffd7a 2057A new standard function for resizing windows called `window-resize' has
c4682d18
MR
2058been introduced. This and all other functions for resizing windows no
2059longer delete any windows when they become too small.
dfdb4cad 2060
b3c0dbfd
MR
2061*** Deleting the selected window now selects the most recently selected
2062live window on that frame instead.
dfdb4cad 2063
c4682d18
MR
2064*** `adjust-window-trailing-edge' adjustments.
2065`adjust-window-trailing-edge' can now deal with fixed-size windows and
2066is able to resize other windows if a window adjacent to the trailing
2067edge cannot be shrunk any more. This makes its behavior more similar to
2068that of Emacs 21 without compromising, however, its inability to delete
2069windows which was introduced in Emacs 22.
dfdb4cad 2070
c4682d18
MR
2071*** Window-local buffer lists.
2072Windows now have local buffer lists. This means that removing a buffer
2073from display in a window will preferably show the buffer previously
2074shown in that window with its previous window-start and window-point
2075positions. This also means that the same buffer may be automatically
2076shown twice even if it already appears in another window.
dfdb4cad 2077
bee0fcef
CY
2078*** `switch-to-buffer' has a new optional argument FORCE-SAME-WINDOW,
2079which if non-nil requires the buffer to be displayed in the currently
2080selected window, signaling an error otherwise. If nil, another window
2081can be used, e.g. if the selected one is strongly dedicated.
dfdb4cad 2082
0a2132ba 2083*** `split-window-vertically' and `split-window-horizontally' renamed
2d197ffb
CY
2084to `split-window-below' and `split-window-right' respectively.
2085The old names are kept as aliases.
dfdb4cad 2086
0a2132ba
CY
2087*** Display actions
2088
2089**** The second arg to `display-buffer' and `pop-to-buffer' is now
2090named ACTION, and takes a display action of the same form as
2091`display-buffer-base-action' (see Changes, above). A non-nil,
2092non-list value is treated specially, as the old meaning.
2093
2094**** New variable `display-buffer-overriding-action'.
2095
2096**** The procedure of `display-buffer' etc. to choose a window is
2097determined by combining `display-buffer-overriding-action',
2098`display-buffer-alist', the ACTION arg, `display-buffer-base-action',
2099and `display-buffer-fallback-action'. The second and fourth of these
2100are user-customizable variables.
2101
2102See the docstring of `display-buffer' for details.
bee0fcef 2103
20d2304d
CY
2104*** New functions `window-state-get' and `window-state-put'.
2105These functions allow to save and restore the state of an arbitrary
2106frame or window as an Elisp object.
2107
a2a25d24 2108** Completion
041d709f 2109
7d301ae6
CY
2110*** New variable `completion-extra-properties' used to specify extra
2111properties of the current completion:
a2a25d24
SM
2112- :annotate-function, same as the old completion-annotate-function.
2113- :exit-function, function to call after completion took place.
2114
7d301ae6
CY
2115*** Functions on `completion-at-point-functions' can return any of the
2116properties valid for `completion-extra-properties'.
a2a25d24 2117
7d301ae6 2118*** `completion-annotate-function' is obsolete.
a2a25d24 2119
620c53a6
SM
2120*** New `metadata' method for completion tables. The metadata thus returned
2121can specify various details of the data returned by `all-completions':
2122- `category' is the kind of objects returned (e.g., `buffer', `file', ...),
2123 used to select a style in completion-category-overrides.
2124- `annotation-function' to add annotations in *Completions*.
2125- `display-sort-function' to specify how to sort entries in *Completions*.
2126- `cycle-sort-function' to specify how to sort entries when cycling.
2127
7d301ae6
CY
2128*** `minibuffer-local-filename-must-match-map' is not used any more.
2129Instead, the bindings in `minibuffer-local-filename-completion-map'
2130are combined with `minibuffer-local-must-match-map'.
de09aa52
CY
2131
2132*** New variable `completing-read-function' allows overriding the
2133behavior of `completing-read'.
2134
f042970d 2135** `glyphless-char-display' can now distinguish between graphical and
16a43933
CY
2136text terminal display, via a char-table entry that is a cons cell.
2137
7d301ae6 2138** `pre-command-hook'/`post-command-hook' are not reset to nil on error.
f6d62986
SM
2139Instead, the offending function is removed.
2140
b1f6fa26
CY
2141** New hook types
2142
2143*** New function `run-hook-wrapped' for running an abnormal hook by
2144passing the hook functions as arguments to a "wrapping" function.
e7bc51d0 2145Like `run-hook-with-args-until-success', it stops at the first
5385447f 2146non-nil return value.
e7bc51d0 2147
b1f6fa26
CY
2148*** New macro `with-wrapper-hook' for running an abnormal hook as a
2149set of "wrapping" filters, similar to around advice.
54521c99
GM
2150(A version of this macro was actually added in Emacs 23.2 but was not
2151advertised at the time.)
f6d62986 2152
0b19b281 2153** Debugger changes
dfdb4cad 2154
0b19b281 2155*** New macro `condition-case-unless-debug' (this was actually added in
1be3ca5a 2156Emacs 23.1 as condition-case-no-debug, but not advertised)
dfdb4cad 2157
0b19b281 2158*** The macro `with-demoted-errors' was added in Emacs 23.1, but not advertised.
dfdb4cad 2159
0b19b281 2160*** Variable `stack-trace-on-error' removed.
dfdb4cad 2161
0b19b281
CY
2162*** The debugger can now "continue" from an error, which means it will
2163jump to the error handler as if the debugger had not been invoked
2164instead of jumping all the way to the top-level.
dfdb4cad 2165
0b19b281
CY
2166*** Set `debug-on-event' to enter the debugger on events like SIGUSR1.
2167This can be useful when `inhibit-quit' is set.
d6b1d521 2168
953cebf5 2169** The new function `server-eval-at' allows evaluation of Lisp forms on
37576acd 2170named Emacs server instances.
7deebf1b 2171
1b9f60cc
GM
2172** `call-process' and `call-process-region' allow a `(:file "file")' spec
2173to redirect STDOUT to a file.
7deebf1b 2174
7d301ae6
CY
2175** The function `format-time-string' now supports the %N directive,
2176for higher-resolution time stamps.
da97a9e6 2177
0b19b281 2178** New input reading functions
dfdb4cad 2179
0b19b281
CY
2180*** New function `read-char-choice' reads a restricted set of
2181characters, discarding any inputs not inside the set.
dfdb4cad 2182
0b19b281
CY
2183*** The command `read-color' now requires a match for a color name
2184or RGB triplet, instead of signaling an error if the user provides
2185invalid input.
dfdb4cad 2186
0b19b281 2187**** `facemenu-read-color' is now an alias for `read-color'.
3ef01959 2188
2e288d54
JB
2189** `image-library-alist' is renamed to `dynamic-library-alist'.
2190The variable is now used to load all kind of supported dynamic libraries,
2191not just image libraries. The previous name is still available as an
2192obsolete alias.
2193
0b19b281 2194** Syntax parsing changes
dfdb4cad 2195
0b19b281 2196*** New variable `syntax-propertize-function'.
04e2ce72 2197This replaces `font-lock-syntactic-keywords' which is now obsolete.
cf38dd42
SM
2198This allows syntax-table properties to be set independently from font-lock:
2199just call syntax-propertize to make sure the text is propertized.
2200Together with this new variable come a new hook
2201syntax-propertize-extend-region-functions, as well as two helper functions:
2202syntax-propertize-via-font-lock to reuse old font-lock-syntactic-keywords
2203as-is; and syntax-propertize-rules which provides a new way to specify
2204syntactic rules.
dfdb4cad 2205
0b19b281 2206*** Syntax tables support a new "comment style c" additionally to style b.
a2e5caf7 2207
7d301ae6 2208** New hook `post-self-insert-hook', run after `self-insert-command'.
041d709f 2209
4e2db1fe 2210** frame-local variables cannot be let-bound any more.
041d709f 2211
15de15c6 2212** Major and minor mode changes
dfdb4cad 2213
0b19b281
CY
2214*** `set-auto-mode' now respects mode: local variables at the end of files,
2215as well as those in the -*- line.
dfdb4cad 2216
15de15c6
CY
2217*** `prog-mode' is a new major mode from which programming modes
2218should be derived.
dfdb4cad 2219
15de15c6
CY
2220**** `prog-mode-hook' can be used to enable features for programming
2221modes, e.g. (add-hook 'prog-mode-hook 'flyspell-prog-mode) to enable
2222on-the-fly spell checking for comments and strings.
dfdb4cad 2223
15de15c6
CY
2224*** New hook `change-major-mode-after-body-hook', run by
2225`run-mode-hooks' just before any other mode hooks.
dfdb4cad 2226
7a9a2fc6
GM
2227*** Enabled globalized minor modes can be disabled in specific major modes.
2228If the global mode is global-FOO-mode, then run (FOO-mode -1) in the
2229major mode's hook, where FOO-mode toggles the mode on a per-buffer basis.
dfdb4cad 2230
feb8a83a 2231*** `define-minor-mode' accepts new keywords :variable, :after-hook.
f44379e7 2232
7d301ae6
CY
2233** File-handling changes
2234
7d301ae6 2235*** `delete-file' and `delete-directory' now accept optional arg TRASH.
f1a5d776
CY
2236Trashing is performed if TRASH and `delete-by-moving-to-trash' are
2237both non-nil. Interactively, TRASH defaults to t, unless a prefix
2238argument is supplied (see Trash changes, above).
53967e09 2239
7d301ae6 2240*** New file predicates: `file-equal-p', `file-in-directory-p'.
ec70a47d 2241
4039c786
CY
2242** Tool-bars can display separators.
2243Tool-bar separators are handled like menu separators in menu-bar maps,
94975270 2244i.e. via menu entries of the form `(menu-item "--")'.
9317e499 2245
00fe2df1
JL
2246** Image API
2247
18af70d0
CY
2248*** Animated images support (currently animated gifs only).
2249
2250**** `image-animated-p' returns non-nil if an image can be animated.
2251
2252**** `image-animate' animates a supplied image spec.
2253
2254**** `image-animate-timer' returns the timer object for an image that
2255is being animated.
00fe2df1 2256
7cb76fe0
GM
2257*** `image-extension-data' has been renamed to `image-metadata'.
2258The old name is an obsolete alias to the new one.
1546c559 2259
b4ac6e8c
GM
2260*** Image mode can view any image type that ImageMagick supports.
2261This requires Emacs to be built with ImageMagick support.
7d301ae6
CY
2262
2263**** New function `imagemagick-types', defined if ImageMagick support
2264is enabled, returns a list of image file extensions that your
2265ImageMagick installation supports.
2266
2267**** New function `imagemagick-register-types' enables ImageMagick
2268image types in Image mode and in `create-image' and other helper
2269functions.
2270
2271**** New option `imagemagick-types-inhibit' excludes certain
2272ImageMagick image types from `imagemagick-register-types'.
2273
7d301ae6
CY
2274**** With ImageMagick support, there are extra Image mode commands to
2275resize and rotate images: `image-transform-fit-to-height',
2276`image-transform-fit-to-width', `image-transform-set-rotation', and
2277`image-transform-set-scale'.
041d709f 2278
7d301ae6
CY
2279** `compose-mail' now accepts an optional 8th arg, RETURN-ACTION, and
2280passes it to the mail user agent function. This argument specifies an
2281action for returning to the caller after finishing with the mail. For
2282example, this is used by Rmail to optionally delete a mail window.
b4ac6e8c 2283
71c17aec 2284** XML and HTML parsing
483ab230
CY
2285If Emacs is compiled with libxml2 support, there are two new
2286functions: `libxml-parse-html-region' (which parses "real world" HTML)
2287and `libxml-parse-xml-region' (which parses XML). Both return an
2288Emacs Lisp parse tree.
4b9832a6 2289
7d301ae6 2290** Networking and encryption changes
e2574f2c 2291
7d301ae6
CY
2292*** `open-network-stream' can now be used to open an encrypted stream.
2293It now accepts an optional `:type' parameter for initiating a TLS
2294connection, directly or via STARTTLS. To do STARTTLS, additional
2295parameters (`:end-of-command', `:success', `:capabilities-command')
2296must also be supplied.
2297
2298*** New library gnutls.el.
dfdb4cad
CY
2299The new function `gnutls-available-p' returns non-nil if Emacs is
2300built with GnuTLS support. The main entry points are
2301`open-gnutls-stream' and `gnutls-negotiate'. It's easiest to use
2302these functions through `open-network-stream', because that can
7d301ae6
CY
2303upgrade connections through STARTTLS opportunistically or use plain
2304SSL, depending on your needs. For debugging, set `gnutls-log-level'
2305greater than 0.
2306
7d301ae6
CY
2307*** New primitive `secure-hash' that supports many secure hash algorithms:
2308md5, sha1, sha2, sha224, sha256, sha384, and sha512. The lisp library
2309sha1.el has been removed. The `sha1' feature is provided by default.
71c17aec 2310
a6020335
MH
2311** Isearch
2312
2313*** New hook `isearch-update-post-hook' that runs in `isearch-update'.
2314
9326ba26
CY
2315** Progress reporters can now "spin".
2316The MIN-VALUE and MAX-VALUE arguments of `make-progress-reporter' can
2317now be nil, or omitted. This makes a "non-numeric" reporter. Each
2318time you call `progress-reporter-update' on that progress reporter,
2319with a nil or omitted VALUE argument, the reporter message is
2320displayed with a "spinning bar".
2321
3e214b50
JB
2322** New variable `revert-buffer-in-progress-p' is true while a buffer is
2323being reverted, even if the buffer has a local `revert-buffer-function'.
2324
001bf877
GM
2325** New variables `delayed-warnings-list' and `delayed-warnings-hook'.
2326If delayed-warnings-list is non-nil, the command loop calls
7d301ae6
CY
2327`delayed-warnings-hook' after `post-command-hook'. At present, this
2328is only used by Emacs on some platforms to display warnings during
2329startup, which might otherwise not be noticed. This uses the
2330functions `display-delayed-warnings' and `collapse-delayed-warnings'.
001bf877 2331
6420d28b
CY
2332** rx.el has a new `group-n' construct for explicitly numbered groups.
2333
dac86404
GM
2334** New function `make-composed-keymap' that constructs a new keymap
2335from multiple input maps. You can use this to make a keymap that
2336inherits from multiple maps, eg:
2337 (set-keymap-parent newmap (make-composed-keymap othermap parent))
43dc9f5b 2338
c8f6ec5c
GM
2339** New function `string-prefix-p'.
2340(This was actually added in Emacs 23.2 but was not advertised at the time.)
2341
27f7ef2f 2342** New reader macro ## that stands for the empty symbol.
43dc9f5b
AS
2343This means that the empty symbol can now be read back. Also, #: by itself
2344(when not immediately followed by a possible symbol character) stands for
2345an empty uninterned symbol.
041d709f 2346
fead402d
CY
2347** New math functions `isnan', `copysign', `frexp', `ldexp'.
2348
7d301ae6 2349** The following functions and variables are obsolete:
041d709f 2350
05f77e38
GM
2351*** `tooltip-use-echo-area' is obsolete.
2352Rather than setting this to t, disable Tooltip mode instead.
2353
041d709f
CY
2354*** buffer-substring-filters is obsolete.
2355Use `filter-buffer-substring-functions' instead.
2356
2357*** `byte-compile-disable-print-circle' is obsolete.
2358
2359*** `deferred-action-list' and `deferred-action-function' are obsolete.
f160676e
GM
2360Use `post-command-hook' instead.
2361
67e729a5
CY
2362*** `font-lock-maximum-size' is obsolete.
2363
eb199145 2364\f
93e0bed6 2365* Changes in Emacs 24.1 on Non-Free Operating Systems
d53a60a6 2366
7a22e700 2367** On MS Windows, Emacs warns when using the obsolete init file _emacs,
a2f0118c
GM
2368and also when HOME is set to C:\ by default.
2369
7a22e700 2370** New configure.bat options
04779484 2371
7a22e700 2372*** --enable-checking builds Emacs with extra runtime checks.
e3aef5c6 2373
7a22e700 2374*** --distfiles specifies files to be included in binary distribution.
e2574f2c 2375
7a22e700
OK
2376*** --without-gnutls disables automatic GnuTLS detection.
2377
a0d363f4 2378*** --lib for general library linkage, works with the USER_LIBS build variable.
e2574f2c 2379
0a19a6f8 2380** New make target `dist' to create binary distribution for MS Windows.
e3aef5c6 2381
1f5e1a16
GM
2382** The Lisp function `w32-default-color-map' is now obsolete.
2383(It is only used internally in the Emacs C code.)
5430d399 2384
1f5e1a16
GM
2385** Customize ns-auto-hide-menu-bar to have the menu-bar hidden, but
2386reappear on mouse-over. (Requires OS X 10.6 or later.)
04e2ce72 2387
ad7c802c
CY
2388** On Mac OS X, dragging a file into Emacs visits the file, like on
2389other platforms, rather than inserting its contents into the buffer.
2390
05197f40 2391\f
a933dad1 2392----------------------------------------------------------------------
5b87ad55 2393This file is part of GNU Emacs.
a933dad1 2394
ab73e885 2395GNU Emacs is free software: you can redistribute it and/or modify
5b87ad55 2396it under the terms of the GNU General Public License as published by
ab73e885
GM
2397the Free Software Foundation, either version 3 of the License, or
2398(at your option) any later version.
5b87ad55
GM
2399
2400GNU Emacs is distributed in the hope that it will be useful,
2401but WITHOUT ANY WARRANTY; without even the implied warranty of
2402MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
2403GNU General Public License for more details.
a933dad1 2404
5b87ad55 2405You should have received a copy of the GNU General Public License
ab73e885 2406along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
a933dad1 2407
05197f40 2408\f
a933dad1
DL
2409Local variables:
2410mode: outline
2411paragraph-separate: "[ \f]*$"
2412end: