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