* log-edit.el (log-edit-show-diff): New function.
[emacs.git] / etc / NEWS
blob237c1d309cd754c964aa94c881084e3959469543
1 GNU Emacs NEWS -- history of user-visible changes.
3 Copyright (C) 2007 Free Software Foundation, Inc.
4 See the end of the file for license conditions.
6 Please send Emacs bug reports to emacs-pretest-bug@gnu.org.
7 If possible, use M-x report-emacs-bug.
9 This file is about changes in Emacs version 23.
11 See files NEWS.22, NEWS.21, NEWS.20, NEWS.19, NEWS.18, and NEWS.1-17
12 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 * About external Lisp packages
27 * Installation Changes in Emacs 23.1
29 ** The default X toolkit is now Gtk+, rather than Lucid.
31 ** The Mac Carbon port is no longer supported.
32 Instead, use... [what?]
34 ** configure now checks for libgif before libungif when searching for
35 a GIF library.
37 ** Support for systems without alloca has been removed.
39 ** Support for Sun windows has been removed.
41 ** The `emacstool' utility has been removed.
44 * Changes in Emacs 23.1
46 ** Emacs now supports using both X displays and ttys in one session.
47 You can also use any number of different ttys.
49 You can test for the presence of this feature in your Lisp code by
50 testing for the `multi-tty' feature.
52 ** Emacs comes with a new set of icons for Mac OS X.
53 OS-X-style icons (an application icon and a relevant document icon)
54 were contributed by Kentaro Ohkouchi.
55 Source files for these icons can be found in Emacs.app/Contents/Resources.
56 PNG versions are available as etc/images/icons/macemacs_*.png.
58 ** Built-in functions (subr) can now have an interactive specification
59 that is not a prompt string.  If the `intspec' parameter of a `DEFUN'
60 starts with a `(', the string is evaluated as a Lisp form.
62 ** set-file-modes is now interactive and can take the mode value in
63 symbolic notation thanks to auxiliary functions.
65 ** split-window-preferred-function specifies whether display-buffer should
66 split windows vertically or horizontally.
68 ** Emacsclient has been extended to support opening a new terminal
69 frame.  Its behavior has been changed to open a new Emacs frame by
70 default.  Use the -c option to get the old behavior of opening files in
71 the currently selected Emacs frame.
73 ** The refcards are now shipped as PDF files.
75 ** Emacs now supports the SVG image format through librsvg2.
77 ** If you set find-file-confirm-nonexistent-file to t, then C-x C-f
78 requires confirmation before opening a non-existent file.
80 ** If the gpm mouse server is running and t-mouse-mode enabled, Emacs uses a
81 Unix socket in a GNU/Linux console to talk to server, rather than faking events
82 using the client program mev.  This C level approach provides mouse
83 highlighting, and help echoing in the minibuffer.
85 ** The new variable next-error-recenter specifies how next-error should
86 recenter the visited source file.  Its value can be a number (for example,
87 0 for top line, -1 for bottom line), or nil for no recentering.
89 ** The mode-line displays a `@' if the default-directory for the current buffer
90 is on a remote machine, or a hyphen otherwise.
92 ** The mode-line displays a mode menu when mouse-1 is clicked on a minor mode,
93 in the same way as it already did for major modes.
95 ** The new command balance-windows-area balances windows both vertically
96 and horizontally.
98 ** The new command close-display-connection can be used to close a connection
99 to a remote display, e.g. because the display is about to become unreachable.
101 ** The command shell prompts for the default directory, when it is
102 called with a prefix, and the default directory is a remote file name.
103 This is because some file name handlers (like ange-ftp) are not able to
104 run processes remotely.
106 ** The new command `display-time-world' starts an updating time display
107 using several time zones, in a buffer.
109 * Startup Changes in Emacs 23.1
111 ** New user option `initial-buffer-choice' specifies what to display
112 after starting Emacs: startup screen, *scratch* buffer, visiting a
113 file or directory.
115 ** New alias `argv' for `command-line-args-left'
116 This is a convenience alias, so that one can write `(pop argv)'
117 inside of --eval command line arguments in order to access
118 following arguments.
120 ** The abbrev file is no longer read at startup in batch mode.
122 * Incompatible Editing Changes in Emacs 23.1
125 ** In Dired-x, all command guesses for ! are now added to the default
126 list accessible by M-n instead of pushing all guesses temporarily into
127 the history list.
130 * Editing Changes in Emacs 23.1
133 ** C-M-% now shows replacement as it would look in the buffer, with
134 `\N' and `\&' substituted according to the match.  Old behavior can be
135 restored by customizing `query-replace-show-replacement'.
138 ** M-q now fills the region if the region is active and
139 `transient-mark-mode' is turned on.  Otherwise, it fills the current
140 paragraph.
143 ** M-$ now checks spelling of the region if the region is active and
144 `transient-mark-mode' is turned on.  Otherwise, it checks spelling of the
145 word at point.
147 ** TAB now indents the region if the region is active and
148 `transient-mark-mode' is turned on.
150 ** C-z now invokes `suspend-frame', C-x C-c now invokes
151 `save-buffers-kill-terminal'.
153 ** New command kill-matching-buffers kills buffers whose name matches a regexp.
155 ** `interprogram-paste-function' can now return one string or a list
156 of strings.  In the latter case, Emacs puts the second and following
157 strings on the kill ring.
159 ** Minibuffer changes:
161 *** In C-x d, if you type M-n you get the visited file name of the
162 current buffer.
164 *** In Dired, a list of commands for ! extracted from mailcap according to
165 file extensions are added to the default list accessible by M-n.
167 *** A list of regexp default values is available via M-n for `occur',
168 `keep-lines', `flush-lines' and `how-many'.  This list includes the active
169 region in transient-mark-mode, the word under the cursor, the last isearch
170 regexp, the last isearch string and the last replacement regexp.
172 *** isearch started in the minibuffer searches in the minibuffer history.
173 Reverse isearch commands (C-r, C-M-r) search in previous minibuffer
174 history elements, and forward isearch commands (C-s, C-M-s) search in
175 next history elements.  When the reverse search reaches the first history
176 element, it wraps to the last history element, and the forward search
177 wraps to the first history element.  When the search is terminated, the
178 history element containing the search string becomes the current.
181 * New Modes and Packages in Emacs 23.1
183 ** The package doc-view.el has been added.  It supports viewing of PDF,
184 PostScript and DVI documents inside an Emacs buffer by converting the
185 document to a set of PNG images first.  One can also search for a
186 regular expression in the document.  The commentary of the file explains
187 its usage.
189 ** The nXML package has been added.
190 [FIXME someone who uses this, please write a brief description.]
192 ** A new game called `bubbles' has been added.
194 ** minibuffer-indicate-depth-mode shows the minibuffer depth in the prompt.
196 ** Remember Mode (remember.el) is now included with Emacs.  It is a
197 mode for quickly jotting down things to remember.  Included with
198 remember.el is a backend that can save notes to a Diary file.  Please
199 consult the Remember Manual for usage details.
202 * Changes in Specialized Modes and Packages in Emacs 23.1
204 ** abbrev was rewritten in Elisp and extended with more flexibility.
205 *** New functions: abbrev-get, abbrev-put, abbrev-table-get, abbrev-table-put,
206     abbrev-table-p.
207 *** Special hook `abbrev-expand-functions' obsoletes `pre-abbrev-expand-hook'.
208 *** `make-abbrev-table', `define-abbrev', `define-abbrev-table' all take
209     extra arguments for arbitrary properties.
210 *** New variable `abbrev-minor-mode-table-alist'.
211 *** `local-abbrev-table' can hold a list of abbrev-tables.
212 *** Abbrevs have now the following special properties:
213     `:count', `:system', `:enable-function', `:case-fixed'.
214 *** Abbrev-tables have now the following special properties:
215     `:parents', `:case-fixed', `:enable-function', `:regexp',
216     `abbrev-table-modiff'.
218 ** Help mode.
219 *** New macro `with-help-window' should set up help windows better
220 than `with-output-to-temp-buffer' with `print-help-return-message'.
221 *** New option `help-window-select' permits to customize whether help
222 window shall be automatically selected when invoking help.
223 *** New variable `help-window-point-marker' permits to specify new
224 position of point in help window (for example in `view-lossage').
226 ** view-remove-frame-by-deleting is now by default t
227 since users found iconification of view-mode frames distracting.
229 ** isearch can now search through multiple ChangeLog files.
230 When running isearch in a ChangeLog file, if the search fails,
231 then another C-s tries searching the previous ChangeLog,
232 if there is one (e.g. go from ChangeLog to ChangeLog.12).
234 This is enabled if isearch-buffers-multi is non-nil.
236 ** smerge-refine highlights word-level details of changes in conflict.
237 It's used automatically as you move through conflicts, see smerge-auto-refine.
239 ** diff-refine-hunk highlights word-level details of changes in a diff hunk.
240 It's used automatically as you move through hunks, see diff-auto-refine.
242 ** archive-mode has basic support to browse Rar archives.
244 ** talk.el has been extended for multiple tty support.
246 ** compilation-auto-jump-to-first-error tells `compile' to jump to
247 the first error encountered during compilations.
249 ** In the `copyright' package, you can specify your copyright holders' names.
250 Only copyright lines with holders matching copyright-names-regexp will be
251 considered for update.
253 ** eldoc highlights the function argument under point
254 with the face `eldoc-highlight-function-argument'.
257 ** defcustom accepts new keyword arguments, `:safe' and `:risky', which
258 set a variable's `safe-local-variable' and `risky-local-variable' property.
260 ** Etags changes.
261 *** The --members option is now the default.
263 Use --no-members if you want the old default behaviour of not tagging
264 struct members in C, members variables in C++ and variables in PHP.
266 ** VC
267 *** Clicking on the VC mode-line entry now pops the VC menu.
269 *** The VC mode-line entry now has a tooltip that explains the VC file status.
271 *** VC now supports applying VC operations to a set of files at a time.
273 This enables VC to work much more effectively with changeset-oriented
274 version-control systems such as Subversion, GNU Arch, Mercurial, and
275 Bzr. VC will now pass a multiple-file commit to these systems
276 as a single changeset.
278 *** In VC Annotate mode, you can type V to toggle the annotation visibility.
280 ** log-edit now has a command bound to C-c C-d to show the diff for
281 the files involved.
283 ** sgml-electric-tag-pair-mode lets you simultaneously edit matched tag pairs.
285 ** The appearance of superscript and subscript in TeX is more customizable.
286 See the documentation of the variables: tex-fontify-script,
287 tex-font-script-display, tex-suscript-height-ratio, and
288 tex-suscript-height-minimum.
290 ** BibTeX mode:
292 *** New `bibtex-entry-format' options `whitespace', `braces', and
293 `string', disabled by default.
295 *** New variable `bibtex-cite-matcher-alist' contains rules to
296 identify cited keys in BibTeX entries, used by `bibtex-find-crossref'.
298 *** Command `bibtex-url' now allows multiple URLs per entry.
301 ** Tramp
303 *** New connection methods.
304 The new methods "plinkx", "plink2", "psftp", "sftp" and "fish" have
305 been introduced.  There are also new so-called gateway methods
306 "tunnel" and "socks".
308 *** Multihop syntax has been removed.
309 The pseudo-method "multi" has been removed.  Instead of, multi hops
310 can be specified by the new variable `tramp-default-proxies-alist'.
312 *** More default settings.
313 Default values can be set via the variables `tramp-default-user',
314 `tramp-default-user-alist' and `tramp-default-host'.
316 *** Connection information is cached.
317 In order to reduce connection setup, information about used
318 connections are kept persistent in a file.  The name of this file is
319 defined in the variable `tramp-persistency-file-name'.
321 *** Control of remote processes.
322 Running processes on a remote host can be controlled by settings in
323 `tramp-remote-path' and `tramp-remote-process-environment'.
325 *** Success of remote copy is checked.
326 When the variable `file-precious-flag' is set, the success of a remote
327 file copy is checked via the file's checksum.
329 ** Miscellaneous programming mode changes
331 *** The file etc/emacs.py now supports both Python 2 and 3, meaning
332 that either version can be used as inferior Python by python.el.
334 *** The variable `fortran-line-length' can change the fixed-form line-length.
336 *** In Fortran mode, M-; is now bound to the standard comment-dwim,
337 rather than fortran-indent-comment.
340 *** (The increasingly misnamed) F90 mode supports Fortran 2003 syntax.
342 ** Miscellaneous
344 *** comint-mode uses `start-file-process' now (see Lisp Changes).
345 If `default-directory' is a remote file name, subprocesses are started
346 on the corresponding remote system.
348 *** C-x C-q in dired-mode now runs the command wdired-change-to-wdired-mode,
349 and C-x C-q in wdired-mode exits it with asking a question about
350 saving changes.
352 *** The new command `eshell/info' runs info in an eshell buffer.
355 * Changes in Emacs 23.1 on non-free operating systems
358 ** IPv6 is supported on MS-Windows.
359 Emacs now supports IPv6 on Windows XP and later, and earlier versions
360 of Windows with third party IPv6 stacks installed. Previously IPv6 was
361 supported on other platforms, but not on Windows due to using the winsock
362 1.1 header file, even though Emacs was linking to the winsock 2 library.
364 ** More keys available on MS-Windows.
365 Keys normally associated with IMEs, and some exotic keys not normally found
366 on standard keyboards have been given names so they can be bound to functions
367 inside Emacs.  If there are keys on your keyboard that have not been exposed
368 to Emacs in the past, try C-h k to see if they are available now.
370 Emacs can now bind functions to the extra buttons for media player and
371 browser control present on some keyboards.  These buttons are disabled
372 by default, since enabling them prevents their system-wide use when
373 Emacs has focus.  To enable them, set the variable
374 w32-pass-multimedia-buttons to nil. See the doc string of that variable
375 for the list of extra keys that are available.
377 * Incompatible Lisp Changes in Emacs 23.1
380 ** The function `dired-call-process' has been removed.
382 ** The variable `byte-compile-warnings' can now be a list starting with `not',
383 meaning to disable the specified warnings. The meaning of this list
384 may therefore be the reverse of what you expect (of course, this is
385 only an issue if you make use of the new `not' syntax). Rather than
386 checking/manipulating elements directly, use the new functions
387 `byte-compile-warning-enabled-p', `byte-compile-disable-warning', and
388 `byte-compile-enable-warning.'
390 ** shell.el no longer defines the aliases `dirtrack-toggle' and
391 `dirtrack-mode' for `shell-dirtrack-mode'.  These names were removed
392 because they clash with commands provided by dirtrack.el.  Use
393 `shell-dirtrack-mode' instead.
396 * Lisp Changes in Emacs 23.1
398 ** `beginning-of-defun-function' now takes one argument, the count
399    given to `beginning-of-defun'.
401 ** The variable `inhibit-changing-match-data', if non-nil, prevents the
402 search and match primitives from changing the match data.
405 ** New function `match-substitute-replacement' returns the result of
406 `replace-match' without actually using it in the buffer.
409 ** A list of default values can be specified for the DEFAULT argument of
410 functions `read-from-minibuffer', `read-string', `read-command',
411 `read-variable', `read-buffer', `completing-read'.  Elements of this list
412 are available for inserting into the minibuffer by typing `M-n'.
413 For empty input these functions return the first element of this list.
415 ** `custom-note-var-changed' tells Custom to treat the change in a certain
416 variable as having been made within Custom.
418 ** `frame-inherited-parameters' lets new frames inherit parameters from
419 the selected frame.
421 ** New keymap `input-decode-map' overrides like key-translation-map, but
422 applies before function-key-map.  Also it is terminal-local contrary to
423 key-translation-map.  Terminal-specific key-sequences are generally added to
424 this map rather than to function-key-map now.
426 ** The new macro `declare-function' suppresses compiler warnings about
427 undefined functions.  The new `check-declare' package verifies that such
428 statements are accurate (i.e. the functions are actually defined in
429 the specified files).
431 ** The new function `read-color' reads a color name using the minibuffer.
433 ** Changes related to multiple tty support.
435 *** $TERM is now set to `dumb' for subprocesses.  If you want to know the
436 $TERM inherited by Emacs you will have to look inside initial-environment.
438 *** $DISPLAY is now dynamically inherited from the frame's `display'.
440 *** The `window-system' variable has been made frame-local. The new
441 `initial-window-system' variable contains the `window-system' value
442 for the first frame.
444 *** You can specify a terminal device (`tty' parameter) and a terminal
445 type (`tty-type' parameter) to `make-terminal-frame'.
447 *** The new function `make-frame-on-tty' allows you to create a new
448 frame on another tty device interactively.
450 *** The function `make-frame-on-display' now works during a tty
451 session, and `make-frame-on-tty' works during a graphical session.
453 *** New functions: `delete-tty', `suspend-tty', `resume-tty'.
455 *** A new data type for terminals with functions: `get-device-terminal',
456 `terminal-parameters', `terminal-parameter', `set-terminal-parameter'.
458 *** New hooks: `suspend-tty-functions' and `resume-tty-functions'
459 are called after a tty frame has been suspended or resumed,
460 respectively.  The functions are called with the terminal id of the frame
461 being suspended/resumed as a parameter.
463 *** New function: `environment'.
465 *** New variable: `local-function-key-map'.
466 This in addition to the global function-key-map variable that
467 already existed.  The global variable is not used directly any more;
468 instead, the local-function-key-map is initialized so as to inherit from
469 function-key-map.
471 *** `initial-environment' holds the environment inherited from Emacs's parent.
473 *** The `keyboard-translate-table' variable and the terminal and
474 keyboard coding systems have been made terminal-local.
476 *** In addition to the global function-key-map, Emacs has terminal-local
477 local-function-key-map variables, and uses them instead of the
478 global keymaps to set up translations and function key sequences
479 relevant to a specific terminal device.
482 ** You can now also pass the value of the `invisible' property to invisible-p
483 to check whether it would cause the text to be invisible.  Convenient when
484 checking invisibility of text which has no buffer position
485 (e.g. in before/after-strings).
487 ** Non-breaking space now acts as whitespace.
490 ** In `condition-case', a handler can specify "let the debugger run first".
492 You do this by writing `debug' in the list of conditions to be handled,
493 like this:
495     (condition-case nil
496         (foo bar)
497       ((debug error) nil))
499 ** The `require-match' argument to `completing-read' accepts a new value
500 `confirm-only'.
503 ** The regexp form \(?<num>:<regexp>\) specifies the group number explicitly.
505 ** New function `window-full-width-p' returns t if a window is as wide
506 as its frame.
508 ** The new function `split-string-and-unquote' does (what?)
510 ** The new function `combine-and-quote-strings' does (what?)
512 ** The new function `image-refresh' refreshes all images associated
513 with a given image specification.
516 ** New variable `user-emacs-directory'.
517 Use this instead of "~/.emacs.d".
520 ** The new function `start-file-process' is similar to `start-process',
521 but obeys file handlers.  The file handler is chosen based on
522 `default-directory'.  The functions `start-file-process-shell-command'
523 and `process-file-shell-command' are also new; they call internally
524 `start-file-process' and `process-file', respectively.
526 ** The new function `process-lines' executes an external program and
527 returns its output as a list of lines.
530 ** `file-remote-p' has new optional parameters IDENTIFICATION and CONNECTED.
531 IDENTIFICATION specifies which part of the remote identifier has to be
532 returned.  With CONNECTED passed non-nil, it is checked whether a
533 remote connection has been established already.
535 ** The two new functions `looking-at-p' and `string-match-p' can do
536 the same matching as `looking-at' and `string-match' without changing
537 the match data.
539 ** The interactive-form of a function can be added post-facto via the
540 `interactive-form' symbol property.  Mostly useful to add complex interactive
541 forms to subroutines.
543 * New Packages for Lisp Programming in Emacs 23.1
545 ** The package isearch-multi.el has been added.  It implements a new mode
546 `isearch-buffers-minor-mode' that allows isearch to search through
547 multiple buffers.  In this mode a new variable
548 `isearch-buffers-next-buffer-function' defines the function to call
549 to get the next buffer to search in the series of multiple buffers.
551 ** The new package avl-tree.el deals with the AVL tree data structure.
554 ----------------------------------------------------------------------
555 This file is part of GNU Emacs.
557 GNU Emacs is free software; you can redistribute it and/or modify
558 it under the terms of the GNU General Public License as published by
559 the Free Software Foundation; either version 3, or (at your option)
560 any later version.
562 GNU Emacs is distributed in the hope that it will be useful,
563 but WITHOUT ANY WARRANTY; without even the implied warranty of
564 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
565 GNU General Public License for more details.
567 You should have received a copy of the GNU General Public License
568 along with GNU Emacs; see the file COPYING.  If not, write to the
569 Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
570 Boston, MA 02110-1301, USA.
573 Local variables:
574 mode: outline
575 paragraph-separate: "[  \f]*$"
576 end:
578 arch-tag: e759449d-88b3-4de4-9900-3a6c3dfa23e2