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