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