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