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