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