Avoid _setjmp/_longjmp problems with local nonvolatile variables.
[bpt/emacs.git] / etc / NEWS
CommitLineData
29b7722a 1GNU Emacs NEWS -- history of user-visible changes.
5b87ad55 2
a1ed8b05 3Copyright (C) 2010-2012 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
GM
17Temporary note:
18+++ indicates that the appropriate manual has already been updated.
19--- means no change in the manuals is called for.
20When you add a new item, please add it without either +++ or ---
21so we will look at it and add it to the manual.
22
23\f
2a1e2476 24* Installation Changes in Emacs 24.3
b8df54ff 25
8b2e00a3 26** New configure option '--without-all' to disable additional features.
da3d2105
DA
27This disables most of the features that are normally enabled by default.
28
29** New configure option '--enable-link-time-optimization' to utilize
30an appropriate feature provided by GCC since version 4.5.0.
31
b8df54ff
PE
32** New configure option '--enable-gcc-warnings', intended for developers.
33If building with GCC, this enables compile-time checks that warn about
34possibly-questionable C code. On a recent GNU system there should be
35no warnings; on older and on non-GNU systems the generated warnings
ae6e112d 36may be useful.
b8df54ff 37
501390c5
PE
38** The configure option '--disable-maintainer-mode' has been removed,
39as it was confusingly-named and rarely useful.
40
5af9cb6b
GM
41---
42** You can use `NO_BIN_LINK=t make install' to prevent the installation
43overwriting "emacs" in the installation bin/ directory with a link
44to emacs-VERSION.
45
a4a18b8b
GM
46---
47** Emacs uses libtinfo in preference to libncurses, if available.
48
187e9b90
GM
49---
50** On FreeBSD and NetBSD, configure no longer adds /usr/local/lib and
51/usr/pkg/lib to the linker search path. You must add them yourself if
52you want them.
53
136c45ee
GM
54---
55** On Mac OS X, configure no longer automatically adds the Fink /sw
56directories to the search path. You must add them yourself if you want them.
57
276d5f5d
GM
58---
59** The standalone scripts rcs-checkin and vcdiff have been removed
60(from the bin and libexec directories, respectively). The former is
61no longer relevant, the latter is replaced by lisp (in vc-sccs.el).
62
646b5f55
AS
63** The configuration option '--enable-use-lisp-union-type' has been
64renamed to '--enable-check-lisp-object-type', as the resulting
65Lisp_Object type no longer uses a union to implement the compile time
66check that this option enables.
67
a1ed8b05 68\f
2a1e2476 69* Startup Changes in Emacs 24.3
e5fcdb5e
GM
70
71** Emacs no longer searches for `leim-list.el' files beneath the standard
72lisp/ directory. There should not be any there anyway. If you have
73been adding them there, put them somewhere else, eg site-lisp.
74
4107c81e
GM
75---
76** The `--no-site-lisp' command line option now works for Nextstep builds.
77
a1ed8b05 78\f
2a1e2476 79* Changes in Emacs 24.3
a1ed8b05 80
011474aa
CY
81** You can now scroll the selected window in most y-or-n prompts.
82Typing C-v or M-v at a prompt scrolls forward or backward
83respectively, without leaving the y-or-n prompt.
84
c89926a5
CY
85** Help changes
86
87*** `C-h f' (describe-function) can now perform autoloading.
88When this command is called for an autoloaded function whose docstring
89contains a key substitution construct, that function's library is
90automatically loaded, so that the documentation can be shown
91correctly. To disable this, set `help-enable-auto-load' to nil.
92
93*** `C-h f' now reports previously-autoloaded functions as "autoloaded",
94even after their associated libraries have been loaded (and the
95autoloads have been redefined as functions).
96
d35af63c
PE
97** The function `current-time' now returns extended-format time stamps
98(HIGH LOW USEC PSEC) that use picosecond resolution; the PSEC
99component is new. PSEC is typically a multiple of 1000 on current
100machines. Other functions that use this format, such as
101file-attributes and format-time-string, have been changed accordingly.
102Old-format time stamps are still accepted.
103
cf29dd84
PE
104** Emacs now generates backtraces on fatal errors.
105On encountering a fatal error, Emacs now outputs a textual description
106of the fatal signal, and a short backtrace on platforms like glibc
107that support backtraces.
108
e5a36063
GM
109** New functions `system-users', `system-groups' return lists of the user
110name, group names known to the system (where possible).
111
a1ed8b05
GM
112** If your Emacs was built from a bzr checkout, the new variable
113`emacs-bzr-version' contains information about which bzr revision was used.
114
c505aaeb
CY
115** ImageMagick support, if available, is automatically enabled.
116It is no longer necessary to call `imagemagick-register-types'
117explicitly to install ImageMagick image types; that function is called
7afbaca4
GM
118automatically at startup, or when customizing a relevant imagemagick-
119option.
c505aaeb
CY
120
121*** Setting `imagemagick-types-inhibit' to t now disables the use of
87eb79c2
GM
122ImageMagick to view images. You must call imagemagick-register-types
123afterwards if you do not use customize to change this.
c505aaeb 124
7afbaca4 125*** The new variable `imagemagick-enabled-types' also affects which
60b5f187
GM
126ImageMagick types are treated as images. The function
127`imagemagick-filter-types' returns the list of types that will be
128treated as images.
32d72c2f 129
1b9b4cf4
CY
130*** Images displayed via ImageMagick now support transparency and the
131:background image spec property.
c505aaeb 132
9ce04965
GM
133** Internationalization changes
134
32ac3a6b 135*** New language environment: Persian.
9ce04965 136
db80bdc8
GM
137** Face underlining can now use a wave.
138See the "Face Attributes" section of the Elisp manual.
139
2e2d2a13
LL
140** New fringe bitmap exclamation-mark.
141
de6ff46d
CY
142** String values for `initial-buffer-choice' also apply to emacsclient
143frames, if emacsclient is only told to open a new frame without
144specifying any file to visit or expression to evaluate.
145
dc0f75c8
GM
146+++
147** You can prevent the creation of lock files by setting `create-lockfiles'
148to nil. Use with caution, and only if you really need to.
149
b8a82b69 150+++
03794570 151** Using "unibyte: t" in Lisp source files is obsolete.
57699e37 152Use "coding: raw-text" instead.
03794570 153
383f7350
CY
154** Mode line changes
155
156*** New option `mode-line-default-help-echo' specifies the help text
157(shown in a tooltip or in the echo area) for any part of the mode line
158that does not have its own specialized help text.
159
cbe46e5f
CY
160*** You can now click mouse-3 in the coding system indicator to
161invokes `set-buffer-file-coding-system'.
162
21ffb35a
MA
163+++
164** Setting `enable-remote-dir-locals' to non-nil allows directory
165local variables on remote hosts.
166
9ea10cc3 167+++
ddfc8813
RK
168** `insert-char' is now a command, and `ucs-insert' an obsolete alias
169for it.
170
f85f636a
CY
171** The entry for PCL-CVS has been removed from the Tools menu.
172The PCL-CVS commands are still available via the keyboard.
173
a1ed8b05 174\f
2a1e2476 175* Editing Changes in Emacs 24.3
c25df26e 176
b1183529 177** The `z' key no longer has a binding in most special modes.
a828f05f
CY
178It used to be bound to `kill-this-buffer', but `z' is too easy to
179accidentally type.
b1183529 180
2170b1bd
CY
181** New option `yank-handled-properties' allows processing of text
182properties on yanked text, in more ways that are more general than
183just removing them, as done by `yank-excluded-properties'.
184
a5c66610
JB
185** New option `delete-trailing-lines' specifies whether the M-x
186delete-trailing-whitespace command should delete trailing lines at the
345a2258
CY
187end of the buffer. It defaults to t.
188
0979429b
J
189+++
190** `C-x r +' is now overloaded to invoke `append-to-register.
bfabf70a 191
0979429b 192+++
bfabf70a
AS
193** New option `register-separator' specifies the register containing
194the text to put between collected texts for use with M-x
195append-to-register and M-x prepend-to-register.
0979429b 196
b9cb2387
JL
197** Search changes
198
199*** Global `M-s _' starts a symbol (identifier) incremental search,
200and `M-s _' in Isearch toggles symbol search mode.
201`M-s c' in Isearch toggles search case-sensitivity.
202
63dd1c6f
JL
203*** `M-s SPC' in Isearch toggles whitespace matching mode
204in both ordinary and regexp incremental search, so that each
205sequence of spaces in the search string matches any combination
206of one or more whitespace characters defined by the variable
207`search-whitespace-regexp'. In ordinary incremental search,
208`isearch-toggle-lax-whitespace' toggles the value of the variable
209`isearch-lax-whitespace'. In regexp incremental search, it toggles
210the value of the variable `isearch-regexp-lax-whitespace'.
dd7ffad6 211
826b3235
JL
212** query-replace changes
213
214*** When new option `replace-lax-whitespace' is non-nil,
215and you enter a space or spaces in the strings or regexps
216to be replaced, `query-replace' will match any sequence matched
217by the regexp `search-whitespace-regexp'.
218
c25df26e
RT
219** M-x move-to-column, if called interactively with no prefix arg, now
220prompts for a column number.
221
0f84437b
TV
222** `mouse-avoidance-banish-position' can now be used to customize
223`mouse-avoidance-mode' further.
224
e1293765 225** `C-u M-=' now counts lines/words/characters in the entire buffer.
0fe776a1 226
09b95ce3
MY
227** `C-M-f' and `C-M-b' will now move to the path name separator
228character when doing minibuffer filename prompts.
229
5dd1713e
CY
230** `goto-char' is now bound to `M-g c'.
231
be755c79
RT
232** New command `C-x r M-w' (copy-rectangle-as-kill).
233It copies the region-rectangle as the last rectangle kill.
234
6b79ce7e
NTND
235** New input method `vietnamese-vni'.
236
a1ed8b05 237\f
2a1e2476 238* Changes in Specialized Modes and Packages in Emacs 24.3
b2459884 239
f0019ede
MB
240** Compilation has a new `compilation-always-kill' configuration variable.
241
ae4969c2
JD
242** Term changes
243
244The variables `term-default-fg-color' and `term-default-bg-color' are
245now deprecated in favor of the `term-face' face, that you can
e3ac1281
PE
246customize. Also, it is now possible to customize how are displayed the
247ANSI terminal colors and styles by customizing the corresponding
ae4969c2
JD
248`term-color-<COLOR>', `term-color-underline' and `term-color-bold'
249faces.
250
89660017
SM
251** CL
252*** CL's main entry is now (require 'cl-lib).
7c1898a7 253`cl-lib' is like the old `cl' except that it uses the namespace cleanly,
89660017
SM
254i.e. all its definitions have the "cl-" prefix (and internal definitions use
255the "cl--" prefix).
7c1898a7
SM
256
257If `cl' provided a feature under the name `foo', then `cl-lib' provides it
258under the name `cl-foo' instead, with the exceptions of the few definitions
259that had to use `foo*' to avoid conflicts with pre-existing Elisp entities,
260which have not been renamed to `cl-foo*' but just `cl-foo'.
261
89660017 262The old `cl' is now deprecated and is just a bunch of aliases that
7c1898a7
SM
263provide the old non-prefixed names.
264
89660017
SM
265*** `cl-flet' is not like `flet' (which is deprecated).
266Instead it obeys the behavior of Common-Lisp's `flet'.
267
268*** `cl-labels' is slightly different from `labels'.
269The difference is that it relies on the `lexical-binding' machinery (as opposed
270to the `lexical-let' machinery used previously) to capture definitions in
271closures, so such closures will only work if `lexical-binding' is in use.
272
273*** `progv' was rewritten to use the `let' machinery.
274A side effect is that vars without corresponding value are bound to nil
275rather than making them unbound.
276
e76f0800
CY
277** Desktop
278
279*** `desktop-path' no longer includes the "." directory. Desktop
280files are now located in ~/.emacs.d by default.
281
358c19d9
GM
282** Python mode
283
284A new version of python.el, which provides several new features, including:
40d8bcb8
GM
285per-buffer shells, better indentation, Python 3 support, and improved
286shell-interaction compatible with iPython (and virtually any other
287text based shell).
288
289*** Some user options have been replaced/renamed:
290Old defcustom: | New defcustom:
291python-indent | python-indent-offset
292python-guess-indent | python-indent-guess-indent-offset
293python-pdbtrack-do-tracking-p | python-pdbtrack-activate
294python-use-skeletons | python-skeleton-autoinsert
295
296*** Some user options have been removed:
297
298**** `python-indent-string-contents': Strings are never indented.
299
300**** `python-honour-comment-indentation':
301Comments are never considered as indentation markers themselves.
302
303**** `python-continuation-offset': Indentation is automatically
304calculated in a pep8 compliant way depending on the context.
305
306**** `python-shell-prompt-alist', `python-shell-continuation-prompt-alist':
307Have no direct mapping as the shell interaction is completely different.
308
309**** `python-python-command', `python-jython-command':
310Replaced by `python-shell-interpreter'.
311
312**** `inferior-python-filter-regexp', `python-remove-cwd-from-path',
313`python-pdbtrack-minor-mode-string', `python-source-modes':
314No longer relevant.
315
316*** Some commands have been replaced:
317Old command | New command
318python-insert-class | python-skeleton-class
319python-insert-def | python-skeleton-def
320python-insert-for | python-skeleton-for
321python-insert-if | python-skeleton-if
322python-insert-try/except | python-skeleton-try
323python-insert-try/finally | python-skeleton-try
324python-insert-while | python-skeleton-while
325python-find-function | python-nav-jump-to-defun
326python-next-statement | python-nav-forward-sentence
327python-previous-statement | python-nav-backward-sentence
328python-send-buffer | python-shell-send-buffer
329python-send-defun | python-shell-send-defun
330python-send-region | python-shell-send-region
331python-send-region-and-go | Emulate with python-shell-send-region and
332 python-shell-switch-to-shell
333python-send-string | python-shell-send-string
334python-switch-to-python | python-shell-switch-to-shell
335python-describe-symbol | python-eldoc-at-point
336
358c19d9
GM
337** VHDL mode
338
339*** The free software compiler GHDL is supported (and now the default).
340
341*** Support for the VHDL-AMS packages has been added/updated.
342
343*** Updated to the 2002 revision of the VHDL standard.
344
345*** Accepts \r and \f as whitespace.
fda91268 346
04e082b0
MM
347** SQL Mode
348
349*** DB2 added `sql-db2-escape-newlines'
350
351If non-nil, newlines sent to the command interpreter will be escaped
352by a backslash. The default does not escape the newlines and assumes
353that the sql statement will be terminated by a semicolon.
354
bc1b21bb
JL
355** Diff mode
356
357Faces for changes now use the same diff color scheme as in modern VCSes
358where deletions are displayed in red (new faces `diff-refine-removed'
359and `smerge-refined-removed' and new definition of `diff-removed'),
360insertions in green (new faces `diff-refine-added' and
361`smerge-refined-added' and new definition of `diff-added').
362The variable `diff-use-changed-face' defines whether to use
363the face `diff-changed', or `diff-removed' and `diff-added'
364to highlight changes in context diffs.
365
cdff2ce7
DN
366*** The new command `diff-remove-trailing-whitespace' fixes trailing
367whitespace problems introduced by the diff.
368
6dafa0d5
JL
369** Ediff now uses the same color scheme as Diff mode
370on high color displays.
371
2e2d2a13
LL
372** Flymake uses fringe bitmaps to indicate errors and warnings.
373See flymake-fringe-indicator-position, flymake-error-bitmap and
374flymake-warning-bitmap.
375
ff46c759
SM
376** `sh-script'
377*** Pairing of parens/quotes uses electric-pair-mode instead of skeleton-pair.
378*** `sh-electric-here-document-mode' now controls auto-insertion of here-docs.
379*** `sh-use-smie' lets you choose a new indentation and navigation code.
380
d13c8be6
SM
381** reStructuredText mode
382
6d3f7c2f
SM
383*** Rebind nearly all keys making room for more keys and complying
384better to usage in other modes. Describe bindings with C-c C-h.
d13c8be6 385
6d3f7c2f
SM
386*** Major revision of indentation working very similar to other
387modes. TAB is your friend.
d13c8be6 388
6d3f7c2f
SM
389*** Major revision of filling working fine with most of
390reStructuredText syntax. Support auto-filling.
d13c8be6
SM
391
392*** Major revision of comment handling.
393
6d3f7c2f 394*** Major revision of fontification working with `jit-lock-mode'.
d13c8be6 395
6d3f7c2f
SM
396*** Cover reStructuredText syntax more closely. Improve
397the experience for Sphinx users.
d13c8be6 398
6d3f7c2f 399*** `rst-insert-list' inserts new list or continues existing lists.
d13c8be6 400
6d3f7c2f 401*** Extend correct and improve customization.
d13c8be6
SM
402
403*** Negative prefix argument always works for `rst-adjust'.
404
6d3f7c2f 405*** Reset window configuration after displaying TOC.
d13c8be6 406
6d3f7c2f 407*** Package version in `rst-version'.
d13c8be6 408
d81bd059
SM
409** New `derived-mode' filter for Ibuffer, bound to `/ M'.
410`/ m' is now bound to filter by used-mode, which used to be bound to `/ M'.
c4cf6d91 411
46c71e23
CY
412** Apropos
413
414*** The faces used by Apropos are now directly customizable.
415These faces are named `apropos-symbol', `apropos-keybinding', and so on;
416see the `apropos' Custom group for details.
417
418**** The old options whose values specified faces to use were removed
419(i.e. `apropos-symbol-face', `apropos-keybinding-face', etc.).
420
8b0823d6
CY
421** Buffer Menu
422This package has been rewritten to use Tabulated List mode.
423
424*** Option `Buffer-menu-buffer+size-width' is now obsolete.
425Use `Buffer-menu-name-width' and `Buffer-menu-size-width' instead.
426
48176e8b
GM
427** Calendar
428
03794570
GM
429*** The calendars produced by cal-html include holidays.
430Customize cal-html-holidays to change this.
48176e8b 431
cf20dee0
CY
432** Customize
433
434*** `custom-reset-button-menu' now defaults to t.
ab036cd7 435
775c916b
CY
436*** Non-option variables are never matched in `customize-apropos' and
437`customize-apropos-options' (i.e. the prefix argument does nothing for
438these commands now).
439
b2459884 440** erc will look up server/channel names via auth-source and use the
29734c21 441channel keys found, if any.
b2459884 442
6dafa0d5
JL
443** Dired
444
445*** `dired-do-async-shell-command' executes each file sequentially
446if the command ends in `;' (when operating on multiple files).
494913d6 447Otherwise, it executes the command on each file in parallel.
6dafa0d5 448
35d98877
CY
449*** The minibuffer default for `=' (`dired-diff) has changed.
450It is now the backup file for the file at point, if one exists, rather
451than the file at the mark.
452
453*** `M-=' is no longer bound to `dired-backup-diff' in Dired buffers.
454The global binding for `M-=', `count-words-region' is in effect.
455
17711ed9
JL
456** Shell
457
458*** New option `async-shell-command-buffer' specifies what buffer to use
459for a new asynchronous shell command when the default output buffer
460`*Async Shell Command*' is already taken by another running command.
461
9f9aa044
CY
462** FFAP
463
464*** The option `ffap-url-unwrap-remote' can now be a list of strings,
465specifying URL types which should be converted to remote file names at
466the FFAP prompt. The default is now '("ftp").
467
782fbf2a
CY
468** Follow mode
469
470*** The obsolete variable `follow-mode-off-hook' has been removed.
471
472*** Follow mode no longer works by using advice.
473The option `follow-intercept-processes' has been removed.
474
29734c21
MN
475** The `server-auth-key' variable can be used to set a permanent
476shared key for Emacs Server.
fc72b15c
PO
477
478** In Perl mode, new option `perl-indent-parens-as-block' causes non-block
479closing brackets to be aligned with the line of the opening bracket.
480
25a9a140
GM
481** FIXME something happened to ses.el, 2012-04-17.
482
cf20dee0
CY
483** which-function-mode now applies to all applicable major modes by default.
484
05ecb497
MA
485** Tramp
486
487+++
488*** The syntax has been extended in order to allow ad-hoc proxy
489definitions. See the manual for details.
490
491+++
492*** Remote processes are now supported also on remote Windows host.
493
dcbf5805
MA
494** D-Bus
495
496+++
497*** New variables `dbus-compiled-version' and `dbus-runtime-version'.
498
499+++
500*** The D-Bus object manager interface is implemented.
501
502+++
503*** Variables of type :(u)int32 and :(u)int64 accept floating points,
504if their value does not fit into Emacs's integer range.
505
506+++
507*** The function `dbus-call-method' works non-blocking now, it can be
508interrupted by C-g. `dbus-call-method-non-blocking' is obsolete.
509
510+++
511*** Signals can be sent also as unicast message.
512
513+++
514*** The argument list of `dbus-register-signal' has been extended,
515according to the new match rule types of D-Bus. See the manual for
516details.
517
518+++
519*** `dbus-init-bus' supports private connections.
520
521+++
522*** There is a new function `dbus-setenv'.
523
0268cf45
MA
524+++
525** notifications.el supports now version 1.2 of the Notifications API.
526The function `notifications-get-capabilities' returns the supported
527server properties.
528
60057926
CY
529** Package Menu
530
531*** Newly-available packages are listed in the Package Menu as "new",
532and sorted above the other "available" packages by default.
533
6632d361
CY
534** Tabulated List and packages derived from it
535
e5f9458f 536*** New command `tabulated-list-sort', bound to `S', sorts the column
6632d361
CY
537at point, or the Nth column if a numeric prefix argument is given.
538
ce7b18ec
CY
539** URL
540
541*** Structs made by `url-generic-parse-url' have nil `attributes' slot.
542Previously, this slot stored semicolon-separated attribute-value pairs
543appended to some imap URLs, but this is not compatible with RFC 3986.
544So now the `filename' slot stores the entire path and query components
545and the `attributes' slot is always nil.
546
547*** New function `url-encode-url' for encoding a URI string.
548The `url-retrieve' function now uses this to encode its URL argument,
549in case that is not properly encoded.
550
82f289a4
GM
551** Obsolete packages:
552
797e6e88
SM
553*** assoc.el
554In most cases, assoc+member+push+delq work just as well.
555And in any case it's just a terrible package: ugly semantics, terrible
556inefficiency, and not namespace-clean.
557
3c74813a
GM
558*** bruce.el
559
daed4003
GM
560*** ledit.el
561
82f289a4 562*** mailpost.el
d57de7fe
CY
563
564*** mouse-sel.el
565
3c74813a
GM
566*** patcomp.el
567
d32926ff
SM
568*** cust-print.el
569
a1ed8b05 570\f
2a1e2476 571* New Modes and Packages in Emacs 24.3
a1ed8b05 572\f
2a1e2476 573* Incompatible Lisp Changes in Emacs 24.3
b4d3bc10 574
0e23ef9d
PE
575** (random) by default now returns a different random sequence in
576every Emacs run. Use (random S), where S is a string, to set the
577random seed to a value based on S, in order to get a repeatable
578sequence in later calls.
579
f2045622
CY
580** The function `x-select-font' can return a font spec, instead of a
581font name as a string. Whether it returns a font spec or a font name
582depends on the graphical library.
583
d32e47af
LM
584** If the NEWTEXT arg to `replace-match' contains a substring "\?",
585that substring is inserted literally even if the LITERAL arg is
586non-nil, instead of causing an error to be signaled.
587
b4d3bc10
CY
588+++
589** Docstrings starting with `*' no longer indicate user options.
590Only variables defined using `defcustom' are considered user options.
591The function `user-variable-p' is now an obsolete alias for
592`custom-variable-p'.
593
bbf908bc
LM
594+++
595** The return values of `defalias', `defun' and `defmacro' have changed,
596and are now undefined. For backwards compatibility, defun and
597defmacro currently return the name of the newly defined function/macro
598but this should not be relied upon.
599
eeddc531
CY
600** `face-spec-set' no longer sets frame-specific attributes when the
601third argument is a frame (that usage was obsolete since Emacs 22.2).
602
a59d531e
MA
603+++
604** The arguments of `dbus-register-signal' are no longer just strings,
605but keywords or keyword-string pairs. The old argument list will
606still be supported for Emacs 24.x.
607
72b255c7
PE
608** Spelling changes.
609Some Lisp symbols have been renamed to avoid problems with spelling
610that is incorrect or inconsistent with how Emacs normally spells a word.
611
612*** Renamed functions
613
614**** hangul-input-method-inactivate -> hangul-input-method-deactivate
615**** inactivate-input-method -> deactivate-input-method
616**** quail-inactivate -> quail-deactivate
617**** robin-inactivate -> robin-deactivate
618**** viper-inactivate-input-method -> viper-deactivate-input-method
619**** viper-inactivate-input-method-action ->
620 viper-deactivate-input-method-action
621**** ucs-input-inactivate -> ucs-input-deactivate
622
623*** Renamed hooks
624The old hooks are still supported for backward compatibility, but they
625are deprecated and will be removed eventually.
626
627**** input-method-inactivate-hook -> input-method-deactivate-hook
628**** robin-inactivate-hook -> robin-deactivate-hook
629**** quail-inactivate-hook -> quail-deactivate-hook
630
631*** Renamed Lisp variables
632
633**** follow-deactive-menu -> follow-inactive-menu
634**** inactivate-current-input-method-function ->
635 deactivate-current-input-method-function
636
78f3273a
CY
637** The following obsolete variables and varaliases have been removed:
638
639*** `facemenu-unlisted-faces'
640*** `rmail-decode-mime-charset'
d7d9a499 641*** `last-input-char' and `last-command-char'
78f3273a 642
a1ed8b05 643\f
2a1e2476 644* Lisp changes in Emacs 24.3
ef24141c 645
972debf2
SM
646** Interpreted files get eagerly macro-expanded during load.
647This can significantly speed up execution of non-byte-compiled code, but can
648also bump into harmless and previously unnoticed cyclic dependencies.
649These should not be fatal: they will simply cause the macro-calls to be left
650for later expansion (as before), but will also result in a warning describing
651the cycle.
652
35e62fc9
SM
653** New minor mode `read-only-mode' to replace toggle-read-only (now obsolete).
654
7abaf5cc
SM
655** New functions `autoloadp' and `autoload-do-load'.
656
e1894109
SM
657** New function `posnp' to test if an object is a `posn'.
658
7abaf5cc
SM
659** `function-get' fetches the property of a function, following aliases.
660
b68b3337
CY
661** `toggle-read-only' accepts a second argument specifying whether to
662print a message, if called from Lisp.
663
2ee3d7f0
SM
664** CL-style generalized variables are now in core Elisp.
665`setf' is autoloaded and `push' and `pop' accept generalized variables.
666
500fcedc
SM
667** `defun' also accepts a (declare DECLS) form, like `defmacro'.
668The interpretation of the DECLS is determined by `defun-declarations-alist'.
669
670** `macro-declaration-function' is obsolete, use `macro-declarations-alist'.
671
f95e9344
SM
672** New function `set-temporary-overlay-map'.
673
674** New macros `setq-local' and `defvar-local'.
675
71873e2b 676** New error type and new function `user-error'. Doesn't trigger the debugger.
f95e9344 677
fa2bcf43
MR
678** New option `debugger-bury-or-kill'.
679
e5c2edf7
CY
680+++
681** New utility function `buffer-narrowed-p'.
682
90749b53
CY
683** Window changes
684
685*** The functions get-lru-window, get-mru-window and get-largest-window
48d1354e 686now accept a third argument to avoid choosing the selected window.
51a5f9d8 687
fa2bcf43
MR
688*** New macro `with-temp-buffer-window'.
689
690*** New option `temp-buffer-resize-frames'.
c5e28e39 691
fa2bcf43
MR
692*** New function `fit-frame-to-buffer' and new option
693 `fit-frame-to-buffer-bottom-margin'.
ef654460 694
fa2bcf43
MR
695*** New display action functions `display-buffer-below-selected' and
696`display-buffer-in-previous-window'.
ef654460 697
fa2bcf43
MR
698*** New display action alist entry `inhibit-switch-frame', if non-nil,
699tells display action functions to avoid changing which frame is
700selected.
c5e28e39 701
fa2bcf43
MR
702*** New display action alist entry `pop-up-frame-parameters', if
703non-nil, specifies frame parameters to give any newly-created frame.
90749b53 704
fa2bcf43
MR
705*** New display action alist entry `previous-window', if non-nil,
706specifies window to reuse in `display-buffer-in-previous-window'.
d97af5a0 707
77f1f99c
CY
708*** The following variables are obsolete, as they can be replaced by
709appropriate entries in the `display-buffer-alist' function introduced
710in Emacs 24.1:
14ba4cf3 711+++
77f1f99c
CY
712**** `display-buffer-reuse-frames'
713**** `special-display-regexps'
714**** `special-display-frame-alist'
715**** `special-display-buffer-names'
716**** `special-display-function'
717
ef24141c
SM
718** Completion
719
720*** New function `completion-table-with-quoting' to handle completion
721in the presence of quoting, such as file completion in shell buffers.
722
723*** New function `completion-table-subvert' to use an existing completion
724table, but with a different prefix.
ab0fa4e4
PE
725
726** Time
727
728*** `current-time-string' no longer requires that its argument's year
729must be in the range 1000..9999. It now works with any year supported
730by the underlying C implementation.
8a61ee22 731
c990426a
PE
732** Floating point
733
734*** When floating point functions such as `log' are given invalid
735arguments, e.g., (log -1.0), they now uniformly return special values
736such as NaNs instead of signaling errors. Previously, these functions
737returned NaNs on some platforms but signaled errors on others. The affected
738functions are acos, asin, tan, exp, expt, log, log10, sqrt, and mod.
739
0d14cc21
GM
740** New function file-name-base.
741
86aa551c
EZ
742** New function `tty-top-frame' returns the topmost frame of a text terminal.
743
8a61ee22 744** `automount-dir-prefix' is obsolete.
43416392 745** `buffer-has-markers-at' is obsolete.
3424a4f6 746** `window-system-version' is obsolete.
adce950d 747\f
2a1e2476 748* Changes in Emacs 24.3 on non-free operating systems
9078ead6
EZ
749
750** New configure.bat options on MS-Windows:
751
752*** --without-libxml2 omits support for libxml2, even if its presence
753is detected.
754
53a63be6
EZ
755** When invoked with the -nw switch to run on the Windows text-mode terminal,
756Emacs now supports mouse highlight, help-echo (in the echo area), and
757mouse-autoselect-window.
758
6dad7178 759** On MS-Windows Vista and later Emacs now supports symbolic links.
2a1e2476
GM
760\f
761* Changes in Emacs 24.2
762
5190da91 763** This is mainly a bug-fix release.
6dad7178 764
9078ead6 765\f
eb199145 766* Installation Changes in Emacs 24.1
09e18d03 767
31fd3586
GM
768** Emacs can be compiled with Gtk+ 3.0 if you pass --with-x-toolkit=gtk3
769to configure. Note that other libraries used by Emacs, RSVG and GConf,
770also depend on Gtk+. You can disable them with --without-rsvg and
771--without-gconf.
338648ad 772
31fd3586
GM
773** Emacs can be compiled with GnuTLS support.
774This happens by default if a suitably recent version of the library is
775found at build time. To prevent this, use the configure option
776`--without-gnutls'. See below for GnuTLS features.
338648ad 777
31fd3586
GM
778** Emacs can be compiled with SELinux support.
779This happens by default if a suitably recent version of the library is
780found at build time. To prevent this, use the configure option
781`--without-selinux'. See below for SELinux features.
aded53ff 782
31fd3586
GM
783** Emacs can be compiled with ImageMagick support.
784This happens by default if a suitably recent version of the library is
785found at build time. To prevent this, use the configure option
786`--without-imagemagick'. See below for ImageMagick features.
c1f10868 787This feature is not available for the Nextstep or MS ports.
d9170db5 788
043efd56
GM
789** Emacs can be compiled with libxml2 support.
790This happens by default if a suitably recent version of the library is
791found at build time. To prevent this, use the configure option
792`--without-xml2'. See below for libxml2 features.
793
7d301ae6
CY
794** By default, the installed Info and man pages are compressed.
795You can disable this by configuring --without-compress-info.
796
7d301ae6 797** New configure option --with-wide-int.
81eafe29 798With it, Emacs integers typically have 62 bits, even on 32-bit machines.
0a768890
PE
799On 32-bit hosts, this raises the limit on buffer sizes from about 512 MiB
800to about 2 GiB.
81eafe29 801
7d301ae6 802** New configure options: --with-mmdf, --with-mail-unlink, --with-mailhost.
31fd3586
GM
803These provide no new functionality, they just remove the need to edit
804lib-src/Makefile by hand in order to use the associated features.
805
7d301ae6 806** New configure option --enable-use-lisp-union-type.
31fd3586
GM
807This is only useful for Emacs developers to debug certain types of bugs.
808This is not a new feature; only the configure flag is new.
041d709f
CY
809
810** The standalone programs digest-doc and sorted-doc are removed.
811Emacs now uses Lisp commands `doc-file-to-man' and `doc-file-to-info'.
812
041d709f
CY
813** The standalone program `fakemail' is removed.
814If you need it, feedmail.el provides a superset of the functionality.
815
0bfd685e 816\f
eb199145 817* Startup Changes in Emacs 24.1
4a263588 818
198a7a97 819** The --unibyte, --multibyte, --no-multibyte, and --no-unibyte
adbf62ff
GM
820command line arguments, and the EMACS_UNIBYTE environment variable, no
821longer have any effect. (They were declared obsolete in Emacs 23.)
198a7a97 822
66b7b0fe 823** New command line option `--no-site-lisp' removes site-lisp directories
1b5e5b0c
GM
824from load-path. -Q now implies this. This option does not affect the
825EMACSLOADPATH environment variable (and hence has no effect for
c8d59ba3 826Nextstep builds).
66b7b0fe 827
0bfd685e 828\f
eb199145 829* Changes in Emacs 24.1
7841339b 830
a2a25d24 831** Completion
fdeb32ec 832
dfdb4cad
CY
833*** Many packages now use the `completion-at-point' command,
834rather than implementing separate completion commands.
835
de0bde62 836*** `completion-at-point' now handles tags and semantic completion.
dfdb4cad 837
a2a25d24
SM
838*** Completion in a non-minibuffer now tries to detect the end of completion
839and pops down the *Completions* buffer accordingly.
dfdb4cad
CY
840
841*** New option `completion-cycle-threshold' allows completion cycling.
842
843*** New option `completion-category-overrides' for overriding the
2c719188 844default completion style in certain circumstances.
dfdb4cad 845
a2a25d24 846*** New completion style `substring'.
dfdb4cad
CY
847
848*** Completion of buffer names uses `substring' completion by default.
849
850*** The option `widget-complete-field' has been removed.
620c53a6 851
6870aaef 852** Mail changes
dfdb4cad 853
7d301ae6
CY
854*** The first time you try sending mail, Emacs asks for a mail method.
855This is implemented by a new default for `send-mail-function', which
856is `sendmail-query-once'. This offers to use the smtpmail package, or
857to use the old defaults relying on external mail facilities
858(`sendmail-send-it' on GNU/Linux and other Unix-like systems, and
859`mailclient-send-it' on Windows).
dfdb4cad 860
7d301ae6
CY
861*** Typing C-c m in the buffer made by M-x report-emacs-bug transfers
862the report to your desktop's preferred mail client, if there is one.
863This uses either the "xdg-email" utility, or Mac OS's "open" command.
dfdb4cad 864
7d301ae6
CY
865*** See Changes in Specialized Modes and Packages for SMTPmail changes
866and Mail mode changes
3f88cd72 867
041d709f 868** Emacs server and client changes
dfdb4cad 869
7d301ae6 870*** New option `server-port' specifies the port for TCP Emacs servers.
dfdb4cad 871
041d709f 872*** New emacsclient argument -q/--quiet suppresses some status messages.
dfdb4cad 873
7d301ae6
CY
874*** New emacsclient argument --frame-parameters specifies the frame
875parameters of any newly-created graphical frame.
dfdb4cad
CY
876
877*** If emacsclient shuts down due to Emacs signaling an error,
878its exit status is 1.
879
041d709f
CY
880*** New emacsclient argument --parent-id ID.
881This opens a client frame in parent X window ID, via XEmbed, similar
882to the --parent-id argument to Emacs.
883
d0ce9f8c
MB
884** Internationalization changes
885
d0ce9f8c 886*** Emacs now supports display and editing of bidirectional text.
7d301ae6
CY
887Right-to-left (RTL) scripts, such as Arabic, Farsi, and Hebrew, are
888displayed in the correct visual order as expected by users of those
dfdb4cad
CY
889scripts. The display reordering is a "full bidirectionality" class
890implementation of the Unicode Bidirectional Algorithm (UBA). Buffers
891with no RTL text should look exactly the same as before.
f4b6ba46 892
041d709f 893**** New buffer-local variable `bidi-display-reordering'.
7d301ae6 894To disable display reordering in a buffer, change this to nil.
d20e1419 895
041d709f
CY
896**** New buffer-local variable `bidi-paragraph-direction'.
897If nil (the default), Emacs determines the base direction of each
dfdb4cad
CY
898paragraph from its text, as specified by the UBA. Setting the value
899to `right-to-left' or `left-to-right' forces a base direction on each
900paragraph.
f4b6ba46 901
7d301ae6
CY
902Paragraphs with right-to-left base direction are displayed starting at
903the right window edge.
f1816485 904
dfdb4cad
CY
905*** Enhanced support for characters with no glyphs in available fonts,
906or, on text terminals, characters that cannot be encoded by the
907terminal coding system. The new option `glyphless-char-display-control'
908specifies how to display them: as a hexadecimal code in a box, a thin
9091-pixel space, an empty box, etc.
d0ce9f8c 910
9702b7a1
GM
911*** New input methods for Farsi and Bulgarian
912(farsi-isiri-9147, farsi-transliterate-banan, bulgarian-alt-phonetic).
041d709f 913
939db9ac
CY
914*** `nobreak-char-display' now also highlights Unicode hyphen chars
915(U+2010 and U+2011).
916
7d301ae6 917*** New Hebrew translation of the Emacs Tutorial.
31fd3586
GM
918Type `C-u C-h t' to choose it in case your language setup doesn't
919automatically select it.
920
7d301ae6
CY
921** An Emacs Lisp package manager is now included.
922This is a convenient way to download and install additional packages,
923from a package repository at http://elpa.gnu.org.
dfdb4cad 924
7d301ae6
CY
925*** M-x list-packages shows a list of packages, which can be
926selected for installation.
dfdb4cad 927
7d301ae6 928*** New command `describe-package', bound to `C-h P'.
dfdb4cad 929
7d301ae6
CY
930*** By default, all installed packages are loaded automatically when
931Emacs starts up. To disable this, set `package-enable-at-startup' to
932nil. To specify the packages to load, customize `package-load-list'.
16a91140 933
dfdb4cad
CY
934** Custom theme changes
935
7d301ae6
CY
936*** New command `M-x customize-themes', which provides a convenient
937interface for enabling and disabling Custom themes.
dfdb4cad 938
7d301ae6 939*** New option `custom-theme-load-path' is the load path for themes.
dfdb4cad
CY
940Emacs no longer looks for Custom themes in `load-path'. The default
941value of `custom-theme-load-path' says to look for themes in
942`custom-theme-directory', followed by a subdirectory of
943`data-directory' named "themes/", which contains a small selection of
944built-in Custom themes.
945
7d301ae6
CY
946*** New option `custom-safe-themes' records known-safe theme files.
947If a theme is not in this list, Emacs queries before loading it, and
948offers to save the theme to `custom-safe-themes' automatically. By
949default, all themes included in Emacs are treated as safe.
b7d65a5f 950
7d301ae6 951** Improved GTK integration
dfdb4cad 952
7d301ae6 953*** GTK scroll-bars are now placed on the right by default.
dfdb4cad
CY
954The function `set-scroll-bar-mode' can change this.
955
7d301ae6 956*** GTK tool bars can have just text, just images or images and text.
dfdb4cad
CY
957Customize `tool-bar-style' to choose the style. On a Gnome desktop,
958the default is taken from desktop settings.
959
960*** GTK tool bars can be placed on any edge of the frame.
7d301ae6
CY
961The frame-parameter tool-bar-position controls this. It takes the
962values top, left, right or bottom. The Options => Show/Hide menu has
963entries for this.
dfdb4cad 964
7d301ae6
CY
965*** The default colors for selected text (the `region' face) are taken
966from the GTK theme when Emacs is built with GTK.
dfdb4cad 967
7d301ae6
CY
968*** Emacs uses GTK tooltips by default if built with GTK.
969You can disable this by changing `x-gtk-use-system-tooltips' to nil.
a5bee597 970
dfdb4cad
CY
971** Graphical interface changes
972
973*** On graphical displays, the mode-line no longer ends in dashes.
974Also, the first dash (which does not indicate anything) is just
975displayed as a space.
976
977*** `menu-bar-select-buffer-function' lets you choose another operation
978instead of `switch-to-buffer' when selecting an item in the Buffers menu.
979
980*** Lucid menus and dialogs can display antialiased fonts if Emacs is
981built with Xft. These fonts can be set via X resources, for example:
982Emacs.pane.menubar.font: Courier-12
983
7d301ae6 984** Exiting changes
dfdb4cad 985
7d301ae6 986*** Emacs now calls `kill-emacs' if it receives SIGTERM or SIGHUP,
dfdb4cad
CY
987or if it receives a SIGINT signal in batch mode.
988
7d301ae6
CY
989*** `kill-emacs-hook' is now also run in batch mode.
990Third-party code which adds to `kill-emacs-hook' should check if they
991do the right thing in batch mode.
9c524fcb 992
041d709f 993** Scrolling changes
dfdb4cad 994
041d709f 995*** New scrolling commands `scroll-up-command' and `scroll-down-command'
0a19a6f8 996(bound to C-v/[next] and M-v/[prior]) do not signal errors at top/bottom
7d301ae6 997of buffer at first key-press (instead they move to top/bottom of buffer)
550f41cd 998when `scroll-error-top-bottom' is non-nil.
dfdb4cad
CY
999
1000*** New option `scroll-error-top-bottom' (see above).
1001
041d709f 1002*** New scrolling commands `scroll-up-line' and `scroll-down-line'
5a97d2da 1003scroll a line instead of full screen.
dfdb4cad 1004
041d709f 1005*** New property `scroll-command' should be set on a command's symbol to
b2957ea8 1006define it as a scroll command affected by `scroll-preserve-screen-position'.
dfdb4cad 1007
041d709f 1008*** If you customize `scroll-conservatively' to a value greater than 100,
d0f69533
EZ
1009Emacs will never recenter point in the window when it scrolls due to
1010cursor motion commands or commands that move point (e.f., `M-g M-g').
1011Previously, you needed to use `most-positive-fixnum' as the value of
1012`scroll-conservatively' to achieve the same effect.
dfdb4cad 1013
7d301ae6 1014*** "Aggressive" scrolling now honors the scroll margins.
d0f69533
EZ
1015If you customize `scroll-up-aggressively' or
1016`scroll-down-aggressively' and move point off the window, Emacs now
1017scrolls the window so as to avoid positioning point inside the scroll
1018margin.
1019
7d301ae6
CY
1020** Basic SELinux support has been added.
1021This requires Emacs to be linked with libselinux at build time.
f1a5d776 1022
dfdb4cad
CY
1023*** Emacs preserves the SELinux file context when backing up.
1024Also, the function `copy-file' has an extra optional argument for
1025preserving SELinux context, and the return value of `backup-buffer'
1026now includes the SELinux context.
f0bf7c8e 1027
dfdb4cad 1028*** New functions `file-selinux-context' and `set-file-selinux-context'
7d301ae6 1029get and set the SELinux context of a file.
44198b6e 1030
7d301ae6 1031** Trash changes
dfdb4cad 1032
7d301ae6
CY
1033*** `delete-by-moving-to-trash' now only affects commands that specify
1034trashing. This avoids inadvertently trashing temporary files.
dfdb4cad 1035
7d301ae6
CY
1036*** Calling `delete-file' or `delete-directory' with a prefix argument
1037now forces true deletion, regardless of `delete-by-moving-to-trash'.
278f6845 1038
041d709f 1039** File- and directory-local variable changes
dfdb4cad 1040
041d709f
CY
1041*** You can stop directory local vars from applying to subdirectories.
1042Add an element (subdirs . nil) to the alist portion of any variables
1043settings to indicate that the section should not apply to
1044subdirectories.
dfdb4cad 1045
041d709f
CY
1046*** Directory local variables can apply to some file-less buffers.
1047Affected modes include dired, vc-dir, and log-edit. For example,
1048adding "(diff-mode . ((mode . whitespace)))" to .dir-locals.el will
1049turn on `whitespace-mode' for *vc-diff* buffers. Modes should call
1050`hack-dir-local-variables-non-file-buffer' to support this.
dfdb4cad 1051
041d709f
CY
1052*** Using "mode: MINOR-MODE" to enable a minor mode is deprecated.
1053Instead, use "eval: (minor-mode 1)".
c136e5cd 1054
7b447e9b
GM
1055*** The variable `inhibit-first-line-modes-regexps' has been renamed
1056to `inhibit-local-variables-regexps'. As the name suggests, it now
dfdb4cad
CY
1057applies to ALL file local variables, not just -*- lines. The
1058associated `inhibit-first-line-modes-suffixes' has been renamed in the
1059corresponding way.
5d907d6c 1060
0a2132ba
CY
1061** Window changes
1062
91b65361
CY
1063*** The `quit-window' command now restores the last buffer displayed
1064in the quitted window.
1065
0a2132ba
CY
1066*** Resizing an Emacs frame now preserves proportional window sizes,
1067modulo restrictions like window minimum sizes and fixed-size windows.
1068
1069*** The behavior of `display-buffer' is now customizable in detail.
dfdb4cad 1070
0a2132ba
CY
1071**** New option `display-buffer-base-action' specifies a list of
1072user-determined display "actions" (functions and optional arguments
1073for choosing the displaying window).
1074
1075This takes precedence over the default display action, which is
1076specified by `display-buffer-fallback-action'.
1077
1078**** New option `display-buffer-alist' maps buffer name regexps to
1079display actions, taking precedence over `display-buffer-base-action'.
1080
a0c2d0ae
MR
1081*** New option `window-combination-limit'.
1082The new option `window-combination-limit' allows to return the space
1083obtained for resizing or creating a window more reliably to the window
1084from which such space was obtained.
0a2132ba 1085
a0c2d0ae
MR
1086*** New option `window-combination-resize'.
1087The new option `window-combination-resize' allows to split a window that
1088otherwise cannot be split because it's too small by stealing space from
1089other windows in the same combination. Subsequent resizing or deletion
1090of the window will resize all windows in the same combination as well.
0a2132ba 1091
91b65361
CY
1092*** New option `frame-auto-hide-function' lets you choose between
1093iconifying or deleting a frame when burying a buffer in a dedicated
1094frame, or quitting a window showing a buffer in a frame of its own.
1095
0a2132ba 1096*** New commands `maximize-window' and `minimize-window'.
53964682 1097These maximize and minimize the size of a window within its frame.
0a2132ba 1098
0a2132ba
CY
1099*** New commands `switch-to-prev-buffer' and `switch-to-next-buffer'.
1100These functions allow to navigate through the live buffers that have
1101been shown in a specific window.
1102
7d301ae6 1103** Minibuffer changes
dfdb4cad 1104
7d301ae6 1105*** The inactive minibuffer has its own major mode `minibuffer-inactive-mode'.
104dc9c6
GM
1106This is handy for minibuffer-only frames, and is also used for the feature
1107where mouse-1 pops up *Messages*"', which can now easily be changed.
041d709f 1108
7d301ae6 1109*** Minibuffers set `truncate-lines' to nil.
f66eca26 1110If you want to change the value to something else, you could use
7d301ae6
CY
1111for example `minibuffer-setup-hook'.
1112
7d301ae6
CY
1113** `auto-mode-case-fold' is now enabled by default.
1114
7d301ae6 1115** `backup-by-copying-when-mismatch' now defaults to t.
f66eca26 1116
dfdb4cad
CY
1117** New basic faces `error', `warning', `success'.
1118These are used to highlight text indicating failure, caution or
1119successful operation.
1120
1121** New option `list-colors-sort' defines the color sort order
1122for `list-colors-display'.
1123
1124** The variable `focus-follows-mouse' now always defaults to nil.
1125
0bfd685e 1126\f
eb199145 1127* Editing Changes in Emacs 24.1
b350bdf2 1128
892777ba 1129** Search changes
dfdb4cad
CY
1130
1131*** C-y in Isearch is now bound to `isearch-yank-kill', instead of
1132`isearch-yank-line'.
1133
1134*** M-y in Isearch is now bound to `isearch-yank-pop', instead of
1135`isearch-yank-kill'.
1136
1137*** M-s C-e in Isearch is now bound to `isearch-yank-line'.
1138
b2b0776e 1139** New commands `count-words-region' and `count-words'.
dfdb4cad 1140
10607bea
CY
1141*** M-= is bound to `count-words-region', not `count-lines-region'.
1142The `count-words-region' command, when called interactively, reports
1143the number of lines, words, and characters in the region. It is a
1144superset of the old `count-lines-region', which is now an obsolete
1145alias for it.
ea4f7750 1146
ec9da840 1147** The command `just-one-space' (M-SPC), if given a negative argument,
1c708c1a
CY
1148also deletes newlines around point.
1149
b9229673 1150** Deletion changes
dfdb4cad 1151
b9229673 1152*** New option `delete-active-region'.
ddb54206 1153If non-nil, [delete] and DEL delete the region if it is active and no
dfdb4cad 1154prefix argument is given. If set to `kill', those commands kill
ddb54206 1155instead.
dfdb4cad 1156
59ee0542 1157*** New command `delete-forward-char', bound to [delete].
42d9cffa
CY
1158This is meant for interactive use, and obeys `delete-active-region'.
1159The command `delete-char' does not obey `delete-active-region'.
dfdb4cad 1160
b9229673
CY
1161*** `delete-backward-char' is now a Lisp function.
1162Apart from obeying `delete-active-region', its behavior is unchanged.
7d301ae6
CY
1163However, the byte compiler now warns if it is called from Lisp; Lisp
1164callers should use delete-char with a negative argument instead.
dfdb4cad 1165
b9229673
CY
1166*** The option `mouse-region-delete-keys' has been deleted.
1167
f9d71b42
CY
1168** Selection changes.
1169
7d301ae6
CY
1170The default handling of clipboard and primary selections has been
1171changed to conform with modern X applications. In short, most
1172commands for killing and yanking text now use the clipboard, while
1173mouse commands use the primary selection.
b1ab31ae
CY
1174
1175In the following, we provide a list of these changes, followed by a
1176list of steps to get the old behavior back if you prefer that.
1177
b1ab31ae
CY
1178*** `select-active-regions' now defaults to t.
1179Merely selecting text (e.g. with drag-mouse-1) no longer puts it in
963578d3 1180the kill ring. The selected text is put in the primary selection, if
b1ab31ae
CY
1181the system possesses a separate primary selection facility (e.g. X).
1182
1183**** `select-active-regions' also accepts a new value, `only'.
1184This means to only set the primary selection for temporarily active
1185regions (usually made by mouse-dragging or shift-selection);
1186"ordinary" active regions, such as those made with C-SPC followed by
1187point motion, do not alter the primary selection.
1188
963578d3
CY
1189**** `mouse-drag-copy-region' now defaults to nil.
1190
b1ab31ae
CY
1191*** mouse-2 is now bound to `mouse-yank-primary'.
1192This pastes from the primary selection, ignoring the kill-ring.
1193Previously, mouse-2 was bound to `mouse-yank-at-click'.
dfdb4cad 1194
b1ab31ae 1195*** `x-select-enable-clipboard' now defaults to t on all platforms.
dfdb4cad 1196
b1ab31ae
CY
1197*** `x-select-enable-primary' now defaults to nil.
1198Thus, commands that kill text or copy it to the kill-ring (such as
1199M-w, C-w, and C-k) also use the clipboard---not the primary selection.
1200
1201**** The "Copy", "Cut", and "Paste" items in the "Edit" menu are now
dfdb4cad 1202exactly equivalent to M-w, C-w, and C-y respectively.
b1ab31ae
CY
1203
1204**** Note that on MS-Windows, `x-select-enable-clipboard' was already
1205non-nil by default, as Windows does not support the primary selection
1206between applications.
1207
1208*** To return to the previous behavior, do the following:
dfdb4cad 1209
104c2fe9 1210**** Change `select-active-regions' to nil.
b1ab31ae
CY
1211**** Change `mouse-drag-copy-region' to t.
1212**** Change `x-select-enable-primary' to t (on X only).
1213**** Change `x-select-enable-clipboard' to nil.
1214**** Bind `mouse-yank-at-click' to mouse-2.
f9d71b42 1215
084e6df3 1216*** Support for X cut buffers has been removed.
dfdb4cad 1217
3fd50d5c
CY
1218*** X clipboard managers are now supported.
1219To inhibit this, change `x-select-enable-clipboard-manager' to nil.
4b80f674 1220
dfdb4cad
CY
1221** New command `C-x r N' (`rectangle-number-lines') numbers the lines
1222in the current rectangle. With a prefix argument, this prompts for a
1223number to count from and for a format string.
99f053cf 1224
7d301ae6 1225** `redisplay-dont-pause' now defaults to t.
6bf7006f
EZ
1226This makes Emacs feel more responsive to editing commands that arrive
1227at high rate, e.g. if you lean on some key, because stopping redisplay
1228in the middle (when this variable is nil) forces more expensive
1229updates later on, and Emacs appears to be unable to keep up.
1230
e70b5064
CY
1231** The behavior of <TAB> for active regions in Text mode has changed.
1232In Text and related modes, typing <TAB> (`indent-for-tab-command')
1233when the region is active causes Emacs to indent all the lines in the
1234region, aligning them with the line previous to the first line in the
1235region (or with the left margin if there is no previous line).
1236
dfdb4cad
CY
1237** When `occur' is called with a prefix argument, matching strings are
1238collected into the `*Occur*' buffer without line numbers. If there
1239are parenthesized subexpressions in the specified regexp, `occur'
1240reads replacement text that may contain \\& and \\N whose convention
1241follows `replace-match'.
1242
9bae34bf 1243\f
eb199145 1244* Changes in Specialized Modes and Packages in Emacs 24.1
efeb796b 1245
041d709f 1246** Archive Mode has basic support for browsing and updating 7z archives.
d76674bb 1247
b7c3692a 1248** BibTeX mode
dfdb4cad 1249
2de69e00 1250*** BibTeX mode now supports biblatex.
7d301ae6
CY
1251Use the variable `bibtex-dialect' to select different BibTeX dialects.
1252`bibtex-entry-field-alist' is now an obsolete alias for
1253`bibtex-BibTeX-entry-alist'.
1254
dfdb4cad
CY
1255*** New command `bibtex-search-entries', bound to C-c C-a.
1256
b7c3692a 1257*** New `bibtex-entry-format' option `sort-fields', disabled by default.
dfdb4cad 1258
022fe7ce
RW
1259*** New variable `bibtex-search-entry-globally'.
1260
7d301ae6 1261** Browse-url
dfdb4cad 1262
7d301ae6 1263*** New option `browse-url-mailto-function' specifies how to handle "mailto:"s.
dfdb4cad 1264
7d301ae6
CY
1265*** The default browser used by the package is now the "xdg-open" program,
1266on platforms that support it. This calls your desktop's preferred browser.
1267
cf16af42
GM
1268** Calendar, Diary, and Appt
1269
7d301ae6 1270*** Diary entries can contain non-printing "comments".
548d0a63
GM
1271See the variable `diary-comment-start'.
1272
5006e634
GM
1273*** Appointments can specify their individual warning times.
1274See the variable `appt-warning-time-regexp'.
1275
0a2bb1a9
GM
1276*** The function specified by `appt-disp-window-function' may be passed
1277lists of arguments if multiple appointments are due at similar times.
1278If you are using a custom function for this, you should update it.
1279
7454f200
GM
1280*** New function `diary-hebrew-birthday'.
1281
e565dd37
GM
1282*** Elements of `calendar-day-abbrev-array' and `calendar-month-abbrev-array'
1283may no longer be nil, but must all be strings.
1284
7d301ae6
CY
1285*** The obsolete (since Emacs 22.1) method of enabling the appt
1286package by adding `appt-make-list' to `diary-hook' has been removed.
1287Use `appt-activate' instead.
cf16af42 1288
cf16af42
GM
1289*** Some appt variables (obsolete since Emacs 22.1) have been removed:
1290appt-issue-message (use the function appt-activate)
1291appt-visible/appt-msg-window (use the variable appt-display-format)
1292
cf16af42
GM
1293*** Some diary function aliases (obsolete since Emacs 22.1) have been removed:
1294view-diary-entries, list-diary-entries, show-all-diary-entries
1295
551b046f 1296** CC Mode
dfdb4cad 1297
551b046f 1298*** New feature to "guess" the style in an existing buffer.
7d301ae6 1299The main entry point is M-x c-guess.
041d709f 1300
551b046f
AM
1301*** Java Mode now supports Java 5.0 (Tiger) and 6 (Mustang).
1302
dfdb4cad 1303*** `c-beginning-of-defun' and `c-end-of-defun' now respect nested scopes.
551b046f
AM
1304Thus C-M-a will, by default, go to the beginning of the immediate function,
1305not the top level.
1306
dfdb4cad 1307*** "Macros with semicolons" can be registered for correct indentation.
551b046f
AM
1308Where such a macro ends a line (no semicolon) the next statement is no longer
1309parsed as a statement continuation.
1310
dfdb4cad 1311** Comint and modes derived from it use the standard completion code.
041d709f
CY
1312
1313** Compilation mode
dfdb4cad 1314
7d301ae6 1315*** Compilation mode can be used without Font Lock mode.
041d709f
CY
1316`compilation-parse-errors-function' is now obsolete.
1317
dfdb4cad 1318*** New variable `compilation-filter-start', which is bound while
7d301ae6
CY
1319`compilation-filter-hook' runs. It records the start position of the
1320text inserted by `compilation-filter'.
041d709f 1321
47a6a35f
GM
1322*** `compilation-error-screen-columns' and `compilation-first-column'
1323are obeyed in the editing buffer. So programming language modes can
7d301ae6
CY
1324set them, whereas previously only the value in the *Compilation*
1325buffer was used.
1dce7193 1326
52834b6b
CY
1327** Customize
1328
1329*** Customize buffers now contain a search field.
1330The search is performed using `customize-apropos'.
7d301ae6 1331To turn off the search field, set `custom-search-field' to nil.
52834b6b 1332
8d5dd370 1333*** Options in customize group buffers start out hidden if not customized.
52834b6b
CY
1334Use the arrow to the left of the option name to toggle visibility.
1335
1336*** custom-buffer-sort-alphabetically now defaults to t.
1337
1338*** The color widget now has a "Choose" button, which allows you to
7d301ae6 1339choose a color via `list-colors-display'.
52834b6b 1340
041d709f
CY
1341** D-Bus
1342
5da3be7f
GM
1343*** It is now possible to access buses other than the default system
1344or session bus.
041d709f 1345
7d301ae6 1346*** The `dbus-register-method' and `dbus-register-property' functions
5da3be7f 1347optionally do not register names.
041d709f 1348
7d301ae6 1349*** The new function `dbus-register-service' registers a known service
dfdb4cad 1350name on a D-Bus without also registering a property or a method.
041d709f 1351
f5d6548a 1352** Dired-x
425a25f1 1353
7d301ae6
CY
1354*** C-x C-j (`dired-jump') and C-x 4 C-j (`dired-jump-other-window'),
1355if called with a prefix argument, read a file name from the minibuffer
1356instead of using the current buffer.
f5d6548a 1357
7d301ae6 1358*** The "dired local variables" feature of Dired-x is obsolete.
817b48a7 1359The standard directory local variables feature replaces it.
8117868f 1360
041d709f 1361** ERC changes
7492acc9 1362
c4077254
GM
1363*** New options `erc-autojoin-timing' and `erc-autojoin-delay',
1364controlling attempts to autojoin a channel.
041d709f
CY
1365
1366*** New variable `erc-coding-system-precedence': If we use `undecided'
1367as the server coding system, this variable will then be consulted.
1368The default is to decode strings that can be decoded as utf-8 as
1369utf-8, and do the normal `undecided' decoding for the rest.
7492acc9 1370
041d709f 1371** Eshell changes
7492acc9 1372
05f77e38
GM
1373*** The default value of `eshell-directory-name' has changed
1374to be an "eshell" directory in `user-emacs-directory'.
1375The old "~/.eshell/" directory is still used if it exists, though.
041d709f
CY
1376
1377** gdb-mi
dfdb4cad
CY
1378
1379*** The M-x gdb command now uses the GDB Machine Interface protocol.
05f77e38
GM
1380It now supports multithread non-stop debugging and simultaneous
1381debugging of several threads.
7492acc9 1382
18af70d0
CY
1383** Image mode
1384
05f77e38
GM
1385*** RET (`image-toggle-animation') toggles animation, if applicable.
1386Animation plays once, unless the option `image-animate-loop' is non-nil.
18af70d0 1387
041d709f 1388** Info
723ee192 1389
7d301ae6 1390*** New command M-x info-display-manual displays a named Info manual.
2ebc3b94
GM
1391If that manual is already visited in some Info buffer, it displays
1392that buffer. (This is handy if you have many manuals in many *info*
1393buffers, and don't remember the name of the buffer visiting the manual
1394you want to consult.) Otherwise, it loads and displays the manual.
691cf4a0 1395
24ea72d3
EZ
1396*** `e' is now bound to `end-of-buffer' rather than to `Info-edit'.
1397This is for compatibility with the stand-alone Info reader program,
1398and also because `Info-edit' is a rarely used command that is disabled
1399by default.
1400
7d301ae6 1401** Mail mode changes (not Message mode)
dfdb4cad 1402
7d301ae6 1403*** New command M-x mail-add-attachment for adding MIME attachments
7d301ae6 1404
dfdb4cad
CY
1405*** The command M-x mail-attach-file was renamed to M-x mail-insert-file.
1406(Its name is misleading, since it has nothing to do with MIME
1407attachments.) The old name is now an obsolete alias to the new name.
1408
f2c3a9eb 1409** MH-E has been updated to MH-E version 8.3.1.
041d709f 1410See MH-E-NEWS for details.
37221432 1411
041d709f 1412** Modula-2 mode provides auto-indentation.
37221432 1413
041d709f 1414** mpc.el: Can use pseudo tags of the form tag1|tag2 as a union of two tags.
3c3d4f5b 1415
5d1ac394 1416** nXML mode no longer binds C-RET to `nxml-complete'.
dfdb4cad
CY
1417Completion is now performed via `completion-at-point', bound to C-M-i
1418or M-TAB. If `nxml-bind-meta-tab-to-complete-flag' is non-nil (the
1419default), this performs tag completion.
5d1ac394 1420
f2c3a9eb
CY
1421** Org mode has been updated to version 7.8.09.
1422See ORG-NEWS for details.
1423
041d709f 1424** Prolog mode has been completely revamped, with lots of additional
7d301ae6
CY
1425functionality such as more intelligent indentation, electricity,
1426support for more variants, including Mercury, and a lot more.
041d709f
CY
1427
1428** Rmail
1429
1430*** The command `rmail-epa-decrypt' decrypts OpenPGP data
1431in the Rmail incoming message.
1432
50419064
GM
1433*** The variable `rmail-message-filter' no longer has any effect.
1434This change was made in Emacs 23.1 but was not advertised at the time.
1435Try using `rmail-show-message-hook' instead.
1436
717a1362 1437** Shell mode
dfdb4cad
CY
1438
1439*** M-x shell prompts for the shell path name if the default directory
1440is a remote file name and neither the environment variable $ESHELL nor
1441the variable `explicit-shell-file-name' is set.
1442
1443*** TAB is now bound to the standard `completion-at-point' command,
1444which now implements the pcomplete rules for shell command completion.
717a1362 1445
7d301ae6
CY
1446** SMTPmail
1447
dfdb4cad 1448*** SMTPmail now uses encrypted connections (via STARTTLS) by default
7d301ae6
CY
1449if the mail server supports them. This uses either built-in GnuTLS
1450support, or the starttls.el library. Customize `smtpmail-stream-type'
1451to change this.
1452
7d301ae6
CY
1453*** The variable `smtpmail-auth-credentials' has been removed.
1454By default, the information is now stored in the file ~/.authinfo.
dfdb4cad
CY
1455This was the default value of smtpmail-auth-credentials. If you had
1456customized smtpmail-auth-credentials to a list of user names and
1457passwords, those settings are not used. During your first connection
1458to the smtp server, Emacs will prompt for the user name and password,
1459and offer to save them to ~/.authinfo. Or you can manually copy the
1460credentials to ~/.authinfo. For example, if you had
7d301ae6
CY
1461
1462 (setq smtpmail-auth-credentials
1463 '(("mail.example.org" 25 "jim" "s!cret")))
1464
1465then the equivalent line in ~/.authinfo would be
1466
1467 machine mail.example.org port 25 login jim password s!cret
1468
1469See the auth-source manual for more information, e.g. on encrypting
1470the credentials file.
1471
7d301ae6 1472*** The variable `smtpmail-starttls-credentials' has been removed.
dfdb4cad 1473If you had that set, you need to put
7d301ae6
CY
1474
1475 machine smtp.whatever.foo port 25 key "~/.my_smtp_tls.key" cert "~/.my_smtp_tls.cert"
1476
1477in your ~/.authinfo file instead.
1478
8ce192e3
LI
1479*** SMTPmail defaults to using the address in the From: header as the
1480SMTP MAIL FROM envelope. To override this, set `mail-envelope-from'
1481to the address you wish to use instead.
1482
34e8a2da 1483** SQL mode
041d709f 1484
34e8a2da
GM
1485*** New options `sql-port', `sql-connection-alist', `sql-send-terminator',
1486and `sql-oracle-scan-on'.
041d709f 1487
dfdb4cad 1488*** New options controlling prompting for login parameters.
34e8a2da
GM
1489Each supported product has a custom variable `sql-*-login-params',
1490which is a list of the parameters to be prompted for before a
1491connection is established.
041d709f
CY
1492
1493*** The command `sql-product-interactive' now takes a prefix argument,
34e8a2da 1494which causes it to prompt for an SQL product.
041d709f 1495
34e8a2da 1496*** Product-specific SQL interactive commands now take prefix arguments.
041d709f
CY
1497These commands (`sql-sqlite', `sql-postgres', `sql-mysql', etc.),
1498given a prefix argument, prompt for a name for the SQL interactive
1499buffer. This reduces the need for calling `sql-rename-buffer'.
1500
1501*** SQL interactive modes suppress command continuation prompts, and
1502replace tabs with spaces. The first change impacts multiple line SQL
1503statements entered with C-j between each line, statements yanked into
1504the buffer and statements sent with `sql-send-*' functions. The
34e8a2da
GM
1505second prevents the MySQL and Postgres interpreters from listing
1506object name completions when sent text via `sql-send-*' functions.
041d709f
CY
1507
1508*** New command `sql-connect' starts a predefined SQLi session,
1509using the login parameters from `sql-connection-alist'.
1510
1511*** New "Save Connection" menu item in SQLi buffers.
1512This gathers the login params specified for the SQLi session, if it
1513was not started by a connection, and saves them as a new connection.
1514
34e8a2da
GM
1515*** New commands for listing database objects and details:
1516sql-list-all and sql-list-table.
041d709f
CY
1517
1518*** An API for manipulating SQL product definitions has been added.
1519
1520** TeX modes
1521
1522*** latex-electric-env-pair-mode keeps \begin..\end matched on the fly.
412b9ee5 1523
459bba37 1524** Tramp
dfdb4cad 1525
7d301ae6 1526*** New inline access method "ksu" (kerberized su).
dfdb4cad 1527
459bba37 1528*** The following access methods are discontinued: "ssh1_old",
ea843702 1529"ssh2_old", "scp1_old", "scp2_old", "imap", "imaps" and "fish".
dfdb4cad 1530
b011fbfe
GM
1531*** The user option `remote-file-name-inhibit-cache' controls whether
1532remote file attributes are cached for better performance.
dfdb4cad 1533
58f74fe4
MA
1534*** The option `ange-ftp-binary-file-name-regexp' has changed its
1535default value to "".
dfdb4cad 1536
7d301ae6
CY
1537*** Handlers for `file-selinux-context' and `set-file-selinux-context'
1538for remote machines which support SELinux.
58f74fe4 1539
dfdb4cad 1540** New function `url-queue-retrieve', which behaves like url-retrieve,
a48ec60c
GM
1541but with limits (`url-queue-parallel-processes', `url-queue-timeout') on
1542the degree of parallelism.
177549d0 1543
0c32ce32
CY
1544** VC and related modes
1545
1546*** Support for pulling on distributed version control systems.
7d301ae6
CY
1547The command C-x v + (`vc-pull') runs a "pull" operation, if it is
1548supported (currently with Bzr, Git, and Mercurial), to update the
1549current branch and working tree. A prefix argument means to prompt
1550the user for specifics, e.g. a pull location.
0c32ce32 1551
dab3703d 1552*** `vc-update' is now an alias for `vc-pull'.
0c32ce32
CY
1553
1554*** Support for merging on distributed version control systems.
7d301ae6
CY
1555The command C-x v m (`vc-merge') now runs a "merge" operation, if it
1556is supported (currently with Bzr, Git, and Mercurial), to merge
1557changes from another branch into the current one. It prompts for
1558specifics, e.g. a merge source.
0c32ce32 1559
2afef60a 1560*** New option `vc-revert-show-diff' controls whether `vc-revert'
bbe43420 1561shows a diff while querying the user. It defaults to t.
2afef60a 1562
d4eb88c7
CY
1563*** Log entries in some Log View buffers can be toggled to display a
1564longer description by typing RET (log-view-toggle-entry-display).
dab3703d
GM
1565This is currently supported for Bzr, Git, and Mercurial (to support
1566another backend, define a `log-view-expanded-log-entry-function').
7d301ae6 1567In the Log View buffers made by C-x v L (`vc-print-root-log'), you can
d4eb88c7
CY
1568use this to display the full log entry for the revision at point.
1569
1c6c854e
CS
1570*** New command `vc-ediff' allows visual comparison of two revisions
1571of a file similar to `vc-diff', but using ediff backend.
1572
86c60681
CY
1573*** The option `vc-initial-comment' was removed in Emacs 23.2, but
1574this was not advertised at the time.
1575
86c60681
CY
1576*** `vc-toggle-read-only' is an obsolete alias for `toggle-read-only'.
1577Since Emacs 23, it has done the same thing as `toggle-read-only', but
80c6d77f
GM
1578this was not advertised at the time.
1579
041d709f
CY
1580** Obsolete modes
1581
23d70505
GM
1582*** abbrevlist.el
1583
f8ca9162 1584*** erc-hecomplete.el (use erc-pcomplete.el instead)
23d70505
GM
1585
1586*** partial-completion-mode (complete.el) is obsolete.
041d709f
CY
1587You can get a comparable behavior with:
1588(setq completion-styles '(partial-completion initials))
1589(setq completion-pcm-complete-word-inserts-delimiters t)
1590
23d70505
GM
1591*** pc-mode.el is obsolete (CUA mode is much more comprehensive).
1592
2c719188 1593*** pgg is obsolete (use EasyPG instead).
041d709f
CY
1594
1595*** sregex.el is obsolete, since rx.el is a strict superset.
1596
23d70505
GM
1597*** s-region.el and pc-select.el are obsolete.
1598They are superseded by shift-select-mode, enabled by default since 23.1.
1599
2c719188 1600*** vc-mcvs.el is obsolete (for lack of a maintainer).
ca5eed61 1601
0fe719e6
GM
1602** Miscellaneous
1603
05f77e38 1604*** The Landmark game is now invoked with `landmark', not `lm'.
c6ad2a4e 1605Its functions and variables have been similarly renamed.
05f77e38 1606
dfdb4cad 1607*** In `ido-file-completion-map', C-v is no longer bound to `ido-toggle-vc'.
05f77e38
GM
1608(This interfered with cua-mode.)
1609
9f678528
GM
1610*** f90.el has some support for Fortran 2008 syntax.
1611
0fe719e6
GM
1612*** `copyright-fix-years' can optionally convert consecutive years to ranges.
1613
5b3e6db8
GM
1614*** New command `nato-region' converts text to NATO phonetic alphabet.
1615
eb199145
GM
1616\f
1617* New Modes and Packages in Emacs 24.1
d445b3f8 1618
60e56523 1619** Occur Edit mode applies edits made in *Occur* buffers to the
8c0f49f0 1620original buffers. It is bound to "e" in Occur mode.
60e56523 1621
a075a2c5
GM
1622** New global minor mode electric-pair-mode.
1623When enabled, typing an open parenthesis automatically inserts the
1624matching closing one.
1625
1626** New global minor mode electric-indent-mode.
1627When enabled, typing certain characters triggers reindentation.
cd3308f3
GM
1628Major modes wishing to use this can set electric-indent-chars or
1629electric-indent-functions.
a075a2c5
GM
1630
1631** New global minor mode electric-layout-mode.
1632When enabled, typing certain characters automatically inserts newlines.
cd3308f3 1633Major modes wishing to use this can set electric-layout-rules.
3b843809 1634
a83ec3c9
CY
1635** tabulated-list.el provides a generic major mode for tabulated data,
1636from which other modes can be derived.
1637
d02c9bcd
SM
1638** pcase.el provides the ML-style pattern matching macro `pcase'.
1639
7725ebb7
MA
1640** secrets.el is an implementation of the Secret Service API, an
1641interface to password managers like GNOME Keyring or KDE Wallet. The
065f2743
MA
1642Secret Service API requires D-Bus for communication. The command
1643`secrets-show-secrets' offers a buffer with a visualization of the
1644secrets.
7725ebb7 1645
f9e78150
MA
1646** notifications.el provides an implementation of the Desktop
1647Notifications API. It requires D-Bus for communication.
1648
12fe5bcc
MA
1649** soap-client.el supports access to SOAP web services from Emacs.
1650soap-inspect.el is an interactive inspector for SOAP WSDL structures.
1651
ff1796f3 1652** New generic mode, xmodmap-generic-mode, for xmodmap files.
ad7d6ecb 1653
53bbe3ad 1654** New emacs-lock.el package.
7d301ae6
CY
1655The previous version has been moved to obsolete/old-emacs-lock.el.
1656Now, there is a proper minor mode `emacs-lock-mode'. Protection
1657against exiting Emacs and killing the buffer can be set separately.
1658The mechanism for automatically turning off protection for buffers
1659with dead inferior processes has been generalized.
53bbe3ad 1660
eb199145
GM
1661\f
1662* Incompatible Lisp Changes in Emacs 24.1
6dfcbe31 1663
7d301ae6
CY
1664** Passing a nil argument to a minor mode function call now ENABLES
1665the minor mode unconditionally. This is so that you can write e.g.
1666
dfdb4cad 1667 (add-hook 'text-mode-hook 'foo-mode)
7d301ae6 1668
dfdb4cad
CY
1669to enable foo-mode in Text mode buffers, removing the need for
1670`turn-on-foo-mode' style functions. This affects all mode commands
1671defined by `define-minor-mode'. If called interactively, the mode
1672command still toggles the minor mode.
7d301ae6 1673
d268b4fe
CY
1674** The return value of `backup-buffer' has changed.
1675It is now a list of three elements, where the second element is a list
1676describing the original file's SELinux context. If Emacs or the
f003f294 1677system lacks SELinux support, the context list is (nil nil nil nil).
7d301ae6 1678See "Basic SELinux support" above, under "Changes in Emacs 24.1".
d268b4fe 1679
dfdb4cad
CY
1680** `char-direction-table' and the `char-direction' function were deleted.
1681They were buggy and inferior to the new support of bidirectional
1682editing introduced in Emacs 24. If you need the bidirectional
1683properties of a character, use `get-char-code-property' with the last
1684argument `bidi-class'.
fa6996bc 1685
470d996d
TV
1686** `copy-directory' now copies the source directory as a subdirectory
1687of the target directory, if the latter is an existing directory. The
1688new optional arg COPY-CONTENTS, if non-nil, makes the function copy
1689the contents directly into a pre-existing target directory.
1690
9173a8fb
CY
1691** For mouse click input events in the text area, the Y pixel
1692coordinate in the POSITION list now counts from the top of the text
1693area, excluding any header line. Previously, it counted from the top
1694of the header line.
1695
7d301ae6
CY
1696** Support for "old-style" backquotes, obsolete for 10+ years, has
1697been further reduced. Now a backquote not followed by a space is
1698always treated as a "new-style" backquote. Please remove all
1699"old-style" backquotes from your code. If your code uses backquotes
1700as documented in the Elisp manual, and compiles without warning, then
1701you have nothing to do in this regard. Code not following the
1702appropriate conventions may fail to compile.
50ab02c5
CY
1703
1704The most common cause of trouble seems to be an old-style backquote
1705followed by a newline. Another cause of trouble is vector notation
1706for key sequence notation: instead of [(control ,)] and [(control ')],
1707you should write [(control ?,)] and [(control ?')], which will work in
7d301ae6 1708older Emacsen too.
288cf4e9 1709
520f2425
GM
1710** The macro `eval-at-startup' was removed in Emacs 23.2, but this
1711was not advertised at the time. The function `custom-initialize-delay'
1712replaced all known uses.
1713
7d301ae6
CY
1714** `view-buffer' now treats special mode-class in the same way that
1715`view-file' has since Emacs 22 (i.e. it won't enable View mode if the
1716major mode is special).
fd5c9dfa 1717
7d301ae6 1718** Menu and tool bar changes
6431f2e6 1719
7d301ae6 1720*** During startup, Emacs no longer adds entries for `menu-bar-lines'
0a19a6f8
JB
1721and `tool-bar-lines' to `default-frame-alist' and `initial-frame-alist'.
1722With these alist entries omitted, `make-frame' checks the value of the
1723variable `menu-bar-mode'/`tool-bar-mode' to determine whether to create
1724a menu-bar or tool-bar, respectively. If the alist entries are added,
1725they override the value of `menu-bar-mode'/`tool-bar-mode'.
6431f2e6 1726
7d301ae6
CY
1727*** The menu bar bindings's caches are not used any more.
1728Use (where-is-internal <def> nil t) instead.
1729
fe0aa820 1730** Regions created by mouse dragging are now normal active regions,
dfdb4cad 1731similar to those created by shift-selection (see Selection changes
7d301ae6
CY
1732above). In previous Emacs versions, these regions were delineated by
1733`mouse-drag-overlay'; that variable has been removed.
d6d8ee7a 1734
7d301ae6
CY
1735** The fourth argument of `filter-buffer-substring' has been removed.
1736If you want to remove text properties from the final result, simply
1737pass the result through substring-no-properties.
34c99998 1738
4583e796
GM
1739** cl.el no longer provides `cl-19'.
1740
7d301ae6
CY
1741** The following obsolete functions and aliases have been removed
1742(the appropriate new function is given in parentheses; "not needed"
1743means you can just remove all calls to the function in question):
1744
1745*** `comint-kill-output' (`comint-delete-output')
1746*** `decompose-composite-char' (`char-to-string')
1747*** `outline-visible' (`outline-invisible-p')
1748*** `internal-find-face' (`facep')
1749*** `internal-get-face' (`facep and check-face')
1750*** `frame-update-faces' (not needed)
1751*** `frame-update-face-colors' (`frame-set-background-mode')
1752*** `x-frob-font-weight' and `x-frob-font-slant' (`make-face-*' functions)
2c719188 1753*** `x-make-font-bold and x-make-font-demibold (`make-face-bold')
7d301ae6
CY
1754*** `x-make-font-italic' and `x-make-font-oblique' (`make-face-italic')
1755*** `x-make-font-bold-italic' (`make-face-bold-italic')
1756*** `x-make-font-unbold' (`make-face-unbold')
1757*** `x-make-font-unitalic' (`make-face-unitalic')
1758*** `mldrag-drag-mode-line' (`mouse-drag-mode-line')
1759*** `mldrag-drag-vertical-line' (`mouse-drag-vertical-line')
1760*** `iswitchb-default-keybindings' (`iswitchb-mode')
1761*** `char-bytes' (== 1)
1762*** `isearch-return-char' (`isearch-printing-char')
1763*** `make-local-hook' (not needed)
1764*** `set-screen-height' (`set-frame-height')
1765*** `set-screen-width' (`set-frame-width')
1766
7d301ae6
CY
1767** The following obsolete variables and varaliases have been removed
1768(the appropriate new variable is given in parentheses):
1769
1770*** `checkdoc-minor-keymap' (`checkdoc-minor-mode-map')
1771*** `vc-header-alist' (`vc-BACKEND-header')
1772*** `directory-sep-char' (== ?/)
1773*** `font-lock-defaults-alist' (`font-lock-defaults')
1774*** `e' (`float-e').
3226d6ca 1775
041d709f 1776** The following obsolete files were removed:
7b0e3048
GM
1777sc.el, x-menu.el, rnews.el, rnewspost.el
1778
7d301ae6
CY
1779** The format of the finder-inf.el file has changed, since the Finder
1780mechanism is now based on the package system. The variable
1781`finder-package-info' is replaced by `package--builtins' and
1782`finder-keywords-hash'.
33658d4e 1783
c2c79260
DE
1784** When generating autoloads, `update-directory-autoloads' no longer
1785assumes every inspected file is in your `load-path'. It instead
1786generates relative names according to the current `load-path'.
1787
eb199145
GM
1788\f
1789* Lisp changes in Emacs 24.1
9097e8af 1790
041d709f 1791** Code can now use lexical scoping by default instead of dynamic scoping.
dfdb4cad 1792The `lexical-binding' variable enables lexical scoping for local
48da7392 1793variables. It is typically set via a file-local variable in the first
dfdb4cad
CY
1794line of the file, in which case it applies to all the code in that
1795file.
1796
041d709f
CY
1797*** `eval' takes a new optional argument `lexical' to choose the new lexical
1798binding instead of the old dynamic binding mode.
dfdb4cad 1799
041d709f
CY
1800*** Lexically scoped interpreted functions are represented with a new form
1801of function value which looks like (closure ENV ARGS &rest BODY).
1802
1803*** New macro `letrec' to define recursive local functions.
dfdb4cad
CY
1804
1805*** `defvar' and `defconst' now mark the variable as special (dynamic).
1806So do `defcustom' and other forms that call `defvar' as a subroutine.
1807
041d709f
CY
1808*** New function `special-variable-p' to check whether a variable is
1809declared as dynamically bound.
1810
88ed9e87
SM
1811*** The form ((lambda ...) ...) is deprecated.
1812
041d709f
CY
1813** An Emacs Lisp testing tool is now included.
1814Emacs Lisp developers can use this tool to write automated tests for
1815their code. See the ERT info manual for details.
1816
1817** Changes for bidirectional display and editing
f1816485 1818
041d709f 1819*** New function `current-bidi-paragraph-direction'.
7d301ae6 1820This returns the base direction of the paragraph at point.
041d709f 1821
041d709f 1822*** New function `bidi-string-mark-left-to-right'.
dfdb4cad
CY
1823Given a string containing characters from right-to-left scripts, this
1824function returns another string which can be safely inserted into a
1825buffer, such that any following text will be always displayed to the
7d301ae6
CY
1826right of that string. (This works by appending an invisible Unicode
1827"LEFT-TO-RIGHT MARK" character if the argument string might need it.)
041d709f 1828
7d301ae6 1829This is useful when the buffer has overall left-to-right paragraph
dfdb4cad
CY
1830direction and you need to insert a string whose contents are not known
1831in advance, without disrupting the layout of the line.
041d709f 1832
bee0fcef 1833** Window changes
dfdb4cad 1834
c4682d18
MR
1835*** Window tree functions are accessible in Elisp.
1836Functions are provided to return the parent, siblings or child windows
1837of any window including internal windows (windows not associated with a
1838buffer) in the window tree.
dfdb4cad 1839
24300f5f
CY
1840**** New function `window-valid-p' gives non-nil for live and internal
1841windows.
dfdb4cad 1842
24300f5f 1843**** Window manipulation can deal with internal windows.
c4682d18
MR
1844Many window handling functions like `split-window', `delete-window', or
1845`delete-other-windows' as well as the window resizing functions can now
1846act on any window including internal ones.
dfdb4cad 1847
c4682d18
MR
1848*** window-total-height/-width vs window-body-height/-width.
1849The function `window-height' has been renamed to `window-total-height'
1850and `window-width' has been renamed to `window-body-width'. The old
1851names are provided as aliases. Two new functions `window-total-width'
1852and `window-body-height' are provided.
dfdb4cad 1853
c4682d18
MR
1854*** Window parameters specific to window handling functions.
1855For each window you can specify a parameter to override the default
1856behavior of a number of functions like `split-window', `delete-window'
ed6235ea
MR
1857and `delete-other-windows'. The variable `ignore-window-parameters'
1858allows to ignore processing such parameters.
dfdb4cad 1859
c4682d18 1860*** New semantics of third argument of `split-window'.
c4682d18
MR
1861The third argument of `split-window' has been renamed to SIDE and can be
1862set to any of the values 'below, 'right, 'above, or 'left to make the
1863new window appear on the corresponding side of the window that shall be
1864split. Any other value of SIDE will cause `split-window' to split the
1865window into two side-by-side windows as before.
dfdb4cad 1866
c4682d18 1867*** Window resizing functions.
487ffd7a 1868A new standard function for resizing windows called `window-resize' has
c4682d18
MR
1869been introduced. This and all other functions for resizing windows no
1870longer delete any windows when they become too small.
dfdb4cad 1871
b3c0dbfd
MR
1872*** Deleting the selected window now selects the most recently selected
1873live window on that frame instead.
dfdb4cad 1874
c4682d18
MR
1875*** `adjust-window-trailing-edge' adjustments.
1876`adjust-window-trailing-edge' can now deal with fixed-size windows and
1877is able to resize other windows if a window adjacent to the trailing
1878edge cannot be shrunk any more. This makes its behavior more similar to
1879that of Emacs 21 without compromising, however, its inability to delete
1880windows which was introduced in Emacs 22.
dfdb4cad 1881
c4682d18
MR
1882*** Window-local buffer lists.
1883Windows now have local buffer lists. This means that removing a buffer
1884from display in a window will preferably show the buffer previously
1885shown in that window with its previous window-start and window-point
1886positions. This also means that the same buffer may be automatically
1887shown twice even if it already appears in another window.
dfdb4cad 1888
bee0fcef
CY
1889*** `switch-to-buffer' has a new optional argument FORCE-SAME-WINDOW,
1890which if non-nil requires the buffer to be displayed in the currently
1891selected window, signaling an error otherwise. If nil, another window
1892can be used, e.g. if the selected one is strongly dedicated.
dfdb4cad 1893
0a2132ba 1894*** `split-window-vertically' and `split-window-horizontally' renamed
2d197ffb
CY
1895to `split-window-below' and `split-window-right' respectively.
1896The old names are kept as aliases.
dfdb4cad 1897
0a2132ba
CY
1898*** Display actions
1899
1900**** The second arg to `display-buffer' and `pop-to-buffer' is now
1901named ACTION, and takes a display action of the same form as
1902`display-buffer-base-action' (see Changes, above). A non-nil,
1903non-list value is treated specially, as the old meaning.
1904
1905**** New variable `display-buffer-overriding-action'.
1906
1907**** The procedure of `display-buffer' etc. to choose a window is
1908determined by combining `display-buffer-overriding-action',
1909`display-buffer-alist', the ACTION arg, `display-buffer-base-action',
1910and `display-buffer-fallback-action'. The second and fourth of these
1911are user-customizable variables.
1912
1913See the docstring of `display-buffer' for details.
bee0fcef 1914
20d2304d
CY
1915*** New functions `window-state-get' and `window-state-put'.
1916These functions allow to save and restore the state of an arbitrary
1917frame or window as an Elisp object.
1918
a2a25d24 1919** Completion
041d709f 1920
7d301ae6
CY
1921*** New variable `completion-extra-properties' used to specify extra
1922properties of the current completion:
a2a25d24
SM
1923- :annotate-function, same as the old completion-annotate-function.
1924- :exit-function, function to call after completion took place.
1925
7d301ae6
CY
1926*** Functions on `completion-at-point-functions' can return any of the
1927properties valid for `completion-extra-properties'.
a2a25d24 1928
7d301ae6 1929*** `completion-annotate-function' is obsolete.
a2a25d24 1930
620c53a6
SM
1931*** New `metadata' method for completion tables. The metadata thus returned
1932can specify various details of the data returned by `all-completions':
1933- `category' is the kind of objects returned (e.g., `buffer', `file', ...),
1934 used to select a style in completion-category-overrides.
1935- `annotation-function' to add annotations in *Completions*.
1936- `display-sort-function' to specify how to sort entries in *Completions*.
1937- `cycle-sort-function' to specify how to sort entries when cycling.
1938
7d301ae6
CY
1939*** `minibuffer-local-filename-must-match-map' is not used any more.
1940Instead, the bindings in `minibuffer-local-filename-completion-map'
1941are combined with `minibuffer-local-must-match-map'.
de09aa52
CY
1942
1943*** New variable `completing-read-function' allows overriding the
1944behavior of `completing-read'.
1945
f042970d 1946** `glyphless-char-display' can now distinguish between graphical and
16a43933
CY
1947text terminal display, via a char-table entry that is a cons cell.
1948
7d301ae6 1949** `pre-command-hook'/`post-command-hook' are not reset to nil on error.
f6d62986
SM
1950Instead, the offending function is removed.
1951
b1f6fa26
CY
1952** New hook types
1953
1954*** New function `run-hook-wrapped' for running an abnormal hook by
1955passing the hook functions as arguments to a "wrapping" function.
e7bc51d0 1956Like `run-hook-with-args-until-success', it stops at the first
5385447f 1957non-nil return value.
e7bc51d0 1958
b1f6fa26
CY
1959*** New macro `with-wrapper-hook' for running an abnormal hook as a
1960set of "wrapping" filters, similar to around advice.
54521c99
GM
1961(A version of this macro was actually added in Emacs 23.2 but was not
1962advertised at the time.)
f6d62986 1963
0b19b281 1964** Debugger changes
dfdb4cad 1965
0b19b281 1966*** New macro `condition-case-unless-debug' (this was actually added in
1be3ca5a 1967Emacs 23.1 as condition-case-no-debug, but not advertised)
dfdb4cad 1968
0b19b281 1969*** The macro `with-demoted-errors' was added in Emacs 23.1, but not advertised.
dfdb4cad 1970
0b19b281 1971*** Variable `stack-trace-on-error' removed.
dfdb4cad 1972
0b19b281
CY
1973*** The debugger can now "continue" from an error, which means it will
1974jump to the error handler as if the debugger had not been invoked
1975instead of jumping all the way to the top-level.
dfdb4cad 1976
0b19b281
CY
1977*** Set `debug-on-event' to enter the debugger on events like SIGUSR1.
1978This can be useful when `inhibit-quit' is set.
d6b1d521 1979
7f7e0167
LI
1980*** Set `debug-on-message' to enter the debugger when a certain
1981message is displayed in the echo area. This can be useful when trying
1982to work out which code is doing something.
1983
953cebf5 1984** The new function `server-eval-at' allows evaluation of Lisp forms on
37576acd 1985named Emacs server instances.
7deebf1b 1986
1b9f60cc
GM
1987** `call-process' and `call-process-region' allow a `(:file "file")' spec
1988to redirect STDOUT to a file.
7deebf1b 1989
7d301ae6
CY
1990** The function `format-time-string' now supports the %N directive,
1991for higher-resolution time stamps.
da97a9e6 1992
0b19b281 1993** New input reading functions
dfdb4cad 1994
0b19b281
CY
1995*** New function `read-char-choice' reads a restricted set of
1996characters, discarding any inputs not inside the set.
dfdb4cad 1997
0b19b281
CY
1998*** The command `read-color' now requires a match for a color name
1999or RGB triplet, instead of signaling an error if the user provides
2000invalid input.
dfdb4cad 2001
0b19b281 2002**** `facemenu-read-color' is now an alias for `read-color'.
3ef01959 2003
2e288d54
JB
2004** `image-library-alist' is renamed to `dynamic-library-alist'.
2005The variable is now used to load all kind of supported dynamic libraries,
2006not just image libraries. The previous name is still available as an
2007obsolete alias.
2008
0b19b281 2009** Syntax parsing changes
dfdb4cad 2010
0b19b281 2011*** New variable `syntax-propertize-function'.
04e2ce72 2012This replaces `font-lock-syntactic-keywords' which is now obsolete.
cf38dd42
SM
2013This allows syntax-table properties to be set independently from font-lock:
2014just call syntax-propertize to make sure the text is propertized.
2015Together with this new variable come a new hook
2016syntax-propertize-extend-region-functions, as well as two helper functions:
2017syntax-propertize-via-font-lock to reuse old font-lock-syntactic-keywords
2018as-is; and syntax-propertize-rules which provides a new way to specify
2019syntactic rules.
dfdb4cad 2020
0b19b281 2021*** Syntax tables support a new "comment style c" additionally to style b.
a2e5caf7 2022
7d301ae6 2023** New hook `post-self-insert-hook', run after `self-insert-command'.
041d709f 2024
4e2db1fe 2025** frame-local variables cannot be let-bound any more.
041d709f 2026
15de15c6 2027** Major and minor mode changes
dfdb4cad 2028
0b19b281
CY
2029*** `set-auto-mode' now respects mode: local variables at the end of files,
2030as well as those in the -*- line.
dfdb4cad 2031
15de15c6
CY
2032*** `prog-mode' is a new major mode from which programming modes
2033should be derived.
dfdb4cad 2034
15de15c6
CY
2035**** `prog-mode-hook' can be used to enable features for programming
2036modes, e.g. (add-hook 'prog-mode-hook 'flyspell-prog-mode) to enable
2037on-the-fly spell checking for comments and strings.
dfdb4cad 2038
15de15c6
CY
2039*** New hook `change-major-mode-after-body-hook', run by
2040`run-mode-hooks' just before any other mode hooks.
dfdb4cad 2041
7a9a2fc6
GM
2042*** Enabled globalized minor modes can be disabled in specific major modes.
2043If the global mode is global-FOO-mode, then run (FOO-mode -1) in the
2044major mode's hook, where FOO-mode toggles the mode on a per-buffer basis.
dfdb4cad 2045
feb8a83a 2046*** `define-minor-mode' accepts new keywords :variable, :after-hook.
f44379e7 2047
7d301ae6
CY
2048** File-handling changes
2049
7d301ae6 2050*** `delete-file' and `delete-directory' now accept optional arg TRASH.
f1a5d776
CY
2051Trashing is performed if TRASH and `delete-by-moving-to-trash' are
2052both non-nil. Interactively, TRASH defaults to t, unless a prefix
2053argument is supplied (see Trash changes, above).
53967e09 2054
7d301ae6 2055*** New file predicates: `file-equal-p', `file-in-directory-p'.
ec70a47d 2056
4039c786
CY
2057** Tool-bars can display separators.
2058Tool-bar separators are handled like menu separators in menu-bar maps,
94975270 2059i.e. via menu entries of the form `(menu-item "--")'.
9317e499 2060
00fe2df1
JL
2061** Image API
2062
18af70d0
CY
2063*** Animated images support (currently animated gifs only).
2064
2065**** `image-animated-p' returns non-nil if an image can be animated.
2066
2067**** `image-animate' animates a supplied image spec.
2068
2069**** `image-animate-timer' returns the timer object for an image that
2070is being animated.
00fe2df1 2071
7cb76fe0
GM
2072*** `image-extension-data' has been renamed to `image-metadata'.
2073The old name is an obsolete alias to the new one.
1546c559 2074
b4ac6e8c
GM
2075*** Image mode can view any image type that ImageMagick supports.
2076This requires Emacs to be built with ImageMagick support.
7d301ae6
CY
2077
2078**** New function `imagemagick-types', defined if ImageMagick support
2079is enabled, returns a list of image file extensions that your
2080ImageMagick installation supports.
2081
2082**** New function `imagemagick-register-types' enables ImageMagick
2083image types in Image mode and in `create-image' and other helper
2084functions.
2085
2086**** New option `imagemagick-types-inhibit' excludes certain
2087ImageMagick image types from `imagemagick-register-types'.
2088
7d301ae6
CY
2089**** With ImageMagick support, there are extra Image mode commands to
2090resize and rotate images: `image-transform-fit-to-height',
2091`image-transform-fit-to-width', `image-transform-set-rotation', and
2092`image-transform-set-scale'.
041d709f 2093
7d301ae6
CY
2094** `compose-mail' now accepts an optional 8th arg, RETURN-ACTION, and
2095passes it to the mail user agent function. This argument specifies an
2096action for returning to the caller after finishing with the mail. For
2097example, this is used by Rmail to optionally delete a mail window.
b4ac6e8c 2098
71c17aec 2099** XML and HTML parsing
483ab230
CY
2100If Emacs is compiled with libxml2 support, there are two new
2101functions: `libxml-parse-html-region' (which parses "real world" HTML)
2102and `libxml-parse-xml-region' (which parses XML). Both return an
2103Emacs Lisp parse tree.
4b9832a6 2104
7d301ae6 2105** Networking and encryption changes
e2574f2c 2106
7d301ae6
CY
2107*** `open-network-stream' can now be used to open an encrypted stream.
2108It now accepts an optional `:type' parameter for initiating a TLS
2109connection, directly or via STARTTLS. To do STARTTLS, additional
2110parameters (`:end-of-command', `:success', `:capabilities-command')
2111must also be supplied.
2112
2113*** New library gnutls.el.
dfdb4cad
CY
2114The new function `gnutls-available-p' returns non-nil if Emacs is
2115built with GnuTLS support. The main entry points are
2116`open-gnutls-stream' and `gnutls-negotiate'. It's easiest to use
2117these functions through `open-network-stream', because that can
7d301ae6
CY
2118upgrade connections through STARTTLS opportunistically or use plain
2119SSL, depending on your needs. For debugging, set `gnutls-log-level'
2120greater than 0.
2121
7d301ae6
CY
2122*** New primitive `secure-hash' that supports many secure hash algorithms:
2123md5, sha1, sha2, sha224, sha256, sha384, and sha512. The lisp library
2124sha1.el has been removed. The `sha1' feature is provided by default.
71c17aec 2125
a6020335
MH
2126** Isearch
2127
2128*** New hook `isearch-update-post-hook' that runs in `isearch-update'.
2129
9326ba26
CY
2130** Progress reporters can now "spin".
2131The MIN-VALUE and MAX-VALUE arguments of `make-progress-reporter' can
2132now be nil, or omitted. This makes a "non-numeric" reporter. Each
2133time you call `progress-reporter-update' on that progress reporter,
2134with a nil or omitted VALUE argument, the reporter message is
2135displayed with a "spinning bar".
2136
3e214b50
JB
2137** New variable `revert-buffer-in-progress-p' is true while a buffer is
2138being reverted, even if the buffer has a local `revert-buffer-function'.
2139
001bf877
GM
2140** New variables `delayed-warnings-list' and `delayed-warnings-hook'.
2141If delayed-warnings-list is non-nil, the command loop calls
7d301ae6
CY
2142`delayed-warnings-hook' after `post-command-hook'. At present, this
2143is only used by Emacs on some platforms to display warnings during
2144startup, which might otherwise not be noticed. This uses the
2145functions `display-delayed-warnings' and `collapse-delayed-warnings'.
001bf877 2146
6420d28b
CY
2147** rx.el has a new `group-n' construct for explicitly numbered groups.
2148
dac86404
GM
2149** New function `make-composed-keymap' that constructs a new keymap
2150from multiple input maps. You can use this to make a keymap that
2151inherits from multiple maps, eg:
2152 (set-keymap-parent newmap (make-composed-keymap othermap parent))
43dc9f5b 2153
c8f6ec5c
GM
2154** New function `string-prefix-p'.
2155(This was actually added in Emacs 23.2 but was not advertised at the time.)
2156
27f7ef2f 2157** New reader macro ## that stands for the empty symbol.
43dc9f5b
AS
2158This means that the empty symbol can now be read back. Also, #: by itself
2159(when not immediately followed by a possible symbol character) stands for
2160an empty uninterned symbol.
041d709f 2161
fead402d
CY
2162** New math functions `isnan', `copysign', `frexp', `ldexp'.
2163
7d301ae6 2164** The following functions and variables are obsolete:
041d709f 2165
05f77e38
GM
2166*** `tooltip-use-echo-area' is obsolete.
2167Rather than setting this to t, disable Tooltip mode instead.
2168
041d709f
CY
2169*** buffer-substring-filters is obsolete.
2170Use `filter-buffer-substring-functions' instead.
2171
2172*** `byte-compile-disable-print-circle' is obsolete.
2173
2174*** `deferred-action-list' and `deferred-action-function' are obsolete.
f160676e
GM
2175Use `post-command-hook' instead.
2176
67e729a5
CY
2177*** `font-lock-maximum-size' is obsolete.
2178
eb199145
GM
2179\f
2180* Changes in Emacs 24.1 on non-free operating systems
d53a60a6 2181
7a22e700 2182** On MS Windows, Emacs warns when using the obsolete init file _emacs,
a2f0118c
GM
2183and also when HOME is set to C:\ by default.
2184
7a22e700 2185** New configure.bat options
04779484 2186
7a22e700 2187*** --enable-checking builds Emacs with extra runtime checks.
e3aef5c6 2188
7a22e700 2189*** --distfiles specifies files to be included in binary distribution.
e2574f2c 2190
7a22e700
OK
2191*** --without-gnutls disables automatic GnuTLS detection.
2192
a0d363f4 2193*** --lib for general library linkage, works with the USER_LIBS build variable.
e2574f2c 2194
0a19a6f8 2195** New make target `dist' to create binary distribution for MS Windows.
e3aef5c6 2196
1f5e1a16
GM
2197** The Lisp function `w32-default-color-map' is now obsolete.
2198(It is only used internally in the Emacs C code.)
5430d399 2199
1f5e1a16
GM
2200** Customize ns-auto-hide-menu-bar to have the menu-bar hidden, but
2201reappear on mouse-over. (Requires OS X 10.6 or later.)
04e2ce72 2202
ad7c802c
CY
2203** On Mac OS X, dragging a file into Emacs visits the file, like on
2204other platforms, rather than inserting its contents into the buffer.
2205
05197f40 2206\f
a933dad1 2207----------------------------------------------------------------------
5b87ad55 2208This file is part of GNU Emacs.
a933dad1 2209
ab73e885 2210GNU Emacs is free software: you can redistribute it and/or modify
5b87ad55 2211it under the terms of the GNU General Public License as published by
ab73e885
GM
2212the Free Software Foundation, either version 3 of the License, or
2213(at your option) any later version.
5b87ad55
GM
2214
2215GNU Emacs is distributed in the hope that it will be useful,
2216but WITHOUT ANY WARRANTY; without even the implied warranty of
2217MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
2218GNU General Public License for more details.
a933dad1 2219
5b87ad55 2220You should have received a copy of the GNU General Public License
ab73e885 2221along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
a933dad1 2222
05197f40 2223\f
a933dad1
DL
2224Local variables:
2225mode: outline
2226paragraph-separate: "[ \f]*$"
2227end: