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