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