(Query Replace): Mention `query-replace-show-replacement'.
[bpt/emacs.git] / etc / NEWS
CommitLineData
29b7722a 1GNU Emacs NEWS -- history of user-visible changes.
5b87ad55 2
0bfd685e 3Copyright (C) 2007 Free Software Foundation, Inc.
5b87ad55 4See the end of the file for license conditions.
a933dad1 5
3f7194ed 6Please send Emacs bug reports to emacs-pretest-bug@gnu.org.
9a21d88b
KS
7If possible, use M-x report-emacs-bug.
8
0bfd685e 9This file is about changes in Emacs version 23.
9a21d88b 10
0bfd685e
GM
11See files NEWS.22, NEWS.21, NEWS.20, NEWS.19, NEWS.18, and NEWS.1-17
12for changes in older Emacs versions.
9a21d88b
KS
13
14You can narrow news to a specific version by calling `view-emacs-news'
15with a prefix argument or by typing C-u C-h C-n.
3f7194ed
GM
16
17Temporary note:
18 +++ indicates that the appropriate manual has already been updated.
19 --- means no change in the manuals is called for.
20When you add a new item, please add it without either +++ or ---
21so we will look at it and add it to the manual.
22
05197f40 23\f
9c576ea0
KS
24* About external Lisp packages
25
9c576ea0 26\f
0bfd685e 27* Installation Changes in Emacs 23.1
c58dccad 28
3f7194ed
GM
29** The default X toolkit is now Gtk+, rather than Lucid.
30
15f02f65
GM
31** The Mac Carbon port is no longer supported.
32Instead, use... [what?]
33
9d3cc9b2
GM
34** configure now checks for libgif before libungif when searching for
35a GIF library.
b5ac89f8 36
36e625ec
GM
37** Support for systems without alloca has been removed.
38
07e5c0b0
DN
39** Support for Sun windows has been removed.
40
48a8be40
GM
41** The `emacstool' utility has been removed.
42
4e5cdb4f 43\f
6dadd99f
NR
44* Changes in Emacs 23.1
45
780d7bb9
RS
46** Emacs now supports using both X displays and ttys in one session.
47You can also use any number of different ttys.
48
49You can test for the presence of this feature in your Lisp code by
50testing for the `multi-tty' feature.
51
251ad2de
TTN
52** Emacs comes with a new set of icons for Mac OS X.
53OS-X-style icons (an application icon and a relevant document icon)
54were contributed by Kentaro Ohkouchi.
55Source files for these icons can be found in Emacs.app/Contents/Resources.
56
f664fee9
MC
57** Built-in functions (subr) can now have an interactive specification
58that is not a prompt string. If the `intspec' parameter of a `DEFUN'
59starts with a `(', the string is evaluated as a Lisp form.
60
61** set-file-modes is now interactive and can take the mode value in
62symbolic notation thanks to auxiliary functions.
63
90ab5c62
SM
64** split-window-preferred-function specifies whether display-buffer should
65split windows vertically or horizontally.
66
24cdde13
GM
67** Emacsclient has been extended to support opening a new terminal
68frame. Its behavior has been changed to open a new Emacs frame by
69default. Use the -c option to get the old behavior of opening files in
70the currently selected Emacs frame.
71
c0dadae9
MC
72** The refcards are now shipped as PDF files.
73
795a2a94
GM
74** Emacs now supports the SVG image format through librsvg2.
75
75f6af19 76** If you set find-file-confirm-nonexistent-file to t, then C-x C-f
0a963185
SM
77requires confirmation before opening a non-existent file.
78
6dadd99f
NR
79** If the gpm mouse server is running and t-mouse-mode enabled, Emacs uses a
80Unix socket in a GNU/Linux console to talk to server, rather than faking events
81using the client program mev. This C level approach provides mouse
82highlighting, and help echoing in the minibuffer.
83
c2e8590b
TTN
84** The new variable next-error-recenter specifies how next-error should
85recenter the visited source file. Its value can be a number (for example,
860 for top line, -1 for bottom line), or nil for no recentering.
87
d87b5ced 88** The mode-line displays a `@' if the default-directory for the current buffer
1f2e1c75 89is on a remote machine, or a hyphen otherwise.
6c5d503f 90
c9447ae1
GM
91** The mode-line displays a mode menu when mouse-1 is clicked on a minor mode,
92in the same way as it already did for major modes.
93
de3054d5 94** The new command balance-windows-area balances windows both vertically
62e3c31f 95and horizontally.
d466e9fc
SM
96
97** The new command close-display-connection can be used to close a connection
98to a remote display, e.g. because the display is about to become unreachable.
6c5d503f
MA
99
100** The command shell prompts for the default directory, when it is
101called with a prefix, and the default directory is a remote file name.
de3054d5 102This is because some file name handlers (like ange-ftp) are not able to
6c5d503f 103run processes remotely.
aff2ba04
RS
104
105** The new command `display-time-world' starts an updating time display
106using several time zones, in a buffer.
6dadd99f 107\f
0bfd685e 108* Startup Changes in Emacs 23.1
21f7b9d8 109
56e1896b
JL
110** New user option `initial-buffer-choice' specifies what to display
111after starting Emacs: startup screen, *scratch* buffer, visiting a
112file or directory.
113
aa5310e4
DK
114** New alias `argv' for `command-line-args-left'
115This is a convenience alias, so that one can write `(pop argv)'
116inside of --eval command line arguments in order to access
117following arguments.
f8fd7ed3
GM
118
119** The abbrev file is no longer read at startup in batch mode.
c44da964 120\f
0bfd685e 121* Incompatible Editing Changes in Emacs 23.1
b58cb59f 122
406c0f12 123\f
0bfd685e 124* Editing Changes in Emacs 23.1
406c0f12 125
1ac03a31
JL
126+++
127** M-q now fills the region if the region is active and
128`transient-mark-mode' is turned on. Otherwise, it fills the current
ecde850a 129paragraph.
1ac03a31 130
ecde850a 131+++
dc868f13
JL
132** M-$ now checks spelling of the region if the region is active and
133`transient-mark-mode' is turned on. Otherwise, it checks spelling of the
134word at point.
135
6dd697d9
DN
136** TAB now indents the region if the region is active and
137`transient-mark-mode' is turned on.
138
24cdde13
GM
139** C-z now invokes `suspend-frame', C-x C-c now invokes
140`save-buffers-kill-terminal'.
141
a151f82c
SS
142** New command kill-matching-buffers kills buffers whose name matches a regexp.
143
539f5bda
GM
144** `interprogram-paste-function' can now return one string or a list
145of strings. In the latter case, Emacs puts the second and following
146strings on the kill ring.
147
297b8ccd
JL
148** Minibuffer changes:
149
150*** isearch started in the minibuffer searches in the minibuffer history.
151Reverse isearch commands (C-r, C-M-r) search in previous minibuffer
152history elements, and forward isearch commands (C-s, C-M-s) search in
153next history elements. When the reverse search reaches the first history
154element, it wraps to the last history element, and the forward search
155wraps to the first history element. When the search is terminated, the
156history element containing the search string becomes the current.
157
0bfd685e
GM
158\f
159* New Modes and Packages in Emacs 23.1
0091c67e 160
1816bda7
MC
161** The package doc-view.el has been added. It supports viewing of PDF,
162PostScript and DVI documents inside an Emacs buffer by converting the
163document to a set of PNG images first. One can also search for a
164regular expression in the document. The commentary of the file explains
165its usage.
166
ddc961c5 167** A new game called `bubbles' has been added.
a0818148 168
dcd6e8d7 169** minibuffer-indicate-depth-mode shows the minibuffer depth in the prompt.
3f7194ed 170
15f3eb73
MO
171** Remember Mode (remember.el) is now included with Emacs. It is a
172mode for quickly jotting down things to remember. Included with
173remember.el is a backend that can save notes to a Diary file. Please
174consult the Remember Manual for usage details.
175
0bfd685e
GM
176\f
177* Changes in Specialized Modes and Packages in Emacs 23.1
61d244ca 178
e047f448
SM
179** abbrev was rewritten in Elisp and extended with more flexibility.
180*** New functions: abbrev-get, abbrev-put, abbrev-table-get, abbrev-table-put,
181 abbrev-table-p.
182*** Special hook `abbrev-expand-functions' obsoletes `pre-abbrev-expand-hook'.
183*** `make-abbrev-table', `define-abbrev', `define-abbrev-table' all take
184 extra arguments for arbitrary properties.
185*** New variable `abbrev-minor-mode-table-alist'.
186*** `local-abbrev-table' can hold a list of abbrev-tables.
187*** Abbrevs have now the following special properties:
79415279 188 `:count', `:system', `:enable-function', `:case-fixed'.
e047f448
SM
189*** Abbrev-tables have now the following special properties:
190 `:parents', `:case-fixed', `:enable-function', `:regexp',
191 `abbrev-table-modiff'.
192
0253fffa
MR
193** Help mode.
194*** New macro `with-help-window' should set up help windows better
195than `with-output-to-temp-buffer' with `print-help-return-message'.
196*** New option `help-window-select' permits to customize whether help
197window shall be automatically selected when invoking help.
198*** New variable `help-window-point-marker' permits to specify new
199position of point in help window (for example in `view-lossage').
200
201** view-remove-frame-by-deleting is now by default t
202since users found iconification of view-mode frames distracting.
203
12bbb989
JL
204** isearch can now search through multiple ChangeLog files.
205When running isearch in a ChangeLog file, if the search fails,
206then another C-s tries searching the previous ChangeLog,
207if there is one (e.g. go from ChangeLog to ChangeLog.12).
208
9097e8af
RS
209This is enabled if isearch-buffers-multi is non-nil.
210
b9694062
JL
211+++
212** In Dired-x, all command guesses for ! are now added to the default
213list accessible by M-n instead of pushing all guesses temporarily into
214the history list.
215
c3bb6fdb
SM
216** smerge-refine highlights word-level details of changes in conflict.
217It's used automatically as you move through conflicts, see smerge-auto-refine.
218
219** diff-refine-hunk highlights word-level details of changes in a diff hunk.
220It's used automatically as you move through hunks, see diff-auto-refine.
221
e6a01e4e 222** archive-mode has basic support to browse Rar archives.
c3bb6fdb 223
24cdde13
GM
224** talk.el has been extended for multiple tty support.
225
813fb3fe
SM
226** compilation-auto-jump-to-first-error tells `compile' to jump to
227the first error encountered during compilations.
228
b68769f2 229** In the `copyright' package, you can specify your copyright holders' names.
b649d2e4
SM
230Only copyright lines with holders matching copyright-names-regexp will be
231considered for update.
232
e7ce8577
GM
233** eldoc highlights the function argument under point
234with the face `eldoc-highlight-function-argument'.
235
b68769f2 236+++
8d5cc579 237** defcustom accepts new keyword arguments, `:safe' and `:risky', which
b68769f2
GM
238set a variable's `safe-local-variable' and `risky-local-variable' property.
239
56dada42 240** VC
397c4757
DN
241*** Clicking on the VC mode-line entry now pops the VC menu.
242
9372a958 243*** The VC mode-line entry now has a tooltip that explains the VC file status.
cb223bba 244
082c5622
DN
245*** VC now supports applying VC operations to a set of files at a time.
246
4a11b6b5
ER
247This enables VC to work much more effectively with changeset-oriented
248version-control systems such as Subversion, GNU Arch, Mercurial, and
249Bzr. VC will now pass a multiple-file commit to these systems
250as a single changeset.
251
5d503af9
SM
252** sgml-electric-tag-pair-mode lets you simultaneously edit matched tag pairs.
253
332de56f
GM
254** The appearance of superscript and subscript in TeX is more customizable.
255See the documentation of the variables: tex-fontify-script,
256tex-font-script-display, tex-suscript-height-ratio, and
257tex-suscript-height-minimum.
258
2793c9bb
RW
259** BibTeX mode:
260
261*** New `bibtex-entry-format' options `whitespace', `braces', and
262`string', disabled by default.
263
264*** New variable `bibtex-cite-matcher-alist' contains rules to
0f3cd6b2 265identify cited keys in BibTeX entries, used by `bibtex-find-crossref'.
2793c9bb
RW
266
267*** Command `bibtex-url' now allows multiple URLs per entry.
268
cc213f24
MA
269+++
270** Tramp
271
272*** New connection methods.
273The new methods "plinkx", "plink2", "psftp", "sftp" and "fish" have
274been introduced. There are also new so-called gateway methods
275"tunnel" and "socks".
276
277*** Multihop syntax has been removed.
278The pseudo-method "multi" has been removed. Instead of, multi hops
279can be specified by the new variable `tramp-default-proxies-alist'.
280
281*** More default settings.
282Default values can be set via the variables `tramp-default-user',
283`tramp-default-user-alist' and `tramp-default-host'.
284
285*** Connection information is cached.
286In order to reduce connection setup, information about used
287connections are kept persistent in a file. The name of this file is
288defined in the variable `tramp-persistency-file-name'.
289
290*** Control of remote processes.
291Running processes on a remote host can be controlled by settings in
292`tramp-remote-path' and `tramp-remote-process-environment'.
293
294*** Success of remote copy is checked.
295When the variable `file-precious-flag' is set, the success of a remote
296file copy is checked via the file's checksum.
297
d15f7b68
GM
298** Miscellaneous programming mode changes
299
da26ea8d
GM
300*** The file etc/emacs.py now supports both Python 2 and 3, meaning
301that either version can be used as inferior Python by python.el.
c3f01f42 302
d15f7b68
GM
303*** The variable `fortran-line-length' can change the fixed-form line-length.
304
a9f480e8
GM
305*** In Fortran mode, M-; is now bound to the standard comment-dwim,
306rather than fortran-indent-comment.
307
b68769f2
GM
308+++
309*** (The increasingly misnamed) F90 mode supports Fortran 2003 syntax.
2fb6c6be 310
d15f7b68
GM
311** Miscellaneous
312
313*** comint-mode uses `start-file-process' now (see Lisp Changes).
cc213f24
MA
314If `default-directory' is a remote file name, subprocesses are started
315on the corresponding remote system.
316
d15f7b68 317*** C-x C-q in dired-mode now runs the command wdired-change-to-wdired-mode,
40aa8257
JL
318and C-x C-q in wdired-mode exits it with asking a question about
319saving changes.
d15f7b68 320
4596901f
GM
321*** The new command `eshell/info' runs info in an eshell buffer.
322
0bfd685e
GM
323\f
324* Changes in Emacs 23.1 on non-free operating systems
8ab314f9 325
672f99b6
JR
326---
327** IPv6 is supported on MS-Windows.
328Emacs now supports IPv6 on Windows XP and later, and earlier versions
329of Windows with third party IPv6 stacks installed. Previously IPv6 was
330supported on other platforms, but not on Windows due to using the winsock
3311.1 header file, even though Emacs was linking to the winsock 2 library.
332
3280c5c5
JR
333** More keys available on MS-Windows.
334Keys normally associated with IMEs, and some exotic keys not normally found
335on standard keyboards have been given names so they can be bound to functions
336inside Emacs. If there are keys on your keyboard that have not been exposed
337to Emacs in the past, try C-h k to see if they are available now.
338
339Emacs can now bind functions to the extra buttons for media player and
340browser control present on some keyboards. These buttons are disabled
341by default, since enabling them prevents their system-wide use when
342Emacs has focus. To enable them, set the variable
343w32-pass-multimedia-buttons to nil. See the doc string of that variable
344for the list of extra keys that are available.
0bfd685e
GM
345\f
346* Incompatible Lisp Changes in Emacs 23.1
8ec65cd7 347
03605a28
MA
348+++
349** The function `dired-call-process' has been removed.
350
777ea444
GM
351** The variable `byte-compile-warnings' can now be a list starting with `not',
352meaning to disable the specified warnings. The meaning of this list
353may therefore be the reverse of what you expect (of course, this is
354only an issue if you make use of the new `not' syntax). Rather than
355checking/manipulating elements directly, use the new functions
356`byte-compile-warning-enabled-p', `byte-compile-disable-warning', and
357`byte-compile-enable-warning.'
358
74a84de2
GM
359** shell.el no longer defines the aliases `dirtrack-toggle' and
360`dirtrack-mode' for `shell-dirtrack-mode'. These names were removed
bdf5c7d9 361because they clash with commands provided by dirtrack.el. Use
74a84de2
GM
362`shell-dirtrack-mode' instead.
363
0bfd685e
GM
364\f
365* Lisp Changes in Emacs 23.1
8ab314f9 366
b9694062
JL
367+++
368** A list of default values can be specified for the DEFAULT argument of
369functions `read-from-minibuffer', `read-string', `read-command',
370`read-variable', `read-buffer', `completing-read'. Elements of this list
371are available for inserting into the minibuffer by typing `M-n'.
372For empty input these functions return the first element of this list.
373
66dc1ca2
RS
374** `custom-note-var-changed' tells Custom to treat the change in a certain
375variable as having been made within Custom.
376
ab6198b2
SM
377** `frame-inherited-parameters' lets new frames inherit parameters from
378the selected frame.
66dc1ca2 379
4f4a84ec
SM
380** New keymap `input-decode-map' overrides like key-translation-map, but
381applies before function-key-map. Also it is terminal-local contrary to
382key-translation-map. Terminal-specific key-sequences are generally added to
383this map rather than to function-key-map now.
384
d9774611
RS
385** The new function `read-color' reads a color name using the minibuffer.
386
24cdde13
GM
387** Changes related to multiple tty support.
388
b12f6e85
SM
389*** $TERM is now set to `dumb' for subprocesses. If you want to know the
390$TERM inherited by Emacs you will have to look inside initial-environment.
391
6168122d
SM
392*** $DISPLAY is now dynamically inherited from the frame's `display'.
393
24cdde13
GM
394*** The `window-system' variable has been made frame-local. The new
395`initial-window-system' variable contains the `window-system' value
396for the first frame.
397
398*** You can specify a terminal device (`tty' parameter) and a terminal
399type (`tty-type' parameter) to `make-terminal-frame'.
400
401*** The new function `make-frame-on-tty' allows you to create a new
402frame on another tty device interactively.
403
404*** The function `make-frame-on-display' now works during a tty
405session, and `make-frame-on-tty' works during a graphical session.
406
da406961 407*** New functions: `delete-tty', `suspend-tty', `resume-tty'.
24cdde13 408
419f8f49
SM
409*** A new data type for terminals with functions: `get-device-terminal',
410`terminal-parameters', `terminal-parameter', `set-terminal-parameter'.
24cdde13 411
1816bda7 412*** New hooks: `suspend-tty-functions' and `resume-tty-functions'
92cd6a7c 413are called after a tty frame has been suspended or resumed,
de3054d5 414respectively. The functions are called with the terminal id of the frame
92cd6a7c
DN
415being suspended/resumed as a parameter.
416
01ff458e 417*** New function: `environment'.
da406961 418
4f4a84ec 419*** New variable: `local-function-key-map'.
01ff458e
SM
420This in addition to the global function-key-map variable that
421already existed. The global variable is not used directly any more;
422instead, the local-function-key-map is initialized so as to inherit from
423function-key-map.
da406961 424
82866ad5
SM
425*** `initial-environment' holds the environment inherited from Emacs's parent.
426
24cdde13
GM
427*** The `keyboard-translate-table' variable and the terminal and
428keyboard coding systems have been made terminal-local.
429
1aa423e9
SM
430*** In addition to the global function-key-map, Emacs has terminal-local
431local-function-key-map variables, and uses them instead of the
24cdde13
GM
432global keymaps to set up translations and function key sequences
433relevant to a specific terminal device.
434
435
90ab5c62
SM
436** You can now also pass the value of the `invisible' property to invisible-p
437to check whether it would cause the text to be invisible. Convenient when
438checking invisibility of text which has no buffer position
439(e.g. in before/after-strings).
9f44d41a 440
ea2e3ef4
RS
441** Non-breaking space now acts as whitespace.
442
41bd52f7 443+++
8d371994
RS
444** In `condition-case', a handler can specify "let the debugger run first".
445
446You do this by writing `debug' in the list of conditions to be handled,
447like this:
448
449 (condition-case nil
450 (foo bar)
451 ((debug error) nil))
452
0a963185
SM
453** The `require-match' argument to `completing-read' accepts a new value
454`confirm-only'.
455
c69b0314
SM
456+++
457** The regexp form \(?<num>:<regexp>\) specifies the group number explicitly.
458
9f44d41a
RS
459** New function `window-full-width-p' returns t if a window is as wide
460as its frame.
461
462** The new function `split-string-and-unquote' does (what?)
463
464** The new function `combine-and-quote-strings' does (what?)
465
466** The new function `image-refresh' refreshes all images associated
467with a given image specification.
468
abf13a8b
CY
469+++
470** New variable `user-emacs-directory'.
471Use this instead of "~/.emacs.d".
472
b2b387f9 473+++
0f3cd6b2 474** The new function `start-file-process' is similar to `start-process',
b2b387f9 475but obeys file handlers. The file handler is chosen based on
6dbe7eb4
MA
476`default-directory'. The functions `start-file-process-shell-command'
477and `process-file-shell-command' are also new; they call internally
0f3cd6b2 478`start-file-process' and `process-file', respectively.
b2b387f9 479
64639e26 480+++
41bd52f7
MA
481** `file-remote-p' has new optional parameters IDENTIFICATION and CONNECTED.
482IDENTIFICATION specifies which part of the remote identifier has to be
483returned. With CONNECTED passed non-nil, it is checked whether a
484remote connection has been established already.
64639e26 485
45595a4f
RS
486** The two new functions `looking-at-p' and `string-match-p' can do
487the same matching as `looking-at' and `string-match' without changing
488the match data.
89835619
SM
489
490** The interactive-form of a function can be added post-facto via the
491`interactive-form' symbol property. Mostly useful to add complex interactive
492forms to subroutines.
9bae34bf 493\f
0bfd685e 494* New Packages for Lisp Programming in Emacs 23.1
efeb796b 495
9097e8af
RS
496** The package isearch-multi.el has been added. It implements a new mode
497`isearch-buffers-minor-mode' that allows isearch to search through
498multiple buffers. In this mode a new variable
499`isearch-buffers-next-buffer-function' defines the function to call
500to get the next buffer to search in the series of multiple buffers.
501
d53a60a6
TTN
502** The new package avl-tree.el deals with the AVL tree data structure.
503
05197f40 504\f
a933dad1 505----------------------------------------------------------------------
5b87ad55 506This file is part of GNU Emacs.
a933dad1 507
5b87ad55
GM
508GNU Emacs is free software; you can redistribute it and/or modify
509it under the terms of the GNU General Public License as published by
64be3a42 510the Free Software Foundation; either version 3, or (at your option)
5b87ad55
GM
511any later version.
512
513GNU Emacs is distributed in the hope that it will be useful,
514but WITHOUT ANY WARRANTY; without even the implied warranty of
515MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
516GNU General Public License for more details.
a933dad1 517
5b87ad55
GM
518You should have received a copy of the GNU General Public License
519along with GNU Emacs; see the file COPYING. If not, write to the
520Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
521Boston, MA 02110-1301, USA.
a933dad1 522
05197f40 523\f
a933dad1
DL
524Local variables:
525mode: outline
526paragraph-separate: "[ \f]*$"
527end:
ab5796a9 528
a533413c 529arch-tag: e759449d-88b3-4de4-9900-3a6c3dfa23e2