(update_frame_tool_bar): Don't call x-gtk-map-stock if
[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
117907d4
JL
123+++
124** In Dired-x, all command guesses for ! are now added to the default
125list accessible by M-n instead of pushing all guesses temporarily into
126the history list.
127
406c0f12 128\f
0bfd685e 129* Editing Changes in Emacs 23.1
406c0f12 130
59b5d020
JL
131+++
132** C-M-% now shows replacement as it would look in the buffer, with
133`\N' and `\&' substituted according to the match. Old behavior can be
134restored by customizing `query-replace-show-replacement'.
135
1ac03a31
JL
136+++
137** M-q now fills the region if the region is active and
138`transient-mark-mode' is turned on. Otherwise, it fills the current
ecde850a 139paragraph.
1ac03a31 140
ecde850a 141+++
dc868f13
JL
142** M-$ now checks spelling of the region if the region is active and
143`transient-mark-mode' is turned on. Otherwise, it checks spelling of the
144word at point.
145
6dd697d9
DN
146** TAB now indents the region if the region is active and
147`transient-mark-mode' is turned on.
148
24cdde13
GM
149** C-z now invokes `suspend-frame', C-x C-c now invokes
150`save-buffers-kill-terminal'.
151
a151f82c
SS
152** New command kill-matching-buffers kills buffers whose name matches a regexp.
153
539f5bda
GM
154** `interprogram-paste-function' can now return one string or a list
155of strings. In the latter case, Emacs puts the second and following
156strings on the kill ring.
157
297b8ccd
JL
158** Minibuffer changes:
159
117907d4
JL
160*** In Dired, a list of commands for ! extracted from mailcap according to
161file extensions are added to the default list accessible by M-n.
162
163*** A list of regexp default values is available via M-n for `occur',
164`keep-lines', `flush-lines' and `how-many'. This list includes the active
165region in transient-mark-mode, the word under the cursor, the last isearch
166regexp, the last isearch string and the last replacement regexp.
167
297b8ccd
JL
168*** isearch started in the minibuffer searches in the minibuffer history.
169Reverse isearch commands (C-r, C-M-r) search in previous minibuffer
170history elements, and forward isearch commands (C-s, C-M-s) search in
171next history elements. When the reverse search reaches the first history
172element, it wraps to the last history element, and the forward search
173wraps to the first history element. When the search is terminated, the
174history element containing the search string becomes the current.
175
0bfd685e
GM
176\f
177* New Modes and Packages in Emacs 23.1
0091c67e 178
1816bda7
MC
179** The package doc-view.el has been added. It supports viewing of PDF,
180PostScript and DVI documents inside an Emacs buffer by converting the
181document to a set of PNG images first. One can also search for a
182regular expression in the document. The commentary of the file explains
183its usage.
184
ddc961c5 185** A new game called `bubbles' has been added.
a0818148 186
dcd6e8d7 187** minibuffer-indicate-depth-mode shows the minibuffer depth in the prompt.
3f7194ed 188
15f3eb73
MO
189** Remember Mode (remember.el) is now included with Emacs. It is a
190mode for quickly jotting down things to remember. Included with
191remember.el is a backend that can save notes to a Diary file. Please
192consult the Remember Manual for usage details.
193
0bfd685e
GM
194\f
195* Changes in Specialized Modes and Packages in Emacs 23.1
61d244ca 196
e047f448
SM
197** abbrev was rewritten in Elisp and extended with more flexibility.
198*** New functions: abbrev-get, abbrev-put, abbrev-table-get, abbrev-table-put,
199 abbrev-table-p.
200*** Special hook `abbrev-expand-functions' obsoletes `pre-abbrev-expand-hook'.
201*** `make-abbrev-table', `define-abbrev', `define-abbrev-table' all take
202 extra arguments for arbitrary properties.
203*** New variable `abbrev-minor-mode-table-alist'.
204*** `local-abbrev-table' can hold a list of abbrev-tables.
205*** Abbrevs have now the following special properties:
79415279 206 `:count', `:system', `:enable-function', `:case-fixed'.
e047f448
SM
207*** Abbrev-tables have now the following special properties:
208 `:parents', `:case-fixed', `:enable-function', `:regexp',
209 `abbrev-table-modiff'.
210
0253fffa
MR
211** Help mode.
212*** New macro `with-help-window' should set up help windows better
213than `with-output-to-temp-buffer' with `print-help-return-message'.
214*** New option `help-window-select' permits to customize whether help
215window shall be automatically selected when invoking help.
216*** New variable `help-window-point-marker' permits to specify new
217position of point in help window (for example in `view-lossage').
218
219** view-remove-frame-by-deleting is now by default t
220since users found iconification of view-mode frames distracting.
221
12bbb989
JL
222** isearch can now search through multiple ChangeLog files.
223When running isearch in a ChangeLog file, if the search fails,
224then another C-s tries searching the previous ChangeLog,
225if there is one (e.g. go from ChangeLog to ChangeLog.12).
226
9097e8af
RS
227This is enabled if isearch-buffers-multi is non-nil.
228
c3bb6fdb
SM
229** smerge-refine highlights word-level details of changes in conflict.
230It's used automatically as you move through conflicts, see smerge-auto-refine.
231
232** diff-refine-hunk highlights word-level details of changes in a diff hunk.
233It's used automatically as you move through hunks, see diff-auto-refine.
234
e6a01e4e 235** archive-mode has basic support to browse Rar archives.
c3bb6fdb 236
24cdde13
GM
237** talk.el has been extended for multiple tty support.
238
813fb3fe
SM
239** compilation-auto-jump-to-first-error tells `compile' to jump to
240the first error encountered during compilations.
241
b68769f2 242** In the `copyright' package, you can specify your copyright holders' names.
b649d2e4
SM
243Only copyright lines with holders matching copyright-names-regexp will be
244considered for update.
245
e7ce8577
GM
246** eldoc highlights the function argument under point
247with the face `eldoc-highlight-function-argument'.
248
b68769f2 249+++
8d5cc579 250** defcustom accepts new keyword arguments, `:safe' and `:risky', which
b68769f2
GM
251set a variable's `safe-local-variable' and `risky-local-variable' property.
252
56dada42 253** VC
397c4757
DN
254*** Clicking on the VC mode-line entry now pops the VC menu.
255
9372a958 256*** The VC mode-line entry now has a tooltip that explains the VC file status.
cb223bba 257
082c5622
DN
258*** VC now supports applying VC operations to a set of files at a time.
259
4a11b6b5
ER
260This enables VC to work much more effectively with changeset-oriented
261version-control systems such as Subversion, GNU Arch, Mercurial, and
262Bzr. VC will now pass a multiple-file commit to these systems
263as a single changeset.
264
5d503af9
SM
265** sgml-electric-tag-pair-mode lets you simultaneously edit matched tag pairs.
266
332de56f
GM
267** The appearance of superscript and subscript in TeX is more customizable.
268See the documentation of the variables: tex-fontify-script,
269tex-font-script-display, tex-suscript-height-ratio, and
270tex-suscript-height-minimum.
271
2793c9bb
RW
272** BibTeX mode:
273
274*** New `bibtex-entry-format' options `whitespace', `braces', and
275`string', disabled by default.
276
277*** New variable `bibtex-cite-matcher-alist' contains rules to
0f3cd6b2 278identify cited keys in BibTeX entries, used by `bibtex-find-crossref'.
2793c9bb
RW
279
280*** Command `bibtex-url' now allows multiple URLs per entry.
281
cc213f24
MA
282+++
283** Tramp
284
285*** New connection methods.
286The new methods "plinkx", "plink2", "psftp", "sftp" and "fish" have
287been introduced. There are also new so-called gateway methods
288"tunnel" and "socks".
289
290*** Multihop syntax has been removed.
291The pseudo-method "multi" has been removed. Instead of, multi hops
292can be specified by the new variable `tramp-default-proxies-alist'.
293
294*** More default settings.
295Default values can be set via the variables `tramp-default-user',
296`tramp-default-user-alist' and `tramp-default-host'.
297
298*** Connection information is cached.
299In order to reduce connection setup, information about used
300connections are kept persistent in a file. The name of this file is
301defined in the variable `tramp-persistency-file-name'.
302
303*** Control of remote processes.
304Running processes on a remote host can be controlled by settings in
305`tramp-remote-path' and `tramp-remote-process-environment'.
306
307*** Success of remote copy is checked.
308When the variable `file-precious-flag' is set, the success of a remote
309file copy is checked via the file's checksum.
310
d15f7b68
GM
311** Miscellaneous programming mode changes
312
da26ea8d
GM
313*** The file etc/emacs.py now supports both Python 2 and 3, meaning
314that either version can be used as inferior Python by python.el.
c3f01f42 315
d15f7b68
GM
316*** The variable `fortran-line-length' can change the fixed-form line-length.
317
a9f480e8
GM
318*** In Fortran mode, M-; is now bound to the standard comment-dwim,
319rather than fortran-indent-comment.
320
b68769f2
GM
321+++
322*** (The increasingly misnamed) F90 mode supports Fortran 2003 syntax.
2fb6c6be 323
d15f7b68
GM
324** Miscellaneous
325
326*** comint-mode uses `start-file-process' now (see Lisp Changes).
cc213f24
MA
327If `default-directory' is a remote file name, subprocesses are started
328on the corresponding remote system.
329
d15f7b68 330*** C-x C-q in dired-mode now runs the command wdired-change-to-wdired-mode,
40aa8257
JL
331and C-x C-q in wdired-mode exits it with asking a question about
332saving changes.
d15f7b68 333
4596901f
GM
334*** The new command `eshell/info' runs info in an eshell buffer.
335
0bfd685e
GM
336\f
337* Changes in Emacs 23.1 on non-free operating systems
8ab314f9 338
672f99b6
JR
339---
340** IPv6 is supported on MS-Windows.
341Emacs now supports IPv6 on Windows XP and later, and earlier versions
342of Windows with third party IPv6 stacks installed. Previously IPv6 was
343supported on other platforms, but not on Windows due to using the winsock
3441.1 header file, even though Emacs was linking to the winsock 2 library.
345
3280c5c5
JR
346** More keys available on MS-Windows.
347Keys normally associated with IMEs, and some exotic keys not normally found
348on standard keyboards have been given names so they can be bound to functions
349inside Emacs. If there are keys on your keyboard that have not been exposed
350to Emacs in the past, try C-h k to see if they are available now.
351
352Emacs can now bind functions to the extra buttons for media player and
353browser control present on some keyboards. These buttons are disabled
354by default, since enabling them prevents their system-wide use when
355Emacs has focus. To enable them, set the variable
356w32-pass-multimedia-buttons to nil. See the doc string of that variable
357for the list of extra keys that are available.
0bfd685e
GM
358\f
359* Incompatible Lisp Changes in Emacs 23.1
8ec65cd7 360
03605a28
MA
361+++
362** The function `dired-call-process' has been removed.
363
777ea444
GM
364** The variable `byte-compile-warnings' can now be a list starting with `not',
365meaning to disable the specified warnings. The meaning of this list
366may therefore be the reverse of what you expect (of course, this is
367only an issue if you make use of the new `not' syntax). Rather than
368checking/manipulating elements directly, use the new functions
369`byte-compile-warning-enabled-p', `byte-compile-disable-warning', and
370`byte-compile-enable-warning.'
371
74a84de2
GM
372** shell.el no longer defines the aliases `dirtrack-toggle' and
373`dirtrack-mode' for `shell-dirtrack-mode'. These names were removed
bdf5c7d9 374because they clash with commands provided by dirtrack.el. Use
74a84de2
GM
375`shell-dirtrack-mode' instead.
376
0bfd685e
GM
377\f
378* Lisp Changes in Emacs 23.1
8ab314f9 379
59b5d020
JL
380+++
381** New function `match-substitute-replacement' returns the result of
382`replace-match' without actually using it in the buffer.
383
b9694062
JL
384+++
385** A list of default values can be specified for the DEFAULT argument of
386functions `read-from-minibuffer', `read-string', `read-command',
387`read-variable', `read-buffer', `completing-read'. Elements of this list
388are available for inserting into the minibuffer by typing `M-n'.
389For empty input these functions return the first element of this list.
390
66dc1ca2
RS
391** `custom-note-var-changed' tells Custom to treat the change in a certain
392variable as having been made within Custom.
393
ab6198b2
SM
394** `frame-inherited-parameters' lets new frames inherit parameters from
395the selected frame.
66dc1ca2 396
4f4a84ec
SM
397** New keymap `input-decode-map' overrides like key-translation-map, but
398applies before function-key-map. Also it is terminal-local contrary to
399key-translation-map. Terminal-specific key-sequences are generally added to
400this map rather than to function-key-map now.
401
967b2682
GM
402** The new macro `declare-function' suppresses compiler warnings about
403undefined functions. The new `check-declare' package verifies that such
404statements are accurate (i.e. the functions are actually defined in
405the specified files).
406
d9774611
RS
407** The new function `read-color' reads a color name using the minibuffer.
408
24cdde13
GM
409** Changes related to multiple tty support.
410
b12f6e85
SM
411*** $TERM is now set to `dumb' for subprocesses. If you want to know the
412$TERM inherited by Emacs you will have to look inside initial-environment.
413
6168122d
SM
414*** $DISPLAY is now dynamically inherited from the frame's `display'.
415
24cdde13
GM
416*** The `window-system' variable has been made frame-local. The new
417`initial-window-system' variable contains the `window-system' value
418for the first frame.
419
420*** You can specify a terminal device (`tty' parameter) and a terminal
421type (`tty-type' parameter) to `make-terminal-frame'.
422
423*** The new function `make-frame-on-tty' allows you to create a new
424frame on another tty device interactively.
425
426*** The function `make-frame-on-display' now works during a tty
427session, and `make-frame-on-tty' works during a graphical session.
428
da406961 429*** New functions: `delete-tty', `suspend-tty', `resume-tty'.
24cdde13 430
419f8f49
SM
431*** A new data type for terminals with functions: `get-device-terminal',
432`terminal-parameters', `terminal-parameter', `set-terminal-parameter'.
24cdde13 433
1816bda7 434*** New hooks: `suspend-tty-functions' and `resume-tty-functions'
92cd6a7c 435are called after a tty frame has been suspended or resumed,
de3054d5 436respectively. The functions are called with the terminal id of the frame
92cd6a7c
DN
437being suspended/resumed as a parameter.
438
01ff458e 439*** New function: `environment'.
da406961 440
4f4a84ec 441*** New variable: `local-function-key-map'.
01ff458e
SM
442This in addition to the global function-key-map variable that
443already existed. The global variable is not used directly any more;
444instead, the local-function-key-map is initialized so as to inherit from
445function-key-map.
da406961 446
82866ad5
SM
447*** `initial-environment' holds the environment inherited from Emacs's parent.
448
24cdde13
GM
449*** The `keyboard-translate-table' variable and the terminal and
450keyboard coding systems have been made terminal-local.
451
1aa423e9
SM
452*** In addition to the global function-key-map, Emacs has terminal-local
453local-function-key-map variables, and uses them instead of the
24cdde13
GM
454global keymaps to set up translations and function key sequences
455relevant to a specific terminal device.
456
457
90ab5c62
SM
458** You can now also pass the value of the `invisible' property to invisible-p
459to check whether it would cause the text to be invisible. Convenient when
460checking invisibility of text which has no buffer position
461(e.g. in before/after-strings).
9f44d41a 462
ea2e3ef4
RS
463** Non-breaking space now acts as whitespace.
464
41bd52f7 465+++
8d371994
RS
466** In `condition-case', a handler can specify "let the debugger run first".
467
468You do this by writing `debug' in the list of conditions to be handled,
469like this:
470
471 (condition-case nil
472 (foo bar)
473 ((debug error) nil))
474
0a963185
SM
475** The `require-match' argument to `completing-read' accepts a new value
476`confirm-only'.
477
c69b0314
SM
478+++
479** The regexp form \(?<num>:<regexp>\) specifies the group number explicitly.
480
9f44d41a
RS
481** New function `window-full-width-p' returns t if a window is as wide
482as its frame.
483
484** The new function `split-string-and-unquote' does (what?)
485
486** The new function `combine-and-quote-strings' does (what?)
487
488** The new function `image-refresh' refreshes all images associated
489with a given image specification.
490
abf13a8b
CY
491+++
492** New variable `user-emacs-directory'.
493Use this instead of "~/.emacs.d".
494
b2b387f9 495+++
0f3cd6b2 496** The new function `start-file-process' is similar to `start-process',
b2b387f9 497but obeys file handlers. The file handler is chosen based on
6dbe7eb4
MA
498`default-directory'. The functions `start-file-process-shell-command'
499and `process-file-shell-command' are also new; they call internally
0f3cd6b2 500`start-file-process' and `process-file', respectively.
b2b387f9 501
967b2682
GM
502** The new function `process-lines' executes an external program and
503returns its output as a list of lines.
504
64639e26 505+++
41bd52f7
MA
506** `file-remote-p' has new optional parameters IDENTIFICATION and CONNECTED.
507IDENTIFICATION specifies which part of the remote identifier has to be
508returned. With CONNECTED passed non-nil, it is checked whether a
509remote connection has been established already.
64639e26 510
45595a4f
RS
511** The two new functions `looking-at-p' and `string-match-p' can do
512the same matching as `looking-at' and `string-match' without changing
513the match data.
89835619
SM
514
515** The interactive-form of a function can be added post-facto via the
516`interactive-form' symbol property. Mostly useful to add complex interactive
517forms to subroutines.
9bae34bf 518\f
0bfd685e 519* New Packages for Lisp Programming in Emacs 23.1
efeb796b 520
9097e8af
RS
521** The package isearch-multi.el has been added. It implements a new mode
522`isearch-buffers-minor-mode' that allows isearch to search through
523multiple buffers. In this mode a new variable
524`isearch-buffers-next-buffer-function' defines the function to call
525to get the next buffer to search in the series of multiple buffers.
526
d53a60a6
TTN
527** The new package avl-tree.el deals with the AVL tree data structure.
528
05197f40 529\f
a933dad1 530----------------------------------------------------------------------
5b87ad55 531This file is part of GNU Emacs.
a933dad1 532
5b87ad55
GM
533GNU Emacs is free software; you can redistribute it and/or modify
534it under the terms of the GNU General Public License as published by
64be3a42 535the Free Software Foundation; either version 3, or (at your option)
5b87ad55
GM
536any later version.
537
538GNU Emacs is distributed in the hope that it will be useful,
539but WITHOUT ANY WARRANTY; without even the implied warranty of
540MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
541GNU General Public License for more details.
a933dad1 542
5b87ad55
GM
543You should have received a copy of the GNU General Public License
544along with GNU Emacs; see the file COPYING. If not, write to the
545Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
546Boston, MA 02110-1301, USA.
a933dad1 547
05197f40 548\f
a933dad1
DL
549Local variables:
550mode: outline
551paragraph-separate: "[ \f]*$"
552end:
ab5796a9 553
a533413c 554arch-tag: e759449d-88b3-4de4-9900-3a6c3dfa23e2