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