* lisp/emacs-lisp/smie.el: New smie-config system.
[bpt/emacs.git] / etc / NEWS
CommitLineData
29b7722a 1GNU Emacs NEWS -- history of user-visible changes.
5b87ad55 2
ab422c4d 3Copyright (C) 2010-2013 Free Software Foundation, Inc.
5b87ad55 4See the end of the file for license conditions.
a933dad1 5
893db5bc 6Please send Emacs bug reports to bug-gnu-emacs@gnu.org.
9a21d88b
KS
7If possible, use M-x report-emacs-bug.
8
eb199145 9This file is about changes in Emacs version 24.
9a21d88b 10
eb199145
GM
11See files NEWS.23, NEWS.22, NEWS.21, NEWS.20, NEWS.19, NEWS.18,
12and NEWS.1-17 for changes in older Emacs versions.
9a21d88b
KS
13
14You can narrow news to a specific version by calling `view-emacs-news'
15with a prefix argument or by typing C-u C-h C-n.
3f7194ed 16
a1ed8b05 17Temporary note:
219afb88
GM
18+++ indicates that all necessary updates to the manuals in doc/ are complete.
19--- means no change in the manuals is needed.
20When you add a new item, use the appropriate mark if you know it applies,
21otherwise leave it unmarked.
a1ed8b05
GM
22
23\f
95a32efb 24* Installation Changes in Emacs 24.4
7c3d167f 25
ffdc270a 26** Emacs can be compiled with ACL support.
7c3d167f
RF
27This happens by default if a suitable support library is found at
28build time, like libacl on GNU/Linux. To prevent this, use the
ffdc270a 29configure option `--disable-acl'.
7c3d167f 30
2f23b3ab 31** Emacs can be compiled with file notification support.
671d4bfc
GM
32This happens by default if a suitable system library is found at
33build time. To prevent this, use the configure option
34`--with-file-notification-no'. See below for file-notify features.
35FIXME? This feature is not available for the Nextstep port. (?)
2f23b3ab 36
335142f9
GM
37** The configure option `without-compress-info' has been generalized,
38and renamed to `without-compress-install'. It now prevents compression
39of _any_ files during installation.
40
aec32f66 41** The configure option --with-crt-dir has been removed.
f1e496a5
EZ
42It is no longer needed, as the crt*.o files are no longer linked
43specially.
44
ae7bfbf5
JB
45** Directories passed to configure option `--enable-locallisppath' are
46no longer created during installation.
47
313546eb
LMI
48** Emacs can be compiled with zlib support. If this library is present
49(which it normally is on most systems), the function
7699d09e
LMI
50`zlib-decompress-region' becomes available, which can decompress gzip-
51and zlib-format compressed data.
313546eb 52
9524a13d
JD
53---
54** Emacs for NS (OSX, GNUStep) can be built with ImageMagick support.
55pkg-config is required to find ImageMagick libraries.
56
3fa2054e
JD
57** For OSX >= 10.5, the Core text based font backend from the Mac port is used.
58For GNUStep and OSX 10.4 the old backend is used.
59To use the old backend by default, do on the command line:
60% defaults write org.gnu.Emacs FontBackend ns
61
c57b2d76 62\f
95a32efb 63* Startup Changes in Emacs 24.4
c57b2d76
GM
64
65\f
95a32efb 66* Changes in Emacs 24.4
c6c08d3f 67
0a12fca0
EZ
68+++
69** Emacs now supports menus on text-mode terminals.
70If the terminal supports a mouse, clicking on the menu bar, or on
71sensitive portions of the mode line or header line, will drop down the
72menu defined at that position. Likewise, clicking C-mouse-2 or
73C-mouse-2 or C-mouse-3 on the text area will pop up the menus defined
74for those locations.
75
76If the text terminal does not support a mouse, you can activate the
77first menu-bar menu by typing F10, which invokes `menu-bar-open'.
78
79If you want the previous behavior, whereby F10 invoked `tmm-menubar',
80customize the option `tty-menu-open-use-tmm' to a non-nil value.
81(Typing M-` will always invoke `tmm-menubar', even if
82`tty-menu-open-use-tmm' is nil.)
83
29f47822
LL
84** Key ? also describes prefix bindings like C-h.
85
ed4fd9c5
DA
86+++
87** `cache-long-line-scans' has been renamed to `cache-long-scans'
88because it affects caching of paragraph scanning results as well.
89
61a5bb85
BG
90+++
91** `apropos-variable' is now `apropos-user-option'
92`apropos-user-option' shows all user options while `apropos-variable'
93shows all variables. When called with a universal prefix argument,
94the two commands swap their behaviors. When `apropos-do-all' is
95non-nil, they output the same results.
96
c6c08d3f
GM
97+++
98** `eval-defun' on an already defined defcustom calls the :set function,
99if there is one.
100
97a1cd9d
GM
101** If the new variable `enable-dir-local-variables' is nil,
102directory local variables are ignored. May be useful for some modes
103that want to ignore directory-locals while still respecting file-locals.
104
5dea55d2
CY
105** The option `set-mark-default-inactive' has been deleted.
106This unfinished feature was introduced by accident in Emacs 23.1;
107simply disabling Transient Mark mode does the same thing.
108
dc646358
CK
109** `initial-buffer-choice' can now specify a function to set up the
110initial buffer.
111
90582f05
GM
112** The *Messages* buffer is created in a new major mode `messages-buffer-mode',
113and read-only. Code that might create the *Messages* buffer should
114call the function `messages-buffer' to do so and set the mode.
115
ef099a94
MN
116** `remember-notes' creates a buffer whose content is saved on kill-emacs.
117You may think of it as a *scratch* buffer whose content is preserved.
118In fact, it was designed as a replacement for *scratch* buffer and can
119be used that way by setting `initial-buffer-choice' to `remember-notes'
120and `remember-notes-buffer-name' to "*scratch*". Without the second
121change, *scratch* buffer will still be there for notes that do not
122need to be preserved.
123
cbee2131
PE
124** `write-region-inhibit-fsync' now defaults to t in batch mode.
125
7c3d167f
RF
126** ACL support has been added.
127+++
128*** Emacs preserves the ACL entries of files when backing up.
129+++
130*** New functions `file-acl' and `set-file-acl' get and set the ACL
66447e07
EZ
131entries of a file. On GNU/Linux, the POSIX ACL interface is used via
132libacl. On MS-Windows, the NT Security APIs are used to emulate the
133POSIX ACL interfaces.
7c3d167f 134
99548339 135** New option `scroll-bar-adjust-thumb-portion'.
a219080b
EZ
136Available only on X, this option allows to control over-scrolling
137using the scroll bar (i.e. dragging the thumb down even when the end
138of the buffer is visible).
99548339 139
708e05f6
LMI
140** New function `add-face-text-property' has been added, which can be
141used to conveniently prepend/append new face attributes to text.
142
a6d63d97
GM
143** In compiled Lisp files, the header no longer includes a timestamp.
144
4e3f9230
YM
145** Multi-monitor support has been added.
146
147*** New functions `display-monitor-attributes-list' and
148`frame-monitor-attributes' can be used to obtain information about
149each physical monitor on multi-monitor setups.
150
cf13177e
YM
151*** The functions `display-pixel-width' and `display-pixel-height' now
152behave consistently among the platforms: they return the pixel width
153or height for all physical monitors associated with the given display
154as just they were on X11. To get information for each physical
155monitor, use the new functions above. Similar notes also apply to
156`x-display-pixel-width', `x-display-pixel-height', `display-mm-width',
157`display-mm-height', `x-display-mm-width', and `x-display-mm-height'.
158
61e56e2c
JB
159** New macro `alternatives-define' can be used to define generic commands.
160Generic commands are interactive functions whose implementation can be
161selected among several alternatives, as a matter of user preference.
162
18c26d81
JD
163** The blink cursor stops blinking after 10 blinks (default) on X and NS.
164You can change the default by customizing the variable blink-cursor-blinks.
165Also timers for blinking are stopped when no blinking is done, so Emacs does
166not consume CPU cycles.
167
6585d561
JB
168** New command `frameset-to-register' is now bound to `C-x r f', replacing
169`frame-configuration-to-register'. It offers similar functionality, plus
170some enhancements, like the ability to restore deleted frames. Command
171`frame-configuration-to-register' is still available, but unbound.
172
6950f152
KH
173** The command `quail-help' is deleted. Use `C-h C-\'
174(`describe-input-method') instead.
175
da9ea6d9
DG
176** The default value of `comment-use-global-state' is changed to t,
177and this variable has been marked obsolete.
178
c57b2d76 179\f
95a32efb 180* Editing Changes in Emacs 24.4
4f0552c2 181
b7d5bd82
TL
182** C-x TAB enters a transient interactive mode.
183You can then use the left/right cursor keys to move the block of text.
184
3ccc2d28
XF
185** `tab-stop-list' is now implicitly extended to infinity by repeating
186the last step. Its default value is changed to nil which means a tab
187stop every `tab-width' columns.
b7d5bd82 188
0aa3616e
SB
189** `split-window' is no longer a command, just a non-interactive function.
190As a command it was a special case of `split-window-below', and as such
191superfluous. After being reimplemented in Lisp, its interactive form
192was mistakenly retained.
193
a45b7647
JL
194** New commands `toggle-frame-fullscreen' and `toggle-frame-maximized',
195bound to <f11> and M-<f10>, respectively.
37f38bca 196
958614cf
GM
197** In keymaps where SPC scrolls, S-SPC now scrolls in the reverse direction.
198Eg View mode, etc.
199
4c672a0f
EZ
200+++
201** New option `visual-order-cursor-movement'.
202If this is non-nil, cursor motion with arrow keys will follow the
203visual order of characters on the screen: <left> always moves to the
204left, <right> always moves to the right, disregarding the surrounding
205bidirectional context.
206
c8af480d
LL
207** All register commands can now show help with preview.
208
0b1619da
LL
209** New command `kmacro-to-register' to store keyboard macros in registers.
210
ac2f8659
MY
211** Shell Script mode
212
213*** `sh-mode' now has the mode own `add-log-current-defun-function'.
214You can pick the name of the function and the variables with `C-x 4 a'.
215
4f0552c2 216\f
95a32efb 217* Changes in Specialized Modes and Packages in Emacs 24.4
4f0552c2 218
71e3276b
SM
219** SMIE indentation can be customized via `smie-config'.
220The customizaton can be guessed by Emacs by providing a sample indented
221file and letting SMIE learn from it.
222
223** sh-script now uses its SMIE indentation algorithm by default.
224
56ea7291
SM
225** The debugger's `e' command evaluates the code in the context at point.
226This includes using the lexical environment at point, which means that
227`e' now lets you access lexical variables as well.
228
26b3353a
TH
229** `eshell' now supports visual subcommands and options
230Eshell has been able to handle "visual" commands (interactive,
231non-line oriented commands such as top that require display
232capabilities not provided by eshell) by running them in an Emacs
233terminal emulator. See `eshell-visual-commands'.
234
235This feature has been extended to subcommands and options that make a
236usually line-oriented command a visual command. Typical examples are
237"git log" and "git <command> --help" which display their output in a
238pager by default. See `eshell-visual-subcommands' and
239`eshell-visual-options'.
240
3179b276
LMI
241** If your Emacs is compiled with libxml2 support, you can use the new
242built-in web browser `eww'.
243
c034abda
BG
244** `remember' can now store notes in separates files
245You can use the new function `remember-store-in-files' within the
246`remember-handler-functions' option.
247
248See `remember-data-directory' and `remember-directory-file-name-format'
249for new options related to this function.
deee89ff 250
fba1763d 251** More packages look for ~/.emacs.d/<foo> additionally to ~/.<foo>.
940e5099
SM
252Affected files:
253~/.emacs.d/timelog replaces ~/.timelog
940e5099
SM
254~/.emacs.d/vip replaces ~/.vip
255~/.emacs.d/viper replaces ~/.viper
256~/.emacs.d/ido.last replaces ~/.ido.last
257~/.emacs.d/kkcrc replaces ~/.kkcrc
258~/.emacs.d/quickurls replaces ~/.quickurls
259~/.emacs.d/idlwave replaces ~/.idlwave
260~/.emacs.d/bdfcache.el replaces ~/.bdfcache.el
261~/.emacs.d/places replaces ~/.emacs-places
262~/.emacs.d/shadows replaces ~/.shadows
263~/.emacs.d/shadow_todo replaces ~/.shadow_todo
264~/.emacs.d/strokes replaces ~/.strokes
265~/.emacs.d/notes replaces ~/.notes
266~/.emacs.d/type-break replaces ~/.type-break
d29bf51c
SB
267Also the following files used by the now obsolete otodo-mode.el:
268~/.emacs.d/todo-do replaces ~/.todo-do
269~/.emacs.d/todo-done replaces ~/.todo-done
270~/.emacs.d/todo-top replaces ~/.todo-top
271
e56221d5 272
c4f268a1
SM
273** Delphi mode is now called OPascal mode.
274*** All delphi-* variables and functions have been renamed to opascal-*.
02f473a4
JB
275*** `delphi-newline-always-indents' is not supported any more.
276Use `electric-indent-mode' instead.
c4f268a1
SM
277*** `delphi-tab' is gone, replaced by `indent-for-tab-command'.
278
0b1619da
LL
279** Eldoc Mode works properly in the minibuffer.
280
e5b5a34d
SM
281** jit-lock-debug-mode lets you use the debuggers on code run via jit-lock.
282
b14abca9
RW
283** completing-read-multiple's separator can now be a regexp.
284The default separator is changed to allow surrounding spaces around the comma.
285
19b748ad
TM
286** Battery
287
288*** Battery information via the BSD `apm' utility is now supported.
289
96673afe
JL
290** Buffer Menu
291
292*** `M-s a C-o' shows lines matching a regexp in marked buffers using Occur.
293
fd3a9a6b
GM
294** Calendar and Diary
295
3b5c03d3
GM
296*** New faces: `calendar-weekday-header', `calendar-weekend-header',
297`calendar-month-header'.
298
299*** New option `calendar-day-header-array'.
300
301*** The variable `calendar-font-lock-keywords' is obsolete.
302
fd3a9a6b 303+++
f8780a05 304*** New variable `diary-from-outlook-function', used by the command
fd3a9a6b
GM
305`diary-from-outlook'.
306
f6e8d3c1 307** VC and related modes
7aa7fff0 308
f6e8d3c1
XF
309*** In VC directory mode, `D' displays diffs between VC-controlled
310whole tree revisions.
311
312*** In VC directory mode, `L' lists the change log for the current VC
313controlled tree in a window.
314
d052d3bd
XF
315*** In VC directory mode, `I' shows a log of changes that will be
316received with a pull operation.
317
63191d9f
XF
318*** `C-x v G' (globally) and `G' (in VC directory mode) ignores a file
319under current version control system. When called with a prefix
320argument, you can remove a file from the ignored file list.
7aa7fff0 321
98ccf24e
XF
322*** `cvs-append-to-ignore' has been renamed to `vc-cvs-append-to-ignore'
323because it is moved to vc-cvs.el.
324
ba30c70f
GM
325** cl-lib
326
327*** New macro cl-tagbody.
328
329+++
330*** letf is now just an alias for cl-letf.
331
0e70ce93
PE
332** Calc
333
334*** Calc by default now uses the Gregorian calendar for all dates, and
335uses January 1, 1 AD as its day number 1. Previously Calc used the
336Julian calendar for dates before September 14, 1752, and it used
337December 31, 1 BC as its day number 1; the new scheme is more
338consistent with Calendar's calendrical system and day numbering.
339
340*** The new variable `calc-gregorian-switch' lets you configure the
341date when Calc switches from the Julian to the Gregorian calendar.
342Nil, the default value, means to always use the Gregorian calendar.
343The value (YEAR MONTH DAY) means to start using the Gregorian calendar
344on the given date.
345
86e100a6
GM
346*** Support for ISO 8601 dates.
347
5db9dace
JL
348** Desktop
349
350*** `desktop-auto-save-timeout' defines the number of seconds between
351auto-saves of the desktop.
352
b958c0ad 353*** `desktop-restore-frames', enabled by default, allows saving and
6585d561 354restoring the frame/window configuration (frameset). Additional options
36bec1b6 355`desktop-restore-in-current-display', `desktop-restore-reuses-frames'
6585d561 356and `desktop-restore-forces-onscreen' offer further customization.
39c0e36f 357
a2a538b1
CS
358** Dired
359
360*** New minor mode `dired-hide-details-mode' hides details.
361
21859ebc
EH
362** ERC
363
364*** New option `erc-accidental-paste-threshold-seconds'.
365If set to a number, this can be used to avoid accidentally paste large
366amounts of data into the ERC input.
367
ed02dcfa
RS
368** EPA
369
370*** New option `epa-mail-aliases'.
371
372You can set this to a list of alias expansions for keys to use
373in `epa-mail-encrypt'.
374
375If one element of the variable's value is ("foo@bar.com" "foo@hello.org"),
376that means: when one of the recipients of the message being encrypted
377is `foo@bar.com', encrypt the message for `foo@hello.org' instead.
378
379If one element of the variable's value is ("foo@bar.com"),
380that means: when one of the recipients of the message being encrypted
381is `foo@bar.com', ignore that name as regards encryption.
382This is useful to avoid a query when you have no key for that name.
383
7cc8ae06
GM
384---
385** New F90 mode option `f90-smart-end-names'.
386
02f473a4 387** Icomplete is a bit more like Ido.
21859ebc
EH
388*** key bindings to navigate through and select the completions.
389*** The icomplete-separator is customizable, and its default has changed.
390*** Removed icomplete-show-key-bindings.
1db9ceee
XF
391*** Icomplete-mode by defaults applies to all forms of minibuffer completion.
392(setq icomplete-with-completion-tables '(internal-complete-buffer))
393will revert to the old behavior.
394
21859ebc 395
3f0faa45
XF
396** Ido
397*** Ido has a manual now.
8121f089
XF
398*** `ido-use-virtual-buffers' takes a new value 'auto.
399*** `ido-decorations' has been slightly extended to give a bit more control.
3f0faa45 400
2a43515a 401** Image mode
20de6ab6
CW
402
403*** New commands `n' (`image-next-file') and `p' (`image-previous-file')
404visit the next image file and the previous image file in the same
405directory, respectively.
406
c0211c4e
GM
407*** New commands to show specific frames of multi-frame images.
408`f' (`image-next-frame') and `b' (`image-previous-frame') visit the
409next or previous frame. `F' (`image-goto-frame') shows a specific frame.
410
3a2ddc2d
GM
411*** New commands to speed up, slow down, or reverse animation.
412
2a43515a
CY
413---
414*** The command `image-mode-fit-frame' deletes other windows.
415When toggling, it restores the frame's previous window configuration.
416It also has an optional frame argument, which can be used by Lisp
417callers to fit the image to a frame other than the selected frame.
418
e38e6780
JL
419** Info
420
421*** New face `info-index-match' is used to highlight matches in index
422entries displayed by `Info-index-next', `Info-virtual-index' and
423`info-apropos'.
424
e5e4a942
JL
425** Hi-Lock
426
427*** New option `hi-lock-auto-select-face'. When non-nil, hi-lock commands
428will cycle through faces in `hi-lock-face-defaults' without prompting.
429
430+++
431*** New global command `M-s h .' (`highlight-symbol-at-point')
432highlights the symbol found near point without prompting,
433using the next face automatically.
434
d289938a 435** Search and Replace
279f9b06 436
e5e4a942
JL
437*** New global command `M-s .' (`isearch-forward-symbol-at-point')
438starts a symbol (identifier) incremental search forward with the
439symbol found near point added to the search string initially.
440
279f9b06
JL
441*** `C-x 8 RET' in Isearch mode reads a character by its Unicode name
442and adds it to the search string.
443
2db59b1d
XF
444*** `M-s i' in Isearch mode toggles the variable `isearch-invisible'
445between nil and the value of the option `search-invisible' (or `open'
446when it's nil).
01dea85f 447
d289938a
JL
448*** `query-replace' skips invisible text when `search-invisible' is nil,
449and opens overlays with hidden text when `search-invisible' is `open'.
450
80fa505f
AM
451+++
452*** By default, prefix arguments do not now terminate Isearch mode.
453Set `isearch-allow-prefix' to nil to restore old behavior.
454
6e8cfc81
JL
455*** More Isearch commands accept prefix arguments, namely
456`isearch-printing-char', `isearch-quote-char', `isearch-yank-word',
457`isearch-yank-line'.
458
a22289f7
JL
459*** Word search now matches whitespace at the beginning/end
460of the search string if it contains leading/trailing whitespace.
461In an incremental word search or when using a non-nil LAX argument
462of `word-search-regexp', the lax matching can also match part of
463the first word (in addition to the lax matching of the last word).
464The same rules are now applied to the symbol search with the difference
465that it matches symbols, and non-symbol characters between symbols.
466
5a3cbc03 467** MH-E has been updated to MH-E version 8.5.
6827cac1
BW
468See MH-E-NEWS for details.
469
13a40633
GM
470---
471** The unrmail command converts from BABYL to mboxrd rather than mboxo.
472Customize `unrmail-mbox-format' to change this.
473
474---
475** Similarly, customize `rmail-mbox-format' to influence some minor aspects
476of how Rmail displays non-MIME messages.
477
4f0552c2
GM
478+++
479** New function `ses-rename-cell' to give SES cells arbitrary names.
480
8b62d742
SM
481** trace-function was largely rewritten.
482New features include:
483- no prompting for the destination buffer, unless a prefix-arg was used.
484- additionally to prompting for a destination buffer, when a prefix-arg is
485 used, the user can enter a "context", i.e. Lisp expression whose value at the
486 time the function is entered/exited will be printed along with the function
487 name and arguments. Useful to trace the value of (current-buffer) or
488 (point) when the function is invoked.
489
9631677d
SS
490** New command `delete-duplicate-lines' has new types of operation:
491When its arg ADJACENT is non-nil (when called interactively with C-u C-u)
c38a186c
JL
492it works like the utility `uniq'. Otherwise by default it deletes
493duplicate lines everywhere in the region without regard to adjacency.
02f473a4
JB
494When its arg KEEP-BLANKS is non-nil (when called interactively with
495C-u C-u C-u), duplicate blank lines are preserved.
c38a186c 496
ad4de702
MN
497** New `cycle-spacing' command allows cycling between having just one
498space, no spaces, or reverting to the original spacing. Like
499`just-one-space' command it can handle or ignore newlines and
500leave different number of spaces.
501
d29bf51c
SB
502** Todo mode has been rewritten and enhanced.
503New features include:
504- support for multiple todo files and archive files of done items;
505- renaming, reordering, moving, merging, and deleting categories;
506- sortable tabular summaries of categories and the types of items they contain;
adc5dbce 507- cross-category lists of items filtered by specific criteria;
d29bf51c
SB
508- more fine-grained interaction with the Emacs diary, by being able to decide
509 for each todo item whether it appears in the Fancy Diary display;
510- highly flexible new item insertion and item editing;
511- moving items between categories, storing done items in their category or in
512 archive files, undoing or unarchiving done items;
513- reprioritizing items by inputting a numerical priority;
514- extensive customizability of operation and display, including numerous faces.
8bcced1f 515The Todo mode user manual describes all commands and most user options.
d29bf51c
SB
516To support some of these features, a new file format is used, which is
517incompatible with the old format; however, you can convert old todo and done
518item files to the new format on initializing the first new todo file, or at any
519later time with the provided conversion command. The old version of
520todo-mode.el has been made obsolete and renamed otodo-mode.el.
521
aefa2ead 522** Tramp
26280467 523
179923f7
MA
524*** The experimental url syntax for remote file names is withdrawn.
525
aefa2ead
MA
526+++
527*** New connection method "adb", which allows to access Android
19dc8b9e
MA
528devices by the Android Debug Bridge. The variable `tramp-adb-program'
529can be used to adapt the path of the "adb" program, if needed.
26280467 530
19dc8b9e
MA
531*** The connection methods "plink1", "ssh1", "ssh2", "scp1", "scp2",
532"scpc" and "rsyncc" are discontinued. The ssh option
533"ControlMaster=auto" is set automatically in all ssh-based methods,
534when possible.
26280467 535
ed7367b1
MA
536+++
537*** Handlers for `file-acl' and `set-file-acl' for remote machines
538which support POSIX ACLs.
aefa2ead 539
f1c7dee9
MA
540+++
541*** Handlers for `file-notify-add-watch' and `file-notify-rm-watch'
542for remote machines which support filesystem notifications.
543
238cebef
GM
544** VHDL mode
545
546*** New options: `vhdl-actual-generic-name', `vhdl-beautify-options'.
547
548*** New commands: `vhdl-fix-statement-region', `vhdl-fix-statement-buffer'.
549
433212bf
CY
550** Woman
551
552*** The commands `woman-default-faces' and `woman-monochrome-faces'
88c45e34 553are obsolete. Customize the `woman-*' faces instead.
433212bf 554
aa534cb7
AG
555** Eshell
556
f1c7dee9 557*** Added Eshell-Tramp module
aa534cb7 558External su and sudo commands are now the default; the internal,
f1c7dee9 559Tramp-using variants can still be used by enabling the eshell-tramp
aa534cb7
AG
560module.
561
750ae9b2
DG
562** Package
563
564*** The format of `archive-contents' files, generated by package
0fb17a18
DG
565repositories, has changed to allow a new (fifth) element in the data
566vectors, containing an associative list with extra properties.
750ae9b2
DG
567
568*** `describe-package' buffer uses the `:url' extra property to
569display a `Homepage' header, if it's present.
570
bb102690
GM
571** New term.el option `term-suppress-hard-newline'.
572
770de7cf
CY
573** Obsolete packages:
574
575*** longlines.el is obsolete; use visual-line-mode instead.
576
27c8b6eb
GM
577+++
578*** sup-mouse.el.
579
ce3e7725
CY
580*** terminal.el is obsolete; use term.el instead.
581
d29bf51c
SB
582*** The previous version of todo-mode.el is obsolete and renamed otodo-mode.el.
583
30bce3f0
MA
584*** xesam.el.
585
4e16ddf4
GM
586+++
587*** yow.el is obsolete; use fortune.el or cookie1.el instead.
588
5313bbc7
GM
589---
590*** The Info-edit command is obsolete. Editing Info nodes by hand
591has not been relevant for some time.
592
0463c1ef
PE
593** Shell
594
595*** `explicit-bash-args' now always defaults to use --noediting.
596During initialization, Emacs no longer expends a process to decide
597whether it is safe to use Bash's --noediting option. These days
598--noediting is ubiquitous; it was introduced in 1996 in Bash version 2.
599
990b9f68
MA
600+++
601** There is a new macro `skip-unless' for skipping ERT tests. See the manual.
602
4f0552c2 603\f
95a32efb 604* New Modes and Packages in Emacs 24.4
02f473a4 605
002668e1
TZ
606** New `superword-mode' in subword.el
607`superword-mode' overrides the default word motion commands to treat
608symbol_words as a single word, similar to what `subword-mode' does and
609using the same internal functions.
610
231d8498
SM
611** New nadvice.el package offering lighter-weight advice facilities.
612It is layered as:
613- add-function/remove-function which can be used to add/remove code on any
614 function-carrying place, such as process-filters or `<foo>-function' hooks.
615- advice-add/advice-remove to add/remove a piece of advice on a named function,
616 much like `defadvice' does.
617
8cd4636c
JB
618** New frameset.el package.
619It provides a set of operations to save a frameset (the state of all
620or a subset of the existing frames and windows, somewhat similar to a
621frame configuration), both in-session and persistently, and restore it
622at some point in the future.
623
fb830820
MA
624+++
625** The package filenotify.el provides an interface for file system
f1c7dee9
MA
626notifications. It requires, that Emacs is compiled with one of the
627low-level libraries gfilenotify.c, inotify.c or w32notify.c.
628
c57b2d76 629\f
95a32efb 630* Incompatible Lisp Changes in Emacs 24.4
da03ef8a 631
ef566920
BR
632** `(input-pending-p)' no longer runs other timers which are ready to
633run. The new optional CHECK-TIMERS param allows for the prior behavior.
634
a104f656
SM
635** `defvar' and `defcustom' in a let-binding affect the "external" default.
636
db3b7db5
SM
637** The syntax of ?» and ?« is now punctuation instead of matched parens.
638Some languages match those as »...« and others as «...» so better stay neutral.
639
0b31660d
SM
640** The default file coding for Emacs Lisp files is now utf-8.
641(See file-coding-system-alist.) In most cases, this change is transparent, but
642files that contain unusual characters without specifying an explicit coding
643system may fail to load with obscure errors.
179fcac8 644You should either convert them to utf-8 or add an explicit `coding:' cookie.
0b31660d 645
bfa3acd6
SM
646** overriding-terminal-local-map does not replace the local keymaps any more.
647It used to disable the minor mode, major mode, and text-property keymaps,
648whereas now it simply has higher precedence.
649
a0eb10b3 650** Default process filters and sentinels are not nil any more.
1aa8d505
SM
651Instead they default to a function which does what the nil value used to do.
652
25c09217
SM
653** `read-event' does not return decoded chars in ttys any more.
654Just as was the case in Emacs-22 and before, decoding of tty input according to
655keyboard-coding-system is not performed in read-event any more. But contrary
656to that past, it is still done before input-decode-map/function-key-map/...
657
99d0d6dc
SM
658** Removed inhibit-local-menu-bar-menus.
659
e02230bf
SM
660** frame-local variables that affect redisplay do not work any more.
661More specifically, the redisplay does not bother to check for a frame-local
662value when looking up variables.
663
eadf1faa
SM
664** nil and "unbound" are indistinguishable in symbol-function.
665`symbol-function' never signals `void-function' any more.
666`fboundp' returns non-nil if the symbol was `fset' to nil.
667
3c442f8b
SM
668** `defadvice' does not honor the `freeze' flag and cannot advise
669special-forms any more.
7db1bda8 670
da03ef8a
SM
671** `dolist' in lexical-binding mode does not bind VAR in RESULT any more.
672VAR was bound to nil which was not tremendously useful and just lead to
673spurious warnings about an unused var.
674
7c3d167f
RF
675** The return value of `backup-buffer' has changed.
676The second argument is no longer an SELinux context, instead it is an
677alist of extended attributes as returned by the new function
678`file-extended-attributes'. The attributes can be applied to another
679file using `set-file-extended-attributes'.
680
954b166e
PE
681** `visited-file-modtime' now returns -1 for nonexistent files.
682Formerly it returned a list (-1 LOW USEC PSEC), but this was ambiguous
683in the presence of files with negative time stamps.
1af4c220
GM
684
685** The cars of the elements in `interpreter-mode-alist' are now treated
2a08047a
GM
686as regexps rather than literal strings. Technically this is an
687incompatible change, but unless you are using interpreter-mode-alist
688for something (not just adding elements to it), it ought not to affect you.
1af4c220 689
c57b2d76 690\f
97a1cd9d 691* Lisp Changes in Emacs 24.4
57618ecf 692
2b2d19f2 693+++
ac776dae
EZ
694** Functions that pop up menus and dialogs now work on all terminal types,
695including TTYs.
0a12fca0
EZ
696This includes `x-popup-menu', `x-popup-dialog', `message-box',
697`yes-or-no-p', etc.
698
ffe759eb
EZ
699The function `display-popup-menus-p' will now return non-nil for a
700display or frame whenever a mouse is supported on that display or
701frame.
702
3e0b94e7
DC
703** New bool-vector set operation functions:
704*** `bool-vector-exclusive-or'
705*** `bool-vector-union'
706*** `bool-vector-intersection'
707*** `bool-vector-set-difference'
708*** `bool-vector-not'
25201ef0 709*** `bool-vector-subsetp'
3e0b94e7
DC
710*** `bool-vector-count-matches'
711*** `bool-vector-count-matches-at'
712
ebb99847
BR
713** Comparison functions =, <, >, <=, >= now take many arguments.
714
8c27f5ff
SM
715** The second argument of `eval' can now be a lexical-environment.
716
717** `with-demoted-errors' takes an additional argument `format'.
54bd972f
SM
718+++
719** New function `define-error'.
720
7fd72e2c
SM
721** New hook `tty-setup-hook'.
722
de0503df
SM
723+++
724** New macro with-eval-after-load. Like eval-after-load, but better behaved.
725
dd8791e9 726** Obsoleted functions:
89561f72 727*** `log10'
dd8791e9
SM
728*** `dont-compile'
729*** `lisp-complete-symbol'
730*** `field-complete'
731*** `minibuffer-completion-contents'
66fc57e3
JL
732*** `isearch-nonincremental-exit-minibuffer'
733*** `isearch-filter-visible'
e3eb1bb7 734*** `generic-make-keywords-list'
d3e9f3a8 735
d36ed1c8
SM
736** `with-wrapper-hook' is obsoleted by `add-function'.
737The few hooks that used with-wrapper-hook are replaced as follows:
738*** `abbrev-expand-function' obsoletes `abbrev-expand-functions'.
739*** `completion-in-region-function' obsoletes `completion-in-region-functions'.
740*** `filter-buffer-substring-function' obsoletes `filter-buffer-substring-functions'.
741
77c92cb9
RS
742** `split-string' now takes an optional argument TRIM.
743The value, if non-nil, is a regexp that specifies what to trim from
744the start and end of each substring.
d36ed1c8 745
f557c1b1
SM
746** `get-upcase-table' is obsoleted by the new `case-table-get-table'.
747
81606b10
RS
748** Support for filesystem notifications.
749Emacs now supports notifications of filesystem changes, such as
750creation, modification, and deletion of files. This requires the
2f23b3ab
MA
751`glib' API, or the 'inotify' API (on GNU/Linux systems only). On
752MS-Windows systems, this is supported for Windows XP and newer
753versions.
81606b10 754
add89f61
MA
755** Changes in autorevert.el
756
757---
758*** If Emacs is compiled with file notification support, notifications
759are used instead of checking the time stamp of the files. You can
760disable this by setting the user option `auto-revert-use-notify' to
761nil. Alternatively, a regular expression of directories to be
762excluded from file notifications can be specified by
763`auto-revert-notify-exclude-dir-regexp'.
764
765---
766*** The new user option `auto-revert-remote-files' enables reversion
767of remote files when set to non-nil.
768
1c4f115d
CY
769** Face changes
770
02f473a4 771*** The function `face-spec-set' is now analogous to `setq' for face specs.
1c4f115d
CY
772Its third arg now accepts values specifying exactly which face spec to
773set (defface, custom, or user spec), and it directly sets the relevant
774property using the supplied face spec.
775
776*** Face specs set via Custom themes now replace the `defface' spec
777rather than inheriting from it (as do face specs set via Customize).
778
073ca75b
JL
779*** New face characteristic (supports :underline (:style wave))
780specifies whether or not the terminal can display a wavy line.
781
f0c954fa
GM
782** Image API
783
784+++
785*** `image-animated-p' is now `image-multi-frame-p'.
786It returns non-nil for any image that contains multiple frames,
787whether or not it specifies a frame delay.
788
789+++
790*** When animating images that do not specify a frame delay,
791Emacs uses `image-default-frame-delay'.
792
793+++
794*** New functions `image-current-frame' and `image-show-frame' for getting
795and setting the current frame of a multi-frame image.
796
3a2ddc2d
GM
797*** You can change the speed of animated images.
798
1b796d6b
EZ
799** Changes in encoding and decoding of text
800
801---
802*** New coding-system `prefer-utf-8'.
803This is like `undecided' but prefers UTF-8 on decoding if the text to
804be decoded does not contain any invalid UTF-8 sequences. On encoding,
805any non-ASCII characters are automatically encoded as UTF-8.
806
807---
808*** New attributes of coding-systems whose type is `undecided'.
809Two new attributes, `:inhibit-null-byte-detection' and
810`:inhibit-iso-escape-detection', determine how to detect encoding of
811text that includes null bytes and ISO-2022 escape sequences,
812respectively. Each of these attributes can be either nil, zero, or
813t. If it is t, decoding text ignores null bytes and, respectively,
814ISO-2022 sequences. If it is nil, null bytes cause text to be decoded
815with no-conversion and ISO-2022 sequences cause Emacs to assume the
816text is encoded in one of the ISO-2022 encodings, such as
817iso-2022-7bit. If the value is zero, Emacs consults the variables
818inhibit-null-byte-detection and inhibit-iso-escape-detection, which
819see.
820The new attribute `:prefer-utf-8', if non-nil, causes Emacs to prefer
821UTF-8 encoding and decoding, whenever possible.
822
823These attributes are only meaningful for coding-systems of type
824`undecided'. (The type of a coding-system is determined by its
825`:coding-type' attribute and can be accessed by calling the
826`coding-system-type' function.)
827
954b166e
PE
828** The function `set-visited-file-modtime' now accepts a 0 or -1 argument
829with the same interpretation as the returned value of `visited-file-modtime'.
830
855b17af 831** time-to-seconds is not obsolete any more.
671d5c16 832** New functions special-form-p and macrop.
57618ecf
SM
833** Docstrings can be made dynamic by adding a `dynamic-docstring-function'
834text-property on the first char.
835
32e5c58c
SM
836** The `defalias-fset-function' property lets you catch calls to defalias
837and redirect them to your own function instead of `fset'.
838
70743157 839** The lock for 'DIR/FILE' is now 'DIR/.#FILE' and may be a regular file.
b5029e23
PE
840When you edit DIR/FILE, Emacs normally creates a symbolic link
841DIR/.#FILE as a lock that warns other instances of Emacs that DIR/FILE
842is being edited. Formerly, if there was already a non-symlink file
843named DIR/.#FILE, Emacs fell back on the lock names DIR/.#FILE.0
844through DIR/.#FILE.9. These fallbacks have been removed, so that
845Emacs now no longer locks DIR/FILE in that case.
846
70743157
PE
847On file systems that do not support symbolic links, the lock is now a
848regular file with contents being what would have been in the symlink.
b5029e23 849
97976f9f
PE
850** The 9th element returned by `file-attributes' is now unspecified.
851Formerly, it was t if the file's gid would change if file were deleted
852and recreated. This value has been inaccurate for years on many
853platforms, and nobody seems to have noticed or cared.
854
855** The function `file-ownership-preserved-p' now has an optional
856argument GROUP which causes it check for file group too. This can be
857used in place of the 9th element of `file-attributes'.
858
859** New functions `group-gid' and `group-real-gid'.
860
7c3d167f
RF
861** The 6th argument to `copy-file' has been renamed to
862`preserve-extended-attributes' as it now handles both SELinux context
863and ACL entries.
864
67982e2b
SM
865** The `common-substring' argument of display-completion-list is obsolete.
866Either use `completion-all-completions' which already returns highlighted
867strings (including for partial or substring completion) or call
868`completion-hilit-commonality' to add the highlight.
869
8fa2654e
CS
870** Changes to the Emacs Lisp Coding Conventions in Emacs 24.4
871
872*** The package descriptor and name of global variables, constants,
0a2da075 873and functions should be separated by two hyphens if the symbol is not
8fa2654e
CS
874meant to be used by other packages.
875
c57b2d76 876\f
97a1cd9d 877* Changes in Emacs 24.4 on Non-Free Operating Systems
95a32efb 878
7605d081
GM
879** The procedure for building Emacs on MS-Windows has changed.
880It is now built by running the same configure script as on all other
881platforms. This requires the MSYS environment and MinGW development
882tools. See the updated instructions in nt/INSTALL for details.
671d4bfc
GM
883
884Using the Posix configure script and Makefile's also means a change in
885the directory structure of the Emacs installation on Windows. It is
886now the same as on GNU and Unix systems. In particular, the auxiliary
887programs, such as cmdproxy.exe and hexl.exe, are in
888libexec/emacs/VERSION/i686-pc-mingw32 (where VERSION is the Emacs
889version), version-independent site-lisp is in share/emacs/site-lisp,
890version-specific Lisp files are in share/emacs/VERSION/lisp and in
891share/emacs/VERSION/site-lisp, Info docs are in share/info, and data
892files are in share/emacs/VERSION/etc. (Emacs knows about all these
893directories and will find the files in there automatically; there's no
894need to set any variables due to this change.)
895
5248293f
GM
896+++
897** The "generate a backtrace on fatal error" feature now works on MS Windows.
898The backtrace is written to the 'emacs_backtrace.txt' file in the
899directory where Emacs was running.
900
8549f9e8
EZ
901+++
902** The variable `buffer-file-type' is no longer supported.
903Setting it has no effect, and %t in the mode-line format is ignored.
904Likewise, `file-name-buffer-file-type-alist' is now obsolete, and
905modifying it has no effect.
906
343a2aef
EZ
907---
908** Lock files now work on MS-Windows.
909This allows to avoid losing your edits if the same file is being
910edited in another Emacs session or by another user. See the node
911"Interlocking" in the Emacs User Manual for the details. To disable
912file locking, customize `create-lockfiles' to nil.
913
c57b2d76
GM
914** Improved fullscreen support on Mac OS X.
915Both native (>= OSX 10.7) and "old style" fullscreen are supported.
916Customize `ns-use-native-fullscreen' to change style. For >= 10.7
917native is the default.
918
95a32efb 919\f
2a1e2476 920* Installation Changes in Emacs 24.3
b8df54ff 921
6bc66c10 922** The default X toolkit is now Gtk+ version 3.
823b2fb6
GM
923If you don't pass `--with-x-toolkit' to configure, or if you use
924`--with-x-toolkit=gtk' or `--with-x-toolkit=yes', configure will try
925to build with Gtk+ version 3, and if that fails, try Gtk+ version 2.
d71a6517 926You can explicitly require a specific version by passing
823b2fb6 927`--with-x-toolkit=gtk2' or `--with-x-toolkit=gtk3' to configure.
da3d2105 928
6bc66c10 929** New configure option `--enable-link-time-optimization', to utilize
da3d2105
DA
930an appropriate feature provided by GCC since version 4.5.0.
931
33cb2043
GM
932** New configure option `--without-all' to disable most of the optional
933features (image support, etc.) that are normally enabled by default.
b8df54ff 934
33cb2043
GM
935** New configure option `--enable-gcc-warnings' (for developing/debugging
936Emacs). If building with GCC, this enables compile-time checks that
64420fcd
GM
937warn/give errors about possibly-questionable C code. On a recent GNU
938system there should be no warnings; on older and on non-GNU systems
939the results may be useful to developers.
b8df54ff 940
823b2fb6 941** The configure option `--enable-use-lisp-union-type' has been
6bc66c10 942renamed to `--enable-check-lisp-object-type', as the resulting
d71a6517
GM
943Lisp_Object type no longer uses a union to implement the compile time
944check that this option enables.
945
823b2fb6 946** The configure option `--disable-maintainer-mode' has been removed,
501390c5
PE
947as it was confusingly-named and rarely useful.
948
f14a4380
GM
949** The configure options `--program-prefix', `--program-suffix', and
950`--program-transform-name' apply to more than just the installed
951binaries. Now they also affect the man pages, icons, and the
952etc/emacs.desktop file; but not the info pages, since this would break
953links between the various manuals.
1a9c6830 954
823b2fb6
GM
955** You can use `NO_BIN_LINK=t make install' to prevent the installation
956overwriting "emacs" in the installation bin/ directory with a link
6bc66c10 957to "emacs-VERSION".
823b2fb6 958
a4a18b8b
GM
959** Emacs uses libtinfo in preference to libncurses, if available.
960
187e9b90
GM
961** On FreeBSD and NetBSD, configure no longer adds /usr/local/lib and
962/usr/pkg/lib to the linker search path. You must add them yourself if
963you want them.
964
6bc66c10 965** The standalone scripts `rcs-checkin' and `vcdiff' have been removed
276d5f5d
GM
966(from the bin and libexec directories, respectively). The former is
967no longer relevant, the latter is replaced by lisp (in vc-sccs.el).
968
a1ed8b05 969\f
2a1e2476 970* Startup Changes in Emacs 24.3
e5fcdb5e
GM
971
972** Emacs no longer searches for `leim-list.el' files beneath the standard
973lisp/ directory. There should not be any there anyway. If you have
823b2fb6 974been adding them there, put them somewhere else; e.g., site-lisp.
e5fcdb5e 975
4107c81e
GM
976** The `--no-site-lisp' command line option now works for Nextstep builds.
977
a1ed8b05 978\f
2a1e2476 979* Changes in Emacs 24.3
a1ed8b05 980
6bc66c10 981** Help
c89926a5 982
6bc66c10 983*** `C-h f' (`describe-function') can now perform autoloading.
c89926a5
CY
984When this command is called for an autoloaded function whose docstring
985contains a key substitution construct, that function's library is
986automatically loaded, so that the documentation can be shown
987correctly. To disable this, set `help-enable-auto-load' to nil.
988
989*** `C-h f' now reports previously-autoloaded functions as "autoloaded",
990even after their associated libraries have been loaded (and the
991autoloads have been redefined as functions).
992
6bc66c10 993** ImageMagick
cd996018 994
6bc66c10
GM
995*** Images displayed via ImageMagick now support transparency and the
996:background image specification property.
cd996018 997
6bc66c10 998*** When available, ImageMagick support is automatically enabled.
c505aaeb
CY
999It is no longer necessary to call `imagemagick-register-types'
1000explicitly to install ImageMagick image types; that function is called
7d806bfe 1001automatically at startup, or when customizing an imagemagick- option.
2f940384 1002
c505aaeb 1003*** Setting `imagemagick-types-inhibit' to t now disables the use of
823b2fb6
GM
1004ImageMagick to view images. (You must call `imagemagick-register-types'
1005afterwards if you do not use customize to change this.)
2f940384 1006
7afbaca4 1007*** The new variable `imagemagick-enabled-types' also affects which
60b5f187
GM
1008ImageMagick types are treated as images. The function
1009`imagemagick-filter-types' returns the list of types that will be
1010treated as images.
c505aaeb 1011
f3f9606c
LMI
1012*** ImageMagick images now support the :max-width and :max-height
1013keywords.
1014
8259030d 1015*** Some data types aren't auto-detected by ImageMagick. Adding
c6b7ccaa
LMI
1016:format to `create-image' may help if the content type is in the
1017new variable `image-format-suffixes'.
8259030d 1018
6bc66c10
GM
1019** Minibuffer
1020
1021*** In minibuffer filename prompts, `C-M-f' and `C-M-b' now move to the
1022next and previous path separator, respectively.
c505aaeb 1023
6bc66c10
GM
1024*** `minibuffer-electric-default-mode' can shorten "(default ...)" to "[...]"
1025in minibuffer prompts. Just set `minibuffer-eldef-shorten-default'
1026non-nil before enabling the mode.
1027
1028** Mode line
1029
1030*** New option `mode-line-default-help-echo' specifies the help text
1031(shown in a tooltip or in the echo area) for any part of the mode line
1032that does not have its own specialized help text.
1033
1034*** You can now click mouse-3 in the coding system indicator to invoke
1035`set-buffer-file-coding-system'.
1036
1037** Server and client
2f940384 1038
f938eda9
CY
1039*** emacsclient now obeys string values for `initial-buffer-choice',
1040if it is told to open a new frame without specifying any file to visit
1041or expression to evaluate.
db80bdc8 1042
f938eda9 1043*** New option `server-auth-key' specifies a shared server key.
f938eda9
CY
1044
1045** Emacs now generates backtraces on fatal errors.
1046On encountering a fatal error, Emacs now outputs a textual description
1047of the fatal signal, and a short backtrace on platforms like glibc
5248293f 1048that support backtraces.
2e2d2a13 1049
6bc66c10
GM
1050** `C-x C-q' is now bound to the new minor mode `read-only-mode'.
1051This minor mode replaces `toggle-read-only', which is now obsolete.
1052
1053** Most `y-or-n' prompts now allow you to scroll the selected window.
1054Typing `C-v' or `M-v' at a y-or-n prompt scrolls forward or backward
1055respectively, without exiting from the prompt.
1056
1057** In the Package Menu, newly-available packages are listed as "new",
1058and sorted above the other "available" packages by default.
1059
f938eda9
CY
1060** If your Emacs was built from a bzr checkout, the new variable
1061`emacs-bzr-version' contains information about the bzr revision used.
de6ff46d 1062
6bc66c10 1063** New option `create-lockfiles' specifies usage of lockfiles.
f938eda9
CY
1064It defaults to t. Changing it to nil inhibits the creation of lock
1065files (use this with caution).
dc0f75c8 1066
6bc66c10
GM
1067** New option `enable-remote-dir-locals', if non-nil, allows directory-local
1068variables on remote hosts.
21ffb35a 1069
f85f636a
CY
1070** The entry for PCL-CVS has been removed from the Tools menu.
1071The PCL-CVS commands are still available via the keyboard.
1072
6bc66c10
GM
1073** Using "unibyte: t" in Lisp source files is obsolete.
1074Use "coding: raw-text" instead.
1075
e78e7e48
CY
1076** In the buffer made by `M-x report-emacs-bug', the `C-c m' binding
1077has been changed to `C-c M-i' (`report-emacs-bug-insert-to-mailer').
1078The previous binding, introduced in Emacs 24.1, was a mistake, because
1079`C-c LETTER' bindings are reserved for user customizations.
1080
6bc66c10 1081** Internationalization
2f940384 1082
f938eda9 1083*** New language environment: Persian.
2f940384 1084
f938eda9
CY
1085*** New input method `vietnamese-vni'.
1086
6bc66c10 1087** Nextstep (GNUstep / Mac OS X) port
2f940384 1088
823b2fb6 1089*** Support for fullscreen and the frame parameter fullscreen.
2f940384 1090
1a9c6830
GM
1091*** A file dialog is used for open/save operations initiated from the
1092menu/toolbar.
1093
a1ed8b05 1094\f
2a1e2476 1095* Editing Changes in Emacs 24.3
c25df26e 1096
6bc66c10 1097** Search and Replace
d39d3c8e 1098
f938eda9
CY
1099*** Non-regexp Isearch now performs "lax" space matching.
1100Each sequence of spaces in the supplied search string may match any
1101sequence of one or more whitespace characters, as specified by the
1102variable `search-whitespace-regexp'. (This variable is also used by a
823b2fb6 1103similar existing feature for regexp Isearch.)
2f940384 1104
f938eda9
CY
1105*** New Isearch command `M-s SPC' toggles lax space matching.
1106This applies to both ordinary and regexp Isearch.
2f940384 1107
f938eda9
CY
1108*** New option `replace-lax-whitespace'.
1109If non-nil, `query-replace' uses flexible whitespace matching too.
1110The default is nil.
2f940384 1111
b9cb2387
JL
1112*** Global `M-s _' starts a symbol (identifier) incremental search,
1113and `M-s _' in Isearch toggles symbol search mode.
1114`M-s c' in Isearch toggles search case-sensitivity.
1115
6bc66c10 1116** Navigation commands
48de8b12 1117
6bc66c10
GM
1118*** New binding `M-g c' for `goto-char'.
1119
1120*** New binding `M-g TAB' for `move-to-column'.
1121
1122*** `M-g TAB' (`move-to-column') prompts for a column number if called
1123interactively with no prefix arg. Previously, it moved to column 1.
1124
1125** New option `yank-handled-properties' allows processing of text
1126properties on yanked text, in ways that are more general than just
1127removing them (as is done by `yank-excluded-properties').
48de8b12 1128
48de8b12
CY
1129** New option `delete-trailing-lines' specifies whether
1130M-x delete-trailing-whitespace should delete trailing lines at the end
1131of the buffer. It defaults to t.
1132
f938eda9 1133** `C-u M-=' now counts lines/words/characters in the entire buffer.
826b3235 1134
48de8b12
CY
1135** `C-x 8 RET' is now bound to `insert-char', which is now a command.
1136`ucs-insert' is now an obsolete alias for `insert-char'.
b2459884 1137
48de8b12
CY
1138** The `z' key no longer has a binding in most special modes.
1139It used to be bound to `kill-this-buffer', but `z' is too easy to
1140accidentally type.
f938eda9 1141
6bc66c10
GM
1142** New command `C-x r M-w' (`copy-rectangle-as-kill').
1143It copies the region-rectangle as the last rectangle kill.
f938eda9 1144
6bc66c10 1145** Registers
f938eda9 1146
823b2fb6 1147*** `C-x r +' is now overloaded to invoke `append-to-register'.
f938eda9 1148
f938eda9 1149*** New option `register-separator' specifies the register containing
823b2fb6
GM
1150the text to put between collected texts for use with
1151M-x append-to-register and M-x prepend-to-register.
f1f4dba0 1152
a1ed8b05 1153\f
2a1e2476 1154* Changes in Specialized Modes and Packages in Emacs 24.3
ae4969c2 1155
6bc66c10 1156** Common Lisp emulation (CL)
f938eda9 1157
89660017 1158*** CL's main entry is now (require 'cl-lib).
823b2fb6
GM
1159`cl-lib' is like the old `cl' except that it uses the namespace cleanly;
1160i.e., all its definitions have the "cl-" prefix (and internal definitions
1161use the "cl--" prefix).
7c1898a7 1162
823b2fb6
GM
1163If `cl' provided a feature under the name `foo', then `cl-lib'
1164provides it under the name `cl-foo' instead; with the exceptions of the
1165few `cl' definitions that had to use `foo*' to avoid conflicts with
1166pre-existing Elisp entities. These have been renamed to `cl-foo'
1167rather than `cl-foo*'.
7c1898a7 1168
92246540 1169The old `cl' is now deprecated and is mainly just a bunch of aliases that
823b2fb6 1170provide the old, non-prefixed names. Some exceptions are listed below:
7c1898a7 1171
89660017
SM
1172*** `cl-flet' is not like `flet' (which is deprecated).
1173Instead it obeys the behavior of Common-Lisp's `flet'.
e8693c96
GM
1174In particular, in cl-flet function definitions are lexically scoped,
1175whereas in flet the scoping is dynamic.
89660017
SM
1176
1177*** `cl-labels' is slightly different from `labels'.
823b2fb6
GM
1178The difference is that it relies on the `lexical-binding' machinery
1179(as opposed to the `lexical-let' machinery used previously) to capture
1180definitions in closures, so such closures will only work if `lexical-binding'
1181is in use.
89660017 1182
f94b04fc 1183*** `cl-letf' is not exactly like `letf'.
4ddedf94
GM
1184The only difference is in details that relate to some deprecated usage
1185of `symbol-function' in place forms.
f94b04fc 1186
89660017 1187*** `progv' was rewritten to use the `let' machinery.
823b2fb6
GM
1188A side effect is that variables without corresponding values are bound
1189to nil rather than being made unbound.
89660017 1190
9512f820
GM
1191*** The following methods of extending `setf' are obsolete
1192(use features from gv.el instead):
1193`define-modify-macro' (use `gv-letplace')
031b2ea7
GM
1194`defsetf' (use `gv-define-simple-setter' or `gv-define-setter')
1195`define-setf-expander' (use `gv-define-setter' or `gv-define-expander')
2b4da3ff 1196`get-setf-method' no longer exists (see "Incompatible Lisp Changes")
f94b04fc 1197
6bc66c10 1198** Diff mode
f938eda9 1199
6bc66c10
GM
1200*** Changes are now highlighted using the same color scheme as in
1201modern VCSes. Deletions are displayed in red (new faces
1202`diff-refine-removed' and `smerge-refined-removed', and new definition
1203of `diff-removed'), insertions in green (new faces `diff-refine-added'
1204and `smerge-refined-added', and new definition of `diff-added').
f938eda9 1205
6bc66c10
GM
1206*** The variable `diff-use-changed-face' defines whether to use the
1207face `diff-changed', or `diff-removed' and `diff-added' to highlight
1208changes in context diffs.
2f940384 1209
6bc66c10
GM
1210*** The new command `diff-delete-trailing-whitespace' removes trailing
1211whitespace introduced by a diff.
f938eda9 1212
6bc66c10
GM
1213** Ediff now uses the same color scheme as Diff mode.
1214
1215** Python mode
1216
1217A new version of python.el, which provides several new features, including:
1218per-buffer shells, better indentation, Python 3 support, and improved
1219shell-interaction compatible with iPython (and virtually any other
1220text based shell).
1221
1222*** Some user options have been replaced/renamed, including (old -> new):
1223**** python-indent -> python-indent-offset
1224**** python-guess-indent -> python-indent-guess-indent-offset
1225**** python-pdbtrack-do-tracking-p -> python-pdbtrack-activate
1226**** python-use-skeletons -> python-skeleton-autoinsert
1227
1228*** Some user options have been removed, including:
1229
1230**** `python-indent-string-contents': Strings are never indented.
1231
1232**** `python-honour-comment-indentation':
d5b1b1aa 1233Comments are always considered as indentation markers.
6bc66c10
GM
1234
1235**** `python-continuation-offset': Indentation is automatically
1236calculated in a pep8 compliant way depending on the context.
1237
1238**** `python-shell-prompt-alist', `python-shell-continuation-prompt-alist':
1239Have no direct mapping as the shell interaction is completely different.
1240
1241**** `python-python-command', `python-jython-command':
1242Replaced by `python-shell-interpreter'.
1243
1244**** `inferior-python-filter-regexp', `python-remove-cwd-from-path',
1245`python-pdbtrack-minor-mode-string', `python-source-modes':
1246No longer relevant.
1247
1248*** Some commands have been replaced (old -> new):
1249**** python-insert-class -> python-skeleton-class
1250**** python-insert-def -> python-skeleton-def
1251**** python-insert-for -> python-skeleton-for
1252**** python-insert-if -> python-skeleton-if
1253**** python-insert-try/except -> python-skeleton-try
1254**** python-insert-try/finally -> python-skeleton-try
1255**** python-insert-while -> python-skeleton-while
1256**** python-find-function -> python-nav-jump-to-defun
1257**** python-next-statement -> python-nav-forward-sentence
1258**** python-previous-statement -> python-nav-backward-sentence
1259**** python-beginning-of-defun-function -> python-nav-beginning-of-defun
1260**** python-end-of-defun-function -> python-nav-end-of-defun
1261**** python-send-buffer -> python-shell-send-buffer
1262**** python-send-defun -> python-shell-send-defun
1263**** python-send-region -> python-shell-send-region
1264**** python-send-region-and-go -> emulate with python-shell-send-region
1265and python-shell-switch-to-shell
1266**** python-send-string -> python-shell-send-string
1267**** python-switch-to-python -> python-shell-switch-to-shell
1268**** python-describe-symbol -> python-eldoc-at-point
e76f0800 1269
f938eda9
CY
1270** D-Bus
1271
f938eda9
CY
1272*** New variables `dbus-compiled-version' and `dbus-runtime-version'.
1273
f938eda9
CY
1274*** The D-Bus object manager interface is implemented.
1275
f938eda9
CY
1276*** Variables of type :(u)int32 and :(u)int64 accept floating points,
1277if their value does not fit into Emacs's integer range.
1278
823b2fb6
GM
1279*** The function `dbus-call-method' is now non-blocking.
1280It can be interrupted by `C-g'. `dbus-call-method-non-blocking' is obsolete.
f938eda9 1281
823b2fb6 1282*** Signals can also be sent as unicast messages.
f938eda9 1283
f938eda9 1284*** The argument list of `dbus-register-signal' has been extended,
6bc66c10 1285according to the new match rule types of D-Bus.
f938eda9 1286
f938eda9
CY
1287*** `dbus-init-bus' supports private connections.
1288
f938eda9
CY
1289*** There is a new function `dbus-setenv'.
1290
6bc66c10
GM
1291** `desktop-path' no longer includes the "." directory.
1292Desktop files are now located in ~/.emacs.d by default.
f938eda9
CY
1293
1294** Dired
2f940384 1295
f938eda9
CY
1296*** `dired-do-async-shell-command' executes each file sequentially
1297if the command ends in `;' (when operating on multiple files).
1298Otherwise, it executes the command on each file in parallel.
2f940384 1299
823b2fb6
GM
1300*** Typing `M-n' in the minibuffer of `dired-do-chmod', `dired-do-chgrp',
1301`dired-do-chown', and `dired-do-touch' yanks the attributes of the
f938eda9 1302file at point.
2f940384 1303
f938eda9 1304*** When the region is active, `m' (`dired-mark'), `u' (`dired-unmark'),
823b2fb6 1305`DEL' (`dired-unmark-backward'), and `d' (`dired-flag-file-deletion')
f938eda9 1306mark/unmark/flag all files in the active region.
2f940384 1307
88c45e34 1308*** The minibuffer default for `=' (`dired-diff') has changed.
f938eda9
CY
1309It is now the backup file for the file at point, if one exists.
1310In Transient Mark mode the default is the file at the active mark.
2f940384 1311
f938eda9
CY
1312*** `M-=' is no longer bound to `dired-backup-diff' in Dired buffers.
1313The global binding for `M-=', `count-words-region' is in effect.
1314
02969baf
GM
1315** ERC
1316
6e5e9b70
GM
1317*** New module "notifications", which can send a notification when you
1318receive a private message or your nickname is mentioned.
02969baf
GM
1319
1320*** ERC will look up server/channel names via auth-source and use any
1321channel keys found.
f938eda9 1322
274f5de6
GM
1323*** New option `erc-lurker-hide-list', similar to `erc-hide-list', but
1324only applies to messages sent by lurkers.
f925b109 1325
6bc66c10 1326** reStructuredText mode
f938eda9 1327
6bc66c10
GM
1328*** Keybindings (see `C-c C-h'), TAB indentation, filling and auto-filling,
1329fontification, comment handling, and customization have all been revised
1330and improved.
f938eda9 1331
6bc66c10 1332*** Support for `imenu' and `which-function-mode'.
f938eda9 1333
6bc66c10
GM
1334*** The reStructuredText syntax is more closely covered.
1335Sphinx support has been improved.
f938eda9 1336
6bc66c10 1337*** `rst-insert-list' inserts new list or continues existing lists.
f938eda9 1338
6bc66c10 1339*** A negative prefix argument always works for `rst-adjust'.
f938eda9 1340
6bc66c10 1341*** The window configuration is reset after displaying a TOC.
bc7be45d 1342
6bc66c10 1343*** The constant `rst-version' describes the rst.el package version.
358c19d9 1344
dba3cda3
GM
1345** Ruby mode
1346
1347*** Support for percent literals and recognition of regular expressions
1348in method calls without parentheses with more methods, including Cucumber
1349steps definitions.
1350
1351*** Improved syntax highlighting and indentation.
1352
1353*** New command `ruby-toggle-block', bound to `C-c {'.
1354
1355*** Some non-standard keybindings/commands have been removed:
1356
1357**** `ruby-electric-brace'; use `electric-indent-mode' instead.
1358
1359**** `ruby-mark-defun'; use `mark-defun'.
1360
1361**** `ruby-beginning-of-defun' and `ruby-end-of-defun' are replaced by
1362appropriate settings for the variables `beginning-of-defun-function'
1363and `end-of-defun-function'.
1364
1365**** Non-standard keybindings for `backward-kill-word', `comment-region',
1366`reindent-then-newline-and-indent' and `newline' have been removed.
1367
6bc66c10 1368** Shell Script mode
40d8bcb8 1369
6bc66c10 1370*** Pairing of parens/quotes uses `electric-pair-mode' instead of skeleton-pair.
40d8bcb8 1371
6bc66c10 1372*** `sh-electric-here-document-mode' now controls auto-insertion of here-docs.
40d8bcb8 1373
6bc66c10 1374*** `sh-use-smie' lets you choose a new indentation and navigation code.
40d8bcb8 1375
6bc66c10 1376** VHDL mode
40d8bcb8 1377
6bc66c10 1378*** The free software compiler GHDL is supported (and now the default).
40d8bcb8 1379
6bc66c10 1380*** Support for the VHDL-AMS packages has been added/updated.
40d8bcb8 1381
6bc66c10 1382*** Updated to the 2002 revision of the VHDL standard.
40d8bcb8 1383
6bc66c10 1384*** Accepts \r and \f as whitespace.
40d8bcb8 1385
6bc66c10 1386** Apropos
40d8bcb8 1387
6bc66c10
GM
1388*** The faces used by Apropos are now directly customizable.
1389These faces are named `apropos-symbol', `apropos-keybinding', and so on;
1390see the `apropos' Custom group for details.
d13c8be6 1391
6bc66c10
GM
1392*** The old options whose values specified faces to use have been removed
1393(i.e. `apropos-symbol-face', `apropos-keybinding-face', etc.).
d13c8be6 1394
6bc66c10 1395** Buffer Menu
d13c8be6 1396
6bc66c10 1397*** This package has been rewritten to use Tabulated List mode.
d13c8be6 1398
6bc66c10
GM
1399*** Option `Buffer-menu-buffer+size-width' is now obsolete.
1400Use `Buffer-menu-name-width' and `Buffer-menu-size-width' instead.
d13c8be6 1401
86e100a6
GM
1402** Calc
1403
1404*** Algebraic simplification mode is now the default.
1405To restrict to the limited simplifications given by the former
1406default simplification mode, use `m I'.
1407
6bc66c10 1408** Calendar
d13c8be6 1409
6bc66c10
GM
1410*** You can customize the header text that appears above each calendar month.
1411See the variable `calendar-month-header'.
d13c8be6 1412
6bc66c10 1413*** New LaTeX calendar style, produced by `cal-tex-cursor-week2-summary'.
ee97deee 1414
6bc66c10
GM
1415*** The calendars produced by cal-html include holidays.
1416Customize `cal-html-holidays' to change this.
8b0823d6 1417
0058cae2
GM
1418** CEDET
1419
1420*** The major modes from the parser generators "Bovine" and "Wisent"
1421are now properly integrated in Emacs. The file suffixes ".by" and ".wy"
1422are in `auto-mode-alist', and the corresponding manuals are included.
1423
1424*** EDE
1425
1426**** Menu support for the "Configuration" feature. This allows users to
1427choose the active configuration (such as debug or install) from the menu.
1428
1429**** New command `ede-set' to interactively set project-local variables.
1430
1431**** Support for compiling, debugging, and running in "generic" projects.
1432
1433**** Autoconf editing support for M4 macros with complex arguments.
1434
1435**** Compilation support for the "linux" project type.
1436
1437**** "simple" projects have been removed; use "generic" projects instead.
1438
1439*** Semantic
1440
1441**** Support for parsing #include statements inside a namespace in C/C++.
1442
1443**** Improved support for 'extern "C"' declarations in C/C++.
1444
1445**** The ability to ignore more common special C/C++ preprocessor symbols,
1446such as '__nonnull' and '__asm'. Add '__cplusplus' macro when parsing C++.
1447If available, include cdefs.h as an additional source of preprocessor symbols.
1448
1449**** Improved C/C++ function pointer parsing.
1450
1451**** In Python, support for converting imports to include file names.
1452
1453**** Ability to dynamically determine the Python load path.
1454
1455**** Support for the Python 'WITH' and 'AT' keywords.
1456
1457**** Improved tooltip completion.
1458
1459*** SRecode
1460
1461**** The SRecode manual is now included.
1462
1463**** Tag generation supports constructor/destructor settings and system
1464include differentiation.
1465
1466**** Addition of 'Framework' support: Frameworks are specified when a
1467particular kind of library (such as Android) is needed in a common language
1468mode (like Java).
1469
1470**** Support for nested templates and let variables override based on priority.
1471
1472**** Support for merging tables from multiple related modes, such as
1473default -> c++ -> arduino.
1474
6bc66c10 1475** Compile has a new option `compilation-always-kill'.
42917e79 1476
6bc66c10 1477** Customize
35d98877 1478
6bc66c10 1479*** `custom-reset-button-menu' now defaults to t.
35d98877 1480
6bc66c10
GM
1481*** Non-option variables are never matched in `customize-apropos' and
1482`customize-apropos-options' (i.e., the prefix argument does nothing for
1483these commands now).
782fbf2a 1484
f938eda9 1485** Term
782fbf2a 1486
823b2fb6
GM
1487*** The variables `term-default-fg-color' and `term-default-bg-color'
1488are now deprecated in favor of the customizable face `term'.
fc72b15c 1489
02969baf
GM
1490*** You can customize how to display ANSI terminal colors and styles
1491by customizing the corresponding `term-color-<COLOR>',
1492`term-color-underline' and `term-color-bold' faces.
cf20dee0 1493
05ecb497 1494** Tramp
2f940384 1495
02969baf 1496*** The syntax has been extended in order to allow ad-hoc proxy definitions.
05ecb497 1497
823b2fb6 1498*** Remote processes are now also supported on remote MS-Windows hosts.
05ecb497 1499
ce7b18ec 1500** URL
2f940384 1501
ce7b18ec
CY
1502*** Structs made by `url-generic-parse-url' have nil `attributes' slot.
1503Previously, this slot stored semicolon-separated attribute-value pairs
1504appended to some imap URLs, but this is not compatible with RFC 3986.
823b2fb6 1505So now the `filename' slot stores the entire path and query components,
ce7b18ec 1506and the `attributes' slot is always nil.
2f940384 1507
ce7b18ec
CY
1508*** New function `url-encode-url' for encoding a URI string.
1509The `url-retrieve' function now uses this to encode its URL argument,
1510in case that is not properly encoded.
1511
843571cb
LMI
1512*** New command `url-cookie-list' displays all the current cookies, and
1513allows deleting selected cookies.
1514
6bc66c10
GM
1515** notifications.el supports now version 1.2 of the Notifications API.
1516The function `notifications-get-capabilities' returns the supported
1517server properties.
f938eda9 1518
6bc66c10
GM
1519** Flymake uses fringe bitmaps to indicate errors and warnings.
1520See `flymake-fringe-indicator-position', `flymake-error-bitmap' and
1521`flymake-warning-bitmap'.
f938eda9 1522
6bc66c10
GM
1523** The FFAP option `ffap-url-unwrap-remote' can now be a list of strings,
1524specifying URL types that should be converted to remote file names at
1525the FFAP prompt. The default is now '("ftp").
f938eda9 1526
6bc66c10
GM
1527** New Ibuffer `derived-mode' filter, bound to `/ M'.
1528The old binding for `/ M' (filter by used-mode) is now bound to `/ m'.
f938eda9 1529
6bc66c10
GM
1530** New option `mouse-avoidance-banish-position' specifies where the
1531`banish' mouse avoidance setting moves the mouse.
ce7b18ec 1532
6bc66c10
GM
1533** In Perl mode, new option `perl-indent-parens-as-block' causes non-block
1534closing brackets to be aligned with the line of the opening bracket.
f938eda9 1535
6bc66c10 1536** In Proced mode, new command `proced-renice' renices marked processes.
f938eda9 1537
6bc66c10
GM
1538** New option `async-shell-command-buffer' specifies the buffer to use
1539for a new asynchronous `shell-command' when the default output buffer
1540`*Async Shell Command*' is already in use.
f938eda9 1541
6bc66c10
GM
1542** SQL mode has a new option `sql-db2-escape-newlines'.
1543If non-nil, newlines sent to the command interpreter will be escaped
1544by a backslash. The default does not escape the newlines and assumes
1545that the sql statement will be terminated by a semicolon.
f938eda9 1546
6bc66c10
GM
1547** New command `tabulated-list-sort', bound to `S' in Tabulated List mode
1548(and modes that derive from it), sorts the column at point, or the Nth
1549column if a numeric prefix argument is given.
f938eda9 1550
02969baf 1551** `which-func-modes' now defaults to t, so Which Function mode, when
05b621a6 1552enabled, applies to all applicable major modes.
f938eda9 1553
6bc66c10 1554** `winner-mode-hook' now runs when the mode is disabled, as well as when
823b2fb6 1555it is enabled.
f938eda9 1556
6bc66c10
GM
1557** Follow mode no longer works by using advice.
1558The option `follow-intercept-processes' has been removed.
1559
1560** `javascript-generic-mode' is now an obsolete alias for `js-mode'.
f938eda9 1561
d1069532
SM
1562** Hooks renamed to avoid obsolete "-hooks" suffix:
1563*** semantic-lex-reset-hooks -> semantic-lex-reset-functions
1564*** semantic-change-hooks -> semantic-change-functions
1565*** semantic-edits-new-change-hooks -> semantic-edits-new-change-functions
1566*** semantic-edits-delete-change-hooks -> semantic-edits-delete-change-functions
1567*** semantic-edits-reparse-change-hooks -> semantic-edits-reparse-change-functions
1568*** semanticdb-save-database-hooks -> semanticdb-save-database-functions
1569*** c-prepare-bug-report-hooks -> c-prepare-bug-report-hook
1570*** rcirc-sentinel-hooks -> rcirc-sentinel-functions
1571*** rcirc-receive-message-hooks -> rcirc-receive-message-functions
1572*** rcirc-activity-hooks -> rcirc-activity-functions
1573*** rcirc-print-hooks -> rcirc-print-functions
1574*** dbus-event-error-hooks -> dbus-event-error-functions
1575*** eieio-pre-method-execution-hooks -> eieio-pre-method-execution-functions
1576*** checkdoc-style-hooks -> checkdoc-style-functions
1577*** checkdoc-comment-style-hooks -> checkdoc-comment-style-functions
1578*** archive-extract-hooks -> archive-extract-hook
1579*** filesets-cache-fill-content-hooks -> filesets-cache-fill-content-hook
1580*** hfy-post-html-hooks -> hfy-post-html-hook
1581*** nndiary-request-create-group-hooks -> nndiary-request-create-group-functions
1582*** nndiary-request-update-info-hooks -> nndiary-request-update-info-functions
1583*** nndiary-request-accept-article-hooks -> nndiary-request-accept-article-functions
1584*** gnus-subscribe-newsgroup-hooks -> gnus-subscribe-newsgroup-functions
f938eda9 1585
6bc66c10 1586** Obsolete packages
2f940384 1587
797e6e88
SM
1588*** assoc.el
1589In most cases, assoc+member+push+delq work just as well.
1590And in any case it's just a terrible package: ugly semantics, terrible
1591inefficiency, and not namespace-clean.
3c74813a 1592*** bruce.el
b4617547 1593*** cust-print.el
daed4003 1594*** ledit.el
82f289a4 1595*** mailpost.el
d57de7fe 1596*** mouse-sel.el
3c74813a 1597*** patcomp.el
1a9c6830 1598
a1ed8b05 1599\f
2a1e2476 1600* Incompatible Lisp Changes in Emacs 24.3
b4d3bc10 1601
6bc66c10
GM
1602** Docstrings starting with `*' no longer indicate user options.
1603Only variables defined using `defcustom' are considered user options.
1604The function `user-variable-p' is now an obsolete alias for
1605`custom-variable-p'.
090cf9db 1606
6bc66c10
GM
1607** The return values of `defalias', `defun' and `defmacro' have changed,
1608and are now undefined. For backwards compatibility, `defun' and
1609`defmacro' currently return the name of the newly defined
1610function/macro, but this should not be relied upon.
090cf9db 1611
823b2fb6
GM
1612** `random' by default now returns a different random sequence in
1613every Emacs run. Use `(random S)', where S is a string, to set the
0e23ef9d
PE
1614random seed to a value based on S, in order to get a repeatable
1615sequence in later calls.
1616
d32e47af
LM
1617** If the NEWTEXT arg to `replace-match' contains a substring "\?",
1618that substring is inserted literally even if the LITERAL arg is
1619non-nil, instead of causing an error to be signaled.
1620
2cec368c
MR
1621** `select-window' now always makes the window's buffer current.
1622It does so even if the window was selected before.
1623
6bc66c10
GM
1624** The function `x-select-font' can return a font spec, instead of a
1625font name as a string. Whether it returns a font spec or a font name
1626depends on the graphical library.
bbf908bc 1627
eeddc531
CY
1628** `face-spec-set' no longer sets frame-specific attributes when the
1629third argument is a frame (that usage was obsolete since Emacs 22.2).
1630
6bc66c10 1631** `set-buffer-multibyte' now signals an error in narrowed buffers.
a59d531e 1632
ab7f1c43
GM
1633** The CL package's `get-setf-method' function no longer exists.
1634Generalized variables are now part of core Emacs Lisp, and implemented
1635differently to the way cl.el used to do it. It is not possible to
1636define a compatible replacement for `get-setf-method'. See the file
1637gv.el for internal details of the new implementation.
1638
6bc66c10
GM
1639** The arguments of `dbus-register-signal' are no longer just strings,
1640but keywords or keyword-string pairs. The old argument list will
1641still be supported for Emacs 24.x.
72b255c7 1642
6bc66c10 1643** Miscellaneous name changes
823b2fb6
GM
1644Some Lisp symbols have been renamed to correct their spelling,
1645or to be more consistent with standard Emacs terminology.
72b255c7 1646
72b255c7 1647*** Renamed functions
72b255c7
PE
1648**** hangul-input-method-inactivate -> hangul-input-method-deactivate
1649**** inactivate-input-method -> deactivate-input-method
1650**** quail-inactivate -> quail-deactivate
1651**** robin-inactivate -> robin-deactivate
1652**** viper-inactivate-input-method -> viper-deactivate-input-method
1653**** viper-inactivate-input-method-action ->
1654 viper-deactivate-input-method-action
1655**** ucs-input-inactivate -> ucs-input-deactivate
1656
1657*** Renamed hooks
1658The old hooks are still supported for backward compatibility, but they
1659are deprecated and will be removed eventually.
72b255c7
PE
1660**** input-method-inactivate-hook -> input-method-deactivate-hook
1661**** robin-inactivate-hook -> robin-deactivate-hook
1662**** quail-inactivate-hook -> quail-deactivate-hook
1663
6bc66c10 1664*** Renamed variables
72b255c7
PE
1665**** follow-deactive-menu -> follow-inactive-menu
1666**** inactivate-current-input-method-function ->
1667 deactivate-current-input-method-function
1668
02969baf
GM
1669** Some obsolete functions, variables, and faces have been removed:
1670*** `last-input-char', `last-command-char', `unread-command-char'
78f3273a
CY
1671*** `facemenu-unlisted-faces'
1672*** `rmail-decode-mime-charset'
a5f2b6ec
CY
1673*** `iswitchb-read-buffer'
1674*** `sc-version', `sc-submit-bug-report'
1675*** `set-char-table-default'
02969baf 1676*** `string-to-sequence' (use `string-to-list' or `string-to-vector')
a5f2b6ec 1677*** `compile-internal'
02969baf 1678*** `modeline'
59f7af81 1679*** `mode-line-inverse-video'
02969baf 1680*** `follow-mode-off-hook'
a5f2b6ec 1681*** `cvs-commit-buffer-require-final-newline'
63820c5c 1682(use `log-edit-require-final-newline' instead)
a5f2b6ec
CY
1683*** `cvs-changelog-full-paragraphs'
1684(use `log-edit-changelog-full-paragraphs' instead)
1685*** `cvs-diff-ignore-marks', `cvs-diff-buffer-name'
1686*** `vc-ignore-vc-files' (use `vc-handled-backends' instead)
1687*** `vc-master-templates' (use `vc-handled-backends' instead)
1688*** `vc-checkout-carefully'
78f3273a 1689
a1ed8b05 1690\f
93e0bed6 1691* Lisp Changes in Emacs 24.3
ef24141c 1692
2ee3d7f0 1693** CL-style generalized variables are now in core Elisp.
f938eda9 1694`setf' is autoloaded; `push' and `pop' accept generalized variables.
ebdbfb95
GM
1695You can define your own generalized variables using `gv-define-simple-setter',
1696`gv-define-setter', etc.
2ee3d7f0 1697
6bc66c10
GM
1698** Emacs tries to macroexpand interpreted (non-compiled) files during load.
1699This can significantly speed up execution of non-byte-compiled code,
1700but can also bump into previously unnoticed cyclic dependencies.
1701These are generally harmless: they will simply cause the macro calls
1702to be left for later expansion (as before), but will result in a
1703warning ("Eager macro-expansion skipped due to cycle") describing the cycle.
1704You may wish to restructure your code so this does not happen.
1705
1706** New sampling-based Elisp profiler.
1707Try M-x profiler-start, do some work, and then call M-x profiler-report.
1708When finished, use M-x profiler-stop. The sampling rate can be based on
1709CPU time or memory allocations.
1710
500fcedc
SM
1711** `defun' also accepts a (declare DECLS) form, like `defmacro'.
1712The interpretation of the DECLS is determined by `defun-declarations-alist'.
1713
6bc66c10
GM
1714** New macros `setq-local' and `defvar-local'.
1715
1716** Face underlining can now use a wave.
2f940384 1717
6bc66c10 1718** `read-regexp' has a new argument HISTORY; the first argument PROMPT
cd996018 1719of `read-regexp' accepts a string ending with a colon and space, and its
823b2fb6 1720second argument DEFAULTS can be a list of strings accessible via `M-n'
cd996018
CY
1721in the minibuffer ahead of other hard-coded useful regexp-related values.
1722More commands use `read-regexp' now to read their regexp arguments.
1723
f938eda9 1724** Completion
500fcedc 1725
f938eda9
CY
1726*** New function `completion-table-with-quoting' to handle completion
1727in the presence of quoting, such as file completion in shell buffers.
f95e9344 1728
f938eda9
CY
1729*** New function `completion-table-subvert' to use an existing completion
1730table, but with a different prefix.
1731
6bc66c10 1732** Debugger
f95e9344 1733
f938eda9
CY
1734*** New error type and new function `user-error'.
1735These do not trigger the debugger.
f95e9344 1736
57fc0fee
GM
1737*** New option `debugger-bury-or-kill', saying what to do with the
1738debugger buffer when exiting debug.
45b82ad0
SM
1739
1740*** Set `debug-on-message' to enter the debugger when a certain
1741message is displayed in the echo area. This can be useful when trying
1742to work out which code is doing something.
2f940384 1743
45b82ad0
SM
1744*** New var `inhibit-debugger', automatically set to prevent accidental
1745recursive invocations.
fa2bcf43 1746
6bc66c10 1747** Window handling
2f940384 1748
6bc66c10
GM
1749*** New command `fit-frame-to-buffer' adjusts the frame height to
1750fit the contents.
2f940384 1751
6bc66c10
GM
1752*** The command `fit-window-to-buffer' can adjust the frame height
1753if the new option `fit-frame-to-buffer' is non-nil.
8e17c9ba 1754
7fe37cfc
GM
1755*** New macro `with-temp-buffer-window', similar to
1756`with-output-to-temp-buffer'.
fa2bcf43 1757
8e17c9ba
MR
1758*** `temp-buffer-resize-mode' no longer resizes windows that have been
1759reused.
c5e28e39 1760
823b2fb6 1761*** New option `switch-to-buffer-preserve-window-point' to restore a
43bcfda6 1762window's point when switching buffers.
7c82753d 1763
6bc66c10
GM
1764*** New display action alist entries `window-height' and `window-width'
1765specify the size of new windows created by `display-buffer'.
1766
1767*** New display action alist entry `pop-up-frame-parameters', if
1768non-nil, specifies frame parameters to give any newly-created frame.
7c82753d 1769
fa2bcf43
MR
1770*** New display action alist entry `inhibit-switch-frame', if non-nil,
1771tells display action functions to avoid changing which frame is
1772selected.
2f940384 1773
fa2bcf43
MR
1774*** New display action alist entry `previous-window', if non-nil,
1775specifies window to reuse in `display-buffer-in-previous-window'.
2f940384 1776
6bc66c10
GM
1777*** New display action functions `display-buffer-below-selected',
1778and `display-buffer-in-previous-window'.
1779
1780*** The functions `get-lru-window', `get-mru-window' and `get-largest-window'
1781now accept a third argument to avoid choosing the selected window.
1782
1783*** Additional values recognized for option `window-combination-limit'.
5938d519 1784
77f1f99c
CY
1785*** The following variables are obsolete, as they can be replaced by
1786appropriate entries in the `display-buffer-alist' function introduced
1787in Emacs 24.1:
823b2fb6 1788**** `dired-shrink-to-fit'
77f1f99c 1789**** `display-buffer-reuse-frames'
823b2fb6 1790**** `display-buffer-function'
77f1f99c 1791**** `special-display-buffer-names'
823b2fb6 1792**** `special-display-frame-alist'
77f1f99c 1793**** `special-display-function'
823b2fb6 1794**** `special-display-regexps'
77f1f99c 1795
ab0fa4e4 1796** Time
2f940384 1797
ab0fa4e4
PE
1798*** `current-time-string' no longer requires that its argument's year
1799must be in the range 1000..9999. It now works with any year supported
1800by the underlying C implementation.
2f940384 1801
f938eda9
CY
1802*** `current-time' now returns extended-format time stamps
1803(HIGH LOW USEC PSEC), where the new PSEC slot specifies picoseconds.
1804PSEC is typically a multiple of 1000 on current machines. Other
823b2fb6
GM
1805functions that use this format, such as `file-attributes' and
1806`format-time-string', have been changed accordingly. Old-format time
f938eda9 1807stamps are still accepted.
2f940384 1808
823b2fb6 1809*** The format of timers in `timer-list' and `timer-idle-list' is now
f938eda9
CY
1810[TRIGGERED-P HI-SECS LO-SECS USECS REPEAT-DELAY FUNCTION ARGS IDLE-DELAY PSECS].
1811The PSECS slot is new, and uses picosecond resolution. It can be
823b2fb6 1812accessed via the new `timer--psecs' accessor.
2f940384 1813
c4132fd4
PE
1814*** Last-modified time stamps in undo lists now are of the form
1815(t HI-SECS LO-SECS USECS PSECS) instead of (t HI-SECS . LO-SECS).
1816
0058cae2
GM
1817** EIEIO
1818
1819*** Improved security when handling persistent objects:
1820
1821**** `eieio-persistent-read' now features optional arguments for specifying
1822the class to load, as well as a flag stating whether subclasses are allowed;
1823if provided, other classes will be rejected by the reader. For
1824compatibility with existing code, if the class is omitted only a
1825warning is issued.
1826
1827**** New specialized reader for pulling in classes and signaling errors
1828without evaluation of suspicious code.
1829
1830**** All slots that contain objects must have a :type. Slots with lists
1831of objects must use a new type predicate for a list of an object type.
1832
1833*** Support for `find-function' and similar utilities, through the addition
1834of filename support to generated symbols.
1835
f938eda9 1836** Floating point functions now always return special values like NaN,
823b2fb6 1837instead of signaling errors, if given invalid args; e.g., (log -1.0).
f938eda9
CY
1838Previously, they returned NaNs on some platforms but signaled errors
1839on others. The affected functions are acos, asin, tan, exp, expt,
1840log, log10, sqrt, and mod.
1841
6bc66c10 1842** New fringe bitmap `exclamation-mark'.
f938eda9 1843
6bc66c10
GM
1844** Miscellaneous changes to special forms and macros
1845
1846*** `defun' and `defmacro' are now macros rather than special forms.
1847
1848*** `kbd' is now a function rather than a macro.
1849
1850** Miscellaneous new functions
1851
1852*** `set-temporary-overlay-map' sets up a temporary keymap that
1853takes precedence over most other maps for a short while (normally one key).
f938eda9 1854
847a0561 1855*** `autoloadp' tests if its argument is an autoloaded object.
2f940384 1856
847a0561 1857*** `autoload-do-load' performs the autoloading operation.
2f940384 1858
f938eda9 1859*** `buffer-narrowed-p' tests if the buffer is narrowed.
2f940384 1860
f938eda9 1861*** `file-name-base' returns a file name sans directory and extension.
2f940384 1862
f938eda9 1863*** `function-get' fetches a function property, following aliases.
c990426a 1864
f938eda9 1865*** `posnp' tests if an object is a `posn'.
f938eda9 1866
f938eda9 1867*** `system-users' returns the user names on the system.
547d6865 1868
f938eda9 1869*** `system-groups' returns the group names on the system.
f938eda9 1870
f938eda9 1871*** `tty-top-frame' returns the topmost frame of a text terminal.
c990426a 1872
f938eda9 1873** The following functions and variables are obsolete:
847a0561 1874*** `automount-dir-prefix' (use `directory-abbrev-alist')
f938eda9 1875*** `buffer-has-markers-at'
1a9c6830 1876*** `macro-declaration-function' (use `macro-declarations-alist')
847a0561 1877*** `window-system-version' (provides no useful information)
93cacb6d 1878*** `dired-pop-to-buffer' (use `dired-mark-pop-up')
0e2ae83d 1879*** `query-replace-interactive'
49238e7f 1880*** `font-list-limit' (has had no effect since Emacs < 23)
86aa551c 1881
adce950d 1882\f
93e0bed6 1883* Changes in Emacs 24.3 on Non-Free Operating Systems
9078ead6 1884
4e98ad15 1885** Cygwin builds can use the native MS Windows user interface.
823b2fb6 1886Pass `--with-w32' to configure. The default remains the X11 interface.
53a63be6 1887
1a9c6830 1888** Two new functions are available in Cygwin builds:
6e9f7997
DC
1889`cygwin-convert-file-name-from-windows' and
1890`cygwin-convert-file-name-to-windows'. These functions allow Lisp
1891code to access the Cygwin file-name mapping machinery to convert
1892between Cygwin and Windows-native file and directory names.
de6e3a60 1893
4e98ad15 1894** When invoked with the -nw switch to run on the Windows text-mode terminal,
1ab0c851 1895Emacs now supports `mouse-highlight', help-echo (in the echo area), and
4e98ad15
GM
1896`mouse-autoselect-window'.
1897
1a9c6830 1898** On MS Windows Vista and later Emacs now supports symbolic links.
4e98ad15 1899
823b2fb6 1900** On MS Windows, you can pass `--without-libxml2' to configure.bat to omit
4e98ad15
GM
1901support for libxml2, even if its presence is detected.
1902
4e98ad15
GM
1903** On Mac OS X, the Nextstep port requires OS X 10.4 or later.
1904
823b2fb6 1905** On Mac OS X, configure no longer automatically adds the Fink "/sw"
4e98ad15
GM
1906directories to the search path. You must add them yourself if you want them.
1907
2a1e2476
GM
1908\f
1909* Changes in Emacs 24.2
1910
5190da91 1911** This is mainly a bug-fix release.
6dad7178 1912
9078ead6 1913\f
eb199145 1914* Installation Changes in Emacs 24.1
09e18d03 1915
31fd3586
GM
1916** Emacs can be compiled with Gtk+ 3.0 if you pass --with-x-toolkit=gtk3
1917to configure. Note that other libraries used by Emacs, RSVG and GConf,
1918also depend on Gtk+. You can disable them with --without-rsvg and
1919--without-gconf.
338648ad 1920
31fd3586
GM
1921** Emacs can be compiled with GnuTLS support.
1922This happens by default if a suitably recent version of the library is
1923found at build time. To prevent this, use the configure option
1924`--without-gnutls'. See below for GnuTLS features.
338648ad 1925
31fd3586
GM
1926** Emacs can be compiled with SELinux support.
1927This happens by default if a suitably recent version of the library is
1928found at build time. To prevent this, use the configure option
1929`--without-selinux'. See below for SELinux features.
aded53ff 1930
31fd3586
GM
1931** Emacs can be compiled with ImageMagick support.
1932This happens by default if a suitably recent version of the library is
1933found at build time. To prevent this, use the configure option
1934`--without-imagemagick'. See below for ImageMagick features.
c1f10868 1935This feature is not available for the Nextstep or MS ports.
d9170db5 1936
043efd56
GM
1937** Emacs can be compiled with libxml2 support.
1938This happens by default if a suitably recent version of the library is
1939found at build time. To prevent this, use the configure option
1940`--without-xml2'. See below for libxml2 features.
1941
7d301ae6
CY
1942** By default, the installed Info and man pages are compressed.
1943You can disable this by configuring --without-compress-info.
1944
7d301ae6 1945** New configure option --with-wide-int.
81eafe29 1946With it, Emacs integers typically have 62 bits, even on 32-bit machines.
0a768890
PE
1947On 32-bit hosts, this raises the limit on buffer sizes from about 512 MiB
1948to about 2 GiB.
81eafe29 1949
7d301ae6 1950** New configure options: --with-mmdf, --with-mail-unlink, --with-mailhost.
31fd3586
GM
1951These provide no new functionality, they just remove the need to edit
1952lib-src/Makefile by hand in order to use the associated features.
1953
7d301ae6 1954** New configure option --enable-use-lisp-union-type.
31fd3586
GM
1955This is only useful for Emacs developers to debug certain types of bugs.
1956This is not a new feature; only the configure flag is new.
041d709f
CY
1957
1958** The standalone programs digest-doc and sorted-doc are removed.
1959Emacs now uses Lisp commands `doc-file-to-man' and `doc-file-to-info'.
1960
041d709f
CY
1961** The standalone program `fakemail' is removed.
1962If you need it, feedmail.el provides a superset of the functionality.
1963
0bfd685e 1964\f
eb199145 1965* Startup Changes in Emacs 24.1
4a263588 1966
198a7a97 1967** The --unibyte, --multibyte, --no-multibyte, and --no-unibyte
adbf62ff
GM
1968command line arguments, and the EMACS_UNIBYTE environment variable, no
1969longer have any effect. (They were declared obsolete in Emacs 23.)
198a7a97 1970
66b7b0fe 1971** New command line option `--no-site-lisp' removes site-lisp directories
1b5e5b0c
GM
1972from load-path. -Q now implies this. This option does not affect the
1973EMACSLOADPATH environment variable (and hence has no effect for
c8d59ba3 1974Nextstep builds).
66b7b0fe 1975
0bfd685e 1976\f
eb199145 1977* Changes in Emacs 24.1
7841339b 1978
a2a25d24 1979** Completion
fdeb32ec 1980
dfdb4cad
CY
1981*** Many packages now use the `completion-at-point' command,
1982rather than implementing separate completion commands.
1983
de0bde62 1984*** `completion-at-point' now handles tags and semantic completion.
dfdb4cad 1985
a2a25d24
SM
1986*** Completion in a non-minibuffer now tries to detect the end of completion
1987and pops down the *Completions* buffer accordingly.
dfdb4cad
CY
1988
1989*** New option `completion-cycle-threshold' allows completion cycling.
1990
1991*** New option `completion-category-overrides' for overriding the
2c719188 1992default completion style in certain circumstances.
dfdb4cad 1993
a2a25d24 1994*** New completion style `substring'.
dfdb4cad
CY
1995
1996*** Completion of buffer names uses `substring' completion by default.
1997
1998*** The option `widget-complete-field' has been removed.
620c53a6 1999
6870aaef 2000** Mail changes
dfdb4cad 2001
7d301ae6
CY
2002*** The first time you try sending mail, Emacs asks for a mail method.
2003This is implemented by a new default for `send-mail-function', which
2004is `sendmail-query-once'. This offers to use the smtpmail package, or
2005to use the old defaults relying on external mail facilities
2006(`sendmail-send-it' on GNU/Linux and other Unix-like systems, and
2007`mailclient-send-it' on Windows).
dfdb4cad 2008
e78e7e48
CY
2009*** Typing `C-c m' in the buffer made by `M-x report-emacs-bug'
2010transfers the report to your desktop's preferred mail client, if there
2011is one. This uses either the "xdg-email" utility, or Mac OS's "open"
2012command.
dfdb4cad 2013
7d301ae6
CY
2014*** See Changes in Specialized Modes and Packages for SMTPmail changes
2015and Mail mode changes
3f88cd72 2016
041d709f 2017** Emacs server and client changes
dfdb4cad 2018
7d301ae6 2019*** New option `server-port' specifies the port for TCP Emacs servers.
dfdb4cad 2020
041d709f 2021*** New emacsclient argument -q/--quiet suppresses some status messages.
dfdb4cad 2022
7d301ae6
CY
2023*** New emacsclient argument --frame-parameters specifies the frame
2024parameters of any newly-created graphical frame.
dfdb4cad
CY
2025
2026*** If emacsclient shuts down due to Emacs signaling an error,
2027its exit status is 1.
2028
041d709f
CY
2029*** New emacsclient argument --parent-id ID.
2030This opens a client frame in parent X window ID, via XEmbed, similar
2031to the --parent-id argument to Emacs.
2032
d0ce9f8c
MB
2033** Internationalization changes
2034
d0ce9f8c 2035*** Emacs now supports display and editing of bidirectional text.
7d301ae6
CY
2036Right-to-left (RTL) scripts, such as Arabic, Farsi, and Hebrew, are
2037displayed in the correct visual order as expected by users of those
dfdb4cad
CY
2038scripts. The display reordering is a "full bidirectionality" class
2039implementation of the Unicode Bidirectional Algorithm (UBA). Buffers
2040with no RTL text should look exactly the same as before.
f4b6ba46 2041
041d709f 2042**** New buffer-local variable `bidi-display-reordering'.
7d301ae6 2043To disable display reordering in a buffer, change this to nil.
d20e1419 2044
041d709f
CY
2045**** New buffer-local variable `bidi-paragraph-direction'.
2046If nil (the default), Emacs determines the base direction of each
dfdb4cad
CY
2047paragraph from its text, as specified by the UBA. Setting the value
2048to `right-to-left' or `left-to-right' forces a base direction on each
2049paragraph.
f4b6ba46 2050
7d301ae6
CY
2051Paragraphs with right-to-left base direction are displayed starting at
2052the right window edge.
f1816485 2053
dfdb4cad
CY
2054*** Enhanced support for characters with no glyphs in available fonts,
2055or, on text terminals, characters that cannot be encoded by the
2056terminal coding system. The new option `glyphless-char-display-control'
2057specifies how to display them: as a hexadecimal code in a box, a thin
20581-pixel space, an empty box, etc.
d0ce9f8c 2059
9702b7a1
GM
2060*** New input methods for Farsi and Bulgarian
2061(farsi-isiri-9147, farsi-transliterate-banan, bulgarian-alt-phonetic).
041d709f 2062
939db9ac
CY
2063*** `nobreak-char-display' now also highlights Unicode hyphen chars
2064(U+2010 and U+2011).
2065
7d301ae6 2066*** New Hebrew translation of the Emacs Tutorial.
31fd3586
GM
2067Type `C-u C-h t' to choose it in case your language setup doesn't
2068automatically select it.
2069
7d301ae6
CY
2070** An Emacs Lisp package manager is now included.
2071This is a convenient way to download and install additional packages,
2072from a package repository at http://elpa.gnu.org.
dfdb4cad 2073
7d301ae6
CY
2074*** M-x list-packages shows a list of packages, which can be
2075selected for installation.
dfdb4cad 2076
7d301ae6 2077*** New command `describe-package', bound to `C-h P'.
dfdb4cad 2078
7d301ae6
CY
2079*** By default, all installed packages are loaded automatically when
2080Emacs starts up. To disable this, set `package-enable-at-startup' to
2081nil. To specify the packages to load, customize `package-load-list'.
16a91140 2082
dfdb4cad
CY
2083** Custom theme changes
2084
7d301ae6
CY
2085*** New command `M-x customize-themes', which provides a convenient
2086interface for enabling and disabling Custom themes.
dfdb4cad 2087
7d301ae6 2088*** New option `custom-theme-load-path' is the load path for themes.
dfdb4cad
CY
2089Emacs no longer looks for Custom themes in `load-path'. The default
2090value of `custom-theme-load-path' says to look for themes in
2091`custom-theme-directory', followed by a subdirectory of
2092`data-directory' named "themes/", which contains a small selection of
2093built-in Custom themes.
2094
7d301ae6
CY
2095*** New option `custom-safe-themes' records known-safe theme files.
2096If a theme is not in this list, Emacs queries before loading it, and
2097offers to save the theme to `custom-safe-themes' automatically. By
2098default, all themes included in Emacs are treated as safe.
b7d65a5f 2099
7d301ae6 2100** Improved GTK integration
dfdb4cad 2101
7d301ae6 2102*** GTK scroll-bars are now placed on the right by default.
dfdb4cad
CY
2103The function `set-scroll-bar-mode' can change this.
2104
7d301ae6 2105*** GTK tool bars can have just text, just images or images and text.
dfdb4cad
CY
2106Customize `tool-bar-style' to choose the style. On a Gnome desktop,
2107the default is taken from desktop settings.
2108
2109*** GTK tool bars can be placed on any edge of the frame.
7d301ae6
CY
2110The frame-parameter tool-bar-position controls this. It takes the
2111values top, left, right or bottom. The Options => Show/Hide menu has
2112entries for this.
dfdb4cad 2113
7d301ae6
CY
2114*** The default colors for selected text (the `region' face) are taken
2115from the GTK theme when Emacs is built with GTK.
dfdb4cad 2116
7d301ae6
CY
2117*** Emacs uses GTK tooltips by default if built with GTK.
2118You can disable this by changing `x-gtk-use-system-tooltips' to nil.
a5bee597 2119
dfdb4cad
CY
2120** Graphical interface changes
2121
2122*** On graphical displays, the mode-line no longer ends in dashes.
2123Also, the first dash (which does not indicate anything) is just
2124displayed as a space.
2125
2126*** `menu-bar-select-buffer-function' lets you choose another operation
2127instead of `switch-to-buffer' when selecting an item in the Buffers menu.
2128
2129*** Lucid menus and dialogs can display antialiased fonts if Emacs is
2130built with Xft. These fonts can be set via X resources, for example:
2131Emacs.pane.menubar.font: Courier-12
2132
7d301ae6 2133** Exiting changes
dfdb4cad 2134
7d301ae6 2135*** Emacs now calls `kill-emacs' if it receives SIGTERM or SIGHUP,
dfdb4cad
CY
2136or if it receives a SIGINT signal in batch mode.
2137
7d301ae6
CY
2138*** `kill-emacs-hook' is now also run in batch mode.
2139Third-party code which adds to `kill-emacs-hook' should check if they
2140do the right thing in batch mode.
9c524fcb 2141
041d709f 2142** Scrolling changes
dfdb4cad 2143
041d709f 2144*** New scrolling commands `scroll-up-command' and `scroll-down-command'
0a19a6f8 2145(bound to C-v/[next] and M-v/[prior]) do not signal errors at top/bottom
7d301ae6 2146of buffer at first key-press (instead they move to top/bottom of buffer)
550f41cd 2147when `scroll-error-top-bottom' is non-nil.
dfdb4cad
CY
2148
2149*** New option `scroll-error-top-bottom' (see above).
2150
041d709f 2151*** New scrolling commands `scroll-up-line' and `scroll-down-line'
5a97d2da 2152scroll a line instead of full screen.
dfdb4cad 2153
041d709f 2154*** New property `scroll-command' should be set on a command's symbol to
b2957ea8 2155define it as a scroll command affected by `scroll-preserve-screen-position'.
dfdb4cad 2156
041d709f 2157*** If you customize `scroll-conservatively' to a value greater than 100,
d0f69533
EZ
2158Emacs will never recenter point in the window when it scrolls due to
2159cursor motion commands or commands that move point (e.f., `M-g M-g').
2160Previously, you needed to use `most-positive-fixnum' as the value of
2161`scroll-conservatively' to achieve the same effect.
dfdb4cad 2162
7d301ae6 2163*** "Aggressive" scrolling now honors the scroll margins.
d0f69533
EZ
2164If you customize `scroll-up-aggressively' or
2165`scroll-down-aggressively' and move point off the window, Emacs now
2166scrolls the window so as to avoid positioning point inside the scroll
2167margin.
2168
7d301ae6
CY
2169** Basic SELinux support has been added.
2170This requires Emacs to be linked with libselinux at build time.
f1a5d776 2171
dfdb4cad
CY
2172*** Emacs preserves the SELinux file context when backing up.
2173Also, the function `copy-file' has an extra optional argument for
2174preserving SELinux context, and the return value of `backup-buffer'
2175now includes the SELinux context.
f0bf7c8e 2176
dfdb4cad 2177*** New functions `file-selinux-context' and `set-file-selinux-context'
7d301ae6 2178get and set the SELinux context of a file.
44198b6e 2179
7d301ae6 2180** Trash changes
dfdb4cad 2181
7d301ae6
CY
2182*** `delete-by-moving-to-trash' now only affects commands that specify
2183trashing. This avoids inadvertently trashing temporary files.
dfdb4cad 2184
7d301ae6
CY
2185*** Calling `delete-file' or `delete-directory' with a prefix argument
2186now forces true deletion, regardless of `delete-by-moving-to-trash'.
278f6845 2187
041d709f 2188** File- and directory-local variable changes
dfdb4cad 2189
041d709f
CY
2190*** You can stop directory local vars from applying to subdirectories.
2191Add an element (subdirs . nil) to the alist portion of any variables
2192settings to indicate that the section should not apply to
2193subdirectories.
dfdb4cad 2194
041d709f
CY
2195*** Directory local variables can apply to some file-less buffers.
2196Affected modes include dired, vc-dir, and log-edit. For example,
2197adding "(diff-mode . ((mode . whitespace)))" to .dir-locals.el will
2198turn on `whitespace-mode' for *vc-diff* buffers. Modes should call
2199`hack-dir-local-variables-non-file-buffer' to support this.
dfdb4cad 2200
041d709f
CY
2201*** Using "mode: MINOR-MODE" to enable a minor mode is deprecated.
2202Instead, use "eval: (minor-mode 1)".
c136e5cd 2203
7b447e9b
GM
2204*** The variable `inhibit-first-line-modes-regexps' has been renamed
2205to `inhibit-local-variables-regexps'. As the name suggests, it now
dfdb4cad
CY
2206applies to ALL file local variables, not just -*- lines. The
2207associated `inhibit-first-line-modes-suffixes' has been renamed in the
2208corresponding way.
5d907d6c 2209
0a2132ba
CY
2210** Window changes
2211
91b65361
CY
2212*** The `quit-window' command now restores the last buffer displayed
2213in the quitted window.
2214
0a2132ba
CY
2215*** Resizing an Emacs frame now preserves proportional window sizes,
2216modulo restrictions like window minimum sizes and fixed-size windows.
2217
2218*** The behavior of `display-buffer' is now customizable in detail.
dfdb4cad 2219
0a2132ba
CY
2220**** New option `display-buffer-base-action' specifies a list of
2221user-determined display "actions" (functions and optional arguments
2222for choosing the displaying window).
2223
2224This takes precedence over the default display action, which is
2225specified by `display-buffer-fallback-action'.
2226
2227**** New option `display-buffer-alist' maps buffer name regexps to
2228display actions, taking precedence over `display-buffer-base-action'.
2229
a0c2d0ae
MR
2230*** New option `window-combination-limit'.
2231The new option `window-combination-limit' allows to return the space
2232obtained for resizing or creating a window more reliably to the window
2233from which such space was obtained.
0a2132ba 2234
a0c2d0ae
MR
2235*** New option `window-combination-resize'.
2236The new option `window-combination-resize' allows to split a window that
2237otherwise cannot be split because it's too small by stealing space from
2238other windows in the same combination. Subsequent resizing or deletion
2239of the window will resize all windows in the same combination as well.
0a2132ba 2240
91b65361
CY
2241*** New option `frame-auto-hide-function' lets you choose between
2242iconifying or deleting a frame when burying a buffer in a dedicated
2243frame, or quitting a window showing a buffer in a frame of its own.
2244
0a2132ba 2245*** New commands `maximize-window' and `minimize-window'.
53964682 2246These maximize and minimize the size of a window within its frame.
0a2132ba 2247
0a2132ba
CY
2248*** New commands `switch-to-prev-buffer' and `switch-to-next-buffer'.
2249These functions allow to navigate through the live buffers that have
2250been shown in a specific window.
2251
7d301ae6 2252** Minibuffer changes
dfdb4cad 2253
7d301ae6 2254*** The inactive minibuffer has its own major mode `minibuffer-inactive-mode'.
104dc9c6
GM
2255This is handy for minibuffer-only frames, and is also used for the feature
2256where mouse-1 pops up *Messages*"', which can now easily be changed.
041d709f 2257
7d301ae6 2258*** Minibuffers set `truncate-lines' to nil.
f66eca26 2259If you want to change the value to something else, you could use
7d301ae6
CY
2260for example `minibuffer-setup-hook'.
2261
7d301ae6
CY
2262** `auto-mode-case-fold' is now enabled by default.
2263
7d301ae6 2264** `backup-by-copying-when-mismatch' now defaults to t.
f66eca26 2265
dfdb4cad
CY
2266** New basic faces `error', `warning', `success'.
2267These are used to highlight text indicating failure, caution or
2268successful operation.
2269
2270** New option `list-colors-sort' defines the color sort order
2271for `list-colors-display'.
2272
2273** The variable `focus-follows-mouse' now always defaults to nil.
2274
0bfd685e 2275\f
eb199145 2276* Editing Changes in Emacs 24.1
b350bdf2 2277
892777ba 2278** Search changes
dfdb4cad
CY
2279
2280*** C-y in Isearch is now bound to `isearch-yank-kill', instead of
2281`isearch-yank-line'.
2282
2283*** M-y in Isearch is now bound to `isearch-yank-pop', instead of
2284`isearch-yank-kill'.
2285
2286*** M-s C-e in Isearch is now bound to `isearch-yank-line'.
2287
b2b0776e 2288** New commands `count-words-region' and `count-words'.
dfdb4cad 2289
10607bea
CY
2290*** M-= is bound to `count-words-region', not `count-lines-region'.
2291The `count-words-region' command, when called interactively, reports
2292the number of lines, words, and characters in the region. It is a
2293superset of the old `count-lines-region', which is now an obsolete
2294alias for it.
ea4f7750 2295
ec9da840 2296** The command `just-one-space' (M-SPC), if given a negative argument,
1c708c1a
CY
2297also deletes newlines around point.
2298
b9229673 2299** Deletion changes
dfdb4cad 2300
b9229673 2301*** New option `delete-active-region'.
ddb54206 2302If non-nil, [delete] and DEL delete the region if it is active and no
dfdb4cad 2303prefix argument is given. If set to `kill', those commands kill
ddb54206 2304instead.
dfdb4cad 2305
59ee0542 2306*** New command `delete-forward-char', bound to [delete].
42d9cffa
CY
2307This is meant for interactive use, and obeys `delete-active-region'.
2308The command `delete-char' does not obey `delete-active-region'.
dfdb4cad 2309
b9229673
CY
2310*** `delete-backward-char' is now a Lisp function.
2311Apart from obeying `delete-active-region', its behavior is unchanged.
7d301ae6
CY
2312However, the byte compiler now warns if it is called from Lisp; Lisp
2313callers should use delete-char with a negative argument instead.
dfdb4cad 2314
b9229673
CY
2315*** The option `mouse-region-delete-keys' has been deleted.
2316
f9d71b42
CY
2317** Selection changes.
2318
7d301ae6
CY
2319The default handling of clipboard and primary selections has been
2320changed to conform with modern X applications. In short, most
2321commands for killing and yanking text now use the clipboard, while
2322mouse commands use the primary selection.
b1ab31ae
CY
2323
2324In the following, we provide a list of these changes, followed by a
2325list of steps to get the old behavior back if you prefer that.
2326
b1ab31ae
CY
2327*** `select-active-regions' now defaults to t.
2328Merely selecting text (e.g. with drag-mouse-1) no longer puts it in
963578d3 2329the kill ring. The selected text is put in the primary selection, if
b1ab31ae
CY
2330the system possesses a separate primary selection facility (e.g. X).
2331
2332**** `select-active-regions' also accepts a new value, `only'.
2333This means to only set the primary selection for temporarily active
2334regions (usually made by mouse-dragging or shift-selection);
2335"ordinary" active regions, such as those made with C-SPC followed by
2336point motion, do not alter the primary selection.
2337
963578d3
CY
2338**** `mouse-drag-copy-region' now defaults to nil.
2339
b1ab31ae
CY
2340*** mouse-2 is now bound to `mouse-yank-primary'.
2341This pastes from the primary selection, ignoring the kill-ring.
2342Previously, mouse-2 was bound to `mouse-yank-at-click'.
dfdb4cad 2343
b1ab31ae 2344*** `x-select-enable-clipboard' now defaults to t on all platforms.
dfdb4cad 2345
b1ab31ae
CY
2346*** `x-select-enable-primary' now defaults to nil.
2347Thus, commands that kill text or copy it to the kill-ring (such as
2348M-w, C-w, and C-k) also use the clipboard---not the primary selection.
2349
2350**** The "Copy", "Cut", and "Paste" items in the "Edit" menu are now
dfdb4cad 2351exactly equivalent to M-w, C-w, and C-y respectively.
b1ab31ae
CY
2352
2353**** Note that on MS-Windows, `x-select-enable-clipboard' was already
2354non-nil by default, as Windows does not support the primary selection
2355between applications.
2356
2357*** To return to the previous behavior, do the following:
dfdb4cad 2358
104c2fe9 2359**** Change `select-active-regions' to nil.
b1ab31ae
CY
2360**** Change `mouse-drag-copy-region' to t.
2361**** Change `x-select-enable-primary' to t (on X only).
2362**** Change `x-select-enable-clipboard' to nil.
2363**** Bind `mouse-yank-at-click' to mouse-2.
f9d71b42 2364
084e6df3 2365*** Support for X cut buffers has been removed.
dfdb4cad 2366
3fd50d5c
CY
2367*** X clipboard managers are now supported.
2368To inhibit this, change `x-select-enable-clipboard-manager' to nil.
4b80f674 2369
dfdb4cad
CY
2370** New command `C-x r N' (`rectangle-number-lines') numbers the lines
2371in the current rectangle. With a prefix argument, this prompts for a
2372number to count from and for a format string.
99f053cf 2373
7d301ae6 2374** `redisplay-dont-pause' now defaults to t.
6bf7006f
EZ
2375This makes Emacs feel more responsive to editing commands that arrive
2376at high rate, e.g. if you lean on some key, because stopping redisplay
2377in the middle (when this variable is nil) forces more expensive
2378updates later on, and Emacs appears to be unable to keep up.
2379
e70b5064
CY
2380** The behavior of <TAB> for active regions in Text mode has changed.
2381In Text and related modes, typing <TAB> (`indent-for-tab-command')
2382when the region is active causes Emacs to indent all the lines in the
2383region, aligning them with the line previous to the first line in the
2384region (or with the left margin if there is no previous line).
2385
dfdb4cad
CY
2386** When `occur' is called with a prefix argument, matching strings are
2387collected into the `*Occur*' buffer without line numbers. If there
2388are parenthesized subexpressions in the specified regexp, `occur'
2389reads replacement text that may contain \\& and \\N whose convention
2390follows `replace-match'.
2391
9bae34bf 2392\f
eb199145 2393* Changes in Specialized Modes and Packages in Emacs 24.1
efeb796b 2394
041d709f 2395** Archive Mode has basic support for browsing and updating 7z archives.
d76674bb 2396
b7c3692a 2397** BibTeX mode
dfdb4cad 2398
2de69e00 2399*** BibTeX mode now supports biblatex.
7d301ae6
CY
2400Use the variable `bibtex-dialect' to select different BibTeX dialects.
2401`bibtex-entry-field-alist' is now an obsolete alias for
2402`bibtex-BibTeX-entry-alist'.
2403
dfdb4cad
CY
2404*** New command `bibtex-search-entries', bound to C-c C-a.
2405
b7c3692a 2406*** New `bibtex-entry-format' option `sort-fields', disabled by default.
dfdb4cad 2407
022fe7ce
RW
2408*** New variable `bibtex-search-entry-globally'.
2409
7d301ae6 2410** Browse-url
dfdb4cad 2411
7d301ae6 2412*** New option `browse-url-mailto-function' specifies how to handle "mailto:"s.
dfdb4cad 2413
7d301ae6
CY
2414*** The default browser used by the package is now the "xdg-open" program,
2415on platforms that support it. This calls your desktop's preferred browser.
2416
86e100a6
GM
2417** Calc
2418
2419*** Support for musical notes.
2420
2421*** Support for logarithmic units.
2422
2423*** No longer uses the tex prefix for TeX specific unit names when
2424using TeX or LaTeX mode.
2425
2426*** New option to highlight selections using faces.
2427
2428*** `calc-histogram' has the option of using a vector to determine the bins.
2429
2430*** New "O" option prefix.
2431
2432*** Use the "O" prefix to "d r" (`calc-radix') to turn on twos-complement mode.
2433
cf16af42
GM
2434** Calendar, Diary, and Appt
2435
7d301ae6 2436*** Diary entries can contain non-printing "comments".
548d0a63
GM
2437See the variable `diary-comment-start'.
2438
5006e634
GM
2439*** Appointments can specify their individual warning times.
2440See the variable `appt-warning-time-regexp'.
2441
0a2bb1a9
GM
2442*** The function specified by `appt-disp-window-function' may be passed
2443lists of arguments if multiple appointments are due at similar times.
2444If you are using a custom function for this, you should update it.
2445
7454f200
GM
2446*** New function `diary-hebrew-birthday'.
2447
e565dd37
GM
2448*** Elements of `calendar-day-abbrev-array' and `calendar-month-abbrev-array'
2449may no longer be nil, but must all be strings.
2450
7d301ae6
CY
2451*** The obsolete (since Emacs 22.1) method of enabling the appt
2452package by adding `appt-make-list' to `diary-hook' has been removed.
2453Use `appt-activate' instead.
cf16af42 2454
cf16af42
GM
2455*** Some appt variables (obsolete since Emacs 22.1) have been removed:
2456appt-issue-message (use the function appt-activate)
2457appt-visible/appt-msg-window (use the variable appt-display-format)
2458
cf16af42
GM
2459*** Some diary function aliases (obsolete since Emacs 22.1) have been removed:
2460view-diary-entries, list-diary-entries, show-all-diary-entries
2461
551b046f 2462** CC Mode
dfdb4cad 2463
551b046f 2464*** New feature to "guess" the style in an existing buffer.
7d301ae6 2465The main entry point is M-x c-guess.
041d709f 2466
551b046f
AM
2467*** Java Mode now supports Java 5.0 (Tiger) and 6 (Mustang).
2468
dfdb4cad 2469*** `c-beginning-of-defun' and `c-end-of-defun' now respect nested scopes.
551b046f
AM
2470Thus C-M-a will, by default, go to the beginning of the immediate function,
2471not the top level.
2472
dfdb4cad 2473*** "Macros with semicolons" can be registered for correct indentation.
551b046f
AM
2474Where such a macro ends a line (no semicolon) the next statement is no longer
2475parsed as a statement continuation.
2476
dfdb4cad 2477** Comint and modes derived from it use the standard completion code.
041d709f
CY
2478
2479** Compilation mode
dfdb4cad 2480
7d301ae6 2481*** Compilation mode can be used without Font Lock mode.
041d709f
CY
2482`compilation-parse-errors-function' is now obsolete.
2483
dfdb4cad 2484*** New variable `compilation-filter-start', which is bound while
7d301ae6
CY
2485`compilation-filter-hook' runs. It records the start position of the
2486text inserted by `compilation-filter'.
041d709f 2487
47a6a35f
GM
2488*** `compilation-error-screen-columns' and `compilation-first-column'
2489are obeyed in the editing buffer. So programming language modes can
7d301ae6
CY
2490set them, whereas previously only the value in the *Compilation*
2491buffer was used.
1dce7193 2492
52834b6b
CY
2493** Customize
2494
2495*** Customize buffers now contain a search field.
2496The search is performed using `customize-apropos'.
7d301ae6 2497To turn off the search field, set `custom-search-field' to nil.
52834b6b 2498
8d5dd370 2499*** Options in customize group buffers start out hidden if not customized.
52834b6b
CY
2500Use the arrow to the left of the option name to toggle visibility.
2501
2502*** custom-buffer-sort-alphabetically now defaults to t.
2503
2504*** The color widget now has a "Choose" button, which allows you to
7d301ae6 2505choose a color via `list-colors-display'.
52834b6b 2506
041d709f
CY
2507** D-Bus
2508
5da3be7f
GM
2509*** It is now possible to access buses other than the default system
2510or session bus.
041d709f 2511
7d301ae6 2512*** The `dbus-register-method' and `dbus-register-property' functions
5da3be7f 2513optionally do not register names.
041d709f 2514
7d301ae6 2515*** The new function `dbus-register-service' registers a known service
dfdb4cad 2516name on a D-Bus without also registering a property or a method.
041d709f 2517
f5d6548a 2518** Dired-x
425a25f1 2519
7d301ae6
CY
2520*** C-x C-j (`dired-jump') and C-x 4 C-j (`dired-jump-other-window'),
2521if called with a prefix argument, read a file name from the minibuffer
2522instead of using the current buffer.
f5d6548a 2523
7d301ae6 2524*** The "dired local variables" feature of Dired-x is obsolete.
817b48a7 2525The standard directory local variables feature replaces it.
8117868f 2526
041d709f 2527** ERC changes
7492acc9 2528
c4077254
GM
2529*** New options `erc-autojoin-timing' and `erc-autojoin-delay',
2530controlling attempts to autojoin a channel.
041d709f
CY
2531
2532*** New variable `erc-coding-system-precedence': If we use `undecided'
2533as the server coding system, this variable will then be consulted.
2534The default is to decode strings that can be decoded as utf-8 as
2535utf-8, and do the normal `undecided' decoding for the rest.
7492acc9 2536
041d709f 2537** Eshell changes
7492acc9 2538
05f77e38
GM
2539*** The default value of `eshell-directory-name' has changed
2540to be an "eshell" directory in `user-emacs-directory'.
2541The old "~/.eshell/" directory is still used if it exists, though.
041d709f
CY
2542
2543** gdb-mi
dfdb4cad
CY
2544
2545*** The M-x gdb command now uses the GDB Machine Interface protocol.
05f77e38
GM
2546It now supports multithread non-stop debugging and simultaneous
2547debugging of several threads.
7492acc9 2548
18af70d0
CY
2549** Image mode
2550
05f77e38
GM
2551*** RET (`image-toggle-animation') toggles animation, if applicable.
2552Animation plays once, unless the option `image-animate-loop' is non-nil.
18af70d0 2553
041d709f 2554** Info
723ee192 2555
7d301ae6 2556*** New command M-x info-display-manual displays a named Info manual.
2ebc3b94
GM
2557If that manual is already visited in some Info buffer, it displays
2558that buffer. (This is handy if you have many manuals in many *info*
2559buffers, and don't remember the name of the buffer visiting the manual
2560you want to consult.) Otherwise, it loads and displays the manual.
691cf4a0 2561
24ea72d3
EZ
2562*** `e' is now bound to `end-of-buffer' rather than to `Info-edit'.
2563This is for compatibility with the stand-alone Info reader program,
2564and also because `Info-edit' is a rarely used command that is disabled
2565by default.
2566
7d301ae6 2567** Mail mode changes (not Message mode)
dfdb4cad 2568
7d301ae6 2569*** New command M-x mail-add-attachment for adding MIME attachments
7d301ae6 2570
dfdb4cad
CY
2571*** The command M-x mail-attach-file was renamed to M-x mail-insert-file.
2572(Its name is misleading, since it has nothing to do with MIME
2573attachments.) The old name is now an obsolete alias to the new name.
2574
f2c3a9eb 2575** MH-E has been updated to MH-E version 8.3.1.
041d709f 2576See MH-E-NEWS for details.
37221432 2577
041d709f 2578** Modula-2 mode provides auto-indentation.
37221432 2579
041d709f 2580** mpc.el: Can use pseudo tags of the form tag1|tag2 as a union of two tags.
3c3d4f5b 2581
5d1ac394 2582** nXML mode no longer binds C-RET to `nxml-complete'.
dfdb4cad
CY
2583Completion is now performed via `completion-at-point', bound to C-M-i
2584or M-TAB. If `nxml-bind-meta-tab-to-complete-flag' is non-nil (the
2585default), this performs tag completion.
5d1ac394 2586
f2c3a9eb
CY
2587** Org mode has been updated to version 7.8.09.
2588See ORG-NEWS for details.
2589
041d709f 2590** Prolog mode has been completely revamped, with lots of additional
7d301ae6
CY
2591functionality such as more intelligent indentation, electricity,
2592support for more variants, including Mercury, and a lot more.
041d709f
CY
2593
2594** Rmail
2595
2596*** The command `rmail-epa-decrypt' decrypts OpenPGP data
2597in the Rmail incoming message.
2598
50419064
GM
2599*** The variable `rmail-message-filter' no longer has any effect.
2600This change was made in Emacs 23.1 but was not advertised at the time.
2601Try using `rmail-show-message-hook' instead.
2602
717a1362 2603** Shell mode
dfdb4cad
CY
2604
2605*** M-x shell prompts for the shell path name if the default directory
2606is a remote file name and neither the environment variable $ESHELL nor
2607the variable `explicit-shell-file-name' is set.
2608
2609*** TAB is now bound to the standard `completion-at-point' command,
2610which now implements the pcomplete rules for shell command completion.
717a1362 2611
7d301ae6
CY
2612** SMTPmail
2613
dfdb4cad 2614*** SMTPmail now uses encrypted connections (via STARTTLS) by default
7d301ae6
CY
2615if the mail server supports them. This uses either built-in GnuTLS
2616support, or the starttls.el library. Customize `smtpmail-stream-type'
2617to change this.
2618
7d301ae6
CY
2619*** The variable `smtpmail-auth-credentials' has been removed.
2620By default, the information is now stored in the file ~/.authinfo.
dfdb4cad
CY
2621This was the default value of smtpmail-auth-credentials. If you had
2622customized smtpmail-auth-credentials to a list of user names and
2623passwords, those settings are not used. During your first connection
2624to the smtp server, Emacs will prompt for the user name and password,
2625and offer to save them to ~/.authinfo. Or you can manually copy the
2626credentials to ~/.authinfo. For example, if you had
7d301ae6
CY
2627
2628 (setq smtpmail-auth-credentials
2629 '(("mail.example.org" 25 "jim" "s!cret")))
2630
2631then the equivalent line in ~/.authinfo would be
2632
2633 machine mail.example.org port 25 login jim password s!cret
2634
2635See the auth-source manual for more information, e.g. on encrypting
2636the credentials file.
2637
7d301ae6 2638*** The variable `smtpmail-starttls-credentials' has been removed.
dfdb4cad 2639If you had that set, you need to put
7d301ae6
CY
2640
2641 machine smtp.whatever.foo port 25 key "~/.my_smtp_tls.key" cert "~/.my_smtp_tls.cert"
2642
2643in your ~/.authinfo file instead.
2644
8ce192e3
LI
2645*** SMTPmail defaults to using the address in the From: header as the
2646SMTP MAIL FROM envelope. To override this, set `mail-envelope-from'
2647to the address you wish to use instead.
2648
34e8a2da 2649** SQL mode
041d709f 2650
34e8a2da
GM
2651*** New options `sql-port', `sql-connection-alist', `sql-send-terminator',
2652and `sql-oracle-scan-on'.
041d709f 2653
dfdb4cad 2654*** New options controlling prompting for login parameters.
34e8a2da
GM
2655Each supported product has a custom variable `sql-*-login-params',
2656which is a list of the parameters to be prompted for before a
2657connection is established.
041d709f
CY
2658
2659*** The command `sql-product-interactive' now takes a prefix argument,
34e8a2da 2660which causes it to prompt for an SQL product.
041d709f 2661
34e8a2da 2662*** Product-specific SQL interactive commands now take prefix arguments.
041d709f
CY
2663These commands (`sql-sqlite', `sql-postgres', `sql-mysql', etc.),
2664given a prefix argument, prompt for a name for the SQL interactive
2665buffer. This reduces the need for calling `sql-rename-buffer'.
2666
2667*** SQL interactive modes suppress command continuation prompts, and
2668replace tabs with spaces. The first change impacts multiple line SQL
2669statements entered with C-j between each line, statements yanked into
2670the buffer and statements sent with `sql-send-*' functions. The
34e8a2da
GM
2671second prevents the MySQL and Postgres interpreters from listing
2672object name completions when sent text via `sql-send-*' functions.
041d709f
CY
2673
2674*** New command `sql-connect' starts a predefined SQLi session,
2675using the login parameters from `sql-connection-alist'.
2676
2677*** New "Save Connection" menu item in SQLi buffers.
2678This gathers the login params specified for the SQLi session, if it
2679was not started by a connection, and saves them as a new connection.
2680
34e8a2da
GM
2681*** New commands for listing database objects and details:
2682sql-list-all and sql-list-table.
041d709f
CY
2683
2684*** An API for manipulating SQL product definitions has been added.
2685
2686** TeX modes
2687
2688*** latex-electric-env-pair-mode keeps \begin..\end matched on the fly.
412b9ee5 2689
459bba37 2690** Tramp
dfdb4cad 2691
7d301ae6 2692*** New inline access method "ksu" (kerberized su).
dfdb4cad 2693
459bba37 2694*** The following access methods are discontinued: "ssh1_old",
ea843702 2695"ssh2_old", "scp1_old", "scp2_old", "imap", "imaps" and "fish".
dfdb4cad 2696
b011fbfe
GM
2697*** The user option `remote-file-name-inhibit-cache' controls whether
2698remote file attributes are cached for better performance.
dfdb4cad 2699
58f74fe4
MA
2700*** The option `ange-ftp-binary-file-name-regexp' has changed its
2701default value to "".
dfdb4cad 2702
7d301ae6
CY
2703*** Handlers for `file-selinux-context' and `set-file-selinux-context'
2704for remote machines which support SELinux.
58f74fe4 2705
dfdb4cad 2706** New function `url-queue-retrieve', which behaves like url-retrieve,
a48ec60c
GM
2707but with limits (`url-queue-parallel-processes', `url-queue-timeout') on
2708the degree of parallelism.
177549d0 2709
0c32ce32
CY
2710** VC and related modes
2711
2712*** Support for pulling on distributed version control systems.
7d301ae6
CY
2713The command C-x v + (`vc-pull') runs a "pull" operation, if it is
2714supported (currently with Bzr, Git, and Mercurial), to update the
2715current branch and working tree. A prefix argument means to prompt
2716the user for specifics, e.g. a pull location.
0c32ce32 2717
dab3703d 2718*** `vc-update' is now an alias for `vc-pull'.
0c32ce32
CY
2719
2720*** Support for merging on distributed version control systems.
7d301ae6
CY
2721The command C-x v m (`vc-merge') now runs a "merge" operation, if it
2722is supported (currently with Bzr, Git, and Mercurial), to merge
2723changes from another branch into the current one. It prompts for
2724specifics, e.g. a merge source.
0c32ce32 2725
2afef60a 2726*** New option `vc-revert-show-diff' controls whether `vc-revert'
bbe43420 2727shows a diff while querying the user. It defaults to t.
2afef60a 2728
d4eb88c7
CY
2729*** Log entries in some Log View buffers can be toggled to display a
2730longer description by typing RET (log-view-toggle-entry-display).
dab3703d
GM
2731This is currently supported for Bzr, Git, and Mercurial (to support
2732another backend, define a `log-view-expanded-log-entry-function').
7d301ae6 2733In the Log View buffers made by C-x v L (`vc-print-root-log'), you can
d4eb88c7
CY
2734use this to display the full log entry for the revision at point.
2735
1c6c854e
CS
2736*** New command `vc-ediff' allows visual comparison of two revisions
2737of a file similar to `vc-diff', but using ediff backend.
2738
86c60681
CY
2739*** The option `vc-initial-comment' was removed in Emacs 23.2, but
2740this was not advertised at the time.
2741
86c60681
CY
2742*** `vc-toggle-read-only' is an obsolete alias for `toggle-read-only'.
2743Since Emacs 23, it has done the same thing as `toggle-read-only', but
80c6d77f
GM
2744this was not advertised at the time.
2745
041d709f
CY
2746** Obsolete modes
2747
23d70505
GM
2748*** abbrevlist.el
2749
f8ca9162 2750*** erc-hecomplete.el (use erc-pcomplete.el instead)
23d70505
GM
2751
2752*** partial-completion-mode (complete.el) is obsolete.
041d709f
CY
2753You can get a comparable behavior with:
2754(setq completion-styles '(partial-completion initials))
2755(setq completion-pcm-complete-word-inserts-delimiters t)
2756
23d70505
GM
2757*** pc-mode.el is obsolete (CUA mode is much more comprehensive).
2758
2c719188 2759*** pgg is obsolete (use EasyPG instead).
041d709f
CY
2760
2761*** sregex.el is obsolete, since rx.el is a strict superset.
2762
23d70505
GM
2763*** s-region.el and pc-select.el are obsolete.
2764They are superseded by shift-select-mode, enabled by default since 23.1.
2765
2c719188 2766*** vc-mcvs.el is obsolete (for lack of a maintainer).
ca5eed61 2767
0fe719e6
GM
2768** Miscellaneous
2769
05f77e38 2770*** The Landmark game is now invoked with `landmark', not `lm'.
c6ad2a4e 2771Its functions and variables have been similarly renamed.
05f77e38 2772
dfdb4cad 2773*** In `ido-file-completion-map', C-v is no longer bound to `ido-toggle-vc'.
05f77e38
GM
2774(This interfered with cua-mode.)
2775
9f678528
GM
2776*** f90.el has some support for Fortran 2008 syntax.
2777
0fe719e6
GM
2778*** `copyright-fix-years' can optionally convert consecutive years to ranges.
2779
5b3e6db8
GM
2780*** New command `nato-region' converts text to NATO phonetic alphabet.
2781
eb199145
GM
2782\f
2783* New Modes and Packages in Emacs 24.1
d445b3f8 2784
60e56523 2785** Occur Edit mode applies edits made in *Occur* buffers to the
8c0f49f0 2786original buffers. It is bound to "e" in Occur mode.
60e56523 2787
a075a2c5
GM
2788** New global minor mode electric-pair-mode.
2789When enabled, typing an open parenthesis automatically inserts the
2790matching closing one.
2791
2792** New global minor mode electric-indent-mode.
2793When enabled, typing certain characters triggers reindentation.
cd3308f3
GM
2794Major modes wishing to use this can set electric-indent-chars or
2795electric-indent-functions.
a075a2c5
GM
2796
2797** New global minor mode electric-layout-mode.
2798When enabled, typing certain characters automatically inserts newlines.
cd3308f3 2799Major modes wishing to use this can set electric-layout-rules.
3b843809 2800
a83ec3c9
CY
2801** tabulated-list.el provides a generic major mode for tabulated data,
2802from which other modes can be derived.
2803
d02c9bcd
SM
2804** pcase.el provides the ML-style pattern matching macro `pcase'.
2805
7725ebb7
MA
2806** secrets.el is an implementation of the Secret Service API, an
2807interface to password managers like GNOME Keyring or KDE Wallet. The
065f2743
MA
2808Secret Service API requires D-Bus for communication. The command
2809`secrets-show-secrets' offers a buffer with a visualization of the
2810secrets.
7725ebb7 2811
f9e78150
MA
2812** notifications.el provides an implementation of the Desktop
2813Notifications API. It requires D-Bus for communication.
2814
12fe5bcc
MA
2815** soap-client.el supports access to SOAP web services from Emacs.
2816soap-inspect.el is an interactive inspector for SOAP WSDL structures.
2817
ff1796f3 2818** New generic mode, xmodmap-generic-mode, for xmodmap files.
ad7d6ecb 2819
53bbe3ad 2820** New emacs-lock.el package.
7d301ae6
CY
2821The previous version has been moved to obsolete/old-emacs-lock.el.
2822Now, there is a proper minor mode `emacs-lock-mode'. Protection
2823against exiting Emacs and killing the buffer can be set separately.
2824The mechanism for automatically turning off protection for buffers
2825with dead inferior processes has been generalized.
53bbe3ad 2826
eb199145
GM
2827\f
2828* Incompatible Lisp Changes in Emacs 24.1
6dfcbe31 2829
7d301ae6
CY
2830** Passing a nil argument to a minor mode function call now ENABLES
2831the minor mode unconditionally. This is so that you can write e.g.
2832
dfdb4cad 2833 (add-hook 'text-mode-hook 'foo-mode)
7d301ae6 2834
dfdb4cad
CY
2835to enable foo-mode in Text mode buffers, removing the need for
2836`turn-on-foo-mode' style functions. This affects all mode commands
2837defined by `define-minor-mode'. If called interactively, the mode
2838command still toggles the minor mode.
7d301ae6 2839
d268b4fe
CY
2840** The return value of `backup-buffer' has changed.
2841It is now a list of three elements, where the second element is a list
2842describing the original file's SELinux context. If Emacs or the
f003f294 2843system lacks SELinux support, the context list is (nil nil nil nil).
7d301ae6 2844See "Basic SELinux support" above, under "Changes in Emacs 24.1".
d268b4fe 2845
dfdb4cad
CY
2846** `char-direction-table' and the `char-direction' function were deleted.
2847They were buggy and inferior to the new support of bidirectional
2848editing introduced in Emacs 24. If you need the bidirectional
2849properties of a character, use `get-char-code-property' with the last
2850argument `bidi-class'.
fa6996bc 2851
470d996d
TV
2852** `copy-directory' now copies the source directory as a subdirectory
2853of the target directory, if the latter is an existing directory. The
2854new optional arg COPY-CONTENTS, if non-nil, makes the function copy
2855the contents directly into a pre-existing target directory.
2856
9173a8fb
CY
2857** For mouse click input events in the text area, the Y pixel
2858coordinate in the POSITION list now counts from the top of the text
2859area, excluding any header line. Previously, it counted from the top
2860of the header line.
2861
7d301ae6
CY
2862** Support for "old-style" backquotes, obsolete for 10+ years, has
2863been further reduced. Now a backquote not followed by a space is
2864always treated as a "new-style" backquote. Please remove all
2865"old-style" backquotes from your code. If your code uses backquotes
2866as documented in the Elisp manual, and compiles without warning, then
2867you have nothing to do in this regard. Code not following the
2868appropriate conventions may fail to compile.
50ab02c5
CY
2869
2870The most common cause of trouble seems to be an old-style backquote
2871followed by a newline. Another cause of trouble is vector notation
2872for key sequence notation: instead of [(control ,)] and [(control ')],
2873you should write [(control ?,)] and [(control ?')], which will work in
7d301ae6 2874older Emacsen too.
288cf4e9 2875
520f2425
GM
2876** The macro `eval-at-startup' was removed in Emacs 23.2, but this
2877was not advertised at the time. The function `custom-initialize-delay'
2878replaced all known uses.
2879
7d301ae6
CY
2880** `view-buffer' now treats special mode-class in the same way that
2881`view-file' has since Emacs 22 (i.e. it won't enable View mode if the
2882major mode is special).
fd5c9dfa 2883
7d301ae6 2884** Menu and tool bar changes
6431f2e6 2885
7d301ae6 2886*** During startup, Emacs no longer adds entries for `menu-bar-lines'
0a19a6f8
JB
2887and `tool-bar-lines' to `default-frame-alist' and `initial-frame-alist'.
2888With these alist entries omitted, `make-frame' checks the value of the
2889variable `menu-bar-mode'/`tool-bar-mode' to determine whether to create
2890a menu-bar or tool-bar, respectively. If the alist entries are added,
2891they override the value of `menu-bar-mode'/`tool-bar-mode'.
6431f2e6 2892
7d301ae6
CY
2893*** The menu bar bindings's caches are not used any more.
2894Use (where-is-internal <def> nil t) instead.
2895
fe0aa820 2896** Regions created by mouse dragging are now normal active regions,
dfdb4cad 2897similar to those created by shift-selection (see Selection changes
7d301ae6
CY
2898above). In previous Emacs versions, these regions were delineated by
2899`mouse-drag-overlay'; that variable has been removed.
d6d8ee7a 2900
7d301ae6
CY
2901** The fourth argument of `filter-buffer-substring' has been removed.
2902If you want to remove text properties from the final result, simply
2903pass the result through substring-no-properties.
34c99998 2904
4583e796
GM
2905** cl.el no longer provides `cl-19'.
2906
7d301ae6
CY
2907** The following obsolete functions and aliases have been removed
2908(the appropriate new function is given in parentheses; "not needed"
2909means you can just remove all calls to the function in question):
2910
2911*** `comint-kill-output' (`comint-delete-output')
2912*** `decompose-composite-char' (`char-to-string')
2913*** `outline-visible' (`outline-invisible-p')
2914*** `internal-find-face' (`facep')
2915*** `internal-get-face' (`facep and check-face')
2916*** `frame-update-faces' (not needed)
2917*** `frame-update-face-colors' (`frame-set-background-mode')
2918*** `x-frob-font-weight' and `x-frob-font-slant' (`make-face-*' functions)
2c719188 2919*** `x-make-font-bold and x-make-font-demibold (`make-face-bold')
7d301ae6
CY
2920*** `x-make-font-italic' and `x-make-font-oblique' (`make-face-italic')
2921*** `x-make-font-bold-italic' (`make-face-bold-italic')
2922*** `x-make-font-unbold' (`make-face-unbold')
2923*** `x-make-font-unitalic' (`make-face-unitalic')
2924*** `mldrag-drag-mode-line' (`mouse-drag-mode-line')
2925*** `mldrag-drag-vertical-line' (`mouse-drag-vertical-line')
2926*** `iswitchb-default-keybindings' (`iswitchb-mode')
2927*** `char-bytes' (== 1)
2928*** `isearch-return-char' (`isearch-printing-char')
2929*** `make-local-hook' (not needed)
2930*** `set-screen-height' (`set-frame-height')
2931*** `set-screen-width' (`set-frame-width')
2932
7d301ae6
CY
2933** The following obsolete variables and varaliases have been removed
2934(the appropriate new variable is given in parentheses):
2935
2936*** `checkdoc-minor-keymap' (`checkdoc-minor-mode-map')
2937*** `vc-header-alist' (`vc-BACKEND-header')
2938*** `directory-sep-char' (== ?/)
2939*** `font-lock-defaults-alist' (`font-lock-defaults')
2940*** `e' (`float-e').
3226d6ca 2941
041d709f 2942** The following obsolete files were removed:
7b0e3048
GM
2943sc.el, x-menu.el, rnews.el, rnewspost.el
2944
7d301ae6
CY
2945** The format of the finder-inf.el file has changed, since the Finder
2946mechanism is now based on the package system. The variable
2947`finder-package-info' is replaced by `package--builtins' and
2948`finder-keywords-hash'.
33658d4e 2949
c2c79260
DE
2950** When generating autoloads, `update-directory-autoloads' no longer
2951assumes every inspected file is in your `load-path'. It instead
2952generates relative names according to the current `load-path'.
2953
eb199145 2954\f
93e0bed6 2955* Lisp Changes in Emacs 24.1
9097e8af 2956
041d709f 2957** Code can now use lexical scoping by default instead of dynamic scoping.
dfdb4cad 2958The `lexical-binding' variable enables lexical scoping for local
48da7392 2959variables. It is typically set via a file-local variable in the first
dfdb4cad
CY
2960line of the file, in which case it applies to all the code in that
2961file.
2962
041d709f
CY
2963*** `eval' takes a new optional argument `lexical' to choose the new lexical
2964binding instead of the old dynamic binding mode.
dfdb4cad 2965
041d709f
CY
2966*** Lexically scoped interpreted functions are represented with a new form
2967of function value which looks like (closure ENV ARGS &rest BODY).
2968
2969*** New macro `letrec' to define recursive local functions.
dfdb4cad
CY
2970
2971*** `defvar' and `defconst' now mark the variable as special (dynamic).
2972So do `defcustom' and other forms that call `defvar' as a subroutine.
2973
041d709f
CY
2974*** New function `special-variable-p' to check whether a variable is
2975declared as dynamically bound.
2976
88ed9e87
SM
2977*** The form ((lambda ...) ...) is deprecated.
2978
041d709f
CY
2979** An Emacs Lisp testing tool is now included.
2980Emacs Lisp developers can use this tool to write automated tests for
2981their code. See the ERT info manual for details.
2982
2983** Changes for bidirectional display and editing
f1816485 2984
041d709f 2985*** New function `current-bidi-paragraph-direction'.
7d301ae6 2986This returns the base direction of the paragraph at point.
041d709f 2987
041d709f 2988*** New function `bidi-string-mark-left-to-right'.
dfdb4cad
CY
2989Given a string containing characters from right-to-left scripts, this
2990function returns another string which can be safely inserted into a
2991buffer, such that any following text will be always displayed to the
7d301ae6
CY
2992right of that string. (This works by appending an invisible Unicode
2993"LEFT-TO-RIGHT MARK" character if the argument string might need it.)
041d709f 2994
7d301ae6 2995This is useful when the buffer has overall left-to-right paragraph
dfdb4cad
CY
2996direction and you need to insert a string whose contents are not known
2997in advance, without disrupting the layout of the line.
041d709f 2998
bee0fcef 2999** Window changes
dfdb4cad 3000
c4682d18
MR
3001*** Window tree functions are accessible in Elisp.
3002Functions are provided to return the parent, siblings or child windows
3003of any window including internal windows (windows not associated with a
3004buffer) in the window tree.
dfdb4cad 3005
24300f5f
CY
3006**** New function `window-valid-p' gives non-nil for live and internal
3007windows.
dfdb4cad 3008
24300f5f 3009**** Window manipulation can deal with internal windows.
c4682d18
MR
3010Many window handling functions like `split-window', `delete-window', or
3011`delete-other-windows' as well as the window resizing functions can now
3012act on any window including internal ones.
dfdb4cad 3013
c4682d18
MR
3014*** window-total-height/-width vs window-body-height/-width.
3015The function `window-height' has been renamed to `window-total-height'
3016and `window-width' has been renamed to `window-body-width'. The old
3017names are provided as aliases. Two new functions `window-total-width'
3018and `window-body-height' are provided.
dfdb4cad 3019
c4682d18
MR
3020*** Window parameters specific to window handling functions.
3021For each window you can specify a parameter to override the default
3022behavior of a number of functions like `split-window', `delete-window'
ed6235ea
MR
3023and `delete-other-windows'. The variable `ignore-window-parameters'
3024allows to ignore processing such parameters.
dfdb4cad 3025
c4682d18 3026*** New semantics of third argument of `split-window'.
c4682d18
MR
3027The third argument of `split-window' has been renamed to SIDE and can be
3028set to any of the values 'below, 'right, 'above, or 'left to make the
3029new window appear on the corresponding side of the window that shall be
3030split. Any other value of SIDE will cause `split-window' to split the
3031window into two side-by-side windows as before.
dfdb4cad 3032
c4682d18 3033*** Window resizing functions.
487ffd7a 3034A new standard function for resizing windows called `window-resize' has
c4682d18
MR
3035been introduced. This and all other functions for resizing windows no
3036longer delete any windows when they become too small.
dfdb4cad 3037
b3c0dbfd
MR
3038*** Deleting the selected window now selects the most recently selected
3039live window on that frame instead.
dfdb4cad 3040
c4682d18
MR
3041*** `adjust-window-trailing-edge' adjustments.
3042`adjust-window-trailing-edge' can now deal with fixed-size windows and
3043is able to resize other windows if a window adjacent to the trailing
3044edge cannot be shrunk any more. This makes its behavior more similar to
3045that of Emacs 21 without compromising, however, its inability to delete
3046windows which was introduced in Emacs 22.
dfdb4cad 3047
c4682d18
MR
3048*** Window-local buffer lists.
3049Windows now have local buffer lists. This means that removing a buffer
3050from display in a window will preferably show the buffer previously
3051shown in that window with its previous window-start and window-point
3052positions. This also means that the same buffer may be automatically
3053shown twice even if it already appears in another window.
dfdb4cad 3054
bee0fcef
CY
3055*** `switch-to-buffer' has a new optional argument FORCE-SAME-WINDOW,
3056which if non-nil requires the buffer to be displayed in the currently
3057selected window, signaling an error otherwise. If nil, another window
3058can be used, e.g. if the selected one is strongly dedicated.
dfdb4cad 3059
0a2132ba 3060*** `split-window-vertically' and `split-window-horizontally' renamed
2d197ffb
CY
3061to `split-window-below' and `split-window-right' respectively.
3062The old names are kept as aliases.
dfdb4cad 3063
0a2132ba
CY
3064*** Display actions
3065
3066**** The second arg to `display-buffer' and `pop-to-buffer' is now
3067named ACTION, and takes a display action of the same form as
3068`display-buffer-base-action' (see Changes, above). A non-nil,
3069non-list value is treated specially, as the old meaning.
3070
3071**** New variable `display-buffer-overriding-action'.
3072
3073**** The procedure of `display-buffer' etc. to choose a window is
3074determined by combining `display-buffer-overriding-action',
3075`display-buffer-alist', the ACTION arg, `display-buffer-base-action',
3076and `display-buffer-fallback-action'. The second and fourth of these
3077are user-customizable variables.
3078
3079See the docstring of `display-buffer' for details.
bee0fcef 3080
20d2304d
CY
3081*** New functions `window-state-get' and `window-state-put'.
3082These functions allow to save and restore the state of an arbitrary
3083frame or window as an Elisp object.
3084
a2a25d24 3085** Completion
041d709f 3086
7d301ae6
CY
3087*** New variable `completion-extra-properties' used to specify extra
3088properties of the current completion:
a2a25d24
SM
3089- :annotate-function, same as the old completion-annotate-function.
3090- :exit-function, function to call after completion took place.
3091
7d301ae6
CY
3092*** Functions on `completion-at-point-functions' can return any of the
3093properties valid for `completion-extra-properties'.
a2a25d24 3094
7d301ae6 3095*** `completion-annotate-function' is obsolete.
a2a25d24 3096
620c53a6
SM
3097*** New `metadata' method for completion tables. The metadata thus returned
3098can specify various details of the data returned by `all-completions':
3099- `category' is the kind of objects returned (e.g., `buffer', `file', ...),
3100 used to select a style in completion-category-overrides.
3101- `annotation-function' to add annotations in *Completions*.
3102- `display-sort-function' to specify how to sort entries in *Completions*.
3103- `cycle-sort-function' to specify how to sort entries when cycling.
3104
7d301ae6
CY
3105*** `minibuffer-local-filename-must-match-map' is not used any more.
3106Instead, the bindings in `minibuffer-local-filename-completion-map'
3107are combined with `minibuffer-local-must-match-map'.
de09aa52
CY
3108
3109*** New variable `completing-read-function' allows overriding the
3110behavior of `completing-read'.
3111
f042970d 3112** `glyphless-char-display' can now distinguish between graphical and
16a43933
CY
3113text terminal display, via a char-table entry that is a cons cell.
3114
7d301ae6 3115** `pre-command-hook'/`post-command-hook' are not reset to nil on error.
f6d62986
SM
3116Instead, the offending function is removed.
3117
b1f6fa26
CY
3118** New hook types
3119
3120*** New function `run-hook-wrapped' for running an abnormal hook by
3121passing the hook functions as arguments to a "wrapping" function.
e7bc51d0 3122Like `run-hook-with-args-until-success', it stops at the first
5385447f 3123non-nil return value.
e7bc51d0 3124
b1f6fa26
CY
3125*** New macro `with-wrapper-hook' for running an abnormal hook as a
3126set of "wrapping" filters, similar to around advice.
54521c99
GM
3127(A version of this macro was actually added in Emacs 23.2 but was not
3128advertised at the time.)
f6d62986 3129
0b19b281 3130** Debugger changes
dfdb4cad 3131
0b19b281 3132*** New macro `condition-case-unless-debug' (this was actually added in
1be3ca5a 3133Emacs 23.1 as condition-case-no-debug, but not advertised)
dfdb4cad 3134
0b19b281 3135*** The macro `with-demoted-errors' was added in Emacs 23.1, but not advertised.
dfdb4cad 3136
0b19b281 3137*** Variable `stack-trace-on-error' removed.
dfdb4cad 3138
0b19b281
CY
3139*** The debugger can now "continue" from an error, which means it will
3140jump to the error handler as if the debugger had not been invoked
3141instead of jumping all the way to the top-level.
dfdb4cad 3142
0b19b281
CY
3143*** Set `debug-on-event' to enter the debugger on events like SIGUSR1.
3144This can be useful when `inhibit-quit' is set.
d6b1d521 3145
953cebf5 3146** The new function `server-eval-at' allows evaluation of Lisp forms on
37576acd 3147named Emacs server instances.
7deebf1b 3148
1b9f60cc
GM
3149** `call-process' and `call-process-region' allow a `(:file "file")' spec
3150to redirect STDOUT to a file.
7deebf1b 3151
7d301ae6
CY
3152** The function `format-time-string' now supports the %N directive,
3153for higher-resolution time stamps.
da97a9e6 3154
0b19b281 3155** New input reading functions
dfdb4cad 3156
0b19b281
CY
3157*** New function `read-char-choice' reads a restricted set of
3158characters, discarding any inputs not inside the set.
dfdb4cad 3159
0b19b281
CY
3160*** The command `read-color' now requires a match for a color name
3161or RGB triplet, instead of signaling an error if the user provides
3162invalid input.
dfdb4cad 3163
0b19b281 3164**** `facemenu-read-color' is now an alias for `read-color'.
3ef01959 3165
2e288d54
JB
3166** `image-library-alist' is renamed to `dynamic-library-alist'.
3167The variable is now used to load all kind of supported dynamic libraries,
3168not just image libraries. The previous name is still available as an
3169obsolete alias.
3170
0b19b281 3171** Syntax parsing changes
dfdb4cad 3172
0b19b281 3173*** New variable `syntax-propertize-function'.
04e2ce72 3174This replaces `font-lock-syntactic-keywords' which is now obsolete.
cf38dd42
SM
3175This allows syntax-table properties to be set independently from font-lock:
3176just call syntax-propertize to make sure the text is propertized.
3177Together with this new variable come a new hook
3178syntax-propertize-extend-region-functions, as well as two helper functions:
3179syntax-propertize-via-font-lock to reuse old font-lock-syntactic-keywords
3180as-is; and syntax-propertize-rules which provides a new way to specify
3181syntactic rules.
dfdb4cad 3182
0b19b281 3183*** Syntax tables support a new "comment style c" additionally to style b.
a2e5caf7 3184
7d301ae6 3185** New hook `post-self-insert-hook', run after `self-insert-command'.
041d709f 3186
4e2db1fe 3187** frame-local variables cannot be let-bound any more.
041d709f 3188
15de15c6 3189** Major and minor mode changes
dfdb4cad 3190
0b19b281
CY
3191*** `set-auto-mode' now respects mode: local variables at the end of files,
3192as well as those in the -*- line.
dfdb4cad 3193
15de15c6
CY
3194*** `prog-mode' is a new major mode from which programming modes
3195should be derived.
dfdb4cad 3196
15de15c6
CY
3197**** `prog-mode-hook' can be used to enable features for programming
3198modes, e.g. (add-hook 'prog-mode-hook 'flyspell-prog-mode) to enable
3199on-the-fly spell checking for comments and strings.
dfdb4cad 3200
14dd22d2
JB
3201**** New minor modes `prettify-symbols-mode' and
3202`global-prettify-symbols-mode' let the user enable symbol
3203prettification (replacing a string like "lambda" with the Greek lambda
3204character).
398b4366 3205
15de15c6
CY
3206*** New hook `change-major-mode-after-body-hook', run by
3207`run-mode-hooks' just before any other mode hooks.
dfdb4cad 3208
7a9a2fc6
GM
3209*** Enabled globalized minor modes can be disabled in specific major modes.
3210If the global mode is global-FOO-mode, then run (FOO-mode -1) in the
3211major mode's hook, where FOO-mode toggles the mode on a per-buffer basis.
dfdb4cad 3212
feb8a83a 3213*** `define-minor-mode' accepts new keywords :variable, :after-hook.
f44379e7 3214
7d301ae6
CY
3215** File-handling changes
3216
7d301ae6 3217*** `delete-file' and `delete-directory' now accept optional arg TRASH.
f1a5d776
CY
3218Trashing is performed if TRASH and `delete-by-moving-to-trash' are
3219both non-nil. Interactively, TRASH defaults to t, unless a prefix
3220argument is supplied (see Trash changes, above).
53967e09 3221
7d301ae6 3222*** New file predicates: `file-equal-p', `file-in-directory-p'.
ec70a47d 3223
4039c786
CY
3224** Tool-bars can display separators.
3225Tool-bar separators are handled like menu separators in menu-bar maps,
94975270 3226i.e. via menu entries of the form `(menu-item "--")'.
9317e499 3227
00fe2df1
JL
3228** Image API
3229
18af70d0
CY
3230*** Animated images support (currently animated gifs only).
3231
3232**** `image-animated-p' returns non-nil if an image can be animated.
3233
3234**** `image-animate' animates a supplied image spec.
3235
3236**** `image-animate-timer' returns the timer object for an image that
3237is being animated.
00fe2df1 3238
7cb76fe0
GM
3239*** `image-extension-data' has been renamed to `image-metadata'.
3240The old name is an obsolete alias to the new one.
1546c559 3241
b4ac6e8c
GM
3242*** Image mode can view any image type that ImageMagick supports.
3243This requires Emacs to be built with ImageMagick support.
7d301ae6
CY
3244
3245**** New function `imagemagick-types', defined if ImageMagick support
3246is enabled, returns a list of image file extensions that your
3247ImageMagick installation supports.
3248
3249**** New function `imagemagick-register-types' enables ImageMagick
3250image types in Image mode and in `create-image' and other helper
3251functions.
3252
3253**** New option `imagemagick-types-inhibit' excludes certain
3254ImageMagick image types from `imagemagick-register-types'.
3255
7d301ae6
CY
3256**** With ImageMagick support, there are extra Image mode commands to
3257resize and rotate images: `image-transform-fit-to-height',
3258`image-transform-fit-to-width', `image-transform-set-rotation', and
3259`image-transform-set-scale'.
041d709f 3260
7d301ae6
CY
3261** `compose-mail' now accepts an optional 8th arg, RETURN-ACTION, and
3262passes it to the mail user agent function. This argument specifies an
3263action for returning to the caller after finishing with the mail. For
3264example, this is used by Rmail to optionally delete a mail window.
b4ac6e8c 3265
71c17aec 3266** XML and HTML parsing
483ab230
CY
3267If Emacs is compiled with libxml2 support, there are two new
3268functions: `libxml-parse-html-region' (which parses "real world" HTML)
3269and `libxml-parse-xml-region' (which parses XML). Both return an
3270Emacs Lisp parse tree.
4b9832a6 3271
7d301ae6 3272** Networking and encryption changes
e2574f2c 3273
7d301ae6
CY
3274*** `open-network-stream' can now be used to open an encrypted stream.
3275It now accepts an optional `:type' parameter for initiating a TLS
3276connection, directly or via STARTTLS. To do STARTTLS, additional
3277parameters (`:end-of-command', `:success', `:capabilities-command')
3278must also be supplied.
3279
3280*** New library gnutls.el.
dfdb4cad
CY
3281The new function `gnutls-available-p' returns non-nil if Emacs is
3282built with GnuTLS support. The main entry points are
3283`open-gnutls-stream' and `gnutls-negotiate'. It's easiest to use
3284these functions through `open-network-stream', because that can
7d301ae6
CY
3285upgrade connections through STARTTLS opportunistically or use plain
3286SSL, depending on your needs. For debugging, set `gnutls-log-level'
3287greater than 0.
3288
7d301ae6
CY
3289*** New primitive `secure-hash' that supports many secure hash algorithms:
3290md5, sha1, sha2, sha224, sha256, sha384, and sha512. The lisp library
3291sha1.el has been removed. The `sha1' feature is provided by default.
71c17aec 3292
a6020335
MH
3293** Isearch
3294
3295*** New hook `isearch-update-post-hook' that runs in `isearch-update'.
3296
9326ba26
CY
3297** Progress reporters can now "spin".
3298The MIN-VALUE and MAX-VALUE arguments of `make-progress-reporter' can
3299now be nil, or omitted. This makes a "non-numeric" reporter. Each
3300time you call `progress-reporter-update' on that progress reporter,
3301with a nil or omitted VALUE argument, the reporter message is
3302displayed with a "spinning bar".
3303
3e214b50
JB
3304** New variable `revert-buffer-in-progress-p' is true while a buffer is
3305being reverted, even if the buffer has a local `revert-buffer-function'.
3306
001bf877
GM
3307** New variables `delayed-warnings-list' and `delayed-warnings-hook'.
3308If delayed-warnings-list is non-nil, the command loop calls
7d301ae6
CY
3309`delayed-warnings-hook' after `post-command-hook'. At present, this
3310is only used by Emacs on some platforms to display warnings during
3311startup, which might otherwise not be noticed. This uses the
3312functions `display-delayed-warnings' and `collapse-delayed-warnings'.
001bf877 3313
6420d28b
CY
3314** rx.el has a new `group-n' construct for explicitly numbered groups.
3315
dac86404
GM
3316** New function `make-composed-keymap' that constructs a new keymap
3317from multiple input maps. You can use this to make a keymap that
3318inherits from multiple maps, eg:
3319 (set-keymap-parent newmap (make-composed-keymap othermap parent))
43dc9f5b 3320
c8f6ec5c
GM
3321** New function `string-prefix-p'.
3322(This was actually added in Emacs 23.2 but was not advertised at the time.)
3323
27f7ef2f 3324** New reader macro ## that stands for the empty symbol.
43dc9f5b
AS
3325This means that the empty symbol can now be read back. Also, #: by itself
3326(when not immediately followed by a possible symbol character) stands for
3327an empty uninterned symbol.
041d709f 3328
fead402d
CY
3329** New math functions `isnan', `copysign', `frexp', `ldexp'.
3330
7d301ae6 3331** The following functions and variables are obsolete:
041d709f 3332
05f77e38
GM
3333*** `tooltip-use-echo-area' is obsolete.
3334Rather than setting this to t, disable Tooltip mode instead.
3335
041d709f
CY
3336*** buffer-substring-filters is obsolete.
3337Use `filter-buffer-substring-functions' instead.
3338
3339*** `byte-compile-disable-print-circle' is obsolete.
3340
3341*** `deferred-action-list' and `deferred-action-function' are obsolete.
f160676e
GM
3342Use `post-command-hook' instead.
3343
67e729a5
CY
3344*** `font-lock-maximum-size' is obsolete.
3345
eb199145 3346\f
93e0bed6 3347* Changes in Emacs 24.1 on Non-Free Operating Systems
d53a60a6 3348
7a22e700 3349** On MS Windows, Emacs warns when using the obsolete init file _emacs,
a2f0118c
GM
3350and also when HOME is set to C:\ by default.
3351
7a22e700 3352** New configure.bat options
04779484 3353
7a22e700 3354*** --enable-checking builds Emacs with extra runtime checks.
e3aef5c6 3355
7a22e700 3356*** --distfiles specifies files to be included in binary distribution.
e2574f2c 3357
7a22e700
OK
3358*** --without-gnutls disables automatic GnuTLS detection.
3359
a0d363f4 3360*** --lib for general library linkage, works with the USER_LIBS build variable.
e2574f2c 3361
0a19a6f8 3362** New make target `dist' to create binary distribution for MS Windows.
e3aef5c6 3363
1f5e1a16
GM
3364** The Lisp function `w32-default-color-map' is now obsolete.
3365(It is only used internally in the Emacs C code.)
5430d399 3366
1f5e1a16
GM
3367** Customize ns-auto-hide-menu-bar to have the menu-bar hidden, but
3368reappear on mouse-over. (Requires OS X 10.6 or later.)
04e2ce72 3369
ad7c802c
CY
3370** On Mac OS X, dragging a file into Emacs visits the file, like on
3371other platforms, rather than inserting its contents into the buffer.
3372
05197f40 3373\f
a933dad1 3374----------------------------------------------------------------------
5b87ad55 3375This file is part of GNU Emacs.
a933dad1 3376
ab73e885 3377GNU Emacs is free software: you can redistribute it and/or modify
5b87ad55 3378it under the terms of the GNU General Public License as published by
ab73e885
GM
3379the Free Software Foundation, either version 3 of the License, or
3380(at your option) any later version.
5b87ad55
GM
3381
3382GNU Emacs is distributed in the hope that it will be useful,
3383but WITHOUT ANY WARRANTY; without even the implied warranty of
3384MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
3385GNU General Public License for more details.
a933dad1 3386
5b87ad55 3387You should have received a copy of the GNU General Public License
ab73e885 3388along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
a933dad1 3389
05197f40 3390\f
a933dad1
DL
3391Local variables:
3392mode: outline
3393paragraph-separate: "[ \f]*$"
3394end: