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