* doc/emacs/misc.texi (Shell): Document async-shell-command.
[bpt/emacs.git] / etc / NEWS
CommitLineData
29b7722a 1GNU Emacs NEWS -- history of user-visible changes.
5b87ad55 2
bb65542c 3Copyright (C) 2007, 2008, 2009 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 16
adce950d
CY
17
18Temporary note:
19 +++ indicates that the appropriate manual has already been updated.
20 --- means no change in the manuals is called for.
21When you add a new item, please add it without either +++ or ---
22so we will look at it and add it to the manual.
23
24\f
aa701ce8
CY
25* Installation Changes in Emacs 23.2
26
27** New configure options for Emacs developers
28These are not new features; only the configure flags are new.
26e533e2 29---
aa701ce8
CY
30*** --enable-profiling builds Emacs with profiling enabled.
31This might not work on all platforms.
26e533e2 32---
aa701ce8
CY
33*** --enable-checking[=OPTIONS] builds emacs with extra runtime checks.
34
45980501
GM
35---
36** `make install' now consistently ignores umask, creating a
37world-readable install.
38
26e533e2 39** Emacs compiles with Gconf support, if it is detected.
96639030
CY
40Use the configure option --without-gconf to disable this.
41
f9245b5d 42* Startup Changes in Emacs 23.2
26e533e2 43+++
96639030
CY
44** The command-line option -Q (--quick) also inhibits loading X resources.
45However, if Emacs is compiled with the Lucid or Motif toolkit, X
46resource settings for the graphical widgets are still applied.
47On Windows, the -Q option causes Emacs to ignore Registry settings,
48but environment variables set on the Registry are still honored.
26e533e2 49+++
f9245b5d
CY
50*** The new variable `inhibit-x-resources' shows whether X resources
51were loaded.
8686ac71 52
96639030
CY
53+++
54** New command-line option -mm (--maximized) maximizes the initial frame.
55
f9245b5d 56* Changes in Emacs 23.2
fcb68f70 57
26e533e2 58+++
96639030 59** The maximum size of buffers (and the largest fixnum) is doubled.
2de9f71c
SM
60On typical 32bit systems, buffers can now be up to 512MB.
61
26e533e2 62---
96639030
CY
63** The default value of `trash-directory' is now nil.
64This means that `move-file-to-trash' trashes files according to
d63a01ef
CY
65freedesktop.org specifications, the same method used by the Gnome,
66KDE, and XFCE desktops. (This change has no effect on Windows, which
67uses `system-move-file-to-trash' for trashing.)
68
e044e4fc 69** The pointer now becomes invisible when typing.
96639030 70Customize `make-pointer-invisible' to disable this feature.
e044e4fc 71
96639030 72** Font changes
637fa988 73
96639030
CY
74*** Emacs can use the system default monospaced font in Gnome.
75To enable this feature, set `font-use-system-font' to non-nil (it is
76nil by default). If the system default changes, Emacs changes also.
77This feature requires Gconf support, which is automatically included
78at compile-time if configure detects the gconf libraries (you can
79disable this with the configure option --without-gconf).
637fa988 80
96639030
CY
81*** On X11, Emacs reacts to Xft changes made by configuration tools,
82via the XSETTINGS mechanism. This includes antialias, hinting,
83hintstyle, RGBA, DPI and lcdfilter changes.
f4fcbe98 84
26e533e2 85+++
96639030
CY
86** Killing a buffer with a running process now asks for confirmation.
87To remove this query, remove `process-kill-buffer-query-function' from
88`kill-buffer-query-functions', or set the appropriate process flag
89with `set-process-query-on-exit-flag'.
100b6355 90
34481ea1 91** File-local variable changes
26e533e2 92+++
34481ea1
CY
93*** Specifying a minor mode as a local variables enables that mode,
94unconditionally. The previous behavior, toggling the mode, was
95neither reliable nor generally desirable.
96
97*** New commands for adding and removing file-local variables:
98`add-file-local-variable', `delete-file-local-variable',
99`add-file-local-variable-prop-line', and
100`delete-file-local-variable-prop-line'.
101
102*** New commands for adding and removing directory-local variables,
103and copying them to and from file-local variable lists:
104`add-dir-local-variable', `delete-dir-local-variable',
105`copy-dir-locals-to-file-locals',
82941b5e
JL
106`copy-dir-locals-to-file-locals-prop-line' and
107`copy-file-locals-to-dir-locals'.
108
96639030 109** Internationalization changes
26e533e2 110+++
96639030
CY
111*** Unibyte sessions are now considered obsolete.
112This refers to the EMACS_UNIBYTE environment variable as well as the
113--unibyte, --multibyte, --no-multibyte, and --no-unibyte command line
114arguments. Customizing enable-multibyte-characters and setting
115default-enable-multibyte-characters are also deprecated.
26e533e2 116---
96639030
CY
117*** New coding system `utf-8-hfs'.
118This is suitable for default-file-name-coding-system on Mac OS X; see
119international/ucs-normalize.el.
120
26e533e2 121---
96639030
CY
122** Function arguments in *Help* buffers are now shown in upper-case.
123Customize `help-downcase-arguments' to t to show them in lower-case.
3c736e33 124
05197f40 125\f
0badeef4
GM
126* Editing Changes in Emacs 23.2
127
96639030 128** Kill-ring and selection changes
f9245b5d
CY
129+++
130*** If `select-active-regions' is t, any active region automatically
131becomes the primary selection (for interaction with other window
132applications). If you enable this, you might want to bind
133`mouse-yank-primary' to Mouse-2.
26e533e2 134+++
96639030
CY
135*** When `save-interprogram-paste-before-kill' is non-nil, the kill
136commands save the interprogram-paste selection into the kill ring
137before doing anything else. This avoids losing the selection.
26e533e2 138+++
96639030
CY
139*** When `kill-do-not-save-duplicates' is non-nil, identical
140subsequent kills are not duplicated in the `kill-ring'.
f9245b5d 141
96639030 142** Completion changes
0badeef4 143
51ef56c4
SM
144*** The new command `completion-at-point' provides mode-sensitive completion.
145
146*** tab-always-indent set to `complete' lets TAB do completion as well.
26e533e2 147+++
96639030 148*** The new completion-style `initials' is available.
f9245b5d
CY
149For instance, this can complete M-x lch to list-command-history.
150
96639030
CY
151*** The new variable `completions-format' determines how completions
152are displayed in the *Completions* buffer. If you set it to
153`vertical', completions are sorted vertically in columns.
154
155+++
156** The default value of `blink-matching-paren-distance' is increased.
40e93a2c 157
26e533e2 158---
96639030
CY
159** M-n provides more default values in the minibuffer for commands
160that read file names. These include the file name at point (when ffap
161is loaded without ffap-bindings), the file name on the current line
162(in Dired buffers), and the directory names of adjacent Dired windows
163(for Dired commands that operate on several directories, such as copy,
164rename, or diff).
7d371eac 165
26e533e2 166+++
96639030
CY
167** M-r is bound to the new `move-to-window-line-top-bottom'.
168This moves point to the window center, top and bottom on successive
169invocations, in the same spirit as the C-l (recenter-top-bottom)
170command.
216349f8 171
26e533e2 172+++
96639030
CY
173** The new variable `recenter-positions' determines the default
174cycling order of C-l (`recenter-top-bottom').
0116abbd 175
26e533e2
CY
176+++
177** The abbrevs file is now a file named abbrev_defs in
178user-emacs-directory; but the old location, ~/.abbrev_defs, is used if
179that file exists.
0badeef4 180\f
009c963c
MA
181* Changes in Specialized Modes and Packages in Emacs 23.2
182
1e7d4475
SM
183** The bookmark menu has a narrowing search via bookmark-bmenu-search.
184
c7dcb0f1 185** LaTeX mode now provides completion (via completion-at-point)
1e7d4475 186
51ef56c4
SM
187** sym-comp.el is now declared obsolete, superceded by completion-at-point.
188
8f72f03c
SM
189** lucid.el and levents.el are now declared obsolete.
190
0667de21
SM
191** pcomplete provides a new command `pcomplete-std-completion' which
192is similar to `pcomplete' but using the standard completion UI code.
193
26e533e2
CY
194** Calc
195+++
196*** The Calc settings file is now a file named calc.el in
197user-emacs-directory; but the old location, ~/.calc.el, is used if
198that file exists.
2aa0e5bf 199
26e533e2
CY
200---
201*** Graphing commands (`g f' etc.) now work on MS-Windows, if you have
202the native Windows port of Gnuplot version 3.8 or later installed.
d10c031a 203
f9245b5d
CY
204** Calendar and diary
205
4cea5003 206+++
f9245b5d
CY
207*** Fancy diary display is now the default.
208If you prefer the simple display, customize `diary-display-function'.
209
6a495b76 210+++
f9245b5d
CY
211*** The diary's fancy display now enables view-mode.
212
213---
214*** The command `calendar-current-date' accepts an optional argument
215giving an offset from today.
216
217** Desktop
218---
219*** The default value for `desktop-buffers-not-to-save' is nil.
220This means Desktop will try restoring all buffers, when you restart
221your Emacs session. Also, `desktop-buffers-not-to-save' is only
222effective for buffers that have no associated file. If you want to
223exempt buffers that do correspond to files, customize the value of
224`desktop-files-not-to-save' instead.
225
2b3489a7
JL
226** Dired
227
228*** The new variable `dired-auto-revert-buffer' allows to revert
229dired buffers automatically on revisiting.
230
aefcadb6
JL
231** DocView
232
0a745733 233*** When `doc-view-continuous' is non-nil, scrolling a line
aefcadb6
JL
234on the page edge advances to the next/previous page.
235
49f073bd 236** GDB-UI
70e013b4 237
49f073bd
NR
238*** Toolbar functionality for reverse debugging. Display of STL collections as
239 watch expressions. These features require GDB 7.0 or later.
ee047ec4 240
a601d313 241** Grep
26e533e2
CY
242+++
243*** A new command `zrgrep' searches recursively in gzipped files.
a601d313 244
9f18817f
JL
245** Info
246
247*** The new command `Info-virtual-index' bound to "I" displays a menu of
248matched topics found in the index.
249
f38fd73d
JL
250*** The new command `info-finder' replaces finder.el with a virtual Info
251manual that generates an Info file which gives the same information
252through a menu structure.
253
cec84921
CY
254** Message mode is now the default mode for composing mail.
255
256The default for `mail-user-agent' is now message-user-agent, so the
257C-x m (`compose-mail') command uses Message mode instead of Mail mode.
258
259Message mode has been included in Emacs, as part of the Gnus package,
260for several years. It provides several features that are absent in
261Mail mode, such as MIME handling.
262
263*** If the user has not customized mail-user-agent, `compose-mail'
264checks for Mail mode customizations, and issues a warning if these
265customizations are found. This alerts users who may otherwise be
266unaware that their mail configuration has changed.
267
268To disable this check, set compose-mail-user-agent-warnings to nil.
269
93bff749
CY
270** nXML mode is now the default for editing XML files.
271
272** Shell
273
274*** ansi-color is now enabled by default.
275To disable it, set ansi-color-for-comint-mode to nil.
276
009c963c 277+++
93bff749 278** Tramp
009c963c 279
93bff749
CY
280*** New connection methods "rsyncc", "imap" and "imaps".
281On systems which support GVFS-Fuse, Tramp offers also the new
282connection methods "dav", "davs", "obex" and "synce".
8525a1d6 283
3c3bf6ce
DN
284** VC and related modes
285
b4e813ca
DN
286*** When using C-x v v or C-x v i on a unregistered file that is in a
287directory not controlled by any VCS, ask the user what VC backend to
288use to create a repository, create a new repository and register the
289file.
290
32ba3abc
DN
291*** FIXME: add info about the new VC functions: vc-root-diff and
292vc-root-print-log once they stabilize.
293
48b27575
DN
294*** The log functions (C-x v l and C-x v L) do not show the full log
295by default anymore. The number of entries shown can be chosen
296interactively with a prefix argument, by customizing
297vc-log-show-limit. The log buffer display buttons that can be used
298to change the number of entries shown.
cec84921 299RCS, SCCS, CVS do not support this feature.
48b27575 300
d1e4c403
DN
301*** vc-annotate supports annotations through file copies and renames,
302it displays the old names for the files and it can show logs/diffs for
303the corresponding lines. Currently only Git and Mercurial take
304advantage of this feature.
305
662c5698
DN
306*** The log command in vc-annotate can display a single log entry
307instead of redisplaying the full log. The RCS, CVS and SCCS VC
308backends do not support this.
309
3c3bf6ce
DN
310*** When a file is not found, VC will not try to check it out of RCS anymore.
311
8de724f3
DN
312*** Diff and log operations can be used from dired buffers.
313
e05b6a4e
DN
314*** vc-git changes
315
fcc70817
DN
316**** The short log format for git makes use of the graph display, so
317it's not supported on git versions earlier than 1.5.
318
e05b6a4e 319**** The new variable vc-git-add-signoff can be used to add a
291bc6bd
DN
320Signed-off-by line when committing.
321
6b4df8a6 322**** Support for operating with stashes has been added to vc-dir: the stash list is
7fa4876f 323displayed in the *vc-dir* header, stashes can be created, removed, applied and
6b4df8a6
DN
324their content displayed.
325
e05b6a4e
DN
326**** vc-dir displays the stash status
327
4dfb3b9c
DN
328*** vc-bzr supports operating with shelves: the shelve list is
329displayed in the *vc-dir* header, shelves can be created, removed and applied.
330
31764e15
SM
331*** log-edit-strip-single-file-name controls whether or not single filenames
332are stripped when copying text from the ChangeLog to the *VC-Log* buffer.
333
49b289c0
GM
334** Elint
335
336---
337*** Elint now uses compilation-mode.
338
339---
340*** Elint can now scan individual files and whole directories,
341and can be run in batch mode.
342
343---
344*** Elint does a more thorough initialization, and recognizes more built-in
345functions and variables. Customize `elint-scan-preloaded' if you want
346to sacrifice some accuracy for a faster startup.
347
348---
349*** Elint attempts some basic understanding of featurep and (f)boundp tests.
350
351---
352*** Customize `elint-ignored-warnings' to suppress some warnings.
353
9f18817f
JL
354** Miscellaneous
355
356*** The new command `async-shell-command' bound globally to `M-&' executes
357the command asynchronously without the need to manually add ampersand to
358the end of the command. Its output appears in the buffer `*Async Shell
359Command*'.
0badeef4 360
0d62bcea
JL
361*** Isearch searches in the comint/shell input history when the new variable
362`comint-history-isearch' is non-nil. New commands `comint-history-isearch-backward'
1f9689eb
JL
363and `comint-history-isearch-backward-regexp' (bound to M-r) start Isearch
364in the input history regardless of the value of `comint-history-isearch'.
0d62bcea 365
c585bf32
JL
366*** Interactively `multi-isearch-buffers' and `multi-isearch-buffers-regexp'
367read buffer names to search, one by one, ended with RET. With a prefix
368argument, they ask for a regexp, and search in buffers whose names match
369the specified regexp. Interactively `multi-isearch-files' and
370`multi-isearch-files-regexp' read file names to search, one by one,
371ended with RET. With a prefix argument, they ask for a wildcard, and
372search in file buffers whose file names match the specified wildcard.
373
f9245b5d 374+++
59ffcfc4
MA
375*** Autorevert Tail mode now works also for remote files.
376
9bbd0cac
MA
377+++
378*** The new built-in commands `su' and `sudo' support Tramp.
59ffcfc4
MA
379That means, they change `default-directory' to the new users value,
380and let commands run under that user permissions. It works even when
9bbd0cac
MA
381`default-directory' is already remote. Calling the external commands
382is possible by `*su' or `*sudo', repectively.
f9245b5d 383
26e533e2 384---
a91e1f6b
DN
385*** When running in a new enough xterm (newer than version 242), emacs
386asks xterm what the background color is and it sets up faces
387accordingly for a dark background if needed (the current default is to
388consider the background light).
389
af077012
SY
390\f
391* New Modes and Packages in Emacs 23.2
392
cec84921
CY
393** CEDET (the Collection of Emacs Development Tools) is now in Emacs.
394This is a collection of packages to aid with using Emacs as an IDE
395(integrated development environment):
396
397*** The Semantic package allows the use of parsers to intelligently
398edit and navigate source code. Parsers for C/C++, Java, Javascript,
399and several other languages are included by default, and Semantic can
400also interface with external tools such as GNU Global and GNU Idutils.
401
402To enable Semantic, use the global minor mode `semantic-mode'.
403See the Semantic manual for details.
404
405*** EDE (Emacs Development Environment) is a package for managing code
406projects, including features such as automatic Makefile generation.
407
408To enable EDE, use the minor mode `global-ede-mode'.
409See the EDE manual for details.
410
411*** SRecode is a library for recoding Semantic tags back into source
412code. It is currently used by some parts of Semantic and EDE; in the
413future, it may be used for code generation features.
414
415*** The EIEIO library implements a subset of the Common Lisp Object
416System (CLOS). It is used by the other CEDET packages.
417
e1ada222 418** mpc.el is a front end for the Music Player Daemon. Run it with M-x mpc.
96639030 419
0de9f8b7
SM
420** htmlfontify.el turns a fontified Emacs buffer into an HTML page.
421
304fe7fa 422** js.el is a new major mode for JavaScript files.
0822135e 423
3d994264
TZ
424** imap-hash.el is a new library to address IMAP mailboxes as hashtables.
425
0822135e 426\f
b3429475
GM
427* Incompatible Lisp Changes in Emacs 23.2
428
429** Several obsolete functions removed.
430The functions have been obsolete since Emacs 19, and are unlikely to
431be in use:
432
433 time-stamp-month-dd-yyyy, time-stamp-dd/mm/yyyy, time-stamp-mon-dd-yyyy
434 time-stamp-dd-mon-yy, time-stamp-yy/mm/dd, time-stamp-yyyy/mm/dd,
435 time-stamp-yyyy-mm-dd, time-stamp-yymmdd, time-stamp-hh:mm:ss,
436 time-stamp-hhmm, baud-rate
437
438---
439** Support for generating Emacs 18 compatible bytecode (by setting
440the variable `byte-compile-compatibility') has been removed.
441
9b9debd1
JL
442** In image-mode.el `image-mode-maybe' is obsolete. Instead, you can
443either use `image-mode' that displays an image file as the actual image
444inititally, or `image-mode-as-text' when you want to display an image file
445as text inititally. `image-mode-as-text' is a combination of a non-image
446mode from `auto-mode-alist' (or Fundamental mode) and `image-minor-mode'.
447`image-minor-mode' provides `C-c C-c' key binding to toggle image display.
448`image-toggle-display-text' removes image properties.
449`image-toggle-display-image' adds image properties.
450`image-toggle-display' toggles between `image-mode-as-text' and
451`image-mode'.
452
b3429475 453\f
0822135e
CY
454* Lisp changes in Emacs 23.2
455
84b31826
SM
456** make-network-socket can now also create `seqpacket' Unix sockets.
457
a185548b
SM
458** New function `completion-in-region' to use the standard completion
459facilities on a particular region of text.
460
26e533e2 461+++
4fcc3d32
SM
462** The 4th arg to all-completions (aka hide-spaces) is declared obsolete.
463
26e533e2 464---
528c56e2
SM
465** read-file-name-predicate is obsolete. It was used to pass the predicate
466to read-file-name-internal because read-file-name-internal abused its `pred'
467argument to pass the current directory, but this hack is not needed
468any more.
469
96639030
CY
470** Frame parameter changes
471
26e533e2 472+++
96639030
CY
473*** You can give the `fullscreen' frame parameter the value `maximized'.
474This maximizes the frame.
475
476+++
477*** The new frame parameter `sticky' makes Emacs frames sticky in
478virtual desktops.
479
26e533e2 480---
d5e63715
SM
481** completion-base-size is obsoleted by completion-base-position.
482This change causes a few backward incompatibilities, mostly with
483choose-completion-string-functions where the `mini-p' argument has
484been replaced by a `base-position' argument, and where the `base-size'
485argument is now always nil.
486
9d28c33e
SM
487** called-interactively-p now takes one argument and replaces interactive-p
488which is now marked obsolete.
ced10a4c
SM
489** New function set-advertised-calling-convention makes it possible
490to obsolete arguments as well as make some arguments mandatory.
0ee98606 491** eval-next-after-load is obsolete.
838ff458
SM
492** New hook `after-load-functions' run after loading an Elisp file.
493
8cb95edf
SM
494** You can control which binding is preferentially shown in menus and
495docstrings by adding a `:advertised-binding' property to the corresponding
496command's symbol. That property can hold a single binding or a list
497of bindings.
498
83a5aac5
SM
499** New macro with-silent-modifications to tweak text properties without
500affecting the buffer's modification state.
4e3b4528
SM
501** All the default-FOO variables that hold the default value of the FOO
502variable, are now declared obsolete.
503
03a74b84
SM
504** read-key is a function halfway between read-event and read-key-sequence.
505It reads a single key, but obeys input and escape sequence decoding.
7284d47a 506
a126db16
GM
507** start-process-shell-command and start-file-process-shell-command
508now only take a single `command' argument.
7284d47a
MA
509
510** The variable `process-file-side-effects' shall be bound to nil, if
511a `process-file' call does not change a remote file. By this, file
512name handlers like Tramp can apply optimizations.
513
26e533e2 514+++
0822135e
CY
515** Hash tables have a new printed representation that is readable.
516The feature `hashtable-print-readable' identifies this new
517functionality.
3c736e33 518
26e533e2 519** New functions performing Unicode normalization are added:
3c736e33
KH
520ucs-normalize-NFD-region, ucs-normalize-NFD-string,
521ucs-normalize-NFC-region, ucs-normalize-NFC-string,
522ucs-normalize-NFKD-region, ucs-normalize-NFKD-string,
523ucs-normalize-NFKC-region, ucs-normalize-NFKC-string,
524ucs-normalize-HFS-NFD-region, ucs-normalize-HFS-NFD-string,
525ucs-normalize-HFS-NFC-region, ucs-normalize-HFS-NFC-string.
94862c1b
SM
526
527** completion-annotate-function specifies how to compute annotations
528for completions displayed in *Completions*.
197b67b1 529
d7fbf3f0 530+++
197b67b1
GM
531** Face aliases can now be marked as obsolete, using the macro
532`define-obsolete-face-alias'.
14ad89e1
GM
533
534---
535** Changing the file-names generated by byte-compilation by redefining
536the function `byte-compile-dest-file' before loading bytecomp.el is obsolete.
537Instead, customize byte-compile-dest-file-function.
f9245b5d 538
77c64ca0 539---
4cea5003 540** `byte-compile-warnings' has new members, `constants' and `suspicious'.
77c64ca0 541
d3080264
MA
542** `delete-directory' has an optional parameter RECURSIVE.
543
9a03b2e1
MA
544** New function `copy-directory', which copies a directory recursively.
545
9976fe82 546+++
72030c76
GM
547** New function `window-full-height-p', analogous to the full-width version.
548
d3080264 549\f
f9245b5d
CY
550* Changes in Emacs 23.2 on non-free operating systems
551
552---
553** On MS-Windows, `display-time' now displays the system load average
554as well as the time, as it does on GNU and Unix.
9f18817f 555
009c963c 556\f
0bfd685e 557* Installation Changes in Emacs 23.1
c58dccad 558
3f7194ed 559** The default X toolkit is now Gtk+, rather than Lucid.
09e18d03
CY
560The configure option `--with-gtk' has been removed. Gtk is now the
561default toolkit, but you can use --with-x-toolkit=gtk if necessary.
3f7194ed 562
09e18d03
CY
563** New font code.
564Fonts are handled by new code capable of dealing with multiple font
de9efca0 565backends. This uses the freetype and fontconfig libraries.
16e82271 566
09e18d03
CY
567*** Emacs now accepts font names supplied in the fontconfig format
568(e.g. "monospace-12:bold") and GTK format (e.g. "Monospace Bold 12").
1abe3a1e 569
09e18d03
CY
570*** Added support for local fonts (fonts installed on the machine
571where Emacs is running).
572
573*** Added support for the Xft library for antialiasing.
574
575*** Added support for the otf library for complex text layout by
576OpenType fonts.
577
578*** Added support for the m17n library for text shaping.
15f02f65 579
09e18d03 580** Changes to image support
16e82271 581
09e18d03 582*** configure now checks for libgif before libungif when searching for
9d3cc9b2 583a GIF library.
16e82271 584
09e18d03
CY
585*** Emacs now supports the SVG image format through librsvg2.
586
fab17942
JR
587*** Emacs now supports multi-page TIFF images.
588
006a2cde 589** New NeXTSTEP-based port
3dcdb6ea 590This provides support for GNUstep (via the GNUstep libraries) and Mac
1e9b0fb2 591OS X (via the Cocoa libraries).
043023ca 592
2e538385 593Specify --with-ns to configure for this. By default, a self-contained
043023ca
CY
594app will be built (containing all lisp). To install/share lisp with
595other emacsen (e.g. X11 build) use --disable-ns-self-contained. See
596nextstep/README and nextstep/INSTALL in the Emacs source directory.
006a2cde
CY
597
598** Mac OS X is no longer supported via Carbon.
599Use the NeXTSTEP port, described above.
36e625ec 600
09e18d03
CY
601** The new configuration option "--with-dbus" enables D-Bus language
602bindings for Emacs.
07e5c0b0 603
bb9f7948
EZ
604** Support for many obsolete platforms has been removed.
605See the list at the end of etc/MACHINES for details.
16e82271 606
09e18d03 607*** Support for systems without alloca has been removed.
16e82271 608
09e18d03 609*** Support for Sun windows has been removed.
16e82271 610
2e0ef05b 611*** The `emacstool' utility has been removed.
09e18d03 612
006a2cde 613** The following platforms will be removed in a future Emacs version:
9bc072cc
CY
614If you are still using Emacs on one of these platforms, please email
615emacs-devel@gnu.org to inform the Emacs developers.
006a2cde 616
9bc072cc 617*** Old GNU/Linux systems based on libc version 5.
006a2cde 618
9bc072cc
CY
619*** Old FreeBSD, NetBSD, and OpenBSD systems based on the COFF
620 executable format.
006a2cde
CY
621
622*** Solaris versions 2.6 and below.
623
32847230
CY
624*** Solaris on IBM RS6000 machines.
625
626*** UNIX System V (the original SysV, not later platforms based on it).
627
9bc072cc
CY
628*** Unixware on non-x86 machines.
629
32847230
CY
630*** Platforms not supporting shared libraries (i.e., requiring the
631NO_SHARED_LIBS compilation flag).
006a2cde 632
a46ee55c
GM
633** The configure options `--with-gcc', `--without-gcc' have been removed.
634Configure will use gcc by default. Set the CC environment variable if
635you need control over which C compiler is used.
636
09e18d03
CY
637** The refcards are now shipped as PDF files.
638
3b75ca8b
GM
639** The manuals are now licensed under the GNU Free Documentation License v1.3,
640or any later version.
641
09e18d03
CY
642** Emacs 23 comes with a new set of default icons.
643Various resolutions are available as etc/images/icons/hicolor/*/apps/emacs.png.
644The Emacs 22 icon is available as `emacs22.png' in the same location.
4e5cdb4f 645\f
6dadd99f
NR
646* Changes in Emacs 23.1
647
09e18d03 648** Improved X Window System support
16e82271 649
09e18d03
CY
650*** Emacs now supports using both X displays and ttys in one session.
651With an Emacs server active (M-x server-start), `emacsclient -t'
652creates a tty frame connected to the running emacs server. You can
653use any number of different ttys. `emacsclient -c' creates a new X11
654frame on the current $DISPLAY (or a tty frame if $DISPLAY is not set).
e390f3a3
JD
655There may be problems if a display exits unexpectedly and Emacs is compiled
656with Gtk+, see etc/PROBLEMS.
780d7bb9
RS
657
658You can test for the presence of this feature in your Lisp code by
659testing for the `multi-tty' feature.
16e82271
CY
660
661*** Emacs starts in the background, as a daemon, when given the
eab2ee89
DN
662--daemon command line argument. It disconnects from the terminal and
663starts the server. Clients can connect and create graphical or
664terminal frames using emacsclient.
16e82271 665
c569485c 666**** emacsclient starts emacs in daemon mode and connects to it when
82d0a250
DN
667--alternate-editor="" is used (or when the evironment variable
668ALTERNATE_EDITOR is set to "") and emacsclient cannot connect to an
c569485c
DN
669emacs server.
670
09e18d03 671*** The new command close-display-connection closes a connection to a
717c97e5 672remote display. There are some bugs for Gtk+. See etc/PROBLEMS.
d82c3d44 673
09e18d03
CY
674*** Emacs now supports the XEmbed specification.
675You can embed Emacs in another application on X11. The new command line
676option --parent-id is used to pass the parent window id to Emacs. See
7b476dbe
JD
677http://standards.freedesktop.org/xembed-spec/xembed-spec-latest.html
678for details about XEmbed.
16e82271 679
09e18d03
CY
680*** Emacs can now set the frame opacity.
681The opacity of a frame can be controlled by setting the `alpha' frame
682parameter. This only takes effect on a compositing window manager for
920ab46c
SZ
683the X Window System, such as Compiz, Beryl and Compiz Fusion, on Mac
684OS X, or on Windows 2000 and later versions of Windows.
55f9bad5
GM
685
686The alpha parameter should be an integer between 0 (transparent) and
09e18d03
CY
687100 (opaque), or a float number between 0.0 and 1.0. It can also be a
688cons cell (ACTIVE . INACTIVE), where ACTIVE is the opacity of an
540f3092 689active frame and INACTIVE is the opacity of non-active frames.
55f9bad5 690
09e18d03
CY
691The variable `frame-alpha-lower-limit' defines a lower bound for the
692opacity; the default is 20.
55f9bad5 693
09e18d03 694** Internationalization changes
16e82271 695
09e18d03
CY
696*** The Emacs character set is now a superset of Unicode.
697(It has about four times the code space, which should be plenty).
0a963185 698
09e18d03 699The internal encoding used for buffers and strings is now
16e82271
CY
700Unicode-based and called `utf-8-emacs' (`emacs-internal' is an alias
701for this). This encoding is backward-compatible with Unicode's UTF-8
702encoding. The internal encoding previously used by Emacs,
703`emacs-mule', is still available for reading and writing files.
6dadd99f 704
09e18d03
CY
705During byte-compilation, Emacs 23 uses `utf-8-emacs' to write files.
706As a result, byte-compiled files containing non-ASCII characters can't
707be read by earlier versions of Emacs. Files compiled by Emacs 20, 21,
16e82271
CY
708or 22 are loaded correctly as `emacs-mule' (whether or not they
709contain multibyte characters). This takes somewhat more time, so it
710may be worth recompiling existing .elc files which don't need to be
711shared with older Emacsen.
3ae459e5 712
09e18d03 713*** There are new coding systems/aliases; see M-x list-coding-systems.
c2e8590b 714
09e18d03
CY
715*** There is a new charset implementation with many new charsets.
716See M-x list-character-sets. New charsets can be defined conveniently
717as tables of unicodes.
1abe3a1e 718
09e18d03
CY
719*** There are new language environments for Chinese-GBK,
720Chinese-GB18030, Khmer, Bengali, Punjabi, Gujarati, Oriya, Telugu,
721Sinhala, and TaiViet.
16e82271 722
09e18d03
CY
723*** The minor modes unify-8859-on-encoding-mode and
724unify-8859-on-decoding-mode are obsolete.
16e82271 725
e94d0645
JL
726*** `ucs-insert' is bound to `C-x 8 RET' and in addition to hex numbers
727accepts numbers in hash notation (e.g. #o21430 for octal, or #10r8984 for
728decimal). It also accepts Unicode character names with completion.
16e82271 729
6d496c76
TZ
730*** The `cyrillic-translit' input method supports many new characters.
731Common typographical characters available from Unicode were added to
732`cyrillic-translit': punctuation marks, accented characters, fractions,
733and others.
734
09e18d03 735** Emacs now supports serial port access on GNU/Linux, Unix, and
81efacf9
CY
736Windows. The new command `serial-term' starts an interactive terminal
737on a serial port. The serial port can be configured at runtime with
738the mode-line mouse menu.
6c5d503f 739
09e18d03 740** Menu Bar changes
16e82271 741
09e18d03
CY
742*** In the Options menu, the "Set Default Font" item applies the
743selected font to the `default' face on all frames, not just the
744current frame. Furthermore, if Emacs is compiled with both GTK and
745Fontconfig support, the "Set Default Font" item uses the GTK font
746selection dialog instead of an Emacs pop-up menu.
16e82271 747
09e18d03
CY
748*** The font setting chosen by "Set Default Font" is saved if the
749"Save Options" item is used.
1b21ee06 750
b350bdf2
CY
751*** The Tools menu contains a new Encryption/Decryption submenu.
752This contains commands provided by EasyPG, the newly-included
753interface to GnuPG (see New Modes and Packages).
16e82271 754
81efacf9
CY
755*** In the Options menu, the "Truncate Long Lines in the Buffer" entry
756has been replaced with a submenu offering three different ways to
757handle long lines: truncation, continuation at the window edge, and
697f6b43 758the new word wrapping behavior (see Editing Changes, below).
16e82271 759
c1337511
DN
760*** Improvements to menus for major and minor modes
761More major and minor modes now have a mode specific menu, and existing
762mode menus have been improved to include more functionality.
763
09e18d03 764** Mode-line changes
16e82271 765
09e18d03
CY
766*** The mode-line displays a `@', instead of `-', if the
767default-directory for the current buffer is on a remote machine.
16e82271 768
09e18d03
CY
769*** The mode-line displays a mode menu when mouse-1 is clicked on a
770minor mode, in the same way as it already did for major modes.
16e82271 771
09e18d03
CY
772*** The `mode-line-emphasis' face is used to highlight certain
773mode-line information (e.g. waiting for a VC command to finish).
16e82271 774
c1337511 775*** The mode-line tooltips have been improved to provide more details.
16e82271 776
c1337511
DN
777*** The VC, line/colum number and minor mode indicators on the mode
778line are now interactive: mouse-1 can be used on them to pop up a menu.
779
b798e26a
GM
780** File deletion can make use of the Recycle Bin or system Trash folder.
781Set `delete-by-moving-to-trash' non-nil to use this. Deleted files
0956be4f 782and directories will then be sent to the Recycle Bin on Windows, and
b798e26a
GM
783to `trash-directory' on other systems.
784
09e18d03 785** Directory-local variables can now be defined.
fc0318c6
JL
786By default, Emacs looks in .dir-locals.el for directory-local
787variables. For more information, see `dir-locals-set-directory-class'
788and `dir-locals-set-class-variables'.
307f3501 789
b798e26a
GM
790** Emacs can now use `auth-source' for authentication.
791`smtpmail' and `url' (Tramp and Gnus also) use `auth-source' to obtain
792login names and passwords. The match, if found, is reported
793in *Messages* with the password blanked out.
794
795** `where-is-preferred-modifier' can specify your favorite modifier.
796
6dadd99f 797\f
0bfd685e 798* Startup Changes in Emacs 23.1
21f7b9d8 799
3063e326
JL
800** The option `inhibit-startup-screen' (with aliases to old names
801`inhibit-splash-screen' and `inhibit-startup-message') doesn't inhibit
802display of the initial message in the *scratch* buffer. If you don't
803want to display the initial message in the *scratch* buffer at startup,
804you can set the option `initial-scratch-message' to nil.
805
56e1896b
JL
806** New user option `initial-buffer-choice' specifies what to display
807after starting Emacs: startup screen, *scratch* buffer, visiting a
808file or directory.
809
aa5310e4
DK
810** New alias `argv' for `command-line-args-left'
811This is a convenience alias, so that one can write `(pop argv)'
812inside of --eval command line arguments in order to access
813following arguments.
f8fd7ed3
GM
814
815** The abbrev file is no longer read at startup in batch mode.
f36acfd9
EZ
816
817** Emacs now supports invocation by an X session manager.
818It can save a session and restore it later. See the documentation of
819the functions `emacs-session-save' and `emacs-session-restore'.
820(Actually, this feature was introduced with Emacs 22, but it was not
821documented.)
c44da964 822\f
0bfd685e 823* Incompatible Editing Changes in Emacs 23.1
b58cb59f 824
d1949cd5
JL
825** In Dired, `dired-flag-garbage-files' is rebound from `&' to `%&'
826on the regexp command prefix map.
827
117907d4
JL
828** In Dired-x, all command guesses for ! are now added to the default
829list accessible by M-n instead of pushing all guesses temporarily into
830the history list.
831
e94d0645
JL
832** In Isearch mode, a special case of typing `C-w' at the beginning of
833the minibuffer that toggles word search (i.e. using key sequences
834`C-s RET C-w' or `C-s M-e C-w') is obsolete. You can use the global key
835`M-s w' to start word search, or type `M-s w' in Isearch mode to
fd4c2a39
JL
836toggle word search. To start nonincremental word search you can now use
837`M-s w RET' and `M-s w C-r RET' instead of `C-s RET C-w' and `C-r RET C-w'.
e94d0645 838
45ad1cc5
JL
839** In Info, `Info-search' is unbound from `M-s' to allow using `M-s w'
840for word search as well as other search commands from the global prefix
841key `M-s'. `Info-search' is still bound to `s', and also incremental
842search commands `C-s', `C-M-s', `C-r', `C-M-r' are available for searching
843through multiple Info nodes, together with their nonincremental versions
844`C-s RET', `C-r RET', `C-M-s RET', `C-M-r RET', `M-s w RET'.
845
16e82271
CY
846** In Text mode, `center-line' and `center-paragraph' are rebound from
847`M-s' and `M-S' to global keys `M-o M-s' and `M-o M-S' on the global
848prefix map `M-o', which is intended for such formatting commands.
4e14951f 849
e405fa5f 850** The following input methods were removed in Emacs 22.2, but this was
9a930d75 851not advertised: danish-alt-postfix, esperanto-alt-postfix,
e405fa5f
RS
852finnish-alt-postfix, german-alt-postfix, icelandic-alt-postfix,
853norwegian-alt-postfix, scandinavian-alt-postfix, spanish-alt-postfix,
854and swedish-alt-postfix. Use the versions without "alt-", which are
855identical.
0b0914ae 856
406c0f12 857\f
0bfd685e 858* Editing Changes in Emacs 23.1
406c0f12 859
0c8b58e9
CY
860** The C-n and C-p line-motion commands now move by screen lines,
861taking continued lines and variable-width characters into account.
862Setting `line-move-visual' to nil reverts this to the previous
16e82271
CY
863behavior (i.e., motion by logical lines based on buffer contents
864alone).
0c8b58e9 865
09e18d03 866** C-x C-c now invokes `save-buffers-kill-terminal', and C-z now
16e82271 867invokes `suspend-frame'. These changes are for compatibility with the
09e18d03 868new multi-tty support (see `Improved X Window System support' above).
3ae459e5 869
09e18d03 870** Mark changes
16e82271 871
3ae459e5 872*** Transient Mark mode is now on by default.
16e82271 873
3ae459e5 874*** mark-even-if-inactive now defaults to t
16e82271 875
b350bdf2
CY
876*** When Transient Mark mode is on, C-SPC C-SPC pushes a mark without
877activating it.
16e82271 878
3ae459e5
CY
879*** When Transient Mark mode is on, M-q now fills the region if the
880region is active. Otherwise, it fills the current paragraph.
16e82271 881
3ae459e5
CY
882*** When Transient Mark mode is on, M-$ now checks spelling of the
883region if the region is active. Otherwise, it checks spelling of the
dc868f13 884word at point.
16e82271 885
3ae459e5
CY
886*** When Transient Mark mode is on, TAB now indents the region if the
887region is active.
16e82271
CY
888
889*** The variable `use-empty-active-region' controls whether an empty
890active region in Transient Mark mode should make commands operate on
891that empty region.
3ae459e5
CY
892
893** Temporarily active regions
16e82271 894
3ae459e5
CY
895*** The new variable shift-select-mode, non-nil by default, controls
896shift-selection. When Shift Select mode is on, shift-translated
897motion keys (e.g. S-left and S-down) activate and extend a temporary
898region, similar to mouse-selection.
16e82271 899
3ae459e5
CY
900*** Temporarily active regions, created using shift-selection or
901mouse-selection, are not necessarily deactivated in the next command.
902They are only deactivated after point motion commands that are not
903shift-translated, or after commands that would ordinarily deactivate
904the mark in Transient Mark mode (e.g., any command that modifies the
905buffer).
906
3307af6c 907** Minibuffer and completion changes
16e82271 908
206faa92
CY
909*** Emacs may ask for confirmation before opening a non-existent file
910or buffer. By default, Emacs requests confirmation if you type RET
911immediately after TAB, and the resulting input is not an existing file
912or buffer; this usually happens when the minibuffer input did not
913complete far enough and you entered RET by mistake. In that case,
914Emacs puts the message "[Confirm]" in the minibuffer; type RET again
915to create the file or buffer.
916
917The new variable confirm-nonexistent-file-or-buffer determines whether
918Emacs asks for confirmation. The default value is `after-completion'.
919If you change it to t, Emacs always asks for confirmation; if you
920change it to nil, Emacs never asks for confirmation.
16e82271 921
aea75a87
CY
922*** The rules for performing completion have been changed.
923When generating completion alternatives, Emacs now takes the
924minibuffer text after point, if any, into account: this text is
925treated as a substring of the remaining part of the completion
926alternative (i.e., the part not matched by the minibuffer text before
927point). If no completion alternatives are found this way, Emacs
928attempts to perform partial-completion. If still no completion
929alternatives are found, we fall back on the Emacs 22 rules for
930performing completion.
931
932The new variable `completion-styles' can be customized to choose your
933favorite completion style.
16e82271 934
d47a29c1
JL
935*** When M-n in the minibuffer reaches the end of the list of defaults,
936it adds the completion list to the end, so next M-n continues putting
937completion items to the minibuffer. The same principle applies to
938incremental search commands as well: C-s or C-M-s starts searching
939the default values and after the end of defaults they continue
940searching minibuffer completion items.
16e82271 941
09e18d03 942*** Minibuffer input of shell commands now comes with completion.
16e82271 943
09e18d03
CY
944*** In the `C-x d' (Dired) prompt, typing M-n gives the visited file
945name of the current buffer.
dc2f6c05 946
09e18d03
CY
947*** In the M-! (shell-command) prompt, M-n provides some default commands.
948These are guessed using the file extension of the current file, based
949on the file-handlers specified in the operating system's `mailcap'
950file. The ! command in Dired (dired-do-shell-command) works
951similarly, using the file displayed on the current line.
117907d4
JL
952
953*** A list of regexp default values is available via M-n for `occur',
954`keep-lines', `flush-lines' and `how-many'. This list includes the active
4f75e082
JL
955region in transient-mark-mode, the word under the cursor, the last Isearch
956regexp, the last Isearch string and the last replacement regexp.
16e82271 957
3353f870
CY
958*** When enable-recursive-minibuffers is non-nil, operations which use
959switch-to-buffer (such as C-x b and C-x C-f) do not fail any more when
960used in a minibuffer or a dedicated window. Instead, they fallback on
961using pop-to-buffer, which will use some other window. This change
962has no effect when enable-recursive-minibuffers is nil (the default).
16e82271 963
4f75e082
JL
964*** Isearch started in the minibuffer searches in the minibuffer history.
965Reverse Isearch commands (C-r, C-M-r) search in previous minibuffer
966history elements, and forward Isearch commands (C-s, C-M-s) search in
297b8ccd
JL
967next history elements. When the reverse search reaches the first history
968element, it wraps to the last history element, and the forward search
969wraps to the first history element. When the search is terminated, the
970history element containing the search string becomes the current.
16e82271 971
6c897494
CY
972*** The variable read-file-name-completion-ignore-case overrides
973completion-ignore-case for file name completion.
16e82271 974
6c897494
CY
975*** The variable read-buffer-completion-ignore-case overrides
976completion-ignore-case for buffer name completion.
16e82271 977
3307af6c
CY
978*** The new command `minibuffer-force-complete' chooses one of the
979possible completions, rather than stopping at the common prefix.
16e82271 980
3307af6c
CY
981*** If `completion-auto-help' is `lazy', Emacs shows the completions
982buffer only on the second attempt to complete. This was already
983supported in `partial-completion-mode'.
6c897494 984
505d8756 985** Face changes
16e82271 986
b350bdf2
CY
987*** S-down-mouse-1 now pops up a menu for changing the font and text
988size of the default face in the current buffer. The face is changed
133c4dc5 989via face remapping (see Lisp changes, below).
16e82271 990
5f9e21a9
CY
991*** New commands to change the default face size in the current buffer.
992To increase it, type `C-x C-+' or `C-x C-='. To decrease it, type
993`C-x C--'. To restore the default (global) face size, type `C-x C-0'.
d59f7c45
CY
994These work via Text Scale mode, a new minor mode.
995
996The final key in the above commands may be repeated without the
997leading `C-x', e.g. `C-x C-= C-= C-=' increases the face height by
998three steps. Each step scales the height of the default face by the
999value of the variable `text-scale-mode-step'.
1000
60959d23
CY
1001*** The commands buffer-face-mode and buffer-face-set can be used to
1002remap the default face in the current buffer. See "Buffer Face mode",
1003under New Modes and Packages.
f20186fd 1004
09e18d03 1005** Primary selection changes
16e82271 1006
b350bdf2
CY
1007*** You can disable kill ring commands from accessing the primary
1008selection by setting `x-select-enable-primary' to nil.
2e282009 1009
697f6b43
CY
1010** Continuation lines can now be wrapped at word boundaries
1011(word-wrapping). This is controlled by the new per-buffer variable
1012`word-wrap'. Word wrapping does not take place if continuation lines
1013are not shown, e.g. if truncate-lines is non-nil. The most convenient
1014way to enable word-wrapping is using the new minor mode Visual Line
1015mode; in addition to setting `word-wrap' to t, this rebinds some
1016editing commands to work on screen lines rather than text lines. See
1017New Modes and Packages, below.
85b1de32 1018
463c6766 1019** Window management changes
16e82271 1020
463c6766
CY
1021*** truncate-partial-width-windows now accepts integer values, which
1022specify a minimum window width for partial-width windows, below which
7d09b7a6 1023lines are truncated. The default has been changed to 50.
463c6766
CY
1024
1025*** The new command balance-windows-area balances windows both
1026vertically and horizontally.
16e82271 1027
8f5cee6a
MR
1028*** pop-to-buffer now always sets input focus when the popped-to window
1029is on a different frame.
1030
09e18d03 1031** Miscellaneous changes:
16e82271 1032
09e18d03
CY
1033*** C-l is bound to the new command recenter-top-bottom, rather than recenter.
1034This moves the current line to window center, top and bottom on
cdc0338e 1035successive invocations.
16e82271 1036
09e18d03 1037*** scroll-preserve-screen-position also preserves the column position.
16e82271 1038
09e18d03
CY
1039*** If `yank-pop-change-selection' is t, rotating the kill ring also
1040updates the selection or clipboard to the current yank, just as M-w
1041would do so with the text it copies to the kill ring.
16e82271 1042
09e18d03
CY
1043*** C-M-% now shows replacement as it would look in the buffer, with
1044`\N' and `\&' substituted according to the match. Old behavior can be
1045restored by customizing `query-replace-show-replacement'.
1046
1047*** The command shell prompts for the default directory, when it is
1048called with a prefix and the default directory is a remote file name.
1049This is because some file name handlers (like ange-ftp) are not able to
1050run processes remotely.
16e82271 1051
09e18d03
CY
1052*** The new command kill-matching-buffers kills buffers whose name
1053matches a regexp.
16e82271 1054
ae98e41f
CY
1055*** The value of comment-style now defaults to `indent'.
1056Thefore, comment-start markers are inserted at the current indentation
1057of the region to comment, rather than the leftmost column.
16e82271 1058
b350bdf2
CY
1059*** The new commands `pp-macroexpand-expression' and
1060`pp-macroexpand-last-sexp' pretty-print macro expansions.
16e82271 1061
018a960d
EZ
1062*** The new command `set-file-modes' allows to set file's mode bits.
1063The mode bits can be specified in symbolic notation, like with GNU
e6979067
DN
1064Coreutils, in addition to an octal number. `chmod' is a new
1065convenience alias for this function.
d334fa1e 1066
d2c52e26
EZ
1067*** `next-error-recenter' specifies how next-error should recenter the
1068visited source file. Its value can be a number (for example, 0 for
1069top line, -1 for bottom line), or nil for no recentering.
16e82271 1070
c594dbfa
CY
1071*** When typing in a password in the echo area, C-y yanks the current
1072kill into the password.
16e82271 1073
e02ec85e
EZ
1074*** Tooltip frame parameters `font' and `color' in `tooltip-frame-parameters'
1075are ignored. Customize the `tooltip' face instead.
16e82271 1076
53374291 1077*** `mkdir' is a new convenience alias for `make-directory'.
09e18d03
CY
1078\f
1079* New Modes and Packages in Emacs 23.1
e11910e2
GM
1080
1081** Auto Composition Mode is a minor mode that composes characters
1082automatically when they are displayed. It is globally on by default.
1083It uses `auto-composition-function' (default `auto-compose-chars').
1084
09e18d03 1085** Bubbles, a new game, is similar to SameGame.
60959d23
CY
1086
1087** Buffer Face mode is a minor mode for remapping the default face in
1088the current buffer. The variable `buffer-face-mode-face' specifies
1089the face to remap to. The command `buffer-face-set' prompts for a
1090face name, sets `buffer-face-mode-face' to it, and enables
1091buffer-face-mode. See "Face changes", under Editing Changes, for a
1092description of face remapping.
1093
18e4b9bd
JL
1094** butterfly flips the desired bit on the drive platter.
1095See http://xkcd.com/378/
f6b26818 1096
7ef39c6e
GM
1097** bug-reference.el provides clickable links to bug reports.
1098
09e18d03
CY
1099** dbus.el provides D-Bus language bindings.
1100D-Bus is an inter-process communication mechanism for applications
b350bdf2 1101residing on the same host. See the manual for details.
09e18d03 1102
85c78c0f 1103** DocView mode allows viewing of PDF, PostScript and DVI documents.
b350bdf2
CY
1104One can also search for a regular expression in the document. For
1105details, see the commentary in doc-view.el.
09e18d03 1106
4545a339
CY
1107PDF and DVI files are now opened in Doc View mode by default.
1108
1109In Postcript mode, C-c C-c launches Doc View minor mode for viewing
1110the postscript file.
5ed3edfa 1111
b350bdf2
CY
1112** EasyPG provides an interface to the GNU Privacy Guard (GnuPG).
1113It includes a GnuPG keyring browser, cryptographic operations on
1114regions and files, and automatic encryption of *.gpg files. For
1115details, see the EasyPG Assistant User's Manual.
09e18d03
CY
1116
1117** json.el is a library for parsing and generating JSON
1118(JavaScript Object Notation), a lightweight data-interchange format.
1119
1120** linum.el is a new minor mode to display line numbers for the
1121current buffer.
1122
4b4eb083
CY
1123** mairix.el is an interface to mairix, a free tool for indexing and
1124searching locally stored mail. It allows you to query mairix and
1125display the search results with Rmail, Gnus and VM. Note that there
1126is an existing Gnus back end, nnmairix.el, which should be used with
1127Maildir/MH setups.
1128
e94d0645 1129** minibuffer-depth-indicate-mode shows the minibuffer depth in the prompt.
09e18d03
CY
1130
1131** nXML Mode
1132This is a new mode for editing XML documents. It allows a schema to
1133be associated with the XML document being edited, using Relax NG as
1134the schema language. The schema is used to provide two key features:
1135
1136*** Continuous validation. nXML validates as you type, highlighting
1137any invalid parts of your document.
1138
1139*** Completion. nXML can assist you in entering an element name,
1140attribute name or data value by using information about what is
1141allowed by the schema in that context.
1142
efdd80c6
DN
1143** proced.el provides a Dired-like interface for operating on
1144processes. Proced makes an Emacs buffer containing a listing of the
1145current processes. You can use the normal Emacs commands to move
1146around in this buffer, and special Proced commands to operate on the
1147processes listed. It is currently only functional on GNU/Linux,
1148MS-Windows and Solaris.
09e18d03
CY
1149
1150** Remember Mode is a mode for jotting down things to remember.
1151Notes can be saved to a Diary file. For details, see the Remember
1152Manual.
1153
b1c3a827 1154** RST mode is a major mode for editing reStructuredText files.
c2d0b538 1155
17a937cc
CY
1156** Ruby mode is a major mode for Ruby files.
1157
12f165e9
CY
1158** Visual Line mode provides support for editing by visual lines.
1159It turns on word-wrapping in the current buffer, and rebinds C-a, C-e,
1160and C-k to commands that operate by visual lines instead of logical
1161lines. This is a more reliable replacement for longlines-mode.
697f6b43
CY
1162This can also be turned on using the menu bar, via
1163Options -> Line Wrapping in this Buffer -> Word Wrap
12f165e9 1164
0c68a24b
MA
1165** xesam.el is an implementation of Xesam, an interface to (desktop)
1166search engines like Beagle, Strigi, and Tracker. The Xesam API
1167requires D-Bus for communication.
1168
09e18d03
CY
1169** zeroconf.el offers service discovery and service publishing
1170interfaces according to the zeroconf specification. It communicates
1171with Avahi, a zeroconf implementation, via D-Bus messages on systems
1172which have installed this software.
1173
d332a7a4
GM
1174** There is a new `whitespace' package.
1175(The pre-existing one has been renamed to `old-whitespace'.)
1176Now, besides reporting bogus blanks, the whitespace package has a
1177minor mode and a global minor mode to visualize blanks (TAB, (HARD)
1178SPACE and NEWLINE). The visualization is made via faces and/or display
1179table. It can also indicate lines that extend beyond a given column,
1180trailing blanks, and empty lines at the start or end of a buffer.
1181See `whitespace-style' for more details. The `whitespace-action' option
1182specifies what to do when a buffer is visited, killed, or written.
4e5a8be9 1183
09e18d03
CY
1184\f
1185* Changes in Specialized Modes and Packages in Emacs 23.1
1186
1187** Abbrev has been rewritten in Elisp and extended with more flexibility.
16e82271 1188
e047f448 1189*** New functions: abbrev-get, abbrev-put, abbrev-table-get, abbrev-table-put,
a3709a8c 1190 abbrev-table-p, abbrev-insert, abbrev-table-menu.
16e82271 1191
e047f448 1192*** Special hook `abbrev-expand-functions' obsoletes `pre-abbrev-expand-hook'.
16e82271 1193
e047f448
SM
1194*** `make-abbrev-table', `define-abbrev', `define-abbrev-table' all take
1195 extra arguments for arbitrary properties.
16e82271 1196
e047f448 1197*** New variable `abbrev-minor-mode-table-alist'.
16e82271 1198
e047f448 1199*** `local-abbrev-table' can hold a list of abbrev-tables.
16e82271 1200
e047f448 1201*** Abbrevs have now the following special properties:
79415279 1202 `:count', `:system', `:enable-function', `:case-fixed'.
16e82271 1203
e047f448
SM
1204*** Abbrev-tables have now the following special properties:
1205 `:parents', `:case-fixed', `:enable-function', `:regexp',
1206 `abbrev-table-modiff'.
1207
09e18d03 1208** Apropos
16e82271 1209
09e18d03 1210*** `apropos-library' describes the elements defined in a given library.
16e82271 1211
09e18d03 1212*** Set `apropos-compact-layout' is you want a more compact (but wider) layout.
0253fffa 1213
09e18d03 1214** Archive Mode has basic support to browse Rar archives.
dfa2fb2a
CY
1215Note, however, that the free version of the unrar command only handles
1216versions 1 and 2 of the Rar format.
0253fffa 1217
09e18d03 1218** BibTeX mode
bafbec39 1219
09e18d03 1220*** New command `bibtex-initialize' (re)initializes BibTeX buffers.
bafbec39 1221
09e18d03
CY
1222*** New `bibtex-entry-format' options `whitespace', `braces', and
1223`string', disabled by default.
12bbb989 1224
09e18d03
CY
1225*** New variable `bibtex-cite-matcher-alist' contains rules to
1226identify cited keys in BibTeX entries, used by `bibtex-find-crossref'.
9097e8af 1227
09e18d03 1228*** Command `bibtex-url' allows multiple URLs per entry.
4c24d241 1229
3aa8040c
KF
1230** Bookmarks
1231
1232*** bookmark.el saves bookmarks in a pre-Emacs-23-incompatible file format
1233bookmark.el can read a .emacs.bmk file saved by an older Emacs, but an
1234older Emacs cannot read one saved by Emacs 23.
1235
09e18d03 1236** Calendar and diary
320bc739 1237
09e18d03
CY
1238*** There is a new date style, `iso', essentially year/month/day.
1239The variable `european-calendar-style' is obsolete - use `calendar-date-style'.
1240Similarly, the commands `american-calendar' and `european-calendar'
1241should be replaced by `calendar-set-date-style'.
c3bb6fdb 1242
09e18d03
CY
1243*** The calendar namespace has been rationalized.
1244All functions and variables now begin with a `calendar-', `diary-', or
1245`holiday-' prefix. The various calendar systems have secondary
1246prefixes, eg `calendar-french-'. The old names you are likely to use
1247directly still exist, for the time being, as aliases, but please start
1248using the new names.
1249
e889393b
GM
1250*** The whitespace in the calendar layout can be customized.
1251See the variables:
1252calendar-left-margin, calendar-intermonth-spacing, calendar-column-width,
1253calendar-day-header-width, and calendar-day-digit-width.
1254
1255*** Text (e.g. ISO weeks) can be displayed between the calendar months.
1256See the variables calendar-intermonth-header and calendar-intermonth-text.
1257
09e18d03
CY
1258*** The function `holiday-chinese' computes holidays on the Chinese calendar.
1259It has been used to add items to the list `holiday-oriental-holidays'.
1260
1261*** `diary-remind' accepts a negative number -DAYS as a shorthand for
1262the list (1 2 ... DAYS).
24cdde13 1263
a6b85944
CY
1264** Change Log mode
1265
1266*** The new command C-c C-f (change-log-find-file) finds the file
1267associated with the current log entry.
1268
1269*** The new command C-c C-c (change-log-goto-source) goes to the
1270source code associated with a log entry.
1271
76be286d 1272** Compile and grep modes
16e82271 1273
76be286d
DN
1274*** The mode-line entry for the *compilation* and *grep* buffer is color coded.
1275It has different colors for to show that: (a) the command is still
1276running, (b) successful completion, (c) error.
16e82271 1277
76be286d 1278*** compilation-auto-jump-to-first-error tells `compile' to jump to
813fb3fe 1279the first error encountered during compilations.
16e82271 1280
194894cb
CY
1281*** compilation-scroll-output accepts a new value, `first-error', which
1282says to stop auto scrolling at the first error that occurs.
16e82271 1283
0b22a5e1 1284*** The `cc' alias for C++ files in `grep-file-aliases' has been
2e538385 1285improved. `hh' can be used to match C++ header files and `cchh' both
0b22a5e1
DN
1286C++ sources and headers.
1287
d332a7a4
GM
1288** Copyright
1289
1290*** You can specify your copyright holders' names.
1291Only copyright lines with holders matching `copyright-names-regexp' are
1292considered for update.
1293
1294*** Copyrights can be at the end of the buffer.
1295This is controlled by `copyright-at-end-flag' (used by, e.g., change-log-mode).
1296
09e18d03 1297** Custom
16e82271 1298
09e18d03 1299*** defcustom accepts new keyword arguments, `:safe' and `:risky', which
b68769f2
GM
1300set a variable's `safe-local-variable' and `risky-local-variable' property.
1301
09e18d03 1302** Diff mode
16e82271 1303
09e18d03
CY
1304*** diff-refine-hunk highlights word-level details of changes in a diff hunk.
1305It's used automatically as you move through hunks, see
7381be9d 1306diff-auto-refine-mode. It is bound to `C-c C-b'.
16e82271 1307
09e18d03
CY
1308*** diff-add-change-log-entries-other-window iterates through the diff
1309buffer and tries to create ChangeLog entries for each change.
1310It is bound to `C-x 4 A'.
16e82271 1311
ac7020b3
DN
1312*** Turning on `whitespace-mode' in a diff buffer will show trailing
1313whitespace problems in the modified lines.
d332a7a4 1314
71554a21 1315** Dired
16e82271 1316
71554a21
JL
1317*** In Dired, C-x C-q now runs the command wdired-change-to-wdired-mode,
1318and C-x C-q in wdired-mode exits it with asking a question about
1319saving changes.
16e82271 1320
d1949cd5
JL
1321*** `&' runs the command `dired-do-async-shell-command' that executes
1322the command asynchronously without the need to manually add ampersand
1323to the end of the command. Its output appears in the buffer `*Async Shell
1324Command*'.
16e82271 1325
6d9f0d00 1326*** `M-s f C-s' and `M-s f M-C-s' run Isearch that matches only at file names.
2cb5f8ed
JL
1327When a new user option `dired-isearch-filenames' is t, then even ordinary
1328Isearch started with `C-s' and `C-M-s' matches only at file names in the
1329Dired buffer. When `dired-isearch-filenames' is `dwim' then activation of
1330file name Isearch depends on the position of point - if point is on a file
1331name initially, then Isearch matches only file names, otherwise it matches
1332everywhere in the Dired buffer. You can toggle file names matching on or
1333off by typing `M-s f' in Isearch mode.
16e82271 1334
cc3236e1
JL
1335*** `M-s a C-s' and `M-s a M-C-s' run multi-file Isearch on the marked files.
1336They visit the first marked file in the sequence and display the usual Isearch
1337prompt for a string or a regexp where all Isearch commands are available.
16e82271 1338
71554a21
JL
1339*** `Q' in Dired provides two new keys for multi-file replacement.
1340The upper case key `Y' replaces all remaining matches in all remaining files
1341with no more questions. The upper case key `N' stops doing replacements
1342in the current file and skips to the next file. These multi-file keys
1343are available for all commands that use `tags-query-replace'
1344including `dired-do-query-replace-regexp', `vc-dir-query-replace-regexp',
1345`reftex-query-replace-document'.
1346
09e18d03 1347** Fortran
16e82271 1348
77a00355
GM
1349*** The line length of fixed-form Fortran is not fixed at 72 any more.
1350Customize the variable `fortran-line-length' to change it.
117d3cc5 1351
09e18d03
CY
1352*** In Fortran mode, M-; is now bound to the standard comment-dwim,
1353rather than fortran-indent-comment.
76be286d 1354
09e18d03 1355*** (The increasingly misnamed) F90 mode supports Fortran 2003 syntax.
b592c357 1356
09e18d03 1357** Gnus
6653c6b7 1358
09e18d03
CY
1359*** The Gnus package has been updated
1360There are many news features, bug fixes and improvements; see the file
1361GNUS-NEWS or the node "No Gnus" in the Gnus manual for details.
db86064f 1362
09e18d03
CY
1363*** In Emacs 23, Gnus uses Emacs' new internal coding system `utf-8-emacs' for
1364saving articles drafts and ~/.newsrc.eld. These file may not be read
1365correctly in Emacs 22 and below. If you want to Gnus across different Emacs
1366versions, you may set `mm-auto-save-coding-system' to `emacs-mule'.
15947a44 1367
540f3092 1368*** Passwords are consistently loaded through `auth-source'
6d496c76
TZ
1369Gnus can use `auth-source' for POP and IMAP passwords. Also see that
1370`smtpmail' and `url' support `auth-source' for SMTP and HTTP/HTTPS/RSS
1371authentication respectively.
1372
09e18d03 1373** Help mode
16e82271 1374
09e18d03
CY
1375*** New macro `with-help-window' should set up help windows better
1376than `with-output-to-temp-buffer' with `print-help-return-message'.
8f5cee6a 1377
09e18d03
CY
1378*** New option `help-window-select' permits to customize whether help
1379window shall be automatically selected when invoking help.
8f5cee6a 1380
540f3092
GM
1381*** New variable `help-window-point-marker' permits one to specify a new
1382position for point in help window (for example in `view-lossage').
15947a44 1383
09e18d03 1384** Isearch
16e82271 1385
4f75e082
JL
1386*** New command `isearch-forward-word' bound globally to `M-s w' starts
1387incremental word search. New command `isearch-toggle-word' bound to the
1388same key `M-s w' in Isearch mode toggles word searching on or off
1389while Isearch is active.
1390
1391*** New command `isearch-highlight-regexp' bound to `M-s h r' in Isearch
1392mode runs `highlight-regexp' (`hi-lock-face-buffer') with the current
1393search string as its regexp argument. The same key `M-s h r' and
1394other keys on the `M-s h' prefix are bound globally to the command
1395`highlight-regexp' and other hi-lock commands.
16e82271 1396
4f75e082
JL
1397*** New command `isearch-occur' bound to `M-s o' in Isearch mode
1398runs `occur' with the current search string. The same key `M-s o'
1399is bound globally to the command `occur'.
16e82271 1400
4f75e082
JL
1401*** Isearch can now search through multiple ChangeLog files.
1402When running Isearch in a ChangeLog file, if the search fails,
09e18d03 1403then another C-s tries searching the previous ChangeLog,
540f3092 1404if there is one (e.g. going from ChangeLog to ChangeLog.12).
babc4609 1405This is enabled if multi-isearch-search is non-nil.
93a142e1 1406
babc4609 1407*** Two new commands to start Isearch on a list of marked buffers
cc3236e1
JL
1408for buff-menu.el and ibuffer.el are bound to the keys `M-s a C-s' and
1409`M-s a M-C-s'.
16e82271 1410
3c241617
CY
1411*** The part of an Isearch that failed to match is highlighted in
1412`isearch-fail' face.
5d503af9 1413
4f75e082
JL
1414*** `C-h C-h' in Isearch mode displays isearch-specific Help screen,
1415`C-h b' displays all Isearch key bindings, `C-h k' displays the full
1416documentation of the given Isearch key sequence, `C-h m' displays
1417documentation of Isearch mode. All the rest Help commands exit Isearch mode
09e18d03 1418and execute their global definitions.
16e82271 1419
09e18d03
CY
1420*** When started in the minibuffer, Isearch searches in the minibuffer
1421history. See `Minibuffer changes', above.
2793c9bb 1422
66863844 1423** MH-E
1e9b0fb2 1424
d1d87851 1425*** Upgraded to MH-E version 8.2. See MH-E-NEWS for details.
66863844 1426
09e18d03
CY
1427** Python
1428*** The file etc/emacs.py now supports both Python 2 and 3, meaning
1429that either version can be used as inferior Python by python.el.
c5578d5f 1430
09e18d03
CY
1431*** Python mode now has `pdbtrack' functionality. When using pdb to
1432debug a Python program, pdbtrack notices the pdb prompt and displays
1433the source file and line that the program is stopped at, much the same
1434way as gud-mode does for debugging C programs with gdb.
2793c9bb 1435
1e9b0fb2
MA
1436** Recentf
1437
1438*** The default value of `recentf-keep' prevents from checking of
1439remote files, if there is no established connection to the
1440corresponding remote host.
1441
2d51ab64
GM
1442** Rmail
1443
b55b134f 1444*** Rmail no longer converts the messages to Babyl format.
33b43245
GM
1445Instead, it uses UNIX mbox format, both on disk and in Rmail buffers,
1446and does conversion and decoding when a message is displayed.
b55b134f 1447
33b43245 1448The first time you visit an Rmail file in Babyl format, Rmail
b55b134f
EZ
1449automatically converts it to mbox format. This is a one-time
1450conversion, but it can take a few minutes, depending on how fast is
1451your machine and on the size of the file. You should find the rest of
1452Rmail usage unaltered.
1453
80d634b8
RS
1454However, M-x set-rmail-inbox-list now lasts only for one session
1455because there is no way to save the list of inbox files in an
1456mbox-format file.
1457
329a643c
GM
1458Also, whereas with Babyl format M-x find-file would switch to Rmail
1459mode, with mbox format this is no longer the case (there being no way
bcf3f1f5
GM
1460to add an "-*- rmail-*-" cookie to an mbox file). Use C-u M-x rmail
1461instead.
329a643c 1462
33b43245
GM
1463If you have written any extensions to Rmail, they are likely to need
1464updating. Conceptually, the Rmail buffer that you see is no longer
1465just a narrowed portion of the whole. So you cannot access the whole
1466of a message (or message collection) by a simple save-restriction and
1467widen. Instead, there are two buffers: the rmail-buffer, and the
2e538385 1468rmail-view-buffer. The former is the buffer that you see, the latter
33b43245
GM
1469is invisible. Most of the time, the invisible `view' buffer contains
1470the full contents of the Rmail file, and the Rmail buffer contains a
1471decoded copy of the current message (with only a subset of the
2e538385 1472headers). In this state, Rmail is said to be `swapped'.
2d51ab64 1473
33b43245
GM
1474You may find the following functions useful:
1475
1476`rmail-get-header' and `rmail-set-header' get or set the value of a
1477message header, whether or not it is currently visible.
1478
1479`rmail-apply-in-message' is a general purpose function that calls a
1480function (with arguments) which you specify on the full text of a given
1481message. To further narrow to just the headers, search forward for "\n\n".
1482
33b43245 1483*** The new command `rmail-mime' displays MIME messages.
2e538385 1484It is bound to `v' in Rmail buffers and summaries. It displays plain
33b43245
GM
1485text and multipart messages in a temporary buffer, and offers buttons
1486to save attachments.
1487
763e01c4
EZ
1488*** The command `rmail-redecode-body' no longer accepts the optional arg RAW.
1489Since Rmail now holds messages in their original undecoded form in a
1490separate buffer, `rmail-redecode-body' no longer encodes the original
1491message, and therefore there should be no need to avoid encoding it.
1492
80d634b8
RS
1493*** The o command is now `rmail-output'. It is an all-purpose command
1494for copying messages from Rmail and appending them to files. It
1495handles Babyl-format files as well as mbox-format files, and it
1496handles both kinds properly when they are visited in Emacs. It always
1497copies the full headers of the message.
1498
80d634b8
RS
1499*** The C-o command is now `rmail-output-as-seen'. It uses
1500the message as displayed, appending it to an mbox file.
1501
2e538385
GM
1502*** The modified status of the Rmail buffer is reported in the mode-line.
1503Previously, this information was hidden.
1504
9721264a 1505** TeX modes
16e82271 1506
9721264a
MR
1507*** New option latex-indent-within-escaped-parens
1508permits to customize indentation of LaTeX environments delimited
1509by escaped parens.
1510
09e18d03 1511** T-mouse Mode
16e82271 1512
09e18d03
CY
1513*** If the gpm mouse server is running and t-mouse-mode is enabled,
1514Emacs uses a Unix socket in a GNU/Linux console to talk to server,
1515rather than faking events using the client program mev. This C level
1516approach provides mouse highlighting and help echoing in the
1517minibuffer.
2793c9bb 1518
cc213f24
MA
1519** Tramp
1520
1521*** New connection methods.
1522The new methods "plinkx", "plink2", "psftp", "sftp" and "fish" have
1523been introduced. There are also new so-called gateway methods
1524"tunnel" and "socks".
1525
cc2fc5a2
MA
1526*** IPv6 addresses.
1527IPv6 addresses are supported now as host names. They must be embedded
1528in square brackets, like in "/ssh:[::1]:".
1529
cc213f24 1530*** Multihop syntax has been removed.
540f3092 1531The pseudo-method "multi" has been removed. Instead, multi hops
cc213f24
MA
1532can be specified by the new variable `tramp-default-proxies-alist'.
1533
1534*** More default settings.
1535Default values can be set via the variables `tramp-default-user',
1536`tramp-default-user-alist' and `tramp-default-host'.
1537
1538*** Connection information is cached.
1539In order to reduce connection setup, information about used
540f3092 1540connections is kept persistently in a file. The name of this file is
cc213f24
MA
1541defined in the variable `tramp-persistency-file-name'.
1542
1543*** Control of remote processes.
1544Running processes on a remote host can be controlled by settings in
1545`tramp-remote-path' and `tramp-remote-process-environment'.
1546
1547*** Success of remote copy is checked.
1548When the variable `file-precious-flag' is set, the success of a remote
1549file copy is checked via the file's checksum.
1550
7cba69f2
MA
1551*** Passwords can be read from an authentification file.
1552Tramp uses the package `auth-source' to read passwords from a file, if
1553necessary.
1554
289aee1c 1555** VC and related modes
16e82271 1556
09e18d03
CY
1557*** VC now supports applying VC operations to a set of files at a time.
1558This enables VC to work much more effectively with changeset-oriented
1559version-control systems such as Subversion, GNU Arch, Mercurial, Git
1560and Bzr. VC will now pass a multiple-file commit to these systems as
1561a single changeset.
16e82271 1562
09e18d03 1563*** vc-dir is a new command that displays file names and their VC
289aee1c
DN
1564status. It allows to apply various VC operations to a file, a
1565directory or a set of files/directories.
16e82271 1566
614677a0
GM
1567*** VC switches are no longer appended, rather the first non-nil value is used.
1568(This was for the most part true in Emacs 22, but was not advertised).
1569This is because there is an increasing variety of VC systems, and they
1570do not all accept the same "common" options. For example, a CVS diff
1571command used to append the values of `vc-cvs-diff-switches',
1572`vc-diff-switches', and `diff-switches'. Now the first non-nil value
1573from that sequence is used. The special value `t' means "no switches".
16e82271 1574
09e18d03 1575*** Clicking on the VC mode-line entry now pops the VC menu.
16e82271 1576
09e18d03 1577*** The VC mode-line entry now has a tooltip that explains the VC file status.
2b69181c
DN
1578
1579*** In VC Annotate mode, the key bindings have changed to use lower
1580case keys instead of the upper case keys used in the past.
16e82271 1581
09e18d03
CY
1582*** In VC Annotate mode, for VC systems that support changesets, you can
1583see the diff for the whole changeset (not only for the current file)
ee0f0556
CY
1584by typing the D key. Using the "Show changeset diff of revision at
1585line" menu entry does the same thing.
16e82271 1586
e86fa02b 1587*** In VC Annotate mode, you can type v to toggle the annotation visibility.
16e82271 1588
09e18d03
CY
1589*** In VC Annotate mode, you can type f to show the file revision on
1590the current line.
16e82271 1591
09e18d03
CY
1592*** Asynchronous VC commands display [Waiting...] in the mode-line
1593of the corresponding buffer as long as the asynchronous process is
1594active.
16e82271 1595
09e18d03
CY
1596*** Log entries can be modified using the key "e" in log-view.
1597For now only CVS, RCS, SCCS and SVN support this functionality.
1598This is done by the `modify-change-comment' backend function.
16e82271 1599
09e18d03
CY
1600*** In log-view-mode, for VC systems that support changesets, you can
1601see the diff for the whole changeset (not only for the current file)
1602by typing the D key or using the "Changeset Diff" menu entry.
16e82271 1603
289aee1c
DN
1604*** In Log Edit mode, C-c C-d now shows the diff for the files involved.
1605
1606*** vc-git supports the "git grep" command.
16e82271 1607
540f3092 1608*** VC Support for Meta-CVS has been removed for lack of a maintainer able
09e18d03 1609to update it to the new VC.
cf944fa4 1610
d15f7b68
GM
1611** Miscellaneous
1612
1613*** comint-mode uses `start-file-process' now (see Lisp Changes).
cc213f24
MA
1614If `default-directory' is a remote file name, subprocesses are started
1615on the corresponding remote system.
16e82271 1616
09e18d03
CY
1617*** Eldoc highlights the function argument under point
1618with the face `eldoc-highlight-function-argument'.
16e82271 1619
09e18d03 1620*** In Etags, the --members option is now the default.
fffa137c 1621Use --no-members if you want the old default behavior of not tagging
09e18d03 1622struct members in C, members variables in C++ and variables in PHP.
16e82271 1623
09e18d03
CY
1624*** The `gdb' command only works with the graphical interface now.
1625Use `gud-gdb' if you want the (old) text command mode.
1626
1627*** goto-address.el provides two new minor modes, goto-address-mode and
1628goto-address-prog-mode, which buttonize URLS and email addresses.
1629
1630*** The new command `eshell/info' runs info in an eshell buffer.
3cf86f00 1631
4d1e89e3
GM
1632*** The new variable `ffap-rfc-directories' specifies a list of local
1633directories in which `ffap-rfc' will first search for RFCs.
16e82271 1634
09e18d03
CY
1635*** hide-ifdef-mode allows shadowing ifdef-blocks instead of hiding them.
1636See option `hide-ifdef-shadow' and function `hide-ifdef-toggle-shadowing'.
1637
1638*** `icomplete-prospects-height' now supercedes `icomplete-prospects-length'.
1639
1640*** Info displays breadcrumbs in the header of the page.
1641See Info-breadcrumbs-depth to control it.
1642
d2c98acc 1643*** net-utils has an `iwconfig' command, similar to the existing `ifconfig'.
b7bfcc8a 1644It is used to configure wireless interfaces.
d2c98acc 1645
09e18d03
CY
1646*** The pcmpl-unix package supports hostname completion for ssh and scp.
1647
1648*** sgml-electric-tag-pair-mode lets you simultaneously edit matched tag pairs.
1649
1650*** smerge-refine highlights word-level details of changes in conflict.
7381be9d
TTN
1651It's used automatically as you move through conflicts, see
1652smerge-auto-refine-mode.
09e18d03
CY
1653
1654*** talk.el has been extended for multiple tty support.
1655
1656*** A new command `display-time-world' has been added to the Time
1657package. It creates a buffer with an updating time display using
1658several time zones.
1659
1660*** The appearance of superscript and subscript in TeX is more customizable.
1661See the documentation of the variables: tex-fontify-script,
1662tex-font-script-display, tex-suscript-height-ratio, and
1663tex-suscript-height-minimum.
1664
1665*** view-remove-frame-by-deleting is now by default t
1666since users found iconification of view-mode frames distracting.
16e82271 1667
09e18d03
CY
1668*** WoMan tries to add locale-specific manual page directories to the
1669search path. This can be disabled by setting `woman-locale' to nil.
1670
0bfd685e
GM
1671\f
1672* Changes in Emacs 23.1 on non-free operating systems
8ab314f9 1673
203553fd
JPW
1674** Case is now considered significant in completion on MS-Windows.
1675The default value of `completion-ignore-case' is now nil on
1676MS-Windows, the same as it is for other operating systems. The
1677variable doesn't apply to reading a file name -- in that case Emacs
1678heeds `read-file-name-completion-ignore-case' instead.
1679
672f99b6
JR
1680** IPv6 is supported on MS-Windows.
1681Emacs now supports IPv6 on Windows XP and later, and earlier versions
2660a9da 1682of Windows with third party IPv6 stacks installed. In Emacs 22, IPv6 was
672f99b6
JR
1683supported on other platforms, but not on Windows due to using the winsock
16841.1 header file, even though Emacs was linking to the winsock 2 library.
1685
6e344060
JR
1686** Busy cursor (hourglass) now displays on MS-Windows.
1687When Emacs is busy, an hourglass mouse cursor is displayed on Windows.
2660a9da
JR
1688In Emacs 22 only X supported the busy cursor.
1689
2660a9da
JR
1690** Battery status is available on MS-Windows
1691Emacs can now display the battery status in the mode-line when enabled with
1692display-battery-mode or from the Options menu. More verbose battery
1693information is also available with the command `battery'. In Emacs 22
1694battery status was supported only on GNU/Linux and Mac.
6e344060 1695
3280c5c5
JR
1696** More keys available on MS-Windows.
1697Keys normally associated with IMEs, and some exotic keys not normally found
1698on standard keyboards have been given names so they can be bound to functions
1699inside Emacs. If there are keys on your keyboard that have not been exposed
1700to Emacs in the past, try C-h k to see if they are available now.
1701
1702Emacs can now bind functions to the extra buttons for media player and
1703browser control present on some keyboards. These buttons are disabled
1704by default, since enabling them prevents their system-wide use when
1705Emacs has focus. To enable them, set the variable
0caa490b 1706w32-pass-multimedia-buttons to nil. See the doc string of that variable
3280c5c5 1707for the list of extra keys that are available.
2660a9da 1708
4a263588 1709** BDF fonts no longer supported on MS-Windows.
2e538385 1710The font backend was completely rewritten for this release. The focus
4a263588
JR
1711on Windows has been getting acceptable performance and full unicode
1712support, including complex script shaping for native Windows fonts. A
1713rewrite of the BDF font support has not happened due to lack of time
1714and developers. If demand still exists for such a backend even with
1715the improved language support for native Windows fonts, future
1716development in this direction will most likely be based on the
1717freetype library, giving access to a wider range of font formats.
1718
0bfd685e
GM
1719\f
1720* Incompatible Lisp Changes in Emacs 23.1
8ec65cd7 1721
fd9440c5 1722** Variables cannot be both buffer-local and frame-local any more.
a9b08254 1723
fc944cd4 1724** `functionp' returns nil for special forms.
65f81a0b 1725I.e., it only returns t for objects that can be passed to `funcall'.
fc944cd4 1726
d82c3d44
GM
1727** The behavior of map-char-table has changed. It may call the
1728specified function with a cons (FROM . TO) as a key if characters in
1729that range have the same value.
1730
b350bdf2 1731** Process changes
16e82271 1732
b350bdf2 1733*** The function `dired-call-process' has been removed.
16e82271 1734
b350bdf2
CY
1735*** The multibyteness of process filters is now determined by the
1736coding-system used for decoding. The functions
1737`process-filter-multibyte-p' and `set-process-filter-multibyte' are
1738obsolete.
03605a28 1739
777ea444 1740** The variable `byte-compile-warnings' can now be a list starting with `not',
0caa490b 1741meaning to disable the specified warnings. The meaning of this list
777ea444 1742may therefore be the reverse of what you expect (of course, this is
0caa490b 1743only an issue if you make use of the new `not' syntax). Rather than
777ea444
GM
1744checking/manipulating elements directly, use the new functions
1745`byte-compile-warning-enabled-p', `byte-compile-disable-warning', and
1746`byte-compile-enable-warning.'
1747
69df9d6d
GM
1748** `mode-name' is no longer guaranteed to be a string.
1749Use `(format-mode-line mode-name)' to ensure a string value.
1750
53ed745a
CY
1751** The function x-font-family-list has been removed.
1752Use the new function font-family-list (see Lisp Changes, below).
1753
b350bdf2
CY
1754** Internationalization changes
1755
1756*** The value of the function `charset-id' is now always 0.
16e82271 1757
b350bdf2
CY
1758*** The functions `register-char-codings' and `coding-system-spec'
1759have been removed.
16e82271 1760
b350bdf2
CY
1761*** The cpXXX coding systems are now supported automatically.
1762The functions cp-...-codepage, which you had to use in Emacs 22 to
1763enable support for these coding systems, have been deleted.
16e82271 1764
b350bdf2 1765*** The following features have been removed. They were used for
85a1f98d
GM
1766displaying various scripts with specific fonts, and are no longer
1767needed now that OpenType font support is available:
1768
b350bdf2 1769**** `devanagari' and `devan-util', and all associated devanagari-* and
85a1f98d
GM
1770dev-* functions and variables (formerly used for Devanagari script).
1771
b350bdf2 1772**** `kannada' and `knd-util', and all associated kannada-* and knd-*
85a1f98d
GM
1773functions and variables (formerly used for Kannada script).
1774
b350bdf2 1775**** `malayalam' and `mlm-util', and all associated malayalam-* and
85a1f98d
GM
1776mlm-* functions and variables (formerly used for Malayalam script).
1777
b350bdf2 1778**** `tamil' and `tml-util, and all associated tamil-* and tml-*
85a1f98d 1779functions and variables (formerly used for Tamil script).
6a6b4d7d 1780
2d2db320
KH
1781*** The meaning of NAME argument of `set-fontset-font' is changed.
1782Previously nil is accepted as the default fontset. Now, nil is for
1783the fontset of the selected frame and t is for the default fontset.
1784
1785*** The meaning of FONTSET argument of `print-fontset' is changed.
1786Now, nil is for the fontset of the selected frame and t is for the
1787default fontset.
1788
16e82271
CY
1789** If a function in write-region-annotate-functions returns with a
1790different buffer current, Emacs no longer kills that buffer
1791automatically. This behavior existed in previous versions of Emacs,
1792but was undocumented. To kill a buffer after write-region, give the
1793variable `write-region-post-annotation-function' a buffer-local value
1794of `kill-buffer'.
1795
55504ada 1796** The variable temp-file-name-pattern has been removed.
f4150f61
CY
1797This variable was only used by call-process-region, which now uses
1798temporary-file-directory instead.
1799
52456e59
CY
1800** The COUNT and SYSTEM-FLAG arguments to define-abbrev have been
1801removed. The function now takes extra arguments for specifying
1802arbitrary abbrev properties.
1803
7841339b
AM
1804** end-of-defun-function is now guaranteed to work only when called
1805from the start of a defun. It must now leave point exactly at the end
1806of defun, since `end-of-defun' now itself moves forward over
1807whitespace after calling it.
1808
0bfd685e
GM
1809\f
1810* Lisp Changes in Emacs 23.1
8ab314f9 1811
b8afe7e4
EZ
1812** The new variable `generate-autoload-cookie' controls the magic comment
1813string used by `update-file-autoloads' to find autoloaded forms. The
1814variable `generated-autoload-file' similarly controls the name of the
1815file where `update-file-autoloads' writes the calls to `autoload'.
1816The default values are ";;;###autoload" and `loaddefs.el',
1817respectively.
1818
a20878b6 1819** New primitives `list-system-processes' and `process-attributes'
5d692341
EZ
1820let Lisp programs access the processes that are running on the local
1821machine. See the doc strings of these functions for more details.
1822Not all platforms support accessing this information; on those that
1823don't, these primitives will return nil.
1824
b350bdf2
CY
1825** New variable `user-emacs-directory'.
1826Use this instead of "~/.emacs.d".
43f8b275 1827
b350bdf2
CY
1828** If a local hook function has a non-nil `permanent-local-hook'
1829property, `kill-all-local-variables' does not remove it from the local
1830value of the hook variable; it remains even if you change major modes.
09e18d03 1831
b350bdf2
CY
1832** `frame-inherited-parameters' lets new frames inherit parameters from
1833the selected frame.
09e18d03 1834
b350bdf2
CY
1835** New keymap `input-decode-map' overrides like key-translation-map, but
1836applies before function-key-map. Also it is terminal-local contrary to
1837key-translation-map. Terminal-specific key-sequences are generally added to
1838this map rather than to function-key-map now.
09e18d03 1839
b350bdf2 1840** `ignore-errors' is now a standard macro (does not require the CL package).
09e18d03 1841
b350bdf2
CY
1842** `interprogram-paste-function' can now return one string or a list
1843of strings. In the latter case, Emacs puts the second and following
1844strings on the kill ring.
09e18d03 1845
b350bdf2
CY
1846** In `condition-case', a handler can specify "let the debugger run first".
1847You do this by writing `debug' in the list of conditions to be handled,
1848like this:
09e18d03 1849
b350bdf2
CY
1850 (condition-case nil
1851 (foo bar)
1852 ((debug error) nil))
09e18d03 1853
b350bdf2 1854** clone-indirect-buffer now runs the clone-indirect-buffer-hook.
09e18d03 1855
7841339b
AM
1856** `beginning-of-defun-function' now takes one argument, the count given to
1857`beginning-of-defun'. (N.B. `end-of-defun-function' doesn't take any
1858arguments.)
09e18d03 1859
b350bdf2
CY
1860** `file-remote-p' has new optional parameters IDENTIFICATION and CONNECTED.
1861IDENTIFICATION specifies which part of the remote identifier has to be
1862returned. With CONNECTED passed non-nil, it is checked whether a
1863remote connection has been established already.
09e18d03 1864
b350bdf2
CY
1865** The new macro `declare-function' suppresses compiler warnings about
1866undefined functions.
a1562258 1867
b350bdf2 1868** Changes to interactive function handling
8ba31f36 1869
b350bdf2
CY
1870*** The new interactive spec code ^ says to first call
1871handle-shift-selection if shift-select-mode is non-nil, before reading
1872the command arguments. This is used for shift-selection (see above).
e2947429 1873
b350bdf2
CY
1874*** Built-in functions can now have an interactive specification that
1875is not a prompt string. If the `intspec' parameter of a `DEFUN'
1876starts with a `(', the string is evaluated as a Lisp form.
e2947429 1877
b350bdf2
CY
1878*** The interactive-form of a function can be added post-facto via the
1879`interactive-form' symbol property. Mostly useful to add complex
1880interactive forms to subroutines.
d87be1df 1881
b350bdf2 1882** Region changes
3ae459e5 1883
b350bdf2
CY
1884*** Commands should use `use-region-p' to test whether there is
1885an active region that they should operate on.
3ae459e5 1886
b350bdf2 1887*** `region-active-p' returns non-nil when Transient Mark mode is
71b605b8
CY
1888enabled and the mark is active. Most commands that act specially on
1889the active region in Transient Mark mode should use `use-region-p'
1890instead of `region-active-p', because `use-region-p' obeys the new
1891user option `use-empty-active-region' (see Editing Changes, above).
58555d81 1892
b350bdf2
CY
1893*** If a command sets `transient-mark-mode' to (only . OLDVAL), that
1894means to activate transient-mark-mode temporarily, until the next
1895unshifted point motion command or mark deactivation. Afterwards,
1896reset transient-mark-mode to the value OLDVAL. The values `only' and
1897`identity', introduced in Emacs 22, are now deprecated.
e5c4079c 1898
b350bdf2 1899** Emacs session information
13cda5f9 1900
b350bdf2
CY
1901*** The new variables `before-init-time' and `after-init-time' record the
1902value of `current-time' before and after Emacs loads the init files.
a2bc5bdd 1903
b350bdf2 1904*** The new function `emacs-uptime' returns the uptime of an Emacs instance.
d82c3d44 1905
b350bdf2
CY
1906*** The new function `emacs-init-time' returns the duration of the
1907Emacs initialization.
50bfa18a 1908
b350bdf2 1909** Changes affecting display-buffer
16e82271 1910
abe8f306
MR
1911*** display-buffer tries to be smarter when splitting windows.
1912The new option split-window-preferred-function lets you specify your own
1913function to pop up new windows. Its default value split-window-sensibly
1914can split a window either vertically or horizontally, whichever seems
1915more suitable in the current configuration. You can tune the behavior
1916of split-window-sensibly by customizing split-height-threshold and the
1917new option split-width-threshold. Both options now take the value nil
1918to inhibit splitting in one direction. Setting split-width-threshold to
1919nil inhibits horizontal splitting and gets you the behavior of Emacs 22
1920in this respect. In any case, display-buffer may now split the largest
1921window vertically even when it is not as wide as the containing frame.
2d105adf 1922
f691c216
CY
1923*** If pop-up-frames has the value `graphic-only', display-buffer only
1924makes a separate frame on graphic displays.
1925
abe8f306 1926*** select-frame and set-frame-selected-window have a new optional
ee434cb1
MR
1927argument NORECORD. If non-nil, this will avoid messing with the order
1928of recently selected windows and the buffer list.
205f3a3b 1929
781459a4
CY
1930** Window parameters can now be defined.
1931These are analogous to frame parameters, but are associated with
1932individual windows.
16e82271 1933
781459a4
CY
1934*** The new functions window-parameters, window-parameter, and
1935set-window-parameter are used to query and set window parameters.
1936
b350bdf2 1937** Minibuffer and completion changes
16e82271 1938
b350bdf2 1939*** A list of default values can be specified for the DEFAULT argument of
b9694062
JL
1940functions `read-from-minibuffer', `read-string', `read-command',
1941`read-variable', `read-buffer', `completing-read'. Elements of this list
1942are available for inserting into the minibuffer by typing `M-n'.
1943For empty input these functions return the first element of this list.
1944
90993beb 1945*** New function `read-regexp' uses the regexp history and some useful
4f75e082 1946regexp defaults (string at point, last Isearch/replacement regexp/string)
90993beb
JL
1947via M-n when reading a regexp in the minibuffer.
1948
b350bdf2
CY
1949*** minibuffer-local-must-match-filename-map is now named
1950minibuffer-local-filename-must-match-map.
66dc1ca2 1951
206faa92
CY
1952*** The `require-match' argument to `completing-read' accepts the new
1953values `confirm-only' and `confirm-after-completion'.
d03b9b31 1954
b350bdf2 1955** Search and replacement changes
16e82271 1956
b350bdf2 1957*** The regexp form \(?<num>:<regexp>\) specifies the group number explicitly.
16e82271 1958
b350bdf2
CY
1959*** New function `match-substitute-replacement' returns the result of
1960`replace-match' without actually using it in the buffer.
c60d543d 1961
b350bdf2 1962*** The new variable `replace-search-function' determines the function
80120f13
EZ
1963to use for searching in query-replace and replace-string. The
1964function it specifies is called by `perform-replace' when its 4th
1965argument is nil.
3ae459e5 1966
b350bdf2
CY
1967*** The new variable `replace-re-search-function' determines the
1968function to use for searching in `query-replace-regexp',
1969`replace-regexp', `query-replace-regexp-eval', and
80120f13
EZ
1970`map-query-replace-regexp'. The function it specifies is called by
1971`perform-replace' when its 4th argument is non-nil.
4f4a84ec 1972
4f75e082
JL
1973*** New keymap `search-map' bound to `M-s' provides global bindings
1974for search related commands.
1975
1976*** New keymap `multi-query-replace-map' contains additonal keys bound
71554a21
JL
1977to `automatic-all' and `exit-current' for multi-buffer interactive replacement.
1978
b350bdf2
CY
1979*** The variable `inhibit-changing-match-data', if non-nil, prevents
1980the search and match primitives from changing the match data.
967b2682 1981
3c241617
CY
1982*** New functions `word-search-forward-lax' and `word-search-backward-lax'.
1983These are like `word-search-forward and `word-search-backward', except
1984that the end of the search string need not match a word boundary,
1985unless it ends in whitespace.
1986
b350bdf2 1987** File handling changes
8bf5c8a6 1988
b350bdf2
CY
1989*** set-file-modes is now interactive and can take the mode value in
1990symbolic notation thanks to auxiliary functions.
16e82271 1991
291703b5
EZ
1992*** file-local-variables-alist stores an alist of file-local
1993variables defined in the current buffer.
1994
d59f7c45 1995** Face-remapping
16e82271 1996
d59f7c45
CY
1997*** Each face can be remapped to a different face definition using the
1998variable `face-remapping-alist'. This is an alist that maps faces to
1999replacement definitions (which can be face names, lists of face names,
2000or attribute/value plists. If this variable is buffer-local, the
2001remapping occurs only in that buffer.
2002
2003*** text-scale-mode remaps the default face to a larger or smaller
2e538385 2004size in the current buffer. This feature is used by the Buffer Face
d59f7c45
CY
2005menu and the new `C-x C-+', `C-x C--', and `C-x C-0' commands (see
2006Editing Changes, above).
2007
2008*** New functions:
16e82271 2009
d59f7c45
CY
2010**** `face-remap-add-relative' adds a face remapping entry to the
2011current buffer.
16e82271 2012
d59f7c45
CY
2013**** ``face-remap-remove-relative' removes a face remapping entry from
2014the current buffer.
16e82271 2015
d59f7c45 2016**** `face-remap-reset-base' restores a face to its global definition.
16e82271 2017
d59f7c45
CY
2018**** `face-remap-set-base' sets the base remapping of a face.
2019
85c78c0f 2020** Process changes
16e82271 2021
b350bdf2
CY
2022*** The new function `start-file-process' is similar to `start-process',
2023but obeys file handlers. The file handler is chosen based on
2024`default-directory'. The functions `start-file-process-shell-command'
2025and `process-file-shell-command' are also new; they call internally
2026`start-file-process' and `process-file', respectively.
2027
2028*** The new function `process-lines' executes an external program and
2029returns its output as a list of lines.
63571b5a 2030
d82c3d44
GM
2031** Character code, representation, and charset changes.
2032
16e82271
CY
2033*** In multibyte buffers and strings, characters are represented by
2034UTF-8 byte sequences. The character code space is now 0x0..0x3FFFFF
2035with no gap; code points 0x0..0x10FFFF are Unicode characters of the
2036same code points, while code points 0x3FFF80..0x3FFFFF are raw 8-bit
2037bytes.
d82c3d44 2038
16e82271 2039*** Generic characters no longer exist.
d82c3d44 2040
16e82271
CY
2041*** The concept of a charset has changed. A single character may
2042belong to multiple charsets (e.g. a-grave, U+00E0, belongs to charsets
b350bdf2 2043unicode, iso-8859-1, iso-8859-3, etc).
d82c3d44 2044
16e82271
CY
2045**** The dimension of a charset is now 1, 2, 3, or 4, and the size of
2046each dimension is no longer limited to 94 or 96.
2047
2048**** A dynamic charset priority list is used to infer the charset of
2049characters for display.
2050
c9a1876d
EZ
2051*** The functions `split-char' and `make-char' now accept up to 4
2052positional codes instead of just 2.
2053
d82c3d44
GM
2054*** The functions `encode-char' and `decode-char' now accept any character sets.
2055
2056*** The function `define-charset' now accepts a completely different
2057form of arguments (old-style arguments still work).
2058
d82c3d44
GM
2059*** The value of the function `char-charset' depends on the current
2060priorities of charsets.
2061
d82c3d44
GM
2062*** The function get-char-code-property now accepts many Unicode base
2063character properties. They are `name', `general-category',
2064`canonical-combining-class', `bidi-class', `decomposition',
2065`decimal-digit-value', `digit-value', `numeric-value', `mirrored',
2066`old-name', `iso-10646-comment', `uppercase', `lowercase', and
2067`titlecase'.
2068
b350bdf2
CY
2069*** The functions `modify-syntax-entry' and `modify-category-entry' now
2070accept a cons of characters as the first argument, and modify all
2071entries in that range of characters.
d82c3d44 2072
8434d0b8
EZ
2073*** Use of `translation-table-for-input' for character code unification
2074is now obsolete, since Emacs 23.1 and later uses Unicode as basis for
2075internal representation of characters.
d82c3d44 2076
b350bdf2 2077*** New functions:
d82c3d44 2078
b350bdf2
CY
2079**** `characterp' returns t if and only if the argument is a character.
2080This replaces `char-valid-p', which is now obsolete.
d82c3d44 2081
b350bdf2 2082**** `max-char' returns the maximum character code (currently #x3FFFFF).
d82c3d44 2083
b350bdf2
CY
2084**** `define-charset-alias' defines an alias of a charset.
2085
2086**** `set-charset-priority' sets priorities of charsets.
2087
2088**** `charset-priority-list' returns a prioritized list of charsets.
2089
2090**** `unibyte-string' makes a unibyte string from bytes.
2091
2092**** `define-char-code-property' defines a character code property.
2093
2094**** `char-code-property-description' returns the description string of
2095a character code property.
2096
2097*** New variables:
2098
2099**** `find-word-boundary-function-table' is a char-table of functions to
2100search for a word boundary.
2101
2102**** `char-script-table' is a char-table of script names.
2103
2104**** `char-width-table' is a char-table of character widths.
2105
2106**** `print-charset-text-property' controls how to handle `charset' text
2107property on printing a string.
2108
2109**** `printable-chars' is a char-table of printable characters.
d82c3d44 2110
505d8756 2111** Code conversion changes
d82c3d44
GM
2112
2113*** The new function `define-coding-system' should be used to define a
2114coding system instead of `make-coding-system' (which is now obsolete).
2115
2116*** The functions `encode-coding-region' and `decode-coding-region'
2117have an optional 4th argument to specify where the result of
2118conversion should go.
2119
2120*** The functions `encode-coding-string' and `decode-coding-string'
2121have an optional 4th argument specifying a buffer to store the result
2122of conversion.
2123
b0caa7fb
EZ
2124*** The new variable `inhibit-null-byte-detection' controls whether to
2125consider text with null bytes as binary data. By default, it is
2126`nil', and Emacs uses `no-conversion' for any text containing null
2127bytes.
2128
b350bdf2 2129*** The functions `set-coding-priority' and `make-coding-system' are obsolete.
d82c3d44 2130
b350bdf2 2131*** New functions:
d82c3d44 2132
b350bdf2
CY
2133**** `with-coding-priority' executes Lisp code using the specified
2134coding system priority order.
d82c3d44 2135
b350bdf2
CY
2136**** `check-coding-systems-region' checks if the text in the region is
2137encodable by the specified coding systems.
d82c3d44 2138
b350bdf2 2139**** `coding-system-aliases' returns a list of aliases of a coding system.
d82c3d44 2140
b350bdf2
CY
2141**** `coding-system-charset-list' returns a list of charsets supported
2142by a coding system.
d82c3d44 2143
b350bdf2
CY
2144**** `coding-system-priority-list' returns a list of coding systems
2145ordered by their priorities.
2146
2147**** `set-coding-system-priority' sets priorities of coding systems.
d82c3d44 2148
f4017dc5
KH
2149**** `coding-system-from-name' returns a coding system matching with
2150the argument name.
2151
2152
d82c3d44 2153** There is a new input method, Robin, different from Quail.
0caa490b 2154It has three functionalities:
d82c3d44
GM
2155 i) a simple input method (converts an ASCII sequence into a string).
2156ii) converts an existing buffer substring into another string
2157iii) reverse conversion (each character produced by a
2158robin rule can hold the original ASCII sequence as a char-code-property)
2159
2160*** The new function `robin-define-package' defines a Robin package.
2161
2162*** The new function `robin-modify-package' modifies an existing Robin package.
2163
2164*** The new function `robin-use-package' starts using a Robin package
2165as an input method.
2166
888d7d86
KH
2167*** The new function `string-to-unibyte' is like `string-as-unibyte'
2168but signals an error if STRING contains a non-ASCII, non-eight-bit
2169character.
2170
505d8756 2171** Changes related to the new font backend
16e82271 2172
0c1e3f0d
CY
2173*** Which font backends to use can be specified by the X resource
2174"FontBackend". For instance, to use both X core fonts and Xft fonts:
2b7a2553 2175
b19aa6dd 2176Emacs.FontBackend: x,xft
2b7a2553 2177
b19aa6dd
GM
2178If this resource is not set, Emacs tries to use all font backends
2179available on your graphic device.
16e82271 2180
d82c3d44
GM
2181*** New frame parameter `font-backend' specifies a list of
2182font-backends supported by the frame's graphic device. On X, they are
2183currently `x' and `xft'.
2184
b350bdf2
CY
2185*** The function `set-fontset-font' now accepts a script name as the
2186second argument, and has an optional 5th argument to control how to
2187set the font.
bd9d28f7 2188
b350bdf2 2189*** New functions:
16e82271 2190
b350bdf2 2191**** `fontp' checks if the argument is a font-spec or font-entity.
16e82271 2192
b350bdf2 2193**** `font-spec' creates a new font-spec object.
16e82271 2194
b350bdf2 2195**** `font-get' returns a font property value.
16e82271 2196
b350bdf2 2197**** `font-put' sets a font property value.
16e82271 2198
b350bdf2 2199**** `font-face-attributes' returns a plist of face attributes set by a font.
16e82271 2200
b350bdf2 2201**** `list-fonts' returns a list of font-entities matching a font spec.
16e82271 2202
543e6d09 2203**** `find-font' returns the font-entity best matching the given font spec.
16e82271 2204
ae525471 2205**** `font-family-list' returns a list of family names of available fonts.
16e82271 2206
b350bdf2
CY
2207**** `font-xlfd-name' returns an XLFD name of a given font spec, font
2208entity, or font object.
16e82271 2209
b350bdf2 2210**** `clear-font-cache' clears all font caches.
d82c3d44 2211
b350bdf2 2212** Changes related to multiple-terminal (multi-tty) support
24cdde13 2213
b12f6e85
SM
2214*** $TERM is now set to `dumb' for subprocesses. If you want to know the
2215$TERM inherited by Emacs you will have to look inside initial-environment.
2216
6168122d
SM
2217*** $DISPLAY is now dynamically inherited from the frame's `display'.
2218
b350bdf2 2219*** The `window-system' variable is now frame-local. The new
24cdde13 2220`initial-window-system' variable contains the `window-system' value
bbe3eb99
GM
2221for the first frame. `window-system' is also now a function that
2222takes a frame argument.
24cdde13 2223
b350bdf2
CY
2224*** The `keyboard-translate-table' variable and the terminal and
2225keyboard coding systems are now terminal-local.
2226
24cdde13
GM
2227*** You can specify a terminal device (`tty' parameter) and a terminal
2228type (`tty-type' parameter) to `make-terminal-frame'.
2229
24cdde13 2230*** The function `make-frame-on-display' now works during a tty
4e598d29 2231session.
24cdde13 2232
1e637a9f
EZ
2233*** A new `terminal' data type.
2234The functions `get-device-terminal', `terminal-parameters',
765980a4 2235`terminal-parameter', `set-terminal-parameter' use this data type.
24cdde13 2236
b350bdf2
CY
2237*** Function key sequences are now mapped using `local-function-key-map',
2238a new variable. This inherits from the global variable function-key-map,
2239which is not used directly any more.
92cd6a7c 2240
b350bdf2 2241*** New hooks:
da406961 2242
7082ceb2
CY
2243**** before-hack-local-variables-hook is called after setting new
2244variable file-local-variables-alist, and before actually applying the
2245file-local variables.
2246
b350bdf2
CY
2247**** `suspend-tty-functions' and `resume-tty-functions' are called
2248after a tty frame has been suspended or resumed, respectively. The
2249functions are called with the terminal id of the frame being
2250suspended/resumed as a parameter.
da406961 2251
b350bdf2
CY
2252**** The special hook `delete-terminal-functions' is called before
2253deleting a terminal.
82866ad5 2254
b350bdf2 2255*** New functions:
24cdde13 2256
490f1197 2257**** `delete-terminal'
9f44d41a 2258
b350bdf2 2259**** `suspend-tty'
ea2e3ef4 2260
b350bdf2 2261**** `resume-tty'.
8d371994 2262
b350bdf2 2263*** `initial-environment' holds the environment inherited from Emacs's parent.
8d371994 2264
b350bdf2 2265** Redisplay changes
16e82271 2266
b350bdf2
CY
2267*** For underlined characters, the distance between the underline and
2268the baseline is controlled by a new variable, `underline-minimum-offset'.
16e82271 2269
b350bdf2
CY
2270*** You can now pass the value of the `invisible' property to
2271invisible-p to check whether it would cause the text to be invisible.
540f3092
GM
2272This is convenient when checking invisibility of text with no buffer
2273position (e.g. in before/after-strings).
16e82271 2274
b350bdf2 2275*** `clear-image-cache' can be told to flush only images of a specific file.
16e82271 2276
0c8b58e9
CY
2277*** `vertical-motion' can now be given a goal column.
2278It now accepts a cons cell (COLS . LINES) in its first argument, which
2279says to stop, where possible, at a pixel x-position equal to COLS
2280times the default column width.
16e82271 2281
e589455f
MR
2282*** redisplay-end-trigger-functions, set-window-redisplay-end-trigger,
2283and window-redisplay-end-trigger are obsolete. Use `jit-lock-register'
2284instead.
16e82271 2285
605bfcb3
CY
2286*** The new variables `wrap-prefix' and `line-prefix' specify display
2287specs which are appended at display-time to every continuation line
2288and non-continuation line, respectively. In addition, Emacs
2289recognizes the `wrap-prefix' and `line-prefix' text or overlay
2290properties; these have the same effects as the variables of the same
2291name, but take precedence.
e589455f 2292
9ac64acd
CY
2293** The Lisp interpreter now treats non-breaking space as whitespace.
2294
b350bdf2 2295** Miscellaneous new functions
9f44d41a 2296
b350bdf2 2297*** `apply-partially' performs a "curried" application of a function.
abf13a8b 2298
b350bdf2
CY
2299*** `buffer-swap-text' swaps text between two buffers. This can be
2300useful for modes such as tar-mode, archive-mode, RMAIL.
967b2682 2301
6880f6db
CY
2302*** `combine-and-quote-strings' produces a single string from a list of strings
2303sticking a separator string in between each pair, and quoting those
2304strings that include the separator as their substring. Useful for
2305consing shell command lines from the individual arguments.
2306
2307*** `custom-note-var-changed' tells Custom to treat the change in a
2308certain variable as having been made within Custom.
b350bdf2
CY
2309
2310*** `face-all-attributes' returns an alist describing all the basic
2311attributes of a given face.
2312
6880f6db
CY
2313*** `format-seconds' converts a number of seconds into a readable
2314string of days, hours, etc.
b350bdf2
CY
2315
2316*** `image-refresh' refreshes all images associated with a given image
2317specification.
64639e26 2318
6880f6db
CY
2319*** `locate-user-emacs-file' helps packages to select the appropriate
2320place to save user-specific files. It defaults to `user-emacs-directory'
2321unless the file already exists at $HOME.
2322
6880f6db
CY
2323*** `read-color' reads a color name using the minibuffer.
2324
6880f6db
CY
2325*** `read-shell-command' does what its name says, with completion. It
2326uses the minibuffer-local-shell-command-map for that.
2327
6880f6db
CY
2328*** `split-string-and-unquote' splits a string into a list of substrings
2329on the boundaries of a given delimiter, and unquotes the substrings that
2330are quoted. Useful for taking apart shell commands.
2331
b350bdf2 2332*** The two new functions `looking-at-p' and `string-match-p' can do
45595a4f
RS
2333the same matching as `looking-at' and `string-match' without changing
2334the match data.
89835619 2335
81efacf9
CY
2336*** The two new functions `make-serial-process' and
2337`serial-process-configure' provide a Lisp interface to the new serial
2338port support (see Emacs changes, above).
2339
b350bdf2
CY
2340** Miscellaneous new variables
2341
28aaa255
CY
2342*** `auto-save-include-big-deletions', if non-nil, means auto-save is
2343not turned off automatically after a big deletion.
2344
91f68422
CY
2345*** `read-circle', if nil, disables the reading of recursive Lisp
2346structures using the #N= and #N# syntax.
2347
b350bdf2
CY
2348*** `this-command-keys-shift-translated' is non-nil if the key
2349sequence invoking the current command was found by shift-translation.
2350
2351*** `window-point-insertion-type' determines the insertion-type of the
2352marker used for window-point.
2353
2354*** bookmark provides `bookmark-make-record-function' so special major
2355modes like Info can teach bookmark.el how to save and restore the
2356relevant data.
2357
b350bdf2
CY
2358*** `fill-forward-paragraph-function' specifies which function the
2359filling code should use to find paragraph boundaries.
2360
9bae34bf 2361\f
0bfd685e 2362* New Packages for Lisp Programming in Emacs 23.1
efeb796b 2363
b350bdf2
CY
2364** The new package avl-tree.el deals with the AVL tree data structure.
2365
2366** The new package check-declare.el verifies the accuracy of
2367declare-function macros (see Lisp Changes, above).
d445b3f8 2368
20202f5e 2369** find-cmd.el can build `find' commands using lisp syntax.
6dfcbe31 2370
babc4609
JL
2371** The package misearch.el has been added. It allows Isearch to search
2372through multiple buffers. A variable `multi-isearch-next-buffer-function'
2373defines the function to call to get the next buffer to search in the series
b0d6136e 2374of multiple buffers. Top-level functions `multi-isearch-buffers',
babc4609
JL
2375`multi-isearch-buffers-regexp', `multi-isearch-files' and
2376`multi-isearch-files-regexp' accept a single argument that specifies
2377a list of buffers/files to search for a string/regexp.
9097e8af 2378
b350bdf2
CY
2379** The new major mode `special-mode' is intended as a parent for
2380major modes such as those that set the "'mode-class 'special" property.
d53a60a6 2381
05197f40 2382\f
a933dad1 2383----------------------------------------------------------------------
5b87ad55 2384This file is part of GNU Emacs.
a933dad1 2385
ab73e885 2386GNU Emacs is free software: you can redistribute it and/or modify
5b87ad55 2387it under the terms of the GNU General Public License as published by
ab73e885
GM
2388the Free Software Foundation, either version 3 of the License, or
2389(at your option) any later version.
5b87ad55
GM
2390
2391GNU Emacs is distributed in the hope that it will be useful,
2392but WITHOUT ANY WARRANTY; without even the implied warranty of
2393MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
2394GNU General Public License for more details.
a933dad1 2395
5b87ad55 2396You should have received a copy of the GNU General Public License
ab73e885 2397along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
a933dad1 2398
05197f40 2399\f
a933dad1
DL
2400Local variables:
2401mode: outline
2402paragraph-separate: "[ \f]*$"
2403end:
ab5796a9 2404
a533413c 2405arch-tag: e759449d-88b3-4de4-9900-3a6c3dfa23e2