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