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