Update to use new tutorial facility.
[bpt/emacs.git] / etc / NEWS
CommitLineData
1e7db2e9 1GNU Emacs NEWS -- history of user-visible changes. 2001-03-15
c494f663 2Copyright (C) 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
a933dad1
DL
3See the end for copying conditions.
4
5Please send Emacs bug reports to bug-gnu-emacs@gnu.org.
3787e12e 6For older news, see the file ONEWS
a933dad1 7
ad8d610b
KS
8Temporary note:
9 +++ indicates that the appropriate manual has already been updated.
10 --- means no change in the manuals is called for.
11When you add a new item, please add it without either +++ or ---
12so we will look at it
13
05197f40 14\f
76fb24bb
PJ
15* Installation Changes in Emacs 21.3
16
17** Emacs now supports new configure options `--program-prefix',
18`--program-suffix' and `--program-transform-name' that affect the names of
19installed programs.
20
cd7d2d9e
EZ
21---
22** Leim is now part of the Emacs distribution.
23You no longer need to download a separate tarball in order to build
24Emacs with Leim.
25
73791277
EZ
26---
27** Support for AIX 5.1 was added.
28
a17b3614 29---
1096bcc0
GM
30** Support for FreeBSD/Alpha has been added.
31
a17b3614
EZ
32---
33** Support for BSD/OS 5.0 was added.
34
76fb24bb 35\f
830047fd 36* Changes in Emacs 21.3
16927a56 37
8f9891ab
SM
38** Limited support for charset unification has been added.
39By default, Emacs now knows how to translate latin-N chars between their
40charset and some other latin-N charset or unicode. You can force a
41more complete unification by calling (unify-8859-on-decoding-mode 1).
42
5a597a71
SM
43** The scrollbar under Motif has a smoother drag-scrolling.
44On the other hand, the size of the thumb does not represent the actual
45amount of text shown any more (only a crude approximation of it).
46
172f1af1
EZ
47---
48** PO translation files are decoded according to their MIME headers
49when Emacs visits them.
50
ded0c207
EZ
51** The game `mpuz' is enhanced.
52
53`mpuz' now allows the 2nd factor not to have two identical digits. By
54default, all trivial operations involving whole lines are performed
55automatically. The game uses faces for better visual feedback.
56
3bdb7f80
KS
57** On X and MS Windows, the blinking cursor's "off" state is now shown
58as a hollow box or a thin bar.
59
16425473 60+++
9eb53288
EZ
61** Emacs now supports ICCCM Extended Segments in X selections.
62
63Some versions of X, notably XFree86, use Extended Segments to encode
64in X selections characters that belong to character sets which are not
65part of the list of standard charsets supported by the ICCCM spec.
66Examples of such non-standard character sets include ISO 8859-14, ISO
16425473
EZ
678859-15, KOI8-R, and BIG5. The new coding system
68`compound-text-with-extensions' supports these extensions, and is now
69used by default for encoding and decoding X selections. If you don't
70want this support, set `selection-coding-system' to `compound-text'.
9eb53288 71
63a4cd16
EZ
72+++
73** The parameters of automatic hscrolling can now be customized.
63a7fdcf
EZ
74The variable `hscroll-margin' determines how many columns away from
75the window edge point is allowed to get before automatic hscrolling
76will horizontally scroll the window. The default value is 5.
1a667242 77
63a7fdcf
EZ
78The variable `hscroll-step' determines how many columns automatic
79hscrolling will scroll the window when point gets too close to the
80window edge. If its value is zero, the default, Emacs scrolls the
81window so as to center point. If its value is an integer, it says how
82many columns to scroll. If the value is a floating-point number, it
83gives the fraction of the window's width to scroll the window.
84
85+++
86** The variable `automatic-hscrolling' was renamed to `auto-hscroll-mode'.
87The old name is still available as an alias.
1a667242 88
78d4f409 89** New display feature: focus follows mouse. If you set the variable
45e3679d
PJ
90mouse-autoselect-window to non-nil value, moving the mouse to a different
91Emacs window will select that window (minibuffer window can be selected
92only when it is active). The default is nil, so that this feature is not
93enabled.
3996d07a 94
c145bbb3
EZ
95** The new command `describe-text-at' pops up a buffer with description
96of text properties, overlays, and widgets at point, and lets you get
97more information about them, by clicking on mouse-sensitive areas or
98moving there and pressing RET.
99
b2bd7aff
RS
100** Emacs normally highlights mouse sensitive text whenever the mouse
101is over the text. By setting the new variable `mouse-highlight', you
102can optionally enable mouse highlighting only after you move the
103mouse, so that highlighting disappears when you press a key. You can
104also disable mouse highlighting.
90e87070 105
fd42af9d
SM
106** font-lock: in modes like C and Lisp where the fontification assumes that
107an open-paren in column 0 is always outside of any string or comment,
108font-lock now highlights any such open-paren-in-column-zero in bold-red
109if it is inside a string or a comment, to indicate that it can cause
110trouble with fontification and/or indentation.
111
236f1c76
EZ
112+++
113** There's a new face `minibuffer-prompt'.
114Emacs adds this face to the list of text properties stored in the
115variable `minibuffer-prompt-properties', which is used to display the
116prompt string.
117
9a770d8d 118+++
fd4f8b36
KS
119** The new face `mode-line-inactive' is used to display the mode line
120of non-selected windows. The `mode-line' face is now used to display
121the mode line of the currently selected window.
122
89f8199f
KS
123The new variable `mode-line-in-non-selected-windows' controls whether
124the `mode-line-inactive' face is used.
125
1f600b1b
PJ
126** A menu item "Show/Hide" was added to the top-level menu "Options".
127This menu allows you to turn various display features on and off (like
128tool bar and the menu bar itself). You can also move the vertical
06f5e6b4
PJ
129scroll bar to either side here or turn it off completely. There is also
130a menu-item to toggle displaying of current date and time, current line
131and column number in the mode-line.
1f600b1b 132
a9c6d330
PA
133** Speedbar has moved from the "Tools" top level menu to "Show/Hide".
134
7c961dc2
PJ
135** Emacs can now indicate in the mode-line the presence of new e-mails in
136directory in addition to file. See the documentation of the user option
137`display-time-mail-directory'.
2d4ef682 138
90e0f637
EZ
139+++
140** The new option `Info-scroll-prefer-subnodes' causes Info to behave
141like the stand-alone Info reader (from the GNU Texinfo package) as far
142as motion between nodes and their subnodes is concerned. If it is t
143(the default), Emacs behaves as before when you type SPC in a menu: it
144visits the subnode pointed to by the first menu entry. If this option
145is nil, SPC scrolls to the end of the current node, and only then goes
146to the first menu item, like the stand-alone reader does.
147
148This change was already in Emacs 21.1, but wasn't advertised in the
149NEWS.
150
a4fc6fc9
PJ
151---
152** LDAP support now defaults to ldapsearch from OpenLDAP version 2.
153
e58d8457 154+++
5e101746 155** You can now disable pc-selection-mode after enabling it.
e58d8457 156M-x pc-selection-mode behaves like a proper minor mode, and with no
5e101746
RS
157argument it toggles the mode.
158
159Turning off PC-Selection mode restores the global key bindings
160that were replaced by turning on the mode.
161
7cc8f35a
EZ
162** Changes in support of colors on character terminals
163
e0c124ce 164+++
7cc8f35a 165*** The new command-line option --color=MODE lets you specify a standard
e0c124ce
EZ
166mode for a tty color support. It is meant to be used on character
167terminals whose capabilities are not set correctly in the terminal
168database, or with terminal emulators which support colors, but don't
169set the TERM environment variable to a name of a color-capable
170terminal. "emacs --color" uses the same color commands as GNU `ls'
171when invoked with "ls --color", so if your terminal can support colors
172in "ls --color", it will support "emacs --color" as well. See the
173user manual for the possible values of the MODE parameter.
174
7cc8f35a
EZ
175---
176*** Emacs now supports several character terminals which provide more
177than 8 colors. For example, for `xterm', 16-color, 88-color, and
178256-color modes are supported. Emacs automatically notes at startup
179the extended number of colors, and defines the appropriate entries for
180all of these colors.
181
182---
183*** There's a new support for colors on `rxvt' terminal emulator.
184
6625fc7d
EZ
185+++
186** Emacs can now be invoked in full-screen mode on a windowed display.
187
188When Emacs is invoked on a window system, the new command-line options
189`--fullwidth', `--fullheight', and `--fullscreen' produce a frame
190whose width, height, or both width and height take up the entire
191screen size. (For now, this works only on GNU and Unix systems, and
192not with every window manager.)
193
59b59892
SM
194** Info-index finally offers completion.
195
0edda6b8
CW
196** shell-mode now supports programmable completion using `pcomplete'.
197
e4a9e6a8
KS
198** Controlling the left and right fringe widths.
199
200The left and right fringe widths can now be controlled by setting the
201`left-fringe' and `right-fringe' frame parameters to an integer value
ad8d610b
KS
202specifying the width in pixels. Setting the width to 0 effectively
203removes the corresponding fringe.
204
e4a9e6a8
KS
205The actual fringe widths may deviate from the specified widths, since
206the combined fringe widths must match an integral number of columns.
207The extra width is distributed evenly between the left and right fringe.
208For force a specific fringe width, specify the width as a negative
209integer (if both widths are negative, only the left fringe gets the
e94a3679 210specified width).
e4a9e6a8 211
ad8d610b
KS
212Setting the width to nil (the default), restores the default fringe
213width which is the minimum number of pixels necessary to display any
214of the currently defined fringe bitmaps. The width of the built-in
215fringe bitmaps is 8 pixels.
216
00b1ee61
RS
217** Changes in C-h bindings:
218
219C-h e displays the *Messages* buffer.
220
221C-h followed by a control character is used for displaying files
222 that do not change:
223
224C-h C-f displays the FAQ.
225C-h C-e displays the PROBLEMS file.
226
227The info-search bindings on C-h C-f, C-h C-k and C-h C-i
228have been moved to C-h F, C-h K and C-h S.
229
93607efd
KS
230C-h c, C-h k, C-h w, and C-h f now handle remapped interactive commands.
231
232- C-h c and C-h k report the actual command (after possible remapping)
233 run by the key sequence.
234
235- C-h w and C-h f on a command which has been remapped now report the
236 command it is remapped to, and the keys which can be used to run
237 that command.
238
239For example, if C-k is bound to kill-line, and kill-line is remapped
bf8dd4e3 240to new-kill-line, these commands now report:
93607efd
KS
241
242- C-h c and C-h k C-k reports:
243 C-k runs the command new-kill-line
244
245- C-h w and C-h f kill-line reports:
246 kill-line is remapped to new-kill-line which is on C-k, <deleteline>
247
248- C-h w and C-h f new-kill-line reports:
249 new-kill-line is on C-k
250
a207b33c
RS
251** C-w in incremental search now grabs either a character or a word,
252making the decision in a heuristic way. This new job is done by the
253command `isearch-yank-word-or-char'. To restore the old behavior,
254bind C-w to `isearch-yank-word' in `isearch-mode-map'.
255
4febb0e7
RS
256** In GUD mode when talking to GDB, C-x C-a C-j "jumps" the program
257counter to the specified source line (the one where point is).
258
ca64d378 259** GUD mode improvements for jdb:
a1e3dda0
RS
260
261*** Search for source files using jdb classpath and class
262 information. Fast startup since there is no need to scan all
263 source files up front. There is also no need to create and maintain
264 lists of source directories to scan. Look at `gud-jdb-use-classpath'
265 and `gud-jdb-classpath' customization variables documentation.
266
267*** Supports the standard breakpoint (gud-break, gud-clear)
268 set/clear operations from java source files under the classpath, stack
269 traversal (gud-up, gud-down), and run until current stack finish
270 (gud-finish).
271
272*** Supports new jdb (Java 1.2 and later) in addition to oldjdb
273 (Java 1.1 jdb).
274
275*** The previous method of searching for source files has been
276 preserved in case someone still wants/needs to use it.
277 Set gud-jdb-use-classpath to nil.
278
279 Added Customization Variables
280
281*** gud-jdb-command-name. What command line to use to invoke jdb.
282
283*** gud-jdb-use-classpath. Allows selection of java source file searching
284 method: set to t for new method, nil to scan gud-jdb-directories for
285 java sources (previous method).
286
287*** gud-jdb-directories. List of directories to scan and search for java
288 classes using the original gud-jdb method (if gud-jdb-use-classpath
289 is nil).
290
291 Minor Improvements
292
293*** Do not allow debugger output history variable to grow without bounds.
294
43a88bc1
SM
295** hide-ifdef-mode now uses overlays rather than selective-display
296to hide its text. This should be mostly transparent but slightly
297changes the behavior of motion commands line C-e and C-p.
298
8f3f2fe5
RS
299** In Dired's ! command (dired-do-shell-command), `*' and `?' now
300control substitution of the file names only when they are surrounded
301by whitespace. This means you can now use them as shell wildcards
302too. If you want to use just plain `*' as a wildcard, type `*""'; the
6ab3cbb5 303doublequotes make no difference in the shell, but they prevent
8f3f2fe5
RS
304special treatment in `dired-do-shell-command'.
305
111ed14e
SM
306** Unquoted `$' in file names do not signal an error any more when
307the corresponding environment variable does not exist.
308Instead, the `$ENVVAR' text is left as is, so that `$$' quoting
309is only rarely needed.
310
f67cc62e 311** jit-lock can now be delayed with `jit-lock-defer-time'.
8ea55f33
EZ
312
313If this variable is non-nil, its value should be the amount of Emacs
fbe51115 314idle time in seconds to wait before starting fontification. For
8ea55f33
EZ
315example, if you set `jit-lock-defer-time' to 0.25, fontification will
316only happen after 0.25s of idle time.
f67cc62e 317
cad113ae
KG
318+++
319** Marking commands extend the region when invoked multiple times. If
320you hit M-C-SPC (mark-sexp), M-@ (mark-word), M-h (mark-paragraph), or
321C-M-h (mark-defun) repeatedly, the marked region will now be extended
322each time, so you can mark the next two sexps with M-C-SPC M-C-SPC,
323for example. This feature also works for mark-end-of-sentence, if you
324bind that to a key.
6710ea06 325
a474d59c
RS
326** In the *Occur* buffer, `o' switches to it in another window, and
327C-o displays the current line's occurrence in another window without
328switching to it.
7c425d82
RS
329
330** When you specify a frame size with --geometry, the size applies to
331all frames you create. A position specified with --geometry only
332affects the initial frame.
333
efe459e4 334+++
fbe51115
PJ
335** M-h (mark-paragraph) now accepts a prefix arg.
336With positive arg, M-h marks the current and the following paragraphs;
564b1f76
EZ
337if the arg is negative, it marks the current and the preceding
338paragraphs.
efe459e4 339
3a7a0095
RS
340** In Dired, the w command now copies the current line's file name
341into the kill ring.
342
b04dcf45
RS
343** The variables dired-free-space-program and dired-free-space-args
344have been renamed to directory-free-space-program and
345directory-free-space-args, and they now apply whenever Emacs puts a
346directory listing into a buffer.
347
6710ea06
SM
348** mouse-wheels can now scroll a specific fraction of the window
349(rather than a fixed number of lines) and the scrolling is `progressive'.
350
16927a56
SM
351** The keyboard-coding-system is now automatically set based on
352your current locale settings. If it turns out that your terminal
6710ea06
SM
353does not support the encoding implied by your locale (for example,
354it inserts non-ASCII chars if you hit M-i), you will need to add
16927a56
SM
355
356 (set-keyboard-coding-system nil)
357
358to your .emacs to revert to the old behavior.
359
43884961
WL
360** A new coding system `euc-tw' has been added for traditional Chinese
361in CNS encoding; it accepts both Big 5 and CNS as input; on saving,
362Big 5 is then converted to CNS.
363
3aa2f38a
RS
364+++
365** Emacs now reads the standard abbrevs file ~/.abbrev_defs
273a3930
EZ
366automatically at startup, if it exists. When Emacs offers to save
367modified buffers, it saves the abbrevs too if they have changed. It
368can do this either silently or asking for confirmation first,
2bc8d7c8 369according to the value of `save-abbrevs'.
3aa2f38a 370
830047fd
RS
371** Display of hollow cursors now obeys the buffer-local value (if any)
372of `cursor-in-non-selected-windows' in the buffer that the cursor
373appears in.
6c0b2643 374
85b073d6
EZ
375** The default values of `tooltip-delay' and `tooltip-hide-delay'
376were changed.
377
cd963ca0
GM
378** On terminals whose erase-char is ^H (Backspace), Emacs
379now uses normal-erase-is-backspace-mode.
380
3f270c8a
AS
381** VC Changes
382
383*** There is a new user option `vc-cvs-global-switches' that allows
384you to specify switches that are passed to any CVS command invoked
385by VC. These switches are used as "global options" for CVS, which
386means they are inserted before the command name. For example, this
387allows you to specify a compression level using the "-z#" option for
388CVS.
389
eb766f96
MK
390** EDiff changes.
391
16757dcf 392+++
eb766f96
MK
393*** When comparing directories.
394Typing D brings up a buffer that lists the differences between the contents of
395directories. Now it is possible to use this buffer to copy the missing files
396from one directory to another.
397
16757dcf 398+++
eb766f96
MK
399*** When comparing files or buffers.
400Typing the = key now offers to perform the word-by-word comparison of the
401currently highlighted regions in an inferior Ediff session. If you answer 'n'
402then it reverts to the old behavior and asks the user to select regions for
403comparison.
404
e94a3679
FP
405** Etags changes.
406
407*** In Prolog, etags creates tags for rules in addition to predicates.
408
81d66c62
FP
409*** In Perl, packages are tags.
410Subroutine tags are named from their package. You can jump to sub tags
411as you did before, by the sub name, or additionally by looking for
412package::sub.
413
414*** New language PHP: tags are functions, classes and defines.
415If the --members option is specified to etags, tags are vars also.
416
417*** Honour #line directives.
418When Etags parses an input file that contains C preprocessor's #line
419directives, it creates tags using the file name and line number
420specified in those directives. This is useful when dealing with code
421created from Cweb source files. When Etags tags the generated file, it
422writes tags pointing to the source file.
bf8dd4e3 423
c30567b7 424+++
406f228c
PJ
425** The command line option --no-windows has been changed to
426--no-window-system. The old one still works, but is deprecated.
427
3a426197 428** `buffer-menu' and `list-buffers' now list buffers whose names begin
c30567b7
EZ
429with a space, if they visit files.
430
3a426197
RS
431** You can now customize fill-nobreak-predicate to control where
432filling can break lines. We provide two sample predicates,
433fill-single-word-nobreak-p and fill-french-nobreak-p.
8e8223e2 434
1d57ac82
SS
435** New user option `add-log-always-start-new-record'.
436When this option is enabled, M-x add-change-log-entry will always
437start a new record regardless of when the last record is.
438
54c0e682
SS
439** New user option `sgml-xml'.
440When this option is enabled, SGML tags are inserted in XML style,
79014980 441i.e., there is always a closing tag.
54c0e682
SS
442When not customized, it becomes buffer-local when it can be inferred
443from the file name or buffer contents.
79014980 444
aae126ea
KS
445** New user option `isearch-resume-enabled'.
446This option can be disabled, to avoid the normal behaviour of isearch
447which puts calls to `isearch-resume' in the command history.
448
3ddf952f
GM
449** When the *scratch* buffer is recreated, its mode is set from
450initial-major-mode, which normally is lisp-interaction-mode,
79014980 451instead of using default-major-mode.
3ddf952f 452
d731e6b8
GM
453** Byte compiler warning and error messages have been brought more
454in line with the output of other GNU tools.
455
8e8223e2 456** Lisp-mode now uses font-lock-doc-face for the docstrings.
30de4b24
SM
457
458** perl-mode has a new variable `perl-indent-continued-arguments'.
459
026f408d
SM
460** `special-display-buffer-names' and `special-display-regexps' now
461understand two new boolean pseudo-frame-parameters `same-frame' and
462`same-window'.
463
6c0b2643
GM
464** When pure storage overflows while dumping, Emacs now prints how
465much pure storage it will approximately need.
466
467** M-x setenv now expands environment variables of the form `$foo' and
468`${foo}' in the specified new value of the environment variable. To
469include a `$' in the value, use `$$'.
470
30743573 471+++
58a11372
EZ
472** File-name completion can now ignore directories.
473If an element of the list in `completion-ignored-extensions' ends in a
474slash `/', it indicates a subdirectory that should be ignored when
475completing file names. Elements of `completion-ignored-extensions'
476which do not end in a slash are never considered when a completion
477candidate is a directory.
478
6c0b2643
GM
479** New user option `inhibit-startup-buffer-menu'.
480When loading many files, for instance with `emacs *', Emacs normally
481displays a buffer menu. This option turns the buffer menu off.
482
483** Rmail now displays 5-digit message ids in its summary buffer.
484
5b78d385
GM
485** When using M-x revert-buffer in a compilation buffer to rerun a
486compilation, it is now made sure that the compilation buffer is reused
487in case it has been renamed.
488
d3d268d5
JR
489** On MS Windows, the "system caret" now follows the cursor.
490This enables Emacs to work better with programs that need to track
491the cursor, for example screen magnifiers and text to speech programs.
492
f58b2333
JR
493** Tooltips now work on MS Windows.
494See the Emacs 21.1 NEWS entry for tooltips for details.
495
a3dde781 496** Some images are now supported on Windows.
9e5aa8de 497PBM and XBM images are supported, other formats which require external
a3dde781
JR
498libraries may be supported in future.
499
01a7f683
JR
500** Pointing devices with more than 3 buttons are now supported on MS Windows.
501The new variable `w32-pass-extra-mouse-buttons-to-system' controls
502whether Emacs should handle the extra buttons itself (the default), or
503pass them to Windows to be handled with system-wide functions.
504
98659da6
KG
505** Under X11, it is possible to swap Alt and Meta (and Super and Hyper).
506The new variables `x-alt-keysym', `x-hyper-keysym', `x-meta-keysym',
507and `x-super-keysym' can be used to choose which keysyms Emacs should
508use for the modifiers. For example, the following two lines swap
509Meta and Alt:
510 (setq x-alt-keysym 'meta)
511 (setq x-meta-keysym 'alt)
512
8f8da2d0
EZ
513---
514** A French translation of the `Emacs Survival Guide' is available.
515
516---
517** A French translation of the Emacs Tutorial is available.
518
d0efd1c1 519---
1bed7c35 520** Indentation of simple and extended loop forms has been added to the
d0efd1c1
GM
521cl-indent package. The new user options
522`lisp-loop-keyword-indentation', `lisp-loop-forms-indentation', and
523`lisp-simple-loop-indentation' can be used to customize the
524indentation of keywords and forms in loop forms.
525
8460b689
GM
526** Indentation of backquoted forms has been made customizable in the
527cl-indent package. See the new user option `lisp-backquote-indentation'.
528
3c0fd84c
GM
529** New modes and packages
530
66f520db
EZ
531+++
532*** Calc is now part of the Emacs distribution.
533
534Calc is an advanced desk calculator and mathematical tool written in
535Emacs Lisp. Its documentation is in a separate manual; within Emacs,
52901be1
EZ
536type "C-h i m calc RET" to read that manual. A reference card is
537available in `etc/calccard.tex' and `etc/calccard.ps'.
66f520db 538
10088409
EZ
539+++
540*** The Emacs Lisp Reference Manual is now part of the distribution.
541
542The ELisp reference manual in Info format is built as part of the
543Emacs build procedure and installed together with the Emacs User
5db6e80e
EZ
544Manual. A menu item was added to the menu bar that makes it easy
545accessible (Help->More Manuals->Emacs Lisp Reference).
10088409 546
4bca4aa8
EZ
547*** The Introduction to Programming in Emacs Lisp manual is now part of
548the distribution.
549
550This manual is now part of the standard distribution and is installed,
5db6e80e
EZ
551together with the Emacs User Manual, into the Info directory. A menu
552item was added to the menu bar that makes it easy accessible
553(Help->More Manuals->Introduction to Emacs Lisp).
4bca4aa8 554
3c0fd84c
GM
555*** The ruler-mode.el library provides a minor mode for displaying an
556"active" ruler in the header line. You can use the mouse to visually
557change the `fill-column', `window-margins' and `tab-stop-list'
558settings.
559
8a1f8073
SM
560*** The reveal.el package provides the minor modes `reveal-mode' and
561`global-reveal-mode' which will make text visible on the fly as you
562move your cursor into hidden region of the buffer.
563It should work with any package that uses overlays to hide parts
564of a buffer, such as outline-minor-mode, hs-minor-mode, hide-ifdef-mode, ...
565
adb6f9dc
GM
566*** master-mode.el implements a minor mode for scrolling a slave
567buffer without leaving your current buffer, the master buffer.
568
569It can be used by sql.el, for example: the SQL buffer is the master
570and its SQLi buffer is the slave. This allows you to scroll the SQLi
571buffer containing the output from the SQL buffer containing the
572commands.
573
574This is how to use sql.el and master.el together: the variable
575sql-buffer contains the slave buffer. It is a local variable in the
576SQL buffer.
577
578(add-hook 'sql-mode-hook
579 (function (lambda ()
580 (master-mode t)
581 (master-set-slave sql-buffer))))
582(add-hook 'sql-set-sqli-hook
583 (function (lambda ()
584 (master-set-slave sql-buffer))))
585
6c0b2643 586\f
830047fd
RS
587* Lisp Changes in Emacs 21.3
588
ee9e0c25
GM
589** The `defmacro' form may contain declarations specifying how to
590indent the macro in Lisp mode and how to debug it with Edebug. The
591syntax of defmacro has been extended to
592
593 (defmacro NAME LAMBDA-LIST [DOC-STRING] [DECLARATION ...] ...)
594
595DECLARATION is a list `(declare DECLARATION-SPECIFIER ...)'. The
596declaration specifiers supported are:
597
598(indent INDENT)
599 Set NAME's `lisp-indent-function' property to INDENT.
600
601(edebug DEBUG)
602 Set NAME's `edebug-form-spec' property to DEBUG. (This is
603 equivalent to writing a `def-edebug-spec' for the macro.
604
93607efd
KS
605** Interactive commands can be remapped through keymaps.
606
607This is an alternative to using defadvice or substitute-key-definition
608to modify the behaviour of a key binding using the normal keymap
609binding and lookup functionality.
610
611When a key sequence is bound to a command, and that command is
612remapped to another command, that command is run instead of the
613original command.
614
615Example:
616Suppose that minor mode my-mode has defined the commands
617my-kill-line and my-kill-word, and it wants C-k (and any other key
618bound to kill-line) to run the command my-kill-line instead of
619kill-line, and likewise it wants to run my-kill-word instead of
620kill-word.
621
622Instead of rebinding C-k and the other keys in the minor mode map,
623command remapping allows you to directly map kill-line into
624my-kill-line and kill-word into my-kill-word through the minor mode
625map using define-key:
626
a8959ac2
KS
627 (define-key my-mode-map [remap kill-line] 'my-kill-line)
628 (define-key my-mode-map [remap kill-word] 'my-kill-word)
93607efd
KS
629
630Now, when my-mode is enabled, and the user enters C-k or M-d,
631the commands my-kill-line and my-kill-word are run.
632
633Notice that only one level of remapping is supported. In the above
634example, this means that if my-kill-line is remapped to other-kill,
635then C-k still runs my-kill-line.
636
637The following changes have been made to provide command remapping:
638
a8959ac2
KS
639- Command remappings are defined using `define-key' with a prefix-key
640 `remap', i.e. `(define-key MAP [remap CMD] DEF)' remaps command CMD
641 to definition DEF in keymap MAP. The definition is not limited to
642 another command; it can be anything accepted for a normal binding.
93607efd 643
a8959ac2
KS
644- The new function `remap-command' returns the binding for a remapped
645 command in the current keymaps, or nil if it isn't remapped.
93607efd
KS
646
647- key-binding now remaps interactive commands unless the optional
a8959ac2 648 third argument NO-REMAP is non-nil.
93607efd
KS
649
650- where-is-internal now returns nil for a remapped command (e.g.
651 kill-line if my-mode is enabled), and the actual key binding for
652 the command it is remapped to (e.g. C-k for my-kill-line).
653 It also has a new optional fifth argument, NO-REMAP, which inhibits
654 remapping if non-nil (e.g. it returns C-k for kill-line and
655 <kill-line> for my-kill-line).
656
657- The new variable `this-original-command' contains the original
658 command before remapping. It is equal to `this-command' when the
659 command was not remapped.
660
108eaabb
RS
661** Atomic change groups.
662
663To perform some changes in the current buffer "atomically" so that
664they either all succeed or are all undone, use `atomic-change-group'
665around the code that makes changes. For instance:
666
667 (atomic-change-group
668 (insert foo)
669 (delete-region x y))
670
671If an error (or other nonlocal exit) occurs inside the body of
672`atomic-change-group', it unmakes all the changes in that buffer that
673were during the execution of the body. The change group has no effect
674on any other buffers--any such changes remain.
675
676If you need something more sophisticated, you can directly call the
677lower-level functions that `atomic-change-group' uses. Here is how.
678
679To set up a change group for one buffer, call `prepare-change-group'.
680Specify the buffer as argument; it defaults to the current buffer.
681This function returns a "handle" for the change group. You must save
682the handle to activate the change group and then finish it.
683
684Before you change the buffer again, you must activate the change
685group. Pass the handle to `activate-change-group' afterward to
686do this.
687
688After you make the changes, you must finish the change group. You can
689either accept the changes or cancel them all. Call
690`accept-change-group' to accept the changes in the group as final;
691call `cancel-change-group' to undo them all.
692
693You should use `unwind-protect' to make sure the group is always
694finished. The call to `activate-change-group' should be inside the
695`unwind-protect', in case the user types C-g just after it runs.
696(This is one reason why `prepare-change-group' and
697`activate-change-group' are separate functions.) Once you finish the
698group, don't use the handle again--don't try to finish the same group
699twice.
700
701To make a multibuffer change group, call `prepare-change-group' once
702for each buffer you want to cover, then use `nconc' to combine the
703returned values, like this:
704
705 (nconc (prepare-change-group buffer-1)
706 (prepare-change-group buffer-2))
707
708You can then activate the multibuffer change group with a single call
709to `activate-change-group', and finish it with a single call to
710`accept-change-group' or `cancel-change-group'.
711
712Nested use of several change groups for the same buffer works as you
713would expect. Non-nested use of change groups for the same buffer
714will lead to undesirable results, so don't let it happen; the first
715change group you start for any given buffer should be the last one
716finished.
717
fd13a3cc 718** Enhanced networking support.
1e892206 719
fd13a3cc
KS
720*** There is a new `make-network-process' function which supports
721opening of stream and datagram connections to a server, as well as
722create a stream or datagram server inside emacs.
1e892206 723
fd13a3cc 724- A server is started using :server t arg.
60a501d7 725- Datagram connection is selected using :type 'datagram arg.
fd13a3cc
KS
726- A server can open on a random port using :service t arg.
727- Local sockets are supported using :family 'local arg.
728- Non-blocking connect is supported using :nowait t arg.
1e892206 729
60a501d7
KS
730To test for the availability of a given feature, use featurep like this:
731 (featurep 'make-network-process '(:type datagram))
732
fd13a3cc
KS
733*** Original open-network-stream is now emulated using make-network-process.
734
735*** New function open-network-stream-nowait.
736
737This function initiates a non-blocking connect and returns immediately
738before the connection is established. The filter and sentinel
739functions can be specified as arguments to open-network-stream-nowait.
740When the non-blocking connect completes, the sentinel is called with
741the status matching "open" or "failed".
742
743*** New function open-network-stream-server.
4f4fada2 744MORE INFO NEEDED HERE.
fd13a3cc
KS
745
746*** New functions process-datagram-address and set-process-datagram-address.
4f4fada2 747MORE INFO NEEDED HERE.
fd13a3cc
KS
748
749*** By default, the function process-contact still returns (HOST SERVICE)
750for a network process. Using the new optional KEY arg, the complete list
751of network process properties or a specific property can be selected.
752
753Using :local and :remote as the KEY, the address of the local or
754remote end-point is returned. An Inet address is represented as a 5
755element vector, where the first 4 elements contain the IP address and
756the fifth is the port number.
757
758*** Network processes can now be stopped and restarted with
759`stop-process' and `continue-process'. For a server process, no
760connections are accepted in the stopped state. For a client process,
761no input is received in the stopped state.
762
763*** Function list-processes now has an optional argument; if non-nil,
764only the processes whose query-on-exit flag is set are listed.
765
766*** New set-process-query-on-exit-flag and process-query-on-exit-flag
767functions. The existing process-kill-without-query function is still
768supported, but new code should use the new functions.
1e892206 769
9ade4a7d
RS
770** New function substring-no-properties.
771
3bdb7f80
KS
772** New function minibuffer-selected-window.
773
f5798fbd
RS
774+++
775*** The meanings of scroll-up-aggressively and scroll-down-aggressively
776have been interchanged, so that the former now controls scrolling up,
777and the latter now controls scrolling down.
778
d33c4505
RS
779+++
780** New function window-body-height.
781
782This is like window-height but does not count the mode line
783or the header line.
784
9356fe5a
RS
785** New functions `lax-plist-get' and `lax-plist-put'.
786
787These functions are like `plist-get' and `plist-put' except that they
788compare the property name using `equal' rather than `eq'.
789
4f4fada2
RS
790** New function `tool-bar-local-item-from-menu'
791
792The `tool-bar-add-item-from-menu' most not be used (as previously
793recommended) for making entries in the tool bar for local keymaps.
794Instead, use the function `tool-bar-local-item-from-menu', which lets
795you specify the map to use as an argument.
796
c4f59bcf
EZ
797+++
798** The function `atan' now accepts an optional second argument.
799
800When called with 2 arguments, as in `(atan Y X)', `atan' returns the
801angle in radians between the vector [X, Y] and the X axis. (This is
802equivalent to the standard C library function `atan2'.)
803
75e20bec
RS
804+++
805** You can now make a window as short as one line.
806
807A window that is just one line tall does not display either a mode
808line or a header line, even if the variables `mode-line-format' and
809`header-line-format' call for them. A window that is two lines tall
810cannot display both a mode line and a header line at once; if the
811variables call for both, only the mode line actually appears.
812
e0c124ce
EZ
813+++
814** The new frame parameter `tty-color-mode' specifies the mode to use
815for color support on character terminal frames. Its value can be a
816number of colors to support, or a symbol. See the Emacs Lisp
817Reference manual for more detailed documentation.
818
aaddfb29
RS
819** Already true in Emacs 21.1, but not emphasized clearly enough:
820
821Multibyte buffers can now faithfully record all 256 character codes
822from 0 to 255. As a result, most of the past reasons to use unibyte
823buffers no longer exist. We only know of three reasons to use them
824now:
825
8261. If you prefer to use unibyte text all of the time.
827
8282. For reading files into temporary buffers, when you want to avoid
829the time it takes to convert the format.
830
8313. For binary files where format conversion would be pointless and
832wasteful.
833
edde72f6
RS
834** If text has a `keymap' property, that keymap takes precedence
835over minor mode keymaps.
836
0065bb74
RS
837** A hex escape in a string forces the string to be multibyte.
838An octal escape makes it unibyte.
839
4e02881b
RS
840** The position after an invisible, intangible character
841is considered an unacceptable value for point;
842intangibility processing effectively treats the following character
843as part of the intangible region even if it is not itself intangible.
844
845Thus, point can go before an invisible, intangible region, but not
846after it. This prevents C-f and C-b from appearing to stand still on
847the screen.
848
ef8aee62 849+++
1b8c66fe
RS
850** define-abbrev now accepts an optional argument SYSTEM-FLAG. If
851non-nil, this marks the abbrev as a "system" abbrev, which means that
852it won't be stored in the user's abbrevs file if he saves the abbrevs.
853Major modes that predefine some abbrevs should always specify this
854flag.
855
c95eaa61
PJ
856** Support for Mocklisp has been removed.
857
858** The function insert-string is now obsolete.
859
111ed14e
SM
860** The precedence of file-name-handlers has been changed.
861Instead of blindly choosing the first handler that matches,
862find-file-name-handler now gives precedence to a file-name handler
863that matches near the end of the file name. More specifically, the
864handler whose (match-beginning 0) is the largest is chosen.
865In case of ties, the old "first matched" rule applies.
866
cfaa4a1b 867** Dense keymaps now handle inheritance correctly.
59b59892
SM
868Previously a dense keymap would hide all of the simple-char key
869bindings of the parent keymap.
cfaa4a1b 870
f67cc62e
SM
871** jit-lock obeys a new text-property `jit-lock-defer-multiline'.
872If a piece of text with that property gets contextually refontified
873(see jit-lock-defer-contextually), then all of that text will
874be refontified. This is useful when the syntax of a textual element
875depends on text several lines further down (and when font-lock-multiline
876is not appropriate to solve that problem). For example in Perl:
877
878 s{
879 foo
880 }{
881 bar
882 }e
883
884Adding/removing the last `e' changes the `bar' from being a piece of
885text to being a piece of code, so you'd put a jit-lock-defer-multiline
886property over the second half of the command to force (deferred)
887refontification of `bar' whenever the `e' is added/removed.
888
6710ea06 889** describe-vector now takes a second argument `describer' which is
fbe51115 890called to print the entries' values. It defaults to `princ'.
6710ea06 891
16927a56
SM
892** defcustom and other custom declarations now use a default group
893(the last group defined in the same file) when no :group was given.
894
895** emacsserver now runs pre-command-hook and post-command-hook when
896it receives a request from emacsclient.
897
8727d588
RS
898** The variable `recursive-load-depth-limit' has been deleted.
899Emacs now signals an error if the same file is loaded with more
900than 3 levels of nesting.
901
902** The default values of paragraph-start and indent-line-function have
903been changed to reflect those used in Text mode rather than those used
904in Indented-Text mode.
16927a56 905
1c1d3d69
RS
906** If a major mode function has a non-nil `no-clone-indirect'
907property, `clone-indirect-buffer' signals an error if you use
908it in that buffer.
909
910** If you set `query-replace-skip-read-only' non-nil,
911`query-replace' and related functions simply ignore
912a match if part of it has a read-only property.
913
ae4000f1 914** In `replace-match', the replacement text no longer inherits
1ff74324 915properties from surrounding text.
1c1d3d69 916
830047fd
RS
917** New function `buffer-local-value'.
918
919- Function: buffer-local-value variable buffer
920
921This function returns the buffer-local binding of VARIABLE (a symbol)
922in buffer BUFFER. If VARIABLE does not have a buffer-local binding in
923buffer BUFFER, it returns the default value of VARIABLE instead.
6c0b2643 924
1c1d3d69
RS
925** The default value of `paragraph-start' and `indent-line-function' has
926been changed to reflect the one used in Text mode rather than the one
927used in Indented Text mode.
8e8223e2
SM
928
929** New function `text-clone-create'. Text clones are chunks of text
930that are kept identical by transparently propagating changes from one
931clone to the other.
932
933** font-lock can manage arbitrary text-properties beside `face'.
934*** the FACENAME returned in font-lock-keywords can be a list
d390f4aa 935of the form (face FACE PROP1 VAL1 PROP2 VAL2 ...) so you can set
8e8223e2
SM
936other properties than `face'.
937*** font-lock-extra-managed-props can be set to make sure those extra
938properties are automatically cleaned up by font-lock.
939
0df7a0b6
EZ
940** The special treatment of faces whose names are of the form `fg:COLOR'
941or `bg:COLOR' has been removed. Lisp programs should use the
942`defface' facility for defining faces with specific colors.
943
8e8223e2
SM
944** The new function `run-mode-hooks' and the new macro `delay-mode-hooks'
945are used by define-derived-mode to make sure the mode hook for the
946parent mode is run at the end of the child mode.
947
948** `provide' and `featurep' now accept an optional second argument
949to test/provide subfeatures. Also `provide' now checks `after-load-alist'
950and run any code associated with the provided feature.
951
5b6a51aa
GM
952** The variable `compilation-parse-errors-filename-function' can
953be used to transform filenames found in compilation output.
954
202082d3
EZ
955+++
956** Functions `file-name-sans-extension' and `file-name-extension' now
957ignore the leading dots in file names, so that file names such as
958`.emacs' are treated as extensionless.
959
63ca0a6e
GM
960** Functions `user-uid' and `user-real-uid' now return floats if the
961user UID doesn't fit in a Lisp integer. Function `user-full-name'
962accepts a float as UID parameter.
963
30de4b24
SM
964** `define-key-after' now accepts keys longer than 1.
965
5b6a51aa 966** `define-derived-mode' now accepts nil as the parent.
30de4b24
SM
967
968** The local variable `no-byte-compile' in elisp files is now obeyed.
969
026f408d
SM
970** New functions `keymap-prompt' and `current-active-maps'.
971
972** New function `describe-buffer-bindings'.
973
974** New vars `exec-suffixes' and `load-suffixes' used when
975searching for an executable resp. an elisp file.
976
6c0b2643
GM
977** Variable aliases have been implemented
978
979- Macro: defvaralias ALIAS-VAR BASE-VAR
980
981This defines the symbol ALIAS-VAR as a variable alias for symbol
982BASE-VAR. This means that retrieving the value of ALIAS-VAR returns
983the value of BASE-VAR, and changing the value of ALIAS-VAR changes the
984value of BASE-VAR.
985
986- Function: indirect-variable VARIABLE
987
988This function returns the variable at the end of the chain of aliases
989of VARIABLE. If VARIABLE is not a symbol, or if VARIABLE is not
990defined as an alias, the function returns VARIABLE.
991
992It might be noteworthy that variables aliases work for all kinds of
993variables, including buffer-local and frame-local variables.
994
995** Functions from `post-gc-hook' are run at the end of garbage
996collection. The hook is run with GC inhibited, so use it with care.
997
ace64e0a
GM
998** If the second argument to `copy-file' is the name of a directory,
999the file is copied to that directory instead of signaling an error.
1000
123ac55e
GM
1001** The variables most-positive-fixnum and most-negative-fixnum
1002have been moved from the CL package to the core.
1003
0b559506
JR
1004** On MS Windows, locale-coding-system is used to interact with the OS.
1005The Windows specific variable w32-system-coding-system, which was
1006formerly used for that purpose is now an alias for locale-coding-system.
1007
6b3daede
GM
1008** Functions y-or-n-p, read-char, read-keysequence and alike that
1009display a prompt but don't use the minibuffer now display the prompt
1010using the text properties (esp. the face) of the prompt string.
1011
30de4b24
SM
1012** New packages:
1013
1014*** The new package syntax.el provides an efficient way to find the
1015current syntactic context (as returned by parse-partial-sexp).
1016
e95768c5 1017*** The TCL package tcl-mode.el was replaced by tcl.el.
c494f663
CW
1018This was actually done in Emacs-21.1, and was not documented.
1019
1020*** The new package Ibuffer provides a powerful, completely
1021customizable replacement for buff-menu.el.
e94a3679 1022
6c0b2643 1023\f
251584f3
DL
1024* Installation Changes in Emacs 21.1
1025
889be0a1
DL
1026See the INSTALL file for information on installing extra libraries and
1027fonts to take advantage of the new graphical features and extra
1028charsets in this release.
1029
f4988be7
GM
1030** Support for GNU/Linux on IA64 machines has been added.
1031
424d8b44
DL
1032** Support for LynxOS has been added.
1033
1fa28578 1034** There are new configure options associated with the support for
163ea954
RS
1035images and toolkit scrollbars. Use the --help option in `configure'
1036to list them.
6344985d 1037
5ed8d5af 1038** You can build a 64-bit Emacs for SPARC/Solaris systems which
60dd7e0e 1039support 64-bit executables and also on Irix 6.5. This increases the
8628686a
DL
1040maximum buffer size. See etc/MACHINES for instructions. Changes to
1041build on other 64-bit systems should be straightforward modulo any
1042necessary changes to unexec.
f4988be7 1043
efeb796b
EZ
1044** There is a new configure option `--disable-largefile' to omit
1045Unix-98-style support for large files if that is available.
1046
1047** There is a new configure option `--without-xim' that instructs
1048Emacs to not use X Input Methods (XIM), if these are available.
1049
1050** `movemail' defaults to supporting POP. You can turn this off using
1051the --without-pop configure option, should that be necessary.
d9c9b920 1052
e90813b8 1053** This version can be built for the Macintosh, but does not implement
a7c13351 1054all of the new display features described below. The port currently
d69aa2e3
EZ
1055lacks unexec, asynchronous processes, and networking support. See the
1056"Emacs and the Mac OS" appendix in the Emacs manual, for the
1057description of aspects specific to the Mac.
d9c9b920 1058
efeb796b
EZ
1059** Note that the MS-Windows port does not yet implement various of the
1060new display features described below.
1061
05197f40 1062\f
1fa28578
GM
1063* Changes in Emacs 21.1
1064
1e7db2e9
GM
1065** Emacs has a new redisplay engine.
1066
1067The new redisplay handles characters of variable width and height.
1068Italic text can be used without redisplay problems. Fonts containing
1069oversized characters, i.e. characters larger than the logical height
1070of a font can be used. Images of various formats can be displayed in
1071the text.
1072
1073** Emacs has a new face implementation.
1074
1075The new faces no longer fundamentally use X font names to specify the
1076font. Instead, each face has several independent attributes--family,
1077height, width, weight and slant--that it may or may not specify.
1078These attributes can be merged from various faces, and then together
1079specify a font.
1080
1081Faces are supported on terminals that can display color or fonts.
1082These terminal capabilities are auto-detected. Details can be found
1083under Lisp changes, below.
1084
1085** Emacs can display faces on TTY frames.
1086
1087Emacs automatically detects terminals that are able to display colors.
1088Faces with a weight greater than normal are displayed extra-bright, if
1089the terminal supports it. Faces with a weight less than normal and
1090italic faces are displayed dimmed, if the terminal supports it.
1091Underlined faces are displayed underlined if possible. Other face
1092attributes such as `overline', `strike-through', and `box' are ignored
1093on terminals.
1094
1095The command-line options `-fg COLOR', `-bg COLOR', and `-rv' are now
1096supported on character terminals.
1097
efeb796b
EZ
1098Emacs automatically remaps all X-style color specifications to one of
1099the colors supported by the terminal. This means you could have the
1100same color customizations that work both on a windowed display and on
1101a TTY or when Emacs is invoked with the -nw option.
1102
1e7db2e9
GM
1103** New default font is Courier 12pt under X.
1104
efeb796b
EZ
1105** Sound support
1106
1107Emacs supports playing sound files on GNU/Linux and FreeBSD (Voxware
1108driver and native BSD driver, a.k.a. Luigi's driver). Currently
1109supported file formats are RIFF-WAVE (*.wav) and Sun Audio (*.au).
c8682017
EZ
1110You must configure Emacs with the option `--with-sound=yes' to enable
1111sound support.
efeb796b 1112
1e7db2e9
GM
1113** Emacs now resizes mini-windows if appropriate.
1114
1115If a message is longer than one line, or minibuffer contents are
1116longer than one line, Emacs can resize the minibuffer window unless it
1117is on a frame of its own. You can control resizing and the maximum
1118minibuffer window size by setting the following variables:
1119
1120- User option: max-mini-window-height
1121
1122Maximum height for resizing mini-windows. If a float, it specifies a
1123fraction of the mini-window frame's height. If an integer, it
1124specifies a number of lines.
1125
1126Default is 0.25.
1127
1128- User option: resize-mini-windows
1129
1130How to resize mini-windows. If nil, don't resize. If t, always
1131resize to fit the size of the text. If `grow-only', let mini-windows
1132grow only, until they become empty, at which point they are shrunk
1133again.
1134
1135Default is `grow-only'.
1136
1137** LessTif support.
1138
1139Emacs now runs with the LessTif toolkit (see
a04c6760 1140<http://www.lesstif.org>). You will need version 0.92.26, or later.
1e7db2e9
GM
1141
1142** LessTif/Motif file selection dialog.
1143
1144When Emacs is configured to use LessTif or Motif, reading a file name
1145from a menu will pop up a file selection dialog if `use-dialog-box' is
1146non-nil.
1147
8f80abd8
EZ
1148** File selection dialog on MS-Windows is supported.
1149
1150When a file is visited by clicking File->Open, the MS-Windows version
1151now pops up a standard file selection dialog where you can select a
1152file to visit. File->Save As also pops up that dialog.
1153
1e7db2e9
GM
1154** Toolkit scroll bars.
1155
1156Emacs now uses toolkit scroll bars if available. When configured for
1157LessTif/Motif, it will use that toolkit's scroll bar. Otherwise, when
1158configured for Lucid and Athena widgets, it will use the Xaw3d scroll
1159bar if Xaw3d is available. You can turn off the use of toolkit scroll
1160bars by specifying `--with-toolkit-scroll-bars=no' when configuring
1161Emacs.
1162
1163When you encounter problems with the Xaw3d scroll bar, watch out how
1164Xaw3d is compiled on your system. If the Makefile generated from
1165Xaw3d's Imakefile contains a `-DNARROWPROTO' compiler option, and your
1166Emacs system configuration file `s/your-system.h' does not contain a
1167define for NARROWPROTO, you might consider adding it. Take
1168`s/freebsd.h' as an example.
1169
1170Alternatively, if you don't have access to the Xaw3d source code, take
1171a look at your system's imake configuration file, for example in the
1172directory `/usr/X11R6/lib/X11/config' (paths are different on
1173different systems). You will find files `*.cf' there. If your
1174system's cf-file contains a line like `#define NeedWidePrototypes NO',
1175add a `#define NARROWPROTO' to your Emacs system configuration file.
1176
1177The reason for this is that one Xaw3d function uses `double' or
1178`float' function parameters depending on the setting of NARROWPROTO.
1179This is not a problem when Imakefiles are used because each system's
3593c177 1180imake configuration file contains the necessary information. Since
1e7db2e9
GM
1181Emacs doesn't use imake, this has do be done manually.
1182
1e7db2e9
GM
1183** Tool bar support.
1184
1185Emacs supports a tool bar at the top of a frame under X. For details
1186of how to define a tool bar, see the page describing Lisp-level
1187changes. Tool-bar global minor mode controls whether or not it is
1188displayed and is on by default. The appearance of the bar is improved
1189if Emacs has been built with XPM image support. Otherwise monochrome
1190icons will be used.
1191
1192To make the tool bar more useful, we need contributions of extra icons
70fae708 1193for specific modes (with copyright assignments).
1e7db2e9 1194
1e7db2e9
GM
1195** Tooltips.
1196
1197Tooltips are small X windows displaying a help string at the current
1198mouse position. The Lisp package `tooltip' implements them. You can
1199turn them off via the user option `tooltip-mode'.
1200
1201Tooltips also provides support for GUD debugging. If activated,
1202variable values can be displayed in tooltips by pointing at them with
1203the mouse in source buffers. You can customize various aspects of the
1204tooltip display in the group `tooltip'.
1205
efeb796b
EZ
1206** Automatic Hscrolling
1207
1208Horizontal scrolling now happens automatically if
1209`automatic-hscrolling' is set (the default). This setting can be
1210customized.
1211
1212If a window is scrolled horizontally with set-window-hscroll, or
1213scroll-left/scroll-right (C-x <, C-x >), this serves as a lower bound
1214for automatic horizontal scrolling. Automatic scrolling will scroll
1215the text more to the left if necessary, but won't scroll the text more
1216to the right than the column set with set-window-hscroll etc.
1217
1e7db2e9
GM
1218** When using a windowing terminal, each Emacs window now has a cursor
1219of its own. By default, when a window is selected, the cursor is
1220solid; otherwise, it is hollow. The user-option
ab9c49cf 1221`cursor-in-non-selected-windows' controls how to display the
1e7db2e9 1222cursor in non-selected windows. If nil, no cursor is shown, if
2018166d 1223non-nil a hollow box cursor is shown.
1e7db2e9
GM
1224
1225** Fringes to the left and right of windows are used to display
1226truncation marks, continuation marks, overlay arrows and alike. The
1227foreground, background, and stipple of these areas can be changed by
1228customizing face `fringe'.
1229
1230** The mode line under X is now drawn with shadows by default.
1231You can change its appearance by modifying the face `mode-line'.
1232In particular, setting the `:box' attribute to nil turns off the 3D
1233appearance of the mode line. (The 3D appearance makes the mode line
1234occupy more space, and thus might cause the first or the last line of
1235the window to be partially obscured.)
1236
1237The variable `mode-line-inverse-video', which was used in older
46ff99c0
MB
1238versions of emacs to make the mode-line stand out, is now deprecated.
1239However, setting it to nil will cause the `mode-line' face to be
1240ignored, and mode-lines to be drawn using the default text face.
1e7db2e9 1241
1e7db2e9
GM
1242** Mouse-sensitive mode line.
1243
6b9572dc
EZ
1244Different parts of the mode line have been made mouse-sensitive on all
1245systems which support the mouse. Moving the mouse to a
1246mouse-sensitive part in the mode line changes the appearance of the
1247mouse pointer to an arrow, and help about available mouse actions is
1248displayed either in the echo area, or in the tooltip window if you
1249have enabled one.
1e7db2e9
GM
1250
1251Currently, the following actions have been defined:
1252
3aa2f38a 1253- Mouse-1 on the buffer name in the mode line goes to the next buffer.
1e7db2e9 1254
3aa2f38a 1255- Mouse-3 on the buffer-name goes to the previous buffer.
1e7db2e9
GM
1256
1257- Mouse-2 on the read-only or modified status in the mode line (`%' or
1258`*') toggles the status.
1259
1260- Mouse-3 on the mode name displays a minor-mode menu.
1261
1e7db2e9
GM
1262** Hourglass pointer
1263
1264Emacs can optionally display an hourglass pointer under X. You can
1265turn the display on or off by customizing group `cursor'.
1266
1e7db2e9
GM
1267** Blinking cursor
1268
1269M-x blink-cursor-mode toggles a blinking cursor under X and on
1270terminals having terminal capabilities `vi', `vs', and `ve'. Blinking
1271and related parameters like frequency and delay can be customized in
1272the group `cursor'.
1273
1e7db2e9
GM
1274** New font-lock support mode `jit-lock-mode'.
1275
1276This support mode is roughly equivalent to `lazy-lock' but is
1277generally faster. It supports stealth and deferred fontification.
1278See the documentation of the function `jit-lock-mode' for more
1279details.
1280
1281Font-lock uses jit-lock-mode as default support mode, so you don't
1282have to do anything to activate it.
1283
efeb796b
EZ
1284** The default binding of the Delete key has changed.
1285
1286The new user-option `normal-erase-is-backspace' can be set to
1287determine the effect of the Delete and Backspace function keys.
1288
1289On window systems, the default value of this option is chosen
1290according to the keyboard used. If the keyboard has both a Backspace
1291key and a Delete key, and both are mapped to their usual meanings, the
1292option's default value is set to t, so that Backspace can be used to
1293delete backward, and Delete can be used to delete forward. On
1294keyboards which either have only one key (usually labeled DEL), or two
1295keys DEL and BS which produce the same effect, the option's value is
1296set to nil, and these keys delete backward.
1297
1298If not running under a window system, setting this option accomplishes
1299a similar effect by mapping C-h, which is usually generated by the
1300Backspace key, to DEL, and by mapping DEL to C-d via
1301`keyboard-translate'. The former functionality of C-h is available on
1302the F1 key. You should probably not use this setting on a text-only
1303terminal if you don't have both Backspace, Delete and F1 keys.
1304
1305Programmatically, you can call function normal-erase-is-backspace-mode
1306to toggle the behavior of the Delete and Backspace keys.
1307
1e7db2e9
GM
1308** The default for user-option `next-line-add-newlines' has been
1309changed to nil, i.e. C-n will no longer add newlines at the end of a
1310buffer by default.
1311
1312** The <home> and <end> keys now move to the beginning or end of the
1313current line, respectively. C-<home> and C-<end> move to the
1314beginning and end of the buffer.
1315
1316** Emacs now checks for recursive loads of Lisp files. If the
1317recursion depth exceeds `recursive-load-depth-limit', an error is
1318signaled.
1319
1320** When an error is signaled during the loading of the user's init
1321file, Emacs now pops up the *Messages* buffer.
1322
1e7db2e9
GM
1323** Emacs now refuses to load compiled Lisp files which weren't
1324compiled with Emacs. Set `load-dangerous-libraries' to t to change
1325this behavior.
1326
efeb796b 1327The reason for this change is an incompatible change in XEmacs's byte
1e7db2e9
GM
1328compiler. Files compiled with XEmacs can contain byte codes that let
1329Emacs dump core.
1330
1331** Toggle buttons and radio buttons in menus.
1332
1333When compiled with LessTif (or Motif) support, Emacs uses toolkit
1334widgets for radio and toggle buttons in menus. When configured for
1335Lucid, Emacs draws radio buttons and toggle buttons similar to Motif.
1336
1337** The menu bar configuration has changed. The new configuration is
1338more CUA-compliant. The most significant change is that Options is
1339now a separate menu-bar item, with Mule and Customize as its submenus.
1340
1341** Item Save Options on the Options menu allows saving options set
1342using that menu.
1343
1e7db2e9
GM
1344** Highlighting of trailing whitespace.
1345
1346When `show-trailing-whitespace' is non-nil, Emacs displays trailing
1347whitespace in the face `trailing-whitespace'. Trailing whitespace is
1348defined as spaces or tabs at the end of a line. To avoid busy
1349highlighting when entering new text, trailing whitespace is not
1350displayed if point is at the end of the line containing the
1351whitespace.
1352
1e7db2e9
GM
1353** C-x 5 1 runs the new command delete-other-frames which deletes
1354all frames except the selected one.
1355
1356** The new user-option `confirm-kill-emacs' can be customized to
1357let Emacs ask for confirmation before exiting.
1358
1e7db2e9
GM
1359** The header line in an Info buffer is now displayed as an emacs
1360header-line (which is like a mode-line, but at the top of the window),
1361so that it remains visible even when the buffer has been scrolled.
1362This behavior may be disabled by customizing the option
1363`Info-use-header-line'.
1364
1e7db2e9
GM
1365** Polish, Czech, German, and French translations of Emacs' reference card
1366have been added. They are named `pl-refcard.tex', `cs-refcard.tex',
1367`de-refcard.tex' and `fr-refcard.tex'. Postscript files are included.
1368
1369** An `Emacs Survival Guide', etc/survival.tex, is available.
1370
1371** A reference card for Dired has been added. Its name is
1372`dired-ref.tex'. A French translation is available in
1373`fr-drdref.tex'.
1374
1e7db2e9
GM
1375** C-down-mouse-3 is bound differently. Now if the menu bar is not
1376displayed it pops up a menu containing the items which would be on the
1377menu bar. If the menu bar is displayed, it pops up the major mode
1378menu or the Edit menu if there is no major mode menu.
1379
efeb796b 1380** Variable `load-path' is no longer customizable through Customize.
17851d9d 1381
a19e85cc 1382You can no longer use `M-x customize-variable' to customize `load-path'
17851d9d
EZ
1383because it now contains a version-dependent component. You can still
1384use `add-to-list' and `setq' to customize this variable in your
1385`~/.emacs' init file or to modify it from any Lisp program in general.
1e7db2e9 1386
1e7db2e9
GM
1387** C-u C-x = provides detailed information about the character at
1388point in a pop-up window.
1389
1e7db2e9
GM
1390** Emacs can now support 'wheeled' mice (such as the MS IntelliMouse)
1391under XFree86. To enable this, use the `mouse-wheel-mode' command, or
1392customize the variable `mouse-wheel-mode'.
1393
1394The variables `mouse-wheel-follow-mouse' and `mouse-wheel-scroll-amount'
1395determine where and by how much buffers are scrolled.
1396
1e7db2e9
GM
1397** Emacs' auto-save list files are now by default stored in a
1398sub-directory `.emacs.d/auto-save-list/' of the user's home directory.
1399(On MS-DOS, this subdirectory's name is `_emacs.d/auto-save.list/'.)
aa082854 1400You can customize `auto-save-list-file-prefix' to change this location.
1e7db2e9 1401
1e7db2e9
GM
1402** The function `getenv' is now callable interactively.
1403
eb1b0c74
GM
1404** The new user-option `even-window-heights' can be set to nil
1405to prevent `display-buffer' from evening out window heights.
1406
c607d53d 1407** The new command M-x delete-trailing-whitespace RET will delete the
346598f1 1408trailing whitespace within the current restriction. You can also add
c607d53d
SS
1409this function to `write-file-hooks' or `local-write-file-hooks'.
1410
4104194e 1411** When visiting a file with M-x find-file-literally, no newlines will
1e36ff68
DL
1412be added to the end of the buffer even if `require-final-newline' is
1413non-nil.
4104194e 1414
ba9eeda1
GM
1415** The new user-option `find-file-suppress-same-file-warnings' can be
1416set to suppress warnings ``X and Y are the same file'' when visiting a
1417file that is already visited under a different name.
1418
42ac0ae5
GM
1419** The new user-option `electric-help-shrink-window' can be set to
1420nil to prevent adjusting the help window size to the buffer size.
1421
ba9eeda1 1422** New command M-x describe-character-set reads a character set name
eb27839a 1423and displays information about that.
b941a14b 1424
25ad1371
GM
1425** The new variable `auto-mode-interpreter-regexp' contains a regular
1426expression matching interpreters, for file mode determination.
1427
1428This regular expression is matched against the first line of a file to
1429determine the file's mode in `set-auto-mode' when Emacs can't deduce a
1430mode from the file's name. If it matches, the file is assumed to be
1431interpreted by the interpreter matched by the second group of the
1432regular expression. The mode is then determined as the mode
1433associated with that interpreter in `interpreter-mode-alist'.
1434
40e857ea 1435** New function executable-make-buffer-file-executable-if-script-p is
424d8b44 1436suitable as an after-save-hook as an alternative to `executable-chmod'.
40e857ea 1437
c08398de
DL
1438** The most preferred coding-system is now used to save a buffer if
1439buffer-file-coding-system is `undecided' and it is safe for the buffer
1440contents. (The most preferred is set by set-language-environment or
1441by M-x prefer-coding-system.) Thus if you visit an ASCII file and
1442insert a non-ASCII character from your current language environment,
1443the file will be saved silently with the appropriate coding.
1444Previously you would be prompted for a safe coding system.
1445
efeb796b
EZ
1446** The many obsolete language `setup-...-environment' commands have
1447been removed -- use `set-language-environment'.
1448
efeb796b
EZ
1449** The new Custom option `keyboard-coding-system' specifies a coding
1450system for keyboard input.
1451
3d6cd763
GM
1452** New variable `inhibit-iso-escape-detection' determines if Emacs'
1453coding system detection algorithm should pay attention to ISO2022's
1454escape sequences. If this variable is non-nil, the algorithm ignores
1455such escape sequences. The default value is nil, and it is
1456recommended not to change it except for the special case that you
07b14857 1457always want to read any escape code verbatim. If you just want to
3d6cd763 1458read a specific file without decoding escape codes, use C-x RET c
07b14857
KH
1459(`universal-coding-system-argument'). For instance, C-x RET c latin-1
1460RET C-x C-f filename RET.
26ae8525 1461
0b8a3a6d
DL
1462** Variable `default-korean-keyboard' is initialized properly from the
1463environment variable `HANGUL_KEYBOARD_TYPE'.
1464
0b8a3a6d
DL
1465** New command M-x list-charset-chars reads a character set name and
1466displays all characters in that character set.
1467
1468** M-x set-terminal-coding-system (C-x RET t) now allows CCL-based
1469coding systems such as cpXXX and cyrillic-koi8.
1470
efeb796b
EZ
1471** Emacs now attempts to determine the initial language environment
1472and preferred and locale coding systems systematically from the
1473LC_ALL, LC_CTYPE, and LANG environment variables during startup.
1474
efeb796b
EZ
1475** New language environments `Polish', `Latin-8' and `Latin-9'.
1476Latin-8 and Latin-9 correspond respectively to the ISO character sets
14778859-14 (Celtic) and 8859-15 (updated Latin-1, with the Euro sign).
1478GNU Intlfonts doesn't support these yet but recent X releases have
14798859-15. See etc/INSTALL for information on obtaining extra fonts.
1480There are new Leim input methods for Latin-8 and Latin-9 prefix (only)
1481and Polish `slash'.
1482
efeb796b
EZ
1483** New language environments `Dutch' and `Spanish'.
1484These new environments mainly select appropriate translations
1485of the tutorial.
1486
1487** In Ethiopic language environment, special key bindings for
1488function keys are changed as follows. This is to conform to "Emacs
1489Lisp Coding Convention".
1490
1491 new command old-binding
1492 --- ------- -----------
1493 f3 ethio-fidel-to-sera-buffer f5
1494 S-f3 ethio-fidel-to-sera-region f5
1495 C-f3 ethio-fidel-to-sera-mail-or-marker f5
1496
1497 f4 ethio-sera-to-fidel-buffer unchanged
1498 S-f4 ethio-sera-to-fidel-region unchanged
1499 C-f4 ethio-sera-to-fidel-mail-or-marker unchanged
1500
1501 S-f5 ethio-toggle-punctuation f3
1502 S-f6 ethio-modify-vowel f6
1503 S-f7 ethio-replace-space f7
1504 S-f8 ethio-input-special-character f8
1505 S-f9 ethio-replace-space unchanged
1506 C-f9 ethio-toggle-space f2
1507
bd161121
EZ
1508** There are new Leim input methods.
1509New input methods "turkish-postfix", "turkish-alt-postfix",
1510"greek-mizuochi", "TeX", and "greek-babel" are now part of the Leim
1511package.
1512
efeb796b
EZ
1513** The rule of input method "slovak" is slightly changed. Now the
1514rules for translating "q" and "Q" to "`" (backquote) are deleted, thus
1515typing them inserts "q" and "Q" respectively. Rules for translating
1516"=q", "+q", "=Q", and "+Q" to "`" are also deleted. Now, to input
1517"`", you must type "=q".
1518
efeb796b
EZ
1519** When your terminal can't display characters from some of the ISO
15208859 character sets but can display Latin-1, you can display
1521more-or-less mnemonic sequences of ASCII/Latin-1 characters instead of
1522empty boxes (under a window system) or question marks (not under a
1523window system). Customize the option `latin1-display' to turn this
1524on.
1525
efeb796b
EZ
1526** M-; now calls comment-dwim which tries to do something clever based
1527on the context. M-x kill-comment is now an alias to comment-kill,
1528defined in newcomment.el. You can choose different styles of region
1529commenting with the variable `comment-style'.
5cb6a58e 1530
5898e075
DL
1531** New user options `display-time-mail-face' and
1532`display-time-use-mail-icon' control the appearance of mode-line mail
1533indicator used by the display-time package. On a suitable display the
1534indicator can be an icon and is mouse-sensitive.
1535
cc181e95
GM
1536** On window-systems, additional space can be put between text lines
1537on the display using several methods
1538
1539- By setting frame parameter `line-spacing' to PIXELS. PIXELS must be
1540a positive integer, and specifies that PIXELS number of pixels should
1541be put below text lines on the affected frame or frames.
1542
1543- By setting X resource `lineSpacing', class `LineSpacing'. This is
5820dead 1544equivalent to specifying the frame parameter.
cc181e95 1545
da4496b6 1546- By specifying `--line-spacing=N' or `-lsp N' on the command line.
cc181e95
GM
1547
1548- By setting buffer-local variable `line-spacing'. The meaning is
1549the same, but applies to the a particular buffer only.
1550
3b4fa1b2 1551** The new command `clone-indirect-buffer' can be used to create
1c459486 1552an indirect buffer that is a twin copy of the current buffer. The
3b4fa1b2 1553command `clone-indirect-buffer-other-window', bound to C-x 4 c,
1c459486 1554does the same but displays the indirect buffer in another window.
0daee095 1555
176256a1 1556** New user options `backup-directory-alist' and
3bbc50af
DL
1557`make-backup-file-name-function' control the placement of backups,
1558typically in a single directory or in an invisible sub-directory.
176256a1 1559
dd0add8e
DL
1560** New commands iso-iso2sgml and iso-sgml2iso convert between Latin-1
1561characters and the corresponding SGML (HTML) entities.
1562
699238d9 1563** New X resources recognized
100b3cbb 1564
7233c5bd
GM
1565*** The X resource `synchronous', class `Synchronous', specifies
1566whether Emacs should run in synchronous mode. Synchronous mode
1567is useful for debugging X problems.
1568
1569Example:
1570
699238d9 1571 emacs.synchronous: true
7233c5bd 1572
100b3cbb
GM
1573*** The X resource `visualClass, class `VisualClass', specifies the
1574visual Emacs should use. The resource's value should be a string of
1575the form `CLASS-DEPTH', where CLASS is the name of the visual class,
1576and DEPTH is the requested color depth as a decimal number. Valid
1577visual class names are
1578
1579 TrueColor
1580 PseudoColor
1581 DirectColor
1582 StaticColor
1583 GrayScale
1584 StaticGray
1585
1586Visual class names specified as X resource are case-insensitive, i.e.
1587`pseudocolor', `Pseudocolor' and `PseudoColor' all have the same
1588meaning.
1589
1590The program `xdpyinfo' can be used to list the visual classes
1591supported on your display, and which depths they have. If
1592`visualClass' is not specified, Emacs uses the display's default
1593visual.
1594
1595Example:
1596
699238d9 1597 emacs.visualClass: TrueColor-8
100b3cbb
GM
1598
1599*** The X resource `privateColormap', class `PrivateColormap',
1600specifies that Emacs should use a private colormap if it is using the
1601default visual, and that visual is of class PseudoColor. Recognized
1602resource values are `true' or `on'.
1603
1604Example:
1605
699238d9 1606 emacs.privateColormap: true
100b3cbb 1607
a933dad1
DL
1608** Faces and frame parameters.
1609
1610There are four new faces `scroll-bar', `border', `cursor' and `mouse'.
1611Setting the frame parameters `scroll-bar-foreground' and
1612`scroll-bar-background' sets foreground and background color of face
1613`scroll-bar' and vice versa. Setting frame parameter `border-color'
1614sets the background color of face `border' and vice versa. Likewise
1615for frame parameters `cursor-color' and face `cursor', and frame
1616parameter `mouse-color' and face `mouse'.
1617
1618Changing frame parameter `font' sets font-related attributes of the
1619`default' face and vice versa. Setting frame parameters
79214ddf 1620`foreground-color' or `background-color' sets the colors of the
a933dad1
DL
1621`default' face and vice versa.
1622
f77a4a8a
GM
1623** New face `menu'.
1624
1625The face `menu' can be used to change colors and font of Emacs' menus.
f77a4a8a 1626
a933dad1
DL
1627** New frame parameter `screen-gamma' for gamma correction.
1628
1629The new frame parameter `screen-gamma' specifies gamma-correction for
1630colors. Its value may be nil, the default, in which case no gamma
1631correction occurs, or a number > 0, usually a float, that specifies
1632the screen gamma of a frame's display.
1633
1634PC monitors usually have a screen gamma of 2.2. smaller values result
1635in darker colors. You might want to try a screen gamma of 1.5 for LCD
1636color displays. The viewing gamma Emacs uses is 0.4545. (1/2.2).
1637
1638The X resource name of this parameter is `screenGamma', class
1639`ScreenGamma'.
1640
a933dad1
DL
1641** Tabs and variable-width text.
1642
1643Tabs are now displayed with stretch properties; the width of a tab is
1644defined as a multiple of the normal character width of a frame, and is
1645independent of the fonts used in the text where the tab appears.
1646Thus, tabs can be used to line up text in different fonts.
1647
1648** Enhancements of the Lucid menu bar
1649
1650*** The Lucid menu bar now supports the resource "margin".
1651
1652 emacs.pane.menubar.margin: 5
1653
79dd1637
RS
1654The default margin is 4 which makes the menu bar appear like the
1655LessTif/Motif one.
a933dad1 1656
79dd1637
RS
1657*** Arrows that indicate sub-menus are now drawn with shadows, as in
1658LessTif and Motif.
a933dad1 1659
a933dad1
DL
1660** A block cursor can be drawn as wide as the glyph under it under X.
1661
1662As an example: if a block cursor is over a tab character, it will be
1663drawn as wide as that tab on the display. To do this, set
1664`x-stretch-cursor' to a non-nil value.
1665
1666** Empty display lines at the end of a buffer may be marked with a
efeb796b 1667bitmap (this is similar to the tilde displayed by vi and Less).
a933dad1
DL
1668
1669This behavior is activated by setting the buffer-local variable
1670`indicate-empty-lines' to a non-nil value. The default value of this
1671variable is found in `default-indicate-empty-lines'.
1672
1673** There is a new "aggressive" scrolling method.
1674
1675When scrolling up because point is above the window start, if the
d9e66103 1676value of the buffer-local variable `scroll-up-aggressively' is a
a933dad1 1677number, Emacs chooses a new window start so that point ends up that
d5951185 1678fraction of the window's height from the top of the window.
a933dad1
DL
1679
1680When scrolling down because point is below the window end, if the
8a33023e 1681value of the buffer-local variable `scroll-down-aggressively' is a
a933dad1 1682number, Emacs chooses a new window start so that point ends up that
d5951185 1683fraction of the window's height from the bottom of the window.
a933dad1 1684
efeb796b
EZ
1685** You can now easily create new *Info* buffers using either
1686M-x clone-buffer, C-u m <entry> RET or C-u g <entry> RET.
1687M-x clone-buffer can also be used on *Help* and several other special
1688buffers.
1689
1690** The command `Info-search' now uses a search history.
1691
1692** Listing buffers with M-x list-buffers (C-x C-b) now shows
1693abbreviated file names. Abbreviations can be customized by changing
1694`directory-abbrev-alist'.
1695
efeb796b
EZ
1696** A new variable, backup-by-copying-when-privileged-mismatch, gives
1697the highest file uid for which backup-by-copying-when-mismatch will be
1698forced on. The assumption is that uids less than or equal to this
1699value are special uids (root, bin, daemon, etc.--not real system
1700users) and that files owned by these users should not change ownership,
1701even if your system policy allows users other than root to edit them.
1702
1703The default is 200; set the variable to nil to disable the feature.
1704
a933dad1
DL
1705** The rectangle commands now avoid inserting undesirable spaces,
1706notably at the end of lines.
1707
1708All these functions have been rewritten to avoid inserting unwanted
1709spaces, and an optional prefix now allows them to behave the old way.
1710
8748ecc0 1711** The function `replace-rectangle' is an alias for `string-rectangle'.
eee54b0e 1712
8748ecc0
GM
1713** The new command M-x string-insert-rectangle is like `string-rectangle',
1714but inserts text instead of replacing it.
2ce72bfa 1715
a933dad1
DL
1716** The new command M-x query-replace-regexp-eval acts like
1717query-replace-regexp, but takes a Lisp expression which is evaluated
1718after each match to get the replacement text.
1719
d5483ab1
GM
1720** M-x query-replace recognizes a new command `e' (or `E') that lets
1721you edit the replacement string.
4ff40dd0 1722
75823f67
EZ
1723** The new command mail-abbrev-complete-alias, bound to `M-TAB'
1724(if you load the library `mailabbrev'), lets you complete mail aliases
1725in the text, analogous to lisp-complete-symbol.
4ff40dd0 1726
efeb796b 1727** The variable `echo-keystrokes' may now have a floating point value.
889be0a1 1728
efeb796b
EZ
1729** If your init file is compiled (.emacs.elc), `user-init-file' is set
1730to the source name (.emacs.el), if that exists, after loading it.
327652be 1731
efeb796b
EZ
1732** The help string specified for a menu-item whose definition contains
1733the property `:help HELP' is now displayed under X, on MS-Windows, and
1734MS-DOS, either in the echo area or with tooltips. Many standard menus
1735displayed by Emacs now have help strings.
a32da22c 1736
75823f67 1737--
efeb796b
EZ
1738** New user option `read-mail-command' specifies a command to use to
1739read mail from the menu etc.
559cee90 1740
efeb796b
EZ
1741** The environment variable `EMACSLOCKDIR' is no longer used on MS-Windows.
1742This environment variable was used when creating lock files. Emacs on
1743MS-Windows does not use this variable anymore. This change was made
1744before Emacs 21.1, but wasn't documented until now.
559cee90 1745
efeb796b
EZ
1746** Highlighting of mouse-sensitive regions is now supported in the
1747MS-DOS version of Emacs.
424d8b44 1748
efeb796b
EZ
1749** The new command `msdos-set-mouse-buttons' forces the MS-DOS version
1750of Emacs to behave as if the mouse had a specified number of buttons.
1751This comes handy with mice that don't report their number of buttons
1752correctly. One example is the wheeled mice, which report 3 buttons,
1753but clicks on the middle button are not passed to the MS-DOS version
1754of Emacs.
eb2aac9d 1755
efeb796b 1756** Customize changes
eb2aac9d 1757
efeb796b
EZ
1758*** Customize now supports comments about customized items. Use the
1759`State' menu to add comments, or give a prefix argument to
1760M-x customize-set-variable or M-x customize-set-value. Note that
1761customization comments will cause the customizations to fail in
1762earlier versions of Emacs.
1b24b888 1763
efeb796b
EZ
1764*** The new option `custom-buffer-done-function' says whether to kill
1765Custom buffers when you've done with them or just bury them (the
1766default).
79c78e77 1767
efeb796b
EZ
1768*** If Emacs was invoked with the `-q' or `--no-init-file' options, it
1769does not allow you to save customizations in your `~/.emacs' init
1770file. This is because saving customizations from such a session would
1771wipe out all the other customizationss you might have on your init
1772file.
79c78e77 1773
7e97c157
EZ
1774** If Emacs was invoked with the `-q' or `--no-init-file' options, it
1775does not save disabled and enabled commands for future sessions, to
1776avoid overwriting existing customizations of this kind that are
1777already in your init file.
1778
efeb796b 1779** New features in evaluation commands
3476b54a 1780
efeb796b
EZ
1781*** The commands to evaluate Lisp expressions, such as C-M-x in Lisp
1782modes, C-j in Lisp Interaction mode, and M-:, now bind the variables
1783print-level, print-length, and debug-on-error based on the new
1784customizable variables eval-expression-print-level,
1785eval-expression-print-length, and eval-expression-debug-on-error.
a933dad1 1786
f37e8c77
EZ
1787The default values for the first two of these variables are 12 and 4
1788respectively, which means that `eval-expression' now prints at most
1789the first 12 members of a list and at most 4 nesting levels deep (if
1790the list is longer or deeper than that, an ellipsis `...' is
1791printed).
1792
75c5350a
GM
1793<RET> or <mouse-2> on the printed text toggles between an abbreviated
1794printed representation and an unabbreviated one.
f6e6cdf2 1795
f37e8c77
EZ
1796The default value of eval-expression-debug-on-error is t, so any error
1797during evaluation produces a backtrace.
1798
3a426197 1799*** The function `eval-defun' (C-M-x) now loads Edebug and instruments
5e03eb84
GM
1800code when called with a prefix argument.
1801
b1c609b1
GM
1802** CC mode changes.
1803
1804Note: This release contains changes that might not be compatible with
1805current user setups (although it's believed that these
1806incompatibilities will only show in very uncommon circumstances).
1807However, since the impact is uncertain, these changes may be rolled
1808back depending on user feedback. Therefore there's no forward
1809compatibility guarantee wrt the new features introduced in this
1810release.
1811
e120bebf
GM
1812*** The hardcoded switch to "java" style in Java mode is gone.
1813CC Mode used to automatically set the style to "java" when Java mode
1814is entered. This has now been removed since it caused too much
1815confusion.
1816
1817However, to keep backward compatibility to a certain extent, the
1818default value for c-default-style now specifies the "java" style for
1819java-mode, but "gnu" for all other modes (as before). So you won't
1820notice the change if you haven't touched that variable.
1821
1822*** New cleanups, space-before-funcall and compact-empty-funcall.
1823Two new cleanups have been added to c-cleanup-list:
1824
1825space-before-funcall causes a space to be inserted before the opening
1826parenthesis of a function call, which gives the style "foo (bar)".
1827
1828compact-empty-funcall causes any space before a function call opening
1829parenthesis to be removed if there are no arguments to the function.
1830It's typically useful together with space-before-funcall to get the
1831style "foo (bar)" and "foo()".
1832
1833*** Some keywords now automatically trigger reindentation.
1834Keywords like "else", "while", "catch" and "finally" have been made
1835"electric" to make them reindent automatically when they continue an
1836earlier statement. An example:
1837
1838for (i = 0; i < 17; i++)
1839 if (a[i])
1840 res += a[i]->offset;
1841else
1842
1843Here, the "else" should be indented like the preceding "if", since it
1844continues that statement. CC Mode will automatically reindent it after
1845the "else" has been typed in full, since it's not until then it's
1846possible to decide whether it's a new statement or a continuation of
1847the preceding "if".
1848
1849CC Mode uses Abbrev mode to achieve this, which is therefore turned on
1850by default.
1851
1852*** M-a and M-e now moves by sentence in multiline strings.
1853Previously these two keys only moved by sentence in comments, which
1854meant that sentence movement didn't work in strings containing
1855documentation or other natural language text.
1856
1857The reason it's only activated in multiline strings (i.e. strings that
1858contain a newline, even when escaped by a '\') is to avoid stopping in
1859the short strings that often reside inside statements. Multiline
1860strings almost always contain text in a natural language, as opposed
1861to other strings that typically contain format specifications,
1862commands, etc. Also, it's not that bothersome that M-a and M-e misses
1863sentences in single line strings, since they're short anyway.
1864
1865*** Support for autodoc comments in Pike mode.
1866Autodoc comments for Pike are used to extract documentation from the
1867source, like Javadoc in Java. Pike mode now recognize this markup in
1868comment prefixes and paragraph starts.
1869
1870*** The comment prefix regexps on c-comment-prefix may be mode specific.
1871When c-comment-prefix is an association list, it specifies the comment
1872line prefix on a per-mode basis, like c-default-style does. This
1873change came about to support the special autodoc comment prefix in
1874Pike mode only.
1875
1876*** Better handling of syntactic errors.
1877The recovery after unbalanced parens earlier in the buffer has been
1878improved; CC Mode now reports them by dinging and giving a message
1879stating the offending line, but still recovers and indent the
1880following lines in a sane way (most of the time). An "else" with no
1881matching "if" is handled similarly. If an error is discovered while
1882indenting a region, the whole region is still indented and the error
1883is reported afterwards.
1884
1885*** Lineup functions may now return absolute columns.
1886A lineup function can give an absolute column to indent the line to by
1887returning a vector with the desired column as the first element.
1888
1889*** More robust and warning-free byte compilation.
1890Although this is strictly not a user visible change (well, depending
1891on the view of a user), it's still worth mentioning that CC Mode now
1892can be compiled in the standard ways without causing trouble. Some
1893code have also been moved between the subpackages to enhance the
1894modularity somewhat. Thanks to Martin Buchholz for doing the
1895groundwork.
1896
7972fcfc
GM
1897*** c-style-variables-are-local-p now defaults to t.
1898This is an incompatible change that has been made to make the behavior
1899of the style system wrt global variable settings less confusing for
1900non-advanced users. If you know what this variable does you might
1901want to set it to nil in your .emacs, otherwise you probably don't
1902have to bother.
1903
1904Defaulting c-style-variables-are-local-p to t avoids the confusing
1905situation that occurs when a user sets some style variables globally
487522fe 1906and edits both a Java and a non-Java file in the same Emacs session.
7972fcfc
GM
1907If the style variables aren't buffer local in this case, loading of
1908the second file will cause the default style (either "gnu" or "java"
1909by default) to override the global settings made by the user.
1910
b1c609b1
GM
1911*** New initialization procedure for the style system.
1912When the initial style for a buffer is determined by CC Mode (from the
1913variable c-default-style), the global values of style variables now
1914take precedence over the values specified by the chosen style. This
1915is different than the old behavior: previously, the style-specific
1916settings would override the global settings. This change makes it
1917possible to do simple configuration in the intuitive way with
1918Customize or with setq lines in one's .emacs file.
1919
1920By default, the global value of every style variable is the new
1921special symbol set-from-style, which causes the value to be taken from
1922the style system. This means that in effect, only an explicit setting
1923of a style variable will cause the "overriding" behavior described
1924above.
1925
1926Also note that global settings override style-specific settings *only*
1927when the initial style of a buffer is chosen by a CC Mode major mode
1928function. When a style is chosen in other ways --- for example, by a
1929call like (c-set-style "gnu") in a hook, or via M-x c-set-style ---
1930then the style-specific values take precedence over any global style
1931values. In Lisp terms, global values override style-specific values
1932only when the new second argument to c-set-style is non-nil; see the
1933function documentation for more info.
1934
1935The purpose of these changes is to make it easier for users,
1936especially novice users, to do simple customizations with Customize or
1937with setq in their .emacs files. On the other hand, the new system is
1938intended to be compatible with advanced users' customizations as well,
1939such as those that choose styles in hooks or whatnot. This new system
1940is believed to be almost entirely compatible with current
1941configurations, in spite of the changed precedence between style and
1942global variable settings when a buffer's default style is set.
1943
1944(Thanks to Eric Eide for clarifying this explanation a bit.)
1945
1946**** c-offsets-alist is now a customizable variable.
1947This became possible as a result of the new initialization behavior.
1948
1949This variable is treated slightly differently from the other style
1950variables; instead of using the symbol set-from-style, it will be
1951completed with the syntactic symbols it doesn't already contain when
1952the style is first initialized. This means it now defaults to the
1953empty list to make all syntactic elements get their values from the
1954style system.
1955
1956**** Compatibility variable to restore the old behavior.
1957In case your configuration doesn't work with this change, you can set
1958c-old-style-variable-behavior to non-nil to get the old behavior back
1959as far as possible.
1960
1961*** Improvements to line breaking and text filling.
1962CC Mode now handles this more intelligently and seamlessly wrt the
1963surrounding code, especially inside comments. For details see the new
1964chapter about this in the manual.
1965
1966**** New variable to recognize comment line prefix decorations.
1967The variable c-comment-prefix-regexp has been added to properly
1968recognize the line prefix in both block and line comments. It's
1969primarily used to initialize the various paragraph recognition and
1970adaptive filling variables that the text handling functions uses.
1971
1972**** New variable c-block-comment-prefix.
1973This is a generalization of the now obsolete variable
1974c-comment-continuation-stars to handle arbitrary strings.
1975
1976**** CC Mode now uses adaptive fill mode.
1977This to make it adapt better to the paragraph style inside comments.
1978
1979It's also possible to use other adaptive filling packages inside CC
1980Mode, notably Kyle E. Jones' Filladapt mode (http://wonderworks.com/).
1981A new convenience function c-setup-filladapt sets up Filladapt for use
1982inside CC Mode.
1983
1984Note though that the 2.12 version of Filladapt lacks a feature that
1985causes it to work suboptimally when c-comment-prefix-regexp can match
1986the empty string (which it commonly does). A patch for that is
1987available from the CC Mode web site (http://www.python.org/emacs/
1988cc-mode/).
1989
9ed462b7
EZ
1990**** The variables `c-hanging-comment-starter-p' and
1991`c-hanging-comment-ender-p', which controlled how comment starters and
1992enders were filled, are not used anymore. The new version of the
1993function `c-fill-paragraph' keeps the comment starters and enders as
1994they were before the filling.
1995
b1c609b1
GM
1996**** It's now possible to selectively turn off auto filling.
1997The variable c-ignore-auto-fill is used to ignore auto fill mode in
1998specific contexts, e.g. in preprocessor directives and in string
1999literals.
2000
2001**** New context sensitive line break function c-context-line-break.
2002It works like newline-and-indent in normal code, and adapts the line
2003prefix according to the comment style when used inside comments. If
2004you're normally using newline-and-indent, you might want to switch to
2005this function.
2006
2007*** Fixes to IDL mode.
2008It now does a better job in recognizing only the constructs relevant
2009to IDL. E.g. it no longer matches "class" as the beginning of a
2010struct block, but it does match the CORBA 2.3 "valuetype" keyword.
2011Thanks to Eric Eide.
2012
2013*** Improvements to the Whitesmith style.
2014It now keeps the style consistently on all levels and both when
2015opening braces hangs and when they don't.
2016
2017**** New lineup function c-lineup-whitesmith-in-block.
2018
2019*** New lineup functions c-lineup-template-args and c-indent-multi-line-block.
2020See their docstrings for details. c-lineup-template-args does a
2021better job of tracking the brackets used as parens in C++ templates,
2022and is used by default to line up continued template arguments.
2023
2024*** c-lineup-comment now preserves alignment with a comment on the
2025previous line. It used to instead preserve comments that started in
2026the column specified by comment-column.
2027
2028*** c-lineup-C-comments handles "free form" text comments.
2029In comments with a long delimiter line at the start, the indentation
2030is kept unchanged for lines that start with an empty comment line
2031prefix. This is intended for the type of large block comments that
2032contain documentation with its own formatting. In these you normally
2033don't want CC Mode to change the indentation.
2034
2035*** The `c' syntactic symbol is now relative to the comment start
2036instead of the previous line, to make integers usable as lineup
2037arguments.
2038
2039*** All lineup functions have gotten docstrings.
2040
2041*** More preprocessor directive movement functions.
2042c-down-conditional does the reverse of c-up-conditional.
2043c-up-conditional-with-else and c-down-conditional-with-else are
2044variants of these that also stops at "#else" lines (suggested by Don
2045Provan).
2046
2047*** Minor improvements to many movement functions in tricky situations.
2048
efeb796b 2049** Dired changes
c407c570 2050
efeb796b
EZ
2051*** New variable `dired-recursive-deletes' determines if the delete
2052command will delete non-empty directories recursively. The default
2053is, delete only empty directories.
c407c570 2054
efeb796b
EZ
2055*** New variable `dired-recursive-copies' determines if the copy
2056command will copy directories recursively. The default is, do not
2057copy directories recursively.
87be76f6 2058
efeb796b
EZ
2059*** In command `dired-do-shell-command' (usually bound to `!') a `?'
2060in the shell command has a special meaning similar to `*', but with
2061the difference that the command will be run on each file individually.
3353ef5a 2062
efeb796b
EZ
2063*** The new command `dired-find-alternate-file' (usually bound to `a')
2064replaces the Dired buffer with the buffer for an alternate file or
2065directory.
c407c570 2066
a320a8e7 2067*** The new command `dired-show-file-type' (usually bound to `y') shows
efeb796b
EZ
2068a message in the echo area describing what type of file the point is on.
2069This command invokes the external program `file' do its work, and so
2070will only work on systems with that program, and will be only as
2071accurate or inaccurate as it is.
2072
2073*** Dired now properly handles undo changes of adding/removing `-R'
2074from ls switches.
2075
2076*** Dired commands that prompt for a destination file now allow the use
2077of the `M-n' command in the minibuffer to insert the source filename,
2078which the user can then edit. This only works if there is a single
2079source file, not when operating on multiple marked files.
a933dad1 2080
efeb796b 2081** Gnus changes.
87be76f6 2082
efeb796b
EZ
2083The Gnus NEWS entries are short, but they reflect sweeping changes in
2084four areas: Article display treatment, MIME treatment,
2085internationalization and mail-fetching.
87be76f6 2086
efeb796b
EZ
2087*** The mail-fetching functions have changed. See the manual for the
2088many details. In particular, all procmail fetching variables are gone.
87be76f6 2089
efeb796b 2090If you used procmail like in
87be76f6 2091
efeb796b
EZ
2092(setq nnmail-use-procmail t)
2093(setq nnmail-spool-file 'procmail)
2094(setq nnmail-procmail-directory "~/mail/incoming/")
2095(setq nnmail-procmail-suffix "\\.in")
35384f06 2096
efeb796b 2097this now has changed to
87be76f6 2098
efeb796b
EZ
2099(setq mail-sources
2100 '((directory :path "~/mail/incoming/"
2101 :suffix ".in")))
d7b511c4 2102
efeb796b
EZ
2103More information is available in the info doc at Select Methods ->
2104Getting Mail -> Mail Sources
d67f47e4 2105
efeb796b
EZ
2106*** Gnus is now a MIME-capable reader. This affects many parts of
2107Gnus, and adds a slew of new commands. See the manual for details.
2108Separate MIME packages like RMIME, mime-compose etc., will probably no
2109longer work; remove them and use the native facilities.
d7b511c4 2110
efeb796b
EZ
2111The FLIM/SEMI package still works with Emacs 21, but if you want to
2112use the native facilities, you must remove any mailcap.el[c] that was
2113installed by FLIM/SEMI version 1.13 or earlier.
9d453139 2114
efeb796b
EZ
2115*** Gnus has also been multilingualized. This also affects too many
2116parts of Gnus to summarize here, and adds many new variables. There
2117are built-in facilities equivalent to those of gnus-mule.el, which is
2118now just a compatibility layer.
4b9347b3 2119
75823f67
EZ
2120*** gnus-mule.el is now just a compatibility layer over the built-in
2121Gnus facilities.
2122
efeb796b
EZ
2123*** gnus-auto-select-first can now be a function to be
2124called to position point.
4b9347b3 2125
efeb796b
EZ
2126*** The user can now decide which extra headers should be included in
2127summary buffers and NOV files.
79214ddf 2128
efeb796b
EZ
2129*** `gnus-article-display-hook' has been removed. Instead, a number
2130of variables starting with `gnus-treat-' have been added.
79214ddf 2131
efeb796b
EZ
2132*** The Gnus posting styles have been redone again and now work in a
2133subtly different manner.
aca0be23 2134
efeb796b
EZ
2135*** New web-based backends have been added: nnslashdot, nnwarchive
2136and nnultimate. nnweb has been revamped, again, to keep up with
2137ever-changing layouts.
79214ddf 2138
efeb796b 2139*** Gnus can now read IMAP mail via nnimap.
79214ddf 2140
efeb796b 2141*** There is image support of various kinds and some sound support.
8c463abe 2142
efeb796b 2143** Changes in Texinfo mode.
8c463abe 2144
efeb796b
EZ
2145*** A couple of new key bindings have been added for inserting Texinfo
2146macros
79214ddf 2147
efeb796b
EZ
2148 Key binding Macro
2149 -------------------------
2150 C-c C-c C-s @strong
2151 C-c C-c C-e @emph
2152 C-c C-c u @uref
2153 C-c C-c q @quotation
2154 C-c C-c m @email
2155 C-c C-o @<block> ... @end <block>
2156 M-RET @item
79214ddf 2157
efeb796b 2158*** The " key now inserts either " or `` or '' depending on context.
79214ddf 2159
efeb796b 2160** Changes in Outline mode.
79214ddf 2161
efeb796b
EZ
2162There is now support for Imenu to index headings. A new command
2163`outline-headers-as-kill' copies the visible headings in the region to
2164the kill ring, e.g. to produce a table of contents.
89d57763 2165
efeb796b 2166** Changes to Emacs Server
79214ddf 2167
efeb796b
EZ
2168*** The new option `server-kill-new-buffers' specifies what to do
2169with buffers when done with them. If non-nil, the default, buffers
2170are killed, unless they were already present before visiting them with
2171Emacs Server. If nil, `server-temp-file-regexp' specifies which
2172buffers to kill, as before.
79214ddf 2173
efeb796b
EZ
2174Please note that only buffers are killed that still have a client,
2175i.e. buffers visited with `emacsclient --no-wait' are never killed in
2176this way.
2177
2178** Both emacsclient and Emacs itself now accept command line options
2179of the form +LINE:COLUMN in addition to +LINE.
2180
2181** Changes to Show Paren mode.
2182
2183*** Overlays used by Show Paren mode now use a priority property.
2184The new user option show-paren-priority specifies the priority to
2185use. Default is 1000.
79214ddf 2186
efeb796b
EZ
2187** New command M-x check-parens can be used to find unbalanced paren
2188groups and strings in buffers in Lisp mode (or other modes).
f6737cde 2189
efeb796b 2190** Changes to hideshow.el
3f6e4b8b 2191
efeb796b 2192*** Generalized block selection and traversal
f6737cde 2193
efeb796b
EZ
2194A block is now recognized by its start and end regexps (both strings),
2195and an integer specifying which sub-expression in the start regexp
2196serves as the place where a `forward-sexp'-like function can operate.
2197See the documentation of variable `hs-special-modes-alist'.
f6737cde 2198
efeb796b
EZ
2199*** During incremental search, if Hideshow minor mode is active,
2200hidden blocks are temporarily shown. The variable `hs-headline' can
2201be used in the mode line format to show the line at the beginning of
2202the open block.
f6737cde 2203
efeb796b
EZ
2204*** User option `hs-hide-all-non-comment-function' specifies a
2205function to be called at each top-level block beginning, instead of
2206the normal block-hiding function.
f6737cde 2207
efeb796b 2208*** The command `hs-show-region' has been removed.
f6737cde 2209
efeb796b
EZ
2210*** The key bindings have changed to fit the Emacs conventions,
2211roughly imitating those of Outline minor mode. Notably, the prefix
2212for all bindings is now `C-c @'. For details, see the documentation
2213for `hs-minor-mode'.
f6737cde 2214
efeb796b
EZ
2215*** The variable `hs-show-hidden-short-form' has been removed, and
2216hideshow.el now always behaves as if this variable were set to t.
f6737cde 2217
efeb796b 2218** Changes to Change Log mode and Add-Log functions
f6737cde 2219
efeb796b
EZ
2220*** If you invoke `add-change-log-entry' from a backup file, it makes
2221an entry appropriate for the file's parent. This is useful for making
2222log entries by comparing a version with deleted functions.
0c68ce6f 2223
efeb796b
EZ
2224**** New command M-x change-log-merge merges another log into the
2225current buffer.
d521e087 2226
efeb796b
EZ
2227*** New command M-x change-log-redate fixes any old-style date entries
2228in a log file.
1e7db2e9 2229
efeb796b
EZ
2230*** Change Log mode now adds a file's version number to change log
2231entries if user-option `change-log-version-info-enabled' is non-nil.
2232Unless the file is under version control the search for a file's
2233version number is performed based on regular expressions from
2234`change-log-version-number-regexp-list' which can be customized.
2235Version numbers are only found in the first 10 percent of a file.
2236
2237*** Change Log mode now defines its own faces for font-lock highlighting.
2238
2239** Changes to cmuscheme
2240
2241*** The user-option `scheme-program-name' has been renamed
2242`cmuscheme-program-name' due to conflicts with xscheme.el.
2243
2244** Changes in Font Lock
2245
2246*** The new function `font-lock-remove-keywords' can be used to remove
2247font-lock keywords from the current buffer or from a specific major mode.
2248
2249*** Multi-line patterns are now supported. Modes using this, should
2250set font-lock-multiline to t in their font-lock-defaults.
2251
2252*** `font-lock-syntactic-face-function' allows major-modes to choose
2253the face used for each string/comment.
2254
2255*** A new standard face `font-lock-doc-face'.
2256Meant for Lisp docstrings, Javadoc comments and other "documentation in code".
2257
2258** Changes to Shell mode
2259
2260*** The `shell' command now accepts an optional argument to specify the buffer
2261to use, which defaults to "*shell*". When used interactively, a
2262non-default buffer may be specified by giving the `shell' command a
2263prefix argument (causing it to prompt for the buffer name).
2264
2265** Comint (subshell) changes
2266
2267These changes generally affect all modes derived from comint mode, which
2268include shell-mode, gdb-mode, scheme-interaction-mode, etc.
2269
2270*** Comint now by default interprets some carriage-control characters.
2271Comint now removes CRs from CR LF sequences, and treats single CRs and
2272BSs in the output in a way similar to a terminal (by deleting to the
2273beginning of the line, or deleting the previous character,
2274respectively). This is achieved by adding `comint-carriage-motion' to
2275the `comint-output-filter-functions' hook by default.
2276
2277*** By default, comint no longer uses the variable `comint-prompt-regexp'
2278to distinguish prompts from user-input. Instead, it notices which
2279parts of the text were output by the process, and which entered by the
2280user, and attaches `field' properties to allow emacs commands to use
2281this information. Common movement commands, notably beginning-of-line,
2282respect field boundaries in a fairly natural manner. To disable this
2283feature, and use the old behavior, customize the user option
2284`comint-use-prompt-regexp-instead-of-fields'.
2285
2286*** Comint now includes new features to send commands to running processes
2287and redirect the output to a designated buffer or buffers.
2288
2289*** The command M-x comint-redirect-send-command reads a command and
2290buffer name from the mini-buffer. The command is sent to the current
2291buffer's process, and its output is inserted into the specified buffer.
2292
2293The command M-x comint-redirect-send-command-to-process acts like
2294M-x comint-redirect-send-command but additionally reads the name of
2295the buffer whose process should be used from the mini-buffer.
2296
2297*** Packages based on comint now highlight user input and program prompts,
2298and support choosing previous input with mouse-2. To control these features,
2299see the user-options `comint-highlight-input' and `comint-highlight-prompt'.
2300
2301*** The new command `comint-write-output' (usually bound to `C-c C-s')
2302saves the output from the most recent command to a file. With a prefix
2303argument, it appends to the file.
2304
2305*** The command `comint-kill-output' has been renamed `comint-delete-output'
2306(usually bound to `C-c C-o'); the old name is aliased to it for
2307compatibility.
2308
2309*** The new function `comint-add-to-input-history' adds commands to the input
2310ring (history).
2311
2312*** The new variable `comint-input-history-ignore' is a regexp for
2313identifying history lines that should be ignored, like tcsh time-stamp
2314strings, starting with a `#'. The default value of this variable is "^#".
2315
2316** Changes to Rmail mode
2317
2318*** The new user-option rmail-user-mail-address-regexp can be
2319set to fine tune the identification of the correspondent when
2320receiving new mail. If it matches the address of the sender, the
2321recipient is taken as correspondent of a mail. If nil, the default,
2322`user-login-name' and `user-mail-address' are used to exclude yourself
2323as correspondent.
2324
2325Usually you don't have to set this variable, except if you collect
2326mails sent by you under different user names. Then it should be a
2327regexp matching your mail addresses.
2328
2329*** The new user-option rmail-confirm-expunge controls whether and how
2330to ask for confirmation before expunging deleted messages from an
2331Rmail file. You can choose between no confirmation, confirmation
2332with y-or-n-p, or confirmation with yes-or-no-p. Default is to ask
2333for confirmation with yes-or-no-p.
2334
2335*** RET is now bound in the Rmail summary to rmail-summary-goto-msg,
2336like `j'.
2337
2338*** There is a new user option `rmail-digest-end-regexps' that
2339specifies the regular expressions to detect the line that ends a
2340digest message.
2341
2342*** The new user option `rmail-automatic-folder-directives' specifies
2343in which folder to put messages automatically.
2344
2345*** The new function `rmail-redecode-body' allows to fix a message
2346with non-ASCII characters if Emacs happens to decode it incorrectly
2347due to missing or malformed "charset=" header.
2348
2349** The new user-option `mail-envelope-from' can be used to specify
2350an envelope-from address different from user-mail-address.
2351
75823f67
EZ
2352** The variable mail-specify-envelope-from controls whether to
2353use the -f option when sending mail.
2354
f68113db
EZ
2355** The Rmail command `o' (`rmail-output-to-rmail-file') now writes the
2356current message in the internal `emacs-mule' encoding, rather than in
2357the encoding taken from the variable `buffer-file-coding-system'.
2358This allows to save messages whose characters cannot be safely encoded
2359by the buffer's coding system, and makes sure the message will be
2360displayed correctly when you later visit the target Rmail file.
2361
2362If you want your Rmail files be encoded in a specific coding system
2363other than `emacs-mule', you can customize the variable
2364`rmail-file-coding-system' to set its value to that coding system.
2365
efeb796b
EZ
2366** Changes to TeX mode
2367
2368*** The default mode has been changed from `plain-tex-mode' to
2369`latex-mode'.
2370
2371*** latex-mode now has a simple indentation algorithm.
2372
2373*** M-f and M-p jump around \begin...\end pairs.
2374
2375*** Added support for outline-minor-mode.
2376
2377** Changes to RefTeX mode
2378
2379*** RefTeX has new support for index generation. Index entries can be
2380 created with `C-c <', with completion available on index keys.
2381 Pressing `C-c /' indexes the word at the cursor with a default
2382 macro. `C-c >' compiles all index entries into an alphabetically
2383 sorted *Index* buffer which looks like the final index. Entries
2384 can be edited from that buffer.
2385
2386*** Label and citation key selection now allow to select several
2387 items and reference them together (use `m' to mark items, `a' or
2388 `A' to use all marked entries).
2389
2390*** reftex.el has been split into a number of smaller files to reduce
2391 memory use when only a part of RefTeX is being used.
2392
2393*** a new command `reftex-view-crossref-from-bibtex' (bound to `C-c &'
2394 in BibTeX-mode) can be called in a BibTeX database buffer in order
2395 to show locations in LaTeX documents where a particular entry has
2396 been cited.
2397
2398** Emacs Lisp mode now allows multiple levels of outline headings.
2399The level of a heading is determined from the number of leading
2400semicolons in a heading line. Toplevel forms starting with a `('
2401in column 1 are always made leaves.
2402
2403** The M-x time-stamp command (most commonly used on write-file-hooks)
2404has the following new features:
2405
2406*** The patterns for finding the time stamp and for updating a pattern
2407may match text spanning multiple lines. For example, some people like
2408to have the filename and date on separate lines. The new variable
2409time-stamp-inserts-lines controls the matching for multi-line patterns.
2410
2411*** More than one time stamp can be updated in the same file. This
2412feature is useful if you need separate time stamps in a program source
2413file to both include in formatted documentation and insert in the
2414compiled binary. The same time-stamp will be written at each matching
2415pattern. The variable time-stamp-count enables this new feature; it
2416defaults to 1.
2417
2418** Partial Completion mode now completes environment variables in
2419file names.
2420
2421** Ispell changes
fbc164de 2422
efeb796b
EZ
2423*** The command `ispell' now spell-checks a region if
2424transient-mark-mode is on, and the mark is active. Otherwise it
2425spell-checks the current buffer.
59c1bf85 2426
efeb796b
EZ
2427*** Support for synchronous subprocesses - DOS/Windoze - has been
2428added.
732b9cdd 2429
efeb796b
EZ
2430*** An "alignment error" bug was fixed when a manual spelling
2431correction is made and re-checked.
b8b2ea31 2432
efeb796b 2433*** An Italian, Portuguese, and Slovak dictionary definition has been added.
b8b2ea31 2434
efeb796b
EZ
2435*** Region skipping performance has been vastly improved in some
2436cases.
b8b2ea31 2437
efeb796b
EZ
2438*** Spell checking HTML buffers has been improved and isn't so strict
2439on syntax errors.
2440
2441*** The buffer-local words are now always placed on a new line at the
2442end of the buffer.
2443
2444*** Spell checking now works in the MS-DOS version of Emacs.
2445
efeb796b
EZ
2446** Makefile mode changes
2447
2448*** The mode now uses the abbrev table `makefile-mode-abbrev-table'.
b8b2ea31 2449
efeb796b
EZ
2450*** Conditionals and include statements are now highlighted when
2451Fontlock mode is active.
1e406be0 2452
efeb796b 2453** Isearch changes
e33b0397 2454
efeb796b
EZ
2455*** Isearch now puts a call to `isearch-resume' in the command history,
2456so that searches can be resumed.
e33b0397 2457
3a426197 2458*** In Isearch mode, C-M-s and C-M-r are now bound like C-s and C-r,
efeb796b
EZ
2459respectively, i.e. you can repeat a regexp isearch with the same keys
2460that started the search.
2461
2462*** In Isearch mode, mouse-2 in the echo area now yanks the current
2463selection into the search string rather than giving an error.
6f8ea2ae 2464
efeb796b 2465*** There is a new lazy highlighting feature in incremental search.
c0510d27 2466
efeb796b
EZ
2467Lazy highlighting is switched on/off by customizing variable
2468`isearch-lazy-highlight'. When active, all matches for the current
2469search string are highlighted. The current match is highlighted as
2470before using face `isearch' or `region'. All other matches are
2471highlighted using face `isearch-lazy-highlight-face' which defaults to
2472`secondary-selection'.
5d94f558 2473
efeb796b
EZ
2474The extra highlighting makes it easier to anticipate where the cursor
2475will end up each time you press C-s or C-r to repeat a pending search.
2476Highlighting of these additional matches happens in a deferred fashion
2477using "idle timers," so the cycles needed do not rob isearch of its
2478usual snappy response.
dc28878c 2479
efeb796b
EZ
2480If `isearch-lazy-highlight-cleanup' is set to t, highlights for
2481matches are automatically cleared when you end the search. If it is
2482set to nil, you can remove the highlights manually with `M-x
2483isearch-lazy-highlight-cleanup'.
95931eb1 2484
54baed30
GM
2485** VC Changes
2486
2487VC has been overhauled internally. It is now modular, making it
2488easier to plug-in arbitrary version control backends. (See Lisp
2489Changes for details on the new structure.) As a result, the mechanism
2490to enable and disable support for particular version systems has
2491changed: everything is now controlled by the new variable
60a441a5 2492`vc-handled-backends'. Its value is a list of symbols that identify
54baed30
GM
2493version systems; the default is '(RCS CVS SCCS). When finding a file,
2494each of the backends in that list is tried in order to see whether the
2495file is registered in that backend.
2496
2497When registering a new file, VC first tries each of the listed
2498backends to see if any of them considers itself "responsible" for the
2499directory of the file (e.g. because a corresponding subdirectory for
2500master files exists). If none of the backends is responsible, then
2501the first backend in the list that could register the file is chosen.
2502As a consequence, the variable `vc-default-back-end' is now obsolete.
2503
2504The old variable `vc-master-templates' is also obsolete, although VC
2505still supports it for backward compatibility. To define templates for
2506RCS or SCCS, you should rather use the new variables
2507vc-{rcs,sccs}-master-templates. (There is no such feature under CVS
2508where it doesn't make sense.)
2509
2510The variables `vc-ignore-vc-files' and `vc-handle-cvs' are also
2511obsolete now, you must set `vc-handled-backends' to nil or exclude
2512`CVS' from the list, respectively, to achieve their effect now.
2513
2514*** General Changes
2515
2516The variable `vc-checkout-carefully' is obsolete: the corresponding
2517checks are always done now.
2518
327652be 2519VC Dired buffers are now kept up-to-date during all version control
54baed30
GM
2520operations.
2521
c286608e
SM
2522`vc-diff' output is now displayed in `diff-mode'.
2523`vc-print-log' uses `log-view-mode'.
2524`vc-log-mode' (used for *VC-Log*) has been replaced by `log-edit-mode'.
2525
22933be8
AS
2526The command C-x v m (vc-merge) now accepts an empty argument as the
2527first revision number. This means that any recent changes on the
2528current branch should be picked up from the repository and merged into
2529the working file (``merge news'').
2530
2531The commands C-x v s (vc-create-snapshot) and C-x v r
2532(vc-retrieve-snapshot) now ask for a directory name from which to work
2533downwards.
2534
2535*** Multiple Backends
2536
2537VC now lets you register files in more than one backend. This is
2538useful, for example, if you are working with a slow remote CVS
2539repository. You can then use RCS for local editing, and occasionally
2540commit your changes back to CVS, or pick up changes from CVS into your
2541local RCS archives.
2542
2543To make this work, the ``more local'' backend (RCS in our example)
2544should come first in `vc-handled-backends', and the ``more remote''
2545backend (CVS) should come later. (The default value of
2546`vc-handled-backends' already has it that way.)
2547
60a441a5
AS
2548You can then commit changes to another backend (say, RCS), by typing
2549C-u C-x v v RCS RET (i.e. vc-next-action now accepts a backend name as
2550a revision number). VC registers the file in the more local backend
2551if that hasn't already happened, and commits to a branch based on the
2552current revision number from the more remote backend.
22933be8
AS
2553
2554If a file is registered in multiple backends, you can switch to
2555another one using C-x v b (vc-switch-backend). This does not change
2556any files, it only changes VC's perspective on the file. Use this to
2557pick up changes from CVS while working under RCS locally.
2558
2559After you are done with your local RCS editing, you can commit your
2560changes back to CVS using C-u C-x v v CVS RET. In this case, the
2561local RCS archive is removed after the commit, and the log entry
2562buffer is initialized to contain the entire RCS change log of the file.
2563
54baed30
GM
2564*** Changes for CVS
2565
2566There is a new user option, `vc-cvs-stay-local'. If it is `t' (the
2567default), then VC avoids network queries for files registered in
2568remote repositories. The state of such files is then only determined
2569by heuristics and past information. `vc-cvs-stay-local' can also be a
2570regexp to match against repository hostnames; only files from hosts
2571that match it are treated locally. If the variable is nil, then VC
2572queries the repository just as often as it does for local files.
2573
22933be8
AS
2574If `vc-cvs-stay-local' is on, then VC also makes local backups of
2575repository versions. This means that ordinary diffs (C-x v =) and
2576revert operations (C-x v u) can be done completely locally, without
2577any repository interactions at all. The name of a local version
2578backup of FILE is FILE.~REV.~, where REV is the repository version
2579number. This format is similar to that used by C-x v ~
2580(vc-version-other-window), except for the trailing dot. As a matter
2581of fact, the two features can each use the files created by the other,
2582the only difference being that files with a trailing `.' are deleted
105602b1
EZ
2583automatically after commit. (This feature doesn't work on MS-DOS,
2584since DOS disallows more than a single dot in the trunk of a file
2585name.)
22933be8 2586
54baed30
GM
2587If `vc-cvs-stay-local' is on, and there have been changes in the
2588repository, VC notifies you about it when you actually try to commit.
2589If you want to check for updates from the repository without trying to
22933be8 2590commit, you can either use C-x v m RET to perform an update on the
54baed30
GM
2591current file, or you can use C-x v r RET to get an update for an
2592entire directory tree.
2593
2594The new user option `vc-cvs-use-edit' indicates whether VC should call
2595"cvs edit" to make files writeable; it defaults to `t'. (This option
2596is only meaningful if the CVSREAD variable is set, or if files are
2597"watched" by other developers.)
2598
22933be8
AS
2599The commands C-x v s (vc-create-snapshot) and C-x v r
2600(vc-retrieve-snapshot) are now also implemented for CVS. If you give
60a441a5 2601an empty snapshot name to the latter, that performs a `cvs update',
22933be8
AS
2602starting at the given directory.
2603
54baed30
GM
2604*** Lisp Changes in VC
2605
2606VC has been restructured internally to make it modular. You can now
2607add support for arbitrary version control backends by writing a
2608library that provides a certain set of backend-specific functions, and
2609then telling VC to use that library. For example, to add support for
60a441a5
AS
2610a version system named SYS, you write a library named vc-sys.el, which
2611provides a number of functions vc-sys-... (see commentary at the top
54baed30 2612of vc.el for a detailed list of them). To make VC use that library,
60a441a5
AS
2613you need to put it somewhere into Emacs' load path and add the symbol
2614`SYS' to the list `vc-handled-backends'.
54baed30 2615
c4ed232b 2616** The customizable EDT emulation package now supports the EDT
732b9cdd
GM
2617SUBS command and EDT scroll margins. It also works with more
2618terminal/keyboard configurations and it now works under XEmacs.
2619See etc/edt-user.doc for more information.
2620
a933dad1
DL
2621** New modes and packages
2622
79b9f6e0
MB
2623*** The new global minor mode `minibuffer-electric-default-mode'
2624automatically hides the `(default ...)' part of minibuffer prompts when
2625the default is not applicable.
2626
b95b34e5
GM
2627*** Artist is an Emacs lisp package that allows you to draw lines,
2628rectangles and ellipses by using your mouse and/or keyboard. The
2629shapes are made up with the ascii characters |, -, / and \.
2630
2631Features are:
2632
2633- Intersecting: When a `|' intersects with a `-', a `+' is
2634 drawn, like this: | \ /
c607d53d 2635 --+-- X
b95b34e5
GM
2636 | / \
2637
2638- Rubber-banding: When drawing lines you can interactively see the
2639 result while holding the mouse button down and moving the mouse. If
2640 your machine is not fast enough (a 386 is a bit too slow, but a
2641 pentium is well enough), you can turn this feature off. You will
2642 then see 1's and 2's which mark the 1st and 2nd endpoint of the line
2643 you are drawing.
2644
2645- Arrows: After having drawn a (straight) line or a (straight)
2646 poly-line, you can set arrows on the line-ends by typing < or >.
2647
2648- Flood-filling: You can fill any area with a certain character by
2649 flood-filling.
2650
2651- Cut copy and paste: You can cut, copy and paste rectangular
2652 regions. Artist also interfaces with the rect package (this can be
2653 turned off if it causes you any trouble) so anything you cut in
2654 artist can be yanked with C-x r y and vice versa.
c607d53d 2655
b95b34e5
GM
2656- Drawing with keys: Everything you can do with the mouse, you can
2657 also do without the mouse.
2658
2659- Aspect-ratio: You can set the variable artist-aspect-ratio to
2660 reflect the height-width ratio for the font you are using. Squares
2661 and circles are then drawn square/round. Note, that once your
2662 ascii-file is shown with font with a different height-width ratio,
2663 the squares won't be square and the circles won't be round.
2664
2665- Drawing operations: The following drawing operations are implemented:
2666
2667 lines straight-lines
2668 rectangles squares
2669 poly-lines straight poly-lines
2670 ellipses circles
2671 text (see-thru) text (overwrite)
2672 spray-can setting size for spraying
2673 vaporize line vaporize lines
2674 erase characters erase rectangles
2675
2676 Straight lines are lines that go horizontally, vertically or
2677 diagonally. Plain lines go in any direction. The operations in
2678 the right column are accessed by holding down the shift key while
2679 drawing.
2680
2681 It is possible to vaporize (erase) entire lines and connected lines
2682 (rectangles for example) as long as the lines being vaporized are
2683 straight and connected at their endpoints. Vaporizing is inspired
2684 by the drawrect package by Jari Aalto <jari.aalto@poboxes.com>.
2685
2686- Picture mode compatibility: Artist is picture mode compatible (this
2687 can be turned off).
2688
4473cdd9
JW
2689*** The new package Eshell is an operating system command shell
2690implemented entirely in Emacs Lisp. Use `M-x eshell' to invoke it.
2691It functions similarly to bash and zsh, and allows running of Lisp
2692functions and external commands using the same syntax. It supports
2693history lists, aliases, extended globbing, smart scrolling, etc. It
2694will work on any platform Emacs has been ported to. And since most of
2695the basic commands -- ls, rm, mv, cp, ln, du, cat, etc. -- have been
2696rewritten in Lisp, it offers an operating-system independent shell,
2697all within the scope of your Emacs process.
2698
90cbf47e
GM
2699*** The new package timeclock.el is a mode is for keeping track of time
2700intervals. You can use it for whatever purpose you like, but the
2701typical scenario is to keep track of how much time you spend working
2702on certain projects.
2703
baf7eee4
GM
2704*** The new package hi-lock.el provides commands to highlight matches
2705of interactively entered regexps. For example,
abb2db1c 2706
d96d6bb0 2707 M-x highlight-regexp RET clearly RET RET
abb2db1c
GM
2708
2709will highlight all occurrences of `clearly' using a yellow background
2710face. New occurrences of `clearly' will be highlighted as they are
2711typed. `M-x unhighlight-regexp RET' will remove the highlighting.
2712Any existing face can be used for highlighting and a set of
2713appropriate faces is provided. The regexps can be written into the
2714current buffer in a form that will be recognized the next time the
baf7eee4
GM
2715corresponding file is read. There are commands to highlight matches
2716to phrases and to highlight entire lines containing a match.
abb2db1c 2717
d96d6bb0 2718*** The new package zone.el plays games with Emacs' display when
abb2db1c
GM
2719Emacs is idle.
2720
b4c3513f
EZ
2721*** The new package tildify.el allows to add hard spaces or other text
2722fragments in accordance with the current major mode.
2723
31fc5d15
GM
2724*** The new package xml.el provides a simple but generic XML
2725parser. It doesn't parse the DTDs however.
2726
5cb6a58e
SM
2727*** The comment operations are now provided by the newcomment.el
2728package which allows different styles of comment-region and should
2729be more robust while offering the same functionality.
601e0081
SM
2730`comment-region' now doesn't always comment a-line-at-a-time, but only
2731comments the region, breaking the line at point if necessary.
5cb6a58e 2732
578979ee
GM
2733*** The Ebrowse package implements a C++ class browser and tags
2734facilities tailored for use with C++. It is documented in a
2735separate Texinfo file.
2736
424d8b44
DL
2737*** The PCL-CVS package available by either running M-x cvs-examine or
2738by visiting a CVS administrative directory (with a prefix argument)
2739provides an alternative interface to VC-dired for CVS. It comes with
2740`log-view-mode' to view RCS and SCCS logs and `log-edit-mode' used to
8a33023e 2741enter check-in log messages.
dc1178bf 2742
6abca616
EZ
2743*** The new package called `woman' allows to browse Unix man pages
2744without invoking external programs.
2745
2746The command `M-x woman' formats manual pages entirely in Emacs Lisp
2747and then displays them, like `M-x manual-entry' does. Unlike
2748`manual-entry', `woman' does not invoke any external programs, so it
2749is useful on systems such as MS-DOS/MS-Windows where the `man' and
490f2e7b 2750Groff or `troff' commands are not readily available.
6abca616
EZ
2751
2752The command `M-x woman-find-file' asks for the file name of a man
2753page, then formats and displays it like `M-x woman' does.
2754
5e5dff44
GM
2755*** The new command M-x re-builder offers a convenient interface for
2756authoring regular expressions with immediate visual feedback.
2757
2758The buffer from which the command was called becomes the target for
2759the regexp editor popping up in a separate window. Matching text in
2760the target buffer is immediately color marked during the editing.
2761Each sub-expression of the regexp will show up in a different face so
2762even complex regexps can be edited and verified on target data in a
2763single step.
2764
2765On displays not supporting faces the matches instead blink like
2766matching parens to make them stand out. On such a setup you will
2767probably also want to use the sub-expression mode when the regexp
2768contains such to get feedback about their respective limits.
2769
f7136ee8
GM
2770*** glasses-mode is a minor mode that makes
2771unreadableIdentifiersLikeThis readable. It works as glasses, without
2772actually modifying content of a buffer.
2773
bbd9b566
GM
2774*** The package ebnf2ps translates an EBNF to a syntactic chart in
2775PostScript.
2776
2777Currently accepts ad-hoc EBNF, ISO EBNF and Bison/Yacc.
2778
2779The ad-hoc default EBNF syntax has the following elements:
2780
2781 ; comment (until end of line)
2782 A non-terminal
2783 "C" terminal
2784 ?C? special
2785 $A default non-terminal
2786 $"C" default terminal
2787 $?C? default special
2788 A = B. production (A is the header and B the body)
2789 C D sequence (C occurs before D)
2790 C | D alternative (C or D occurs)
2791 A - B exception (A excluding B, B without any non-terminal)
2792 n * A repetition (A repeats n (integer) times)
2793 (C) group (expression C is grouped together)
2794 [C] optional (C may or not occurs)
2795 C+ one or more occurrences of C
2796 {C}+ one or more occurrences of C
2797 {C}* zero or more occurrences of C
2798 {C} zero or more occurrences of C
2799 C / D equivalent to: C {D C}*
2800 {C || D}+ equivalent to: C {D C}*
2801 {C || D}* equivalent to: [C {D C}*]
2802 {C || D} equivalent to: [C {D C}*]
2803
2804Please, see ebnf2ps documentation for EBNF syntax and how to use it.
2805
99453a38
GM
2806*** The package align.el will align columns within a region, using M-x
2807align. Its mode-specific rules, based on regular expressions,
2808determine where the columns should be split. In C and C++, for
2809example, it will align variable names in declaration lists, or the
2810equal signs of assignments.
2811
559cee90
DL
2812*** `paragraph-indent-minor-mode' is a new minor mode supporting
2813paragraphs in the same style as `paragraph-indent-text-mode'.
2814
6448a6b3
GM
2815*** bs.el is a new package for buffer selection similar to
2816list-buffers or electric-buffer-list. Use M-x bs-show to display a
2018166d 2817buffer menu with this package. See the Custom group `bs'.
6448a6b3 2818
6344985d
GM
2819*** find-lisp.el is a package emulating the Unix find command in Lisp.
2820
249652b1
GM
2821*** calculator.el is a small calculator package that is intended to
2822replace desktop calculators such as xcalc and calc.exe. Actually, it
2823is not too small - it has more features than most desktop calculators,
2824and can be customized easily to get many more functions. It should
2825not be confused with "calc" which is a much bigger mathematical tool
2826which answers different needs.
2827
3476b54a
GM
2828*** The minor modes cwarn-mode and global-cwarn-mode highlights
2829suspicious C and C++ constructions. Currently, assignments inside
2830expressions, semicolon following `if', `for' and `while' (except, of
2831course, after a `do .. while' statement), and C++ functions with
2832reference parameters are recognized. The modes require font-lock mode
2833to be enabled.
2834
8964fec7
SM
2835*** smerge-mode.el provides `smerge-mode', a simple minor-mode for files
2836containing diff3-style conflict markers, such as generated by RCS.
2837
a933dad1
DL
2838*** 5x5.el is a simple puzzle game.
2839
16837afc
GM
2840*** hl-line.el provides `hl-line-mode', a minor mode to highlight the
2841current line in the current buffer. It also provides
2842`global-hl-line-mode' to provide the same behaviour in all buffers.
a933dad1
DL
2843
2844*** ansi-color.el translates ANSI terminal escapes into text-properties.
2845
fba448c1 2846Please note: if `ansi-color-for-comint-mode' and
8901d1ac
GM
2847`global-font-lock-mode' are non-nil, loading ansi-color.el will
2848disable font-lock and add `ansi-color-apply' to
2849`comint-preoutput-filter-functions' for all shell-mode buffers. This
2850displays the output of "ls --color=yes" using the correct foreground
2851and background colors.
2852
a933dad1
DL
2853*** delphi.el provides a major mode for editing the Delphi (Object
2854Pascal) language.
2855
2856*** quickurl.el provides a simple method of inserting a URL based on
2857the text at point.
2858
2859*** sql.el provides an interface to SQL data bases.
2860
8d54eb69
DL
2861*** fortune.el uses the fortune program to create mail/news signatures.
2862
732b9cdd
GM
2863*** whitespace.el is a package for warning about and cleaning bogus
2864whitespace in a file.
a933dad1 2865
ebcfda83
GM
2866*** PostScript mode (ps-mode) is a new major mode for editing PostScript
2867files. It offers: interaction with a PostScript interpreter, including
2868(very basic) error handling; fontification, easily customizable for
2869interpreter messages; auto-indentation; insertion of EPSF templates and
2870often used code snippets; viewing of BoundingBox; commenting out /
2871uncommenting regions; conversion of 8bit characters to PostScript octal
2872codes. All functionality is accessible through a menu.
2873
2874*** delim-col helps to prettify columns in a text region or rectangle.
2875
2876Here is an example of columns:
2877
2878horse apple bus
2879dog pineapple car EXTRA
2880porcupine strawberry airplane
2881
2882Doing the following settings:
2883
2884 (setq delimit-columns-str-before "[ ")
2885 (setq delimit-columns-str-after " ]")
2886 (setq delimit-columns-str-separator ", ")
2887 (setq delimit-columns-separator "\t")
2888
2889
2890Selecting the lines above and typing:
2891
2892 M-x delimit-columns-region
2893
2894It results:
2895
2896[ horse , apple , bus , ]
2897[ dog , pineapple , car , EXTRA ]
2898[ porcupine, strawberry, airplane, ]
2899
2900delim-col has the following options:
2901
2902 delimit-columns-str-before Specify a string to be inserted
2903 before all columns.
2904
2905 delimit-columns-str-separator Specify a string to be inserted
2906 between each column.
2907
2908 delimit-columns-str-after Specify a string to be inserted
2909 after all columns.
2910
2911 delimit-columns-separator Specify a regexp which separates
2912 each column.
2913
2914delim-col has the following commands:
2915
2916 delimit-columns-region Prettify all columns in a text region.
2917 delimit-columns-rectangle Prettify all columns in a text rectangle.
2918
2018166d
DL
2919*** Recentf mode maintains a menu for visiting files that were
2920operated on recently. User option recentf-menu-filter specifies a
2921menu filter function to change the menu appearance. For example, the
2922recent file list can be displayed:
f507826c 2923
31fc5d15 2924- organized by major modes, directories or user defined rules.
8a33023e
GM
2925- sorted by file paths, file names, ascending or descending.
2926- showing paths relative to the current default-directory
f507826c 2927
31fc5d15
GM
2928The `recentf-filter-changer' menu filter function allows to
2929dynamically change the menu appearance.
f507826c 2930
8062f458
DL
2931*** elide-head.el provides a mechanism for eliding boilerplate header
2932text.
2933
36e24b82 2934*** footnote.el provides `footnote-mode', a minor mode supporting use
91735437
DL
2935of footnotes. It is intended for use with Message mode, but isn't
2936specific to Message mode.
2937
36e24b82
DL
2938*** diff-mode.el provides `diff-mode', a major mode for
2939viewing/editing context diffs (patches). It is selected for files
2940with extension `.diff', `.diffs', `.patch' and `.rej'.
2941
aaa659ef
DL
2942*** EUDC, the Emacs Unified Directory Client, provides a common user
2943interface to access directory servers using different directory
2944protocols. It has a separate manual.
2945
eee54b0e
DL
2946*** autoconf.el provides a major mode for editing configure.in files
2947for Autoconf, selected automatically.
2948
612839b6
GM
2949*** windmove.el provides moving between windows.
2950
5d94f558 2951*** crm.el provides a facility to read multiple strings from the
612839b6 2952minibuffer with completion.
aaa659ef 2953
399da7e3
DL
2954*** todo-mode.el provides management of TODO lists and integration
2955with the diary features.
2956
6e417ca5
DL
2957*** autoarg.el provides a feature reported from Twenex Emacs whereby
2958numeric keys supply prefix args rather than self inserting.
2959
4a27bdfb
GM
2960*** The function `turn-off-auto-fill' unconditionally turns off Auto
2961Fill mode.
2962
dace60cf
JW
2963*** pcomplete.el is a library that provides programmable completion
2964facilities for Emacs, similar to what zsh and tcsh offer. The main
2965difference is that completion functions are written in Lisp, meaning
2966they can be profiled, debugged, etc.
a18a342d 2967
9540ec3f
EZ
2968*** antlr-mode is a new major mode for editing ANTLR grammar files.
2969It is automatically turned on for files whose names have the extension
2970`.g'.
2971
efeb796b
EZ
2972** Changes in sort.el
2973
2974The function sort-numeric-fields interprets numbers starting with `0'
2975as octal and numbers starting with `0x' or `0X' as hexadecimal. The
2976new user-option sort-numeric-base can be used to specify a default
2977numeric base.
2978
2979** Changes to Ange-ftp
2980
efeb796b
EZ
2981*** Ange-ftp allows you to specify of a port number in remote file
2982names cleanly. It is appended to the host name, separated by a hash
2983sign, e.g. `/foo@bar.org#666:mumble'. (This syntax comes from EFS.)
2984
2985*** If the new user-option `ange-ftp-try-passive-mode' is set, passive
2986ftp mode will be used if the ftp client supports that.
2987
2988*** Ange-ftp handles the output of the w32-style clients which
2989output ^M at the end of lines.
2990
efeb796b
EZ
2991** The recommended way of using Iswitchb is via the new global minor
2992mode `iswitchb-mode'.
2993
efeb796b
EZ
2994** Just loading the msb package doesn't switch on Msb mode anymore.
2995If you have `(require 'msb)' in your .emacs, please replace it with
2996`(msb-mode 1)'.
2997
2998** Flyspell mode has various new options. See the `flyspell' Custom
2999group.
3000
3001** The user option `backward-delete-char-untabify-method' controls the
3002behavior of `backward-delete-char-untabify'. The following values
3003are recognized:
3004
3005`untabify' -- turn a tab to many spaces, then delete one space;
3006`hungry' -- delete all whitespace, both tabs and spaces;
3007`all' -- delete all whitespace, including tabs, spaces and newlines;
3008nil -- just delete one character.
3009
3010Default value is `untabify'.
3011
3012[This change was made in Emacs 20.3 but not mentioned then.]
3013
3014** In Cperl mode `cperl-invalid-face' should now be a normal face
3015symbol, not double-quoted.
3016
3017** Some packages are declared obsolete, to be removed in a future
3018version. They are: auto-show, c-mode, hilit19, hscroll, ooutline,
3019profile, rnews, rnewspost, and sc. Their implementations have been
3020moved to lisp/obsolete.
3021
3022** auto-compression mode is no longer enabled just by loading jka-compr.el.
3023To control it, set `auto-compression-mode' via Custom or use the
3024`auto-compression-mode' command.
3025
3026** `browse-url-gnome-moz' is a new option for
3027`browse-url-browser-function', invoking Mozilla in GNOME, and
3028`browse-url-kde' can be chosen for invoking the KDE browser.
3029
3030** The user-option `browse-url-new-window-p' has been renamed to
3031`browse-url-new-window-flag'.
3032
efeb796b
EZ
3033** The functions `keep-lines', `flush-lines' and `how-many' now
3034operate on the active region in Transient Mark mode.
3035
efeb796b
EZ
3036** `gnus-user-agent' is a new possibility for `mail-user-agent'. It
3037is like `message-user-agent', but with all the Gnus paraphernalia.
3038
3039** The Strokes package has been updated. If your Emacs has XPM
3040support, you can use it for pictographic editing. In Strokes mode,
3041use C-mouse-2 to compose a complex stoke and insert it into the
3042buffer. You can encode or decode a strokes buffer with new commands
3043M-x strokes-encode-buffer and M-x strokes-decode-buffer. There is a
3044new command M-x strokes-list-strokes.
3045
efeb796b
EZ
3046** Hexl contains a new command `hexl-insert-hex-string' which inserts
3047a string of hexadecimal numbers read from the mini-buffer.
3048
3049** Hexl mode allows to insert non-ASCII characters.
3050
3051The non-ASCII characters are encoded using the same encoding as the
3052file you are visiting in Hexl mode.
3053
3054** Shell script mode changes.
3055
3056Shell script mode (sh-script) can now indent scripts for shells
3057derived from sh and rc. The indentation style is customizable, and
3058sh-script can attempt to "learn" the current buffer's style.
3059
3060** Etags changes.
3061
3062*** In DOS, etags looks for file.cgz if it cannot find file.c.
3063
3064*** New option --ignore-case-regex is an alternative to --regex. It is now
3065possible to bind a regexp to a language, by prepending the regexp with
3066{lang}, where lang is one of the languages that `etags --help' prints out.
3067This feature is useful especially for regex files, where each line contains
3068a regular expression. The manual contains details.
3069
3070*** In C and derived languages, etags creates tags for function
3071declarations when given the --declarations option.
3072
3073*** In C++, tags are created for "operator". The tags have the form
3074"operator+", without spaces between the keyword and the operator.
3075
3076*** You shouldn't generally need any more the -C or -c++ option: etags
3077automatically switches to C++ parsing when it meets the `class' or
3078`template' keywords.
3079
3080*** Etags now is able to delve at arbitrary deeps into nested structures in
3081C-like languages. Previously, it was limited to one or two brace levels.
3082
3083*** New language Ada: tags are functions, procedures, packages, tasks, and
3084types.
3085
3086*** In Fortran, `procedure' is not tagged.
3087
3088*** In Java, tags are created for "interface".
3089
3090*** In Lisp, "(defstruct (foo", "(defun (operator" and similar constructs
3091are now tagged.
3092
3093*** In makefiles, tags the targets.
3094
3095*** In Perl, the --globals option tags global variables. my and local
3096variables are tagged.
3097
3098*** New language Python: def and class at the beginning of a line are tags.
3099
3100*** .ss files are Scheme files, .pdb is Postscript with C syntax, .psw is
3101for PSWrap.
3102
efeb796b
EZ
3103** Changes in etags.el
3104
3105*** The new user-option tags-case-fold-search can be used to make
3106tags operations case-sensitive or case-insensitive. The default
3107is to use the same setting as case-fold-search.
3108
3109*** You can display additional output with M-x tags-apropos by setting
3110the new variable tags-apropos-additional-actions.
3111
3112If non-nil, the variable's value should be a list of triples (TITLE
3113FUNCTION TO-SEARCH). For each triple, M-x tags-apropos processes
3114TO-SEARCH and lists tags from it. TO-SEARCH should be an alist,
3115obarray, or symbol. If it is a symbol, the symbol's value is used.
3116
3117TITLE is a string to use to label the list of tags from TO-SEARCH.
3118
3119FUNCTION is a function to call when an entry is selected in the Tags
3120List buffer. It is called with one argument, the selected symbol.
3121
3122A useful example value for this variable might be something like:
3123
3124 '(("Emacs Lisp" Info-goto-emacs-command-node obarray)
3125 ("Common Lisp" common-lisp-hyperspec common-lisp-hyperspec-obarray)
3126 ("SCWM" scwm-documentation scwm-obarray))
3127
3128*** The face tags-tag-face can be used to customize the appearance
3129of tags in the output of M-x tags-apropos.
3130
3131*** Setting tags-apropos-verbose to a non-nil value displays the
3132names of tags files in the *Tags List* buffer.
3133
3134*** You can now search for tags that are part of the filename itself.
3135If you have tagged the files topfile.c subdir/subfile.c
3136/tmp/tempfile.c, you can now search for tags "topfile.c", "subfile.c",
3137"dir/sub", "tempfile", "tempfile.c". If the tag matches the file name,
3138point will go to the beginning of the file.
3139
3140*** Compressed files are now transparently supported if
3141auto-compression-mode is active. You can tag (with Etags) and search
3142(with find-tag) both compressed and uncompressed files.
3143
3144*** Tags commands like M-x tags-search no longer change point
3145in buffers where no match is found. In buffers where a match is
3146found, the original value of point is pushed on the marker ring.
3147
efeb796b
EZ
3148** Fortran mode has a new command `fortran-strip-sequence-nos' to
3149remove text past column 72. The syntax class of `\' in Fortran is now
3150appropriate for C-style escape sequences in strings.
3151
3152** SGML mode's default `sgml-validate-command' is now `nsgmls'.
3153
efeb796b
EZ
3154** A new command `view-emacs-problems' (C-h P) displays the PROBLEMS file.
3155
efeb796b
EZ
3156** The Dabbrev package has a new user-option `dabbrev-ignored-regexps'
3157containing a list of regular expressions. Buffers matching a regular
3158expression from that list, are not checked.
3159
3160** Emacs can now figure out modification times of remote files.
3161When you do C-x C-f /user@host:/path/file RET and edit the file,
3162and someone else modifies the file, you will be prompted to revert
3163the buffer, just like for the local files.
3164
3165** The buffer menu (C-x C-b) no longer lists the *Buffer List* buffer.
3166
efeb796b
EZ
3167** When invoked with a prefix argument, the command `list-abbrevs' now
3168displays local abbrevs, only.
3169
965bc065
DL
3170** Refill minor mode provides preliminary support for keeping
3171paragraphs filled as you modify them.
3172
4e8864c7
GM
3173** The variable `double-click-fuzz' specifies how much the mouse
3174may be moved between clicks that are recognized as a pair. Its value
3175is measured in pixels.
3176
965bc065
DL
3177** The new global minor mode `auto-image-file-mode' allows image files
3178to be visited as images.
3179
68d0efa6
GM
3180** Two new user-options `grep-command' and `grep-find-command'
3181were added to compile.el.
3182
a933dad1
DL
3183** Withdrawn packages
3184
3185*** mldrag.el has been removed. mouse.el provides the same
3186functionality with aliases for the mldrag functions.
25a81338 3187
3261c1d8
DL
3188*** eval-reg.el has been obsoleted by changes to edebug.el and removed.
3189
3190*** ph.el has been obsoleted by EUDC and removed.
ce75fd23 3191
05197f40 3192\f
01242779
DL
3193* Incompatible Lisp changes
3194
3195There are a few Lisp changes which are not backwards-compatible and
3196may require changes to existing code. Here is a list for reference.
3b6936cc 3197See the sections below for details.
01242779 3198
89d57763 3199** Since `format' preserves text properties, the idiom
9b2a085d 3200`(format "%s" foo)' no longer works to copy and remove properties.
bd1190d7
RS
3201Use `copy-sequence' to copy the string, then use `set-text-properties'
3202to remove the properties of the copy.
01242779
DL
3203
3204** Since the `keymap' text property now has significance, some code
3205which uses both `local-map' and `keymap' properties (for portability)
3206may, for instance, give rise to duplicate menus when the keymaps from
3207these properties are active.
3208
4dd4cc14 3209** The change in the treatment of non-ASCII characters in search
01242779 3210ranges may affect some code.
1c14ba45
DL
3211
3212** A non-nil value for the LOCAL arg of add-hook makes the hook
3213buffer-local even if `make-local-hook' hasn't been called, which might
3214make a difference to some code.
3215
4dd4cc14
DL
3216** The new treatment of the minibuffer prompt might affect code which
3217operates on the minibuffer.
3218
7c94ccf6
EZ
3219** The new character sets `eight-bit-control' and `eight-bit-graphic'
3220cause `no-conversion' and `emacs-mule-unix' coding systems to produce
3221different results when reading files with non-ASCII characters
3222(previously, both coding systems would produce the same results).
3223Specifically, `no-conversion' interprets each 8-bit byte as a separate
3224character. This makes `no-conversion' inappropriate for reading
3225multibyte text, e.g. buffers written to disk in their internal MULE
3226encoding (auto-saving does that, for example). If a Lisp program
3227reads such files with `no-conversion', each byte of the multibyte
3228sequence, including the MULE leading codes such as \201, is treated as
3229a separate character, which prevents them from being interpreted in
3230the buffer as multibyte characters.
3231
3232Therefore, Lisp programs that read files which contain the internal
3233MULE encoding should use `emacs-mule-unix'. `no-conversion' is only
3234appropriate for reading truly binary files.
3235
7a39158f 3236** Code that relies on the obsolete `before-change-function' and
3280fbe8
EZ
3237`after-change-function' to detect buffer changes will now fail. Use
3238`before-change-functions' and `after-change-functions' instead.
7a39158f
DL
3239
3240** Code that uses `concat' with integer args now gets an error, as
539e74f9
EZ
3241long promised. So does any code that uses derivatives of `concat',
3242such as `mapconcat'.
7a39158f 3243
55bb62fd
EZ
3244** The function base64-decode-string now always returns a unibyte
3245string.
3246
f34eb373
DL
3247** Not a Lisp incompatibility as such but, with the introduction of
3248extra private charsets, there is now only one slot free for a new
3249dimension-2 private charset. User code which tries to add more than
3250one extra will fail unless you rebuild Emacs with some standard
3251charset(s) removed; that is probably inadvisable because it changes
3252the emacs-mule encoding. Also, files stored in the emacs-mule
028d739a
DL
3253encoding using Emacs 20 with additional private charsets defined will
3254probably not be read correctly by Emacs 21.
3478eafc 3255
98384b7b
EZ
3256** The variable `directory-sep-char' is slated for removal.
3257Not really a change (yet), but a projected one that you should be
3258aware of: The variable `directory-sep-char' is deprecated, and should
3259not be used. It was always ignored on GNU/Linux and Unix systems and
3260on MS-DOS, but the MS-Windows port tried to support it by adapting the
3261behavior of certain primitives to the value of this variable. It
3262turned out that such support cannot be reliable, so it was decided to
3263remove this variable in the near future. Lisp programs are well
3264advised not to set it to anything but '/', because any different value
3265will not have any effect when support for this variable is removed.
7cd5f1e7 3266
05197f40 3267\f
ce75fd23
GM
3268* Lisp changes made after edition 2.6 of the Emacs Lisp Manual,
3269(Display-related features are described in a page of their own below.)
3270
e3b22517
GM
3271** Function assq-delete-all replaces function assoc-delete-all.
3272
1ff74324 3273** The new function animate-string, from lisp/play/animate.el
9e5a7f2a
GM
3274allows the animated display of strings.
3275
ed31fabf
GM
3276** The new function `interactive-form' can be used to obtain the
3277interactive form of a function.
3278
2018166d
DL
3279** The keyword :set-after in defcustom allows to specify dependencies
3280between custom options. Example:
3281
3282 (defcustom default-input-method nil
3283 "*Default input method for multilingual text (a string).
3284 This is the input method activated automatically by the command
3285 `toggle-input-method' (\\[toggle-input-method])."
3286 :group 'mule
3287 :type '(choice (const nil) string)
3288 :set-after '(current-language-environment))
3289
3290This specifies that default-input-method should be set after
3291current-language-environment even if default-input-method appears
3292first in a custom-set-variables statement.
3293
f3780fe4 3294** The new hook `kbd-macro-termination-hook' is run at the end of
a758f97d
GM
3295function execute-kbd-macro. Functions on this hook are called with no
3296args. The hook is run independent of how the macro was terminated
3297(signal or normal termination).
3298
023045d6
DL
3299** Functions `butlast' and `nbutlast' for removing trailing elements
3300from a list are now available without requiring the CL package.
3301
eb1b0c74
GM
3302** The new user-option `even-window-heights' can be set to nil
3303to prevent `display-buffer' from evening out window heights.
3304
52d89894
GM
3305** The user-option `face-font-registry-alternatives' specifies
3306alternative font registry names to try when looking for a font.
3307
693c4692 3308** Function `md5' calculates the MD5 "message digest"/"checksum".
4301cf66 3309
6bc92b2e
GM
3310** Function `delete-frame' runs `delete-frame-hook' before actually
3311deleting the frame. The hook is called with one arg, the frame
3312being deleted.
3313
39e776cd
SM
3314** `add-hook' now makes the hook local if called with a non-nil LOCAL arg.
3315
1396138a 3316** The treatment of non-ASCII characters in search ranges has changed.
a18a342d
DL
3317If a range in a regular expression or the arg of
3318skip-chars-forward/backward starts with a unibyte character C and ends
3319with a multibyte character C2, the range is divided into two: one is
3320C..?\377, the other is C1..C2, where C1 is the first character of C2's
3321charset.
3322
4fbdfdcf
MB
3323** The new function `display-message-or-buffer' displays a message in
3324the echo area or pops up a buffer, depending on the length of the
3325message.
3326
6a0b0752
MB
3327** The new macro `with-auto-compression-mode' allows evaluating an
3328expression with auto-compression-mode enabled.
3329
47e351a3
GM
3330** In image specifications, `:heuristic-mask' has been replaced
3331with the more general `:mask' property.
3332
f864120f 3333** Image specifications accept more `:conversion's.
ba9eeda1 3334
a2bd77b8
GM
3335** A `?' can be used in a symbol name without escaping it with a
3336backslash.
3337
424d8b44
DL
3338** Reading from the mini-buffer now reads from standard input if Emacs
3339is running in batch mode. For example,
3340
3341 (message "%s" (read t))
3342
3343will read a Lisp expression from standard input and print the result
3344to standard output.
3345
424d8b44
DL
3346** The argument of `down-list', `backward-up-list', `up-list',
3347`kill-sexp', `backward-kill-sexp' and `mark-sexp' is now optional.
3348
ead53494
GM
3349** If `display-buffer-reuse-frames' is set, function `display-buffer'
3350will raise frames displaying a buffer, instead of creating a new
3351frame or window.
3352
27848c01
GM
3353** Two new functions for removing elements from lists/sequences
3354were added
3355
3356- Function: remove ELT SEQ
3357
8a33023e 3358Return a copy of SEQ with all occurrences of ELT removed. SEQ must be
27848c01
GM
3359a list, vector, or string. The comparison is done with `equal'.
3360
3361- Function: remq ELT LIST
3362
8a33023e 3363Return a copy of LIST with all occurrences of ELT removed. The
27848c01
GM
3364comparison is done with `eq'.
3365
3366** The function `delete' now also works with vectors and strings.
3ab82477 3367
b548072f 3368** The meaning of the `:weakness WEAK' argument of make-hash-table
c8682017 3369has been changed: WEAK can now have new values `key-or-value' and
ee39b988 3370`key-and-value', in addition the `nil', `key', `value', and `t'.
b548072f 3371
07b14857
KH
3372** Function `aset' stores any multibyte character in any string
3373without signaling "Attempt to change char length of a string". It may
3374convert a unibyte string to multibyte if necessary.
3375
9662da0b
GM
3376** The value of the `help-echo' text property is called as a function
3377or evaluated, if it is not a string already, to obtain a help string.
d5aa31d8 3378
7fce7efb
DL
3379** Function `make-obsolete' now has an optional arg to say when the
3380function was declared obsolete.
3381
5d94f558 3382** Function `plist-member' is renamed from `widget-plist-member' (which is
7fce7efb
DL
3383retained as an alias).
3384
f98d3086
SM
3385** Easy-menu's :filter now works as in XEmacs.
3386It takes the unconverted (i.e. XEmacs) form of the menu and the result
3387is automatically converted to Emacs' form.
3388
87efd256
GM
3389** The new function `window-list' has been defined
3390
39b39373
GM
3391- Function: window-list &optional FRAME WINDOW MINIBUF
3392
3393Return a list of windows on FRAME, starting with WINDOW. FRAME nil or
3394omitted means use the selected frame. WINDOW nil or omitted means use
3395the selected window. MINIBUF t means include the minibuffer window,
3396even if it isn't active. MINIBUF nil or omitted means include the
3397minibuffer window only if it's active. MINIBUF neither nil nor t
3398means never include the minibuffer window.
87efd256 3399
a56ebb90 3400** There's a new function `get-window-with-predicate' defined as follows
67c9a1d2 3401
a56ebb90 3402- Function: get-window-with-predicate PREDICATE &optional MINIBUF ALL-FRAMES DEFAULT
67c9a1d2
GM
3403
3404Return a window satisfying PREDICATE.
3405
3406This function cycles through all visible windows using `walk-windows',
3407calling PREDICATE on each one. PREDICATE is called with a window as
3408argument. The first window for which PREDICATE returns a non-nil
3409value is returned. If no window satisfies PREDICATE, DEFAULT is
3410returned.
3411
3412Optional second arg MINIBUF t means count the minibuffer window even
3413if not active. MINIBUF nil or omitted means count the minibuffer iff
3414it is active. MINIBUF neither t nor nil means not to count the
3415minibuffer even if it is active.
3416
3417Several frames may share a single minibuffer; if the minibuffer
3418counts, all windows on all frames that share that minibuffer count
3419too. Therefore, if you are using a separate minibuffer frame
3420and the minibuffer is active and MINIBUF says it counts,
3421`walk-windows' includes the windows in the frame from which you
3422entered the minibuffer, as well as the minibuffer window.
3423
3424ALL-FRAMES is the optional third argument.
3425ALL-FRAMES nil or omitted means cycle within the frames as specified above.
3426ALL-FRAMES = `visible' means include windows on all visible frames.
3427ALL-FRAMES = 0 means include windows on all visible and iconified frames.
3428ALL-FRAMES = t means include windows on all frames including invisible frames.
3429If ALL-FRAMES is a frame, it means include windows on that frame.
3430Anything else means restrict to the selected frame.
3431
ead53494
GM
3432** The function `single-key-description' now encloses function key and
3433event names in angle brackets. When called with a second optional
3434argument non-nil, angle brackets won't be printed.
dce6b995 3435
25fa6deb
GM
3436** If the variable `message-truncate-lines' is bound to t around a
3437call to `message', the echo area will not be resized to display that
088831a6
GM
3438message; it will be truncated instead, as it was done in 20.x.
3439Default value is nil.
25fa6deb 3440
5d94f558 3441** The user option `line-number-display-limit' can now be set to nil,
1681ead6
GM
3442meaning no limit.
3443
5b034b7f
EZ
3444** The new user option `line-number-display-limit-width' controls
3445the maximum width of lines in a buffer for which Emacs displays line
3446numbers in the mode line. The default is 200.
3447
5d94f558 3448** `select-safe-coding-system' now also checks the most preferred
c08398de
DL
3449coding-system if buffer-file-coding-system is `undecided' and
3450DEFAULT-CODING-SYSTEM is not specified,
3451
9b2999d0
DL
3452** The function `subr-arity' provides information about the argument
3453list of a primitive.
de370c4c 3454
c286608e
SM
3455** `where-is-internal' now also accepts a list of keymaps.
3456
80c05bd3
DL
3457** The text property `keymap' specifies a key map which overrides the
3458buffer's local map and the map specified by the `local-map' property.
3459This is probably what most current uses of `local-map' want, rather
3460than replacing the local map.
3461
14fd0da3
DL
3462** The obsolete variables `before-change-function' and
3463`after-change-function' are no longer acted upon and have been
3464removed. Use `before-change-functions' and `after-change-functions'
3465instead.
45f485a6
GM
3466
3467** The function `apropos-mode' runs the hook `apropos-mode-hook'.
3468
c286608e
SM
3469** `concat' no longer accepts individual integer arguments,
3470as promised long ago.
f0298744 3471
5d94f558 3472** The new function `float-time' returns the current time as a float.
ac57988b
GM
3473
3474** The new variable auto-coding-regexp-alist specifies coding systems
3475for reading specific files, analogous to auto-coding-alist, but
3476patterns are checked against file contents instead of file names.
3477
05197f40 3478\f
a933dad1
DL
3479* Lisp changes in Emacs 21.1 (see following page for display-related features)
3480
6260538e
GM
3481** The new package rx.el provides an alternative sexp notation for
3482regular expressions.
3483
3484- Function: rx-to-string SEXP
3485
3486Translate SEXP into a regular expression in string notation.
3487
3488- Macro: rx SEXP
3489
3490Translate SEXP into a regular expression in string notation.
3491
3492The following are valid subforms of regular expressions in sexp
3493notation.
3494
3495STRING
3496 matches string STRING literally.
3497
3498CHAR
3499 matches character CHAR literally.
3500
3501`not-newline'
3502 matches any character except a newline.
3503 .
3504`anything'
3505 matches any character
3506
3507`(any SET)'
3508 matches any character in SET. SET may be a character or string.
3509 Ranges of characters can be specified as `A-Z' in strings.
3510
79014980 3511'(in SET)'
6260538e
GM
3512 like `any'.
3513
3514`(not (any SET))'
3515 matches any character not in SET
3516
3517`line-start'
3518 matches the empty string, but only at the beginning of a line
3519 in the text being matched
3520
3521`line-end'
3522 is similar to `line-start' but matches only at the end of a line
3523
3524`string-start'
3525 matches the empty string, but only at the beginning of the
3526 string being matched against.
3527
3528`string-end'
3529 matches the empty string, but only at the end of the
3530 string being matched against.
3531
3532`buffer-start'
3533 matches the empty string, but only at the beginning of the
3534 buffer being matched against.
3535
3536`buffer-end'
3537 matches the empty string, but only at the end of the
3538 buffer being matched against.
3539
3540`point'
3541 matches the empty string, but only at point.
3542
3543`word-start'
3544 matches the empty string, but only at the beginning or end of a
3545 word.
3546
3547`word-end'
3548 matches the empty string, but only at the end of a word.
3549
3550`word-boundary'
3551 matches the empty string, but only at the beginning or end of a
3552 word.
3553
3554`(not word-boundary)'
3555 matches the empty string, but not at the beginning or end of a
3556 word.
3557
3558`digit'
3559 matches 0 through 9.
3560
3561`control'
3562 matches ASCII control characters.
3563
3564`hex-digit'
3565 matches 0 through 9, a through f and A through F.
3566
3567`blank'
3568 matches space and tab only.
3569
3570`graphic'
3571 matches graphic characters--everything except ASCII control chars,
3572 space, and DEL.
3573
3574`printing'
3575 matches printing characters--everything except ASCII control chars
3576 and DEL.
3577
3578`alphanumeric'
3579 matches letters and digits. (But at present, for multibyte characters,
3580 it matches anything that has word syntax.)
3581
3582`letter'
3583 matches letters. (But at present, for multibyte characters,
3584 it matches anything that has word syntax.)
3585
3586`ascii'
3587 matches ASCII (unibyte) characters.
3588
3589`nonascii'
3590 matches non-ASCII (multibyte) characters.
3591
3592`lower'
3593 matches anything lower-case.
3594
3595`upper'
3596 matches anything upper-case.
3597
3598`punctuation'
3599 matches punctuation. (But at present, for multibyte characters,
3600 it matches anything that has non-word syntax.)
3601
3602`space'
3603 matches anything that has whitespace syntax.
3604
3605`word'
3606 matches anything that has word syntax.
3607
3608`(syntax SYNTAX)'
3609 matches a character with syntax SYNTAX. SYNTAX must be one
3610 of the following symbols.
3611
3612 `whitespace' (\\s- in string notation)
3613 `punctuation' (\\s.)
3614 `word' (\\sw)
3615 `symbol' (\\s_)
3616 `open-parenthesis' (\\s()
3617 `close-parenthesis' (\\s))
3618 `expression-prefix' (\\s')
3619 `string-quote' (\\s\")
3620 `paired-delimiter' (\\s$)
3621 `escape' (\\s\\)
3622 `character-quote' (\\s/)
3623 `comment-start' (\\s<)
3624 `comment-end' (\\s>)
3625
3626`(not (syntax SYNTAX))'
3627 matches a character that has not syntax SYNTAX.
3628
3629`(category CATEGORY)'
3630 matches a character with category CATEGORY. CATEGORY must be
3631 either a character to use for C, or one of the following symbols.
3632
3633 `consonant' (\\c0 in string notation)
3634 `base-vowel' (\\c1)
3635 `upper-diacritical-mark' (\\c2)
3636 `lower-diacritical-mark' (\\c3)
3637 `tone-mark' (\\c4)
3638 `symbol' (\\c5)
3639 `digit' (\\c6)
3640 `vowel-modifying-diacritical-mark' (\\c7)
3641 `vowel-sign' (\\c8)
3642 `semivowel-lower' (\\c9)
3643 `not-at-end-of-line' (\\c<)
3644 `not-at-beginning-of-line' (\\c>)
3645 `alpha-numeric-two-byte' (\\cA)
3646 `chinse-two-byte' (\\cC)
3647 `greek-two-byte' (\\cG)
3648 `japanese-hiragana-two-byte' (\\cH)
3649 `indian-tow-byte' (\\cI)
3650 `japanese-katakana-two-byte' (\\cK)
3651 `korean-hangul-two-byte' (\\cN)
3652 `cyrillic-two-byte' (\\cY)
3653 `ascii' (\\ca)
3654 `arabic' (\\cb)
3655 `chinese' (\\cc)
3656 `ethiopic' (\\ce)
3657 `greek' (\\cg)
3658 `korean' (\\ch)
3659 `indian' (\\ci)
3660 `japanese' (\\cj)
3661 `japanese-katakana' (\\ck)
3662 `latin' (\\cl)
3663 `lao' (\\co)
3664 `tibetan' (\\cq)
3665 `japanese-roman' (\\cr)
3666 `thai' (\\ct)
3667 `vietnamese' (\\cv)
3668 `hebrew' (\\cw)
3669 `cyrillic' (\\cy)
3670 `can-break' (\\c|)
3671
3672`(not (category CATEGORY))'
3673 matches a character that has not category CATEGORY.
3674
3675`(and SEXP1 SEXP2 ...)'
3676 matches what SEXP1 matches, followed by what SEXP2 matches, etc.
3677
3678`(submatch SEXP1 SEXP2 ...)'
3679 like `and', but makes the match accessible with `match-end',
3680 `match-beginning', and `match-string'.
3681
3682`(group SEXP1 SEXP2 ...)'
3683 another name for `submatch'.
3684
3685`(or SEXP1 SEXP2 ...)'
3686 matches anything that matches SEXP1 or SEXP2, etc. If all
3687 args are strings, use `regexp-opt' to optimize the resulting
3688 regular expression.
3689
3690`(minimal-match SEXP)'
3691 produce a non-greedy regexp for SEXP. Normally, regexps matching
3692 zero or more occurrances of something are \"greedy\" in that they
3693 match as much as they can, as long as the overall regexp can
3694 still match. A non-greedy regexp matches as little as possible.
3695
3696`(maximal-match SEXP)'
3697 produce a greedy regexp for SEXP. This is the default.
3698
3699`(zero-or-more SEXP)'
3700 matches zero or more occurrences of what SEXP matches.
3701
3702`(0+ SEXP)'
3703 like `zero-or-more'.
3704
3705`(* SEXP)'
3706 like `zero-or-more', but always produces a greedy regexp.
3707
3708`(*? SEXP)'
3709 like `zero-or-more', but always produces a non-greedy regexp.
3710
3711`(one-or-more SEXP)'
3712 matches one or more occurrences of A.
79014980 3713
6260538e
GM
3714`(1+ SEXP)'
3715 like `one-or-more'.
3716
3717`(+ SEXP)'
3718 like `one-or-more', but always produces a greedy regexp.
3719
3720`(+? SEXP)'
3721 like `one-or-more', but always produces a non-greedy regexp.
3722
3723`(zero-or-one SEXP)'
3724 matches zero or one occurrences of A.
79014980 3725
6260538e
GM
3726`(optional SEXP)'
3727 like `zero-or-one'.
3728
3729`(? SEXP)'
3730 like `zero-or-one', but always produces a greedy regexp.
3731
3732`(?? SEXP)'
3733 like `zero-or-one', but always produces a non-greedy regexp.
3734
3735`(repeat N SEXP)'
3736 matches N occurrences of what SEXP matches.
3737
3738`(repeat N M SEXP)'
3739 matches N to M occurrences of what SEXP matches.
3740
3741`(eval FORM)'
3742 evaluate FORM and insert result. If result is a string,
3743 `regexp-quote' it.
3744
3745`(regexp REGEXP)'
3746 include REGEXP in string notation in the result.
3747
697617d9
GM
3748*** The features `md5' and `overlay' are now provided by default.
3749
85c75536
MB
3750*** The special form `save-restriction' now works correctly even if the
3751buffer is widened inside the save-restriction and changes made outside
3752the original restriction. Previously, doing this would cause the saved
3753restriction to be restored incorrectly.
3754
0b8a3a6d
DL
3755*** The functions `find-charset-region' and `find-charset-string' include
3756`eight-bit-control' and/or `eight-bit-graphic' in the returned list
028d739a 3757when they find 8-bit characters. Previously, they included `ascii' in a
0b8a3a6d
DL
3758multibyte buffer and `unknown' in a unibyte buffer.
3759
fb2c6a6b 3760*** The functions `set-buffer-multibyte', `string-as-multibyte' and
58008c36
EZ
3761`string-as-unibyte' change the byte sequence of a buffer or a string
3762if it contains a character from the `eight-bit-control' character set.
0b8a3a6d
DL
3763
3764*** The handling of multibyte sequences in a multibyte buffer is
3765changed. Previously, a byte sequence matching the pattern
3766[\200-\237][\240-\377]+ was interpreted as a single character
3767regardless of the length of the trailing bytes [\240-\377]+. Thus, if
3768the sequence was longer than what the leading byte indicated, the
3769extra trailing bytes were ignored by Lisp functions. Now such extra
3770bytes are independent 8-bit characters belonging to the charset
3771eight-bit-graphic.
3772
3773** Fontsets are now implemented using char-tables.
3774
9b2a085d 3775A fontset can now be specified for each independent character, for
0b8a3a6d
DL
3776a group of characters or for a character set rather than just for a
3777character set as previously.
3778
3779*** The arguments of the function `set-fontset-font' are changed.
3780They are NAME, CHARACTER, FONTNAME, and optional FRAME. The function
3781modifies fontset NAME to use FONTNAME for CHARACTER.
3782
3783CHARACTER may be a cons (FROM . TO), where FROM and TO are non-generic
3784characters. In that case FONTNAME is used for all characters in the
3785range FROM and TO (inclusive). CHARACTER may be a charset. In that
3786case FONTNAME is used for all character in the charset.
3787
3788FONTNAME may be a cons (FAMILY . REGISTRY), where FAMILY is the family
9b2a085d 3789name of a font and REGISTRY is a registry name of a font.
0b8a3a6d
DL
3790
3791*** Variable x-charset-registry has been deleted. The default charset
3792registries of character sets are set in the default fontset
3793"fontset-default".
3794
3795*** The function `create-fontset-from-fontset-spec' ignores the second
3796argument STYLE-VARIANT. It never creates style-variant fontsets.
3797
3798** The method of composing characters is changed. Now character
3799composition is done by a special text property `composition' in
3800buffers and strings.
3801
3802*** Charset composition is deleted. Emacs never creates a `composite
3803character' which is an independent character with a unique character
3804code. Thus the following functions handling `composite characters'
3805have been deleted: composite-char-component,
3806composite-char-component-count, composite-char-composition-rule,
3807composite-char-composition-rule and decompose-composite-char delete.
3808The variables leading-code-composition and min-composite-char have
3809also been deleted.
3810
3811*** Three more glyph reference points are added. They can be used to
3812specify a composition rule. See the documentation of the variable
3813`reference-point-alist' for more detail.
3814
3815*** The function `compose-region' takes new arguments COMPONENTS and
3816MODIFICATION-FUNC. With COMPONENTS, you can specify not only a
3817composition rule but also characters to be composed. Such characters
3818may differ between buffer and string text.
3819
3820*** The function `compose-string' takes new arguments START, END,
3821COMPONENTS, and MODIFICATION-FUNC.
3822
3823*** The function `compose-string' puts text property `composition'
3824directly on the argument STRING instead of returning a new string.
3825Likewise, the function `decompose-string' just removes text property
3826`composition' from STRING.
3827
3828*** The new function `find-composition' returns information about
3829a composition at a specified position in a buffer or a string.
3830
3831*** The function `decompose-composite-char' is now labeled as
3832obsolete.
3833
889be0a1
DL
3834** The new coding system `mac-roman' is primarily intended for use on
3835the Macintosh but may be used generally for Macintosh-encoded text.
3836
965bc065 3837** The new character sets `mule-unicode-0100-24ff',
1e36ff68
DL
3838`mule-unicode-2500-33ff', and `mule-unicode-e000-ffff' have been
3839introduced for Unicode characters in the range U+0100..U+24FF,
3840U+2500..U+33FF, U+E000..U+FFFF respectively.
0b8a3a6d 3841
3d7a4ec8
EZ
3842Note that the character sets are not yet unified in Emacs, so
3843characters which belong to charsets such as Latin-2, Greek, Hebrew,
3844etc. and the same characters in the `mule-unicode-*' charsets are
3845different characters, as far as Emacs is concerned. For example, text
3846which includes Unicode characters from the Latin-2 locale cannot be
3847encoded by Emacs with ISO 8859-2 coding system.
3848
3849** The new coding system `mule-utf-8' has been added.
3850It provides limited support for decoding/encoding UTF-8 text. For
3851details, please see the documentation string of this coding system.
23cfab61 3852
0b8a3a6d 3853** The new character sets `japanese-jisx0213-1' and
1e36ff68
DL
3854`japanese-jisx0213-2' have been introduced for the new Japanese
3855standard JIS X 0213 Plane 1 and Plane 2.
3856
3857** The new character sets `latin-iso8859-14' and `latin-iso8859-15'
3858have been introduced.
0b8a3a6d 3859
0b8a3a6d 3860** The new character sets `eight-bit-control' and `eight-bit-graphic'
1e36ff68 3861have been introduced for 8-bit characters in the ranges 0x80..0x9F and
028d739a
DL
38620xA0..0xFF respectively. Note that the multibyte representation of
3863eight-bit-control is never exposed; this leads to an exception in the
3864emacs-mule coding system, which encodes everything else to the
2018166d
DL
3865buffer/string internal representation. Note that to search for
3866eight-bit-graphic characters in a multibyte buffer, the search string
3867must be multibyte, otherwise such characters will be converted to
3868their multibyte equivalent.
0b8a3a6d 3869
f0124b4a
DL
3870** If the APPEND argument of `write-region' is an integer, it seeks to
3871that offset in the file before writing.
3872
f98d3086
SM
3873** The function `add-minor-mode' has been added for convenience and
3874compatibility with XEmacs (and is used internally by define-minor-mode).
7464346d 3875
612839b6
GM
3876** The function `shell-command' now sets the default directory of the
3877`*Shell Command Output*' buffer to the default directory of the buffer
3878from which the command was issued.
3879
3880** The functions `query-replace', `query-replace-regexp',
3881`query-replace-regexp-eval' `map-query-replace-regexp',
3882`replace-string', `replace-regexp', and `perform-replace' take two
3883additional optional arguments START and END that specify the region to
3884operate on.
3885
271b4185
GM
3886** The new function `count-screen-lines' is a more flexible alternative
3887to `window-buffer-height'.
3888
3889- Function: count-screen-lines &optional BEG END COUNT-FINAL-NEWLINE WINDOW
3890
3891Return the number of screen lines in the region between BEG and END.
3892The number of screen lines may be different from the number of actual
3893lines, due to line breaking, display table, etc.
3894
3895Optional arguments BEG and END default to `point-min' and `point-max'
3896respectively.
3897
8a33023e 3898If region ends with a newline, ignore it unless optional third argument
271b4185
GM
3899COUNT-FINAL-NEWLINE is non-nil.
3900
3901The optional fourth argument WINDOW specifies the window used for
3902obtaining parameters such as width, horizontal scrolling, and so
3903on. The default is to use the selected window's parameters.
3904
3905Like `vertical-motion', `count-screen-lines' always uses the current
3906buffer, regardless of which buffer is displayed in WINDOW. This makes
3907possible to use `count-screen-lines' in any buffer, whether or not it
3908is currently displayed in some window.
3909
3c30cb6e
DL
3910** The new function `mapc' is like `mapcar' but doesn't collect the
3911argument function's results.
3912
62f20204 3913** The functions base64-decode-region and base64-decode-string now
55bb62fd 3914signal an error instead of returning nil if decoding fails. Also,
c8682017
EZ
3915`base64-decode-string' now always returns a unibyte string (in Emacs
391620, it returned a multibyte string when the result was a valid multibyte
55bb62fd 3917sequence).
62f20204 3918
c0510d27 3919** The function sendmail-user-agent-compose now recognizes a `body'
b4da8dfa 3920header in the list of headers passed to it.
c0510d27
GM
3921
3922** The new function member-ignore-case works like `member', but
3923ignores differences in case and text representation.
3924
3925** The buffer-local variable cursor-type can be used to specify the
19d1bc27
GM
3926cursor to use in windows displaying a buffer. Values are interpreted
3927as follows:
3928
3929 t use the cursor specified for the frame (default)
3930 nil don't display a cursor
3931 `bar' display a bar cursor with default width
3932 (bar . WIDTH) display a bar cursor with width WIDTH
3933 others display a box cursor.
3934
9a0dd3dc
GM
3935** The variable open-paren-in-column-0-is-defun-start controls whether
3936an open parenthesis in column 0 is considered to be the start of a
3937defun. If set, the default, it is considered a defun start. If not
3938set, an open parenthesis in column 0 has no special meaning.
3939
d7b511c4 3940** The new function `string-to-syntax' can be used to translate syntax
dc1178bf 3941specifications in string form as accepted by `modify-syntax-entry' to
d7b511c4
GM
3942the cons-cell form that is used for the values of the `syntax-table'
3943text property, and in `font-lock-syntactic-keywords'.
3944
3945Example:
3946
3947 (string-to-syntax "()")
3948 => (4 . 41)
3949
1fa28578
GM
3950** Emacs' reader supports CL read syntax for integers in bases
3951other than 10.
3952
3953*** `#BINTEGER' or `#bINTEGER' reads INTEGER in binary (radix 2).
3954INTEGER optionally contains a sign.
3955
5d94f558 3956 #b1111
1fa28578 3957 => 15
5d94f558 3958 #b-1111
1fa28578
GM
3959 => -15
3960
3961*** `#OINTEGER' or `#oINTEGER' reads INTEGER in octal (radix 8).
3962
5d94f558 3963 #o666
1fa28578
GM
3964 => 438
3965
3966*** `#XINTEGER' or `#xINTEGER' reads INTEGER in hexadecimal (radix 16).
3967
5d94f558 3968 #xbeef
1fa28578
GM
3969 => 48815
3970
3971*** `#RADIXrINTEGER' reads INTEGER in radix RADIX, 2 <= RADIX <= 36.
3972
5d94f558 3973 #2R-111
1fa28578 3974 => -7
5d94f558 3975 #25rah
1fa28578
GM
3976 => 267
3977
3d4ff2dd 3978** The function `documentation-property' now evaluates the value of
f98d3086 3979the given property to obtain a string if it doesn't refer to etc/DOC
e9b4e5ff
GM
3980and isn't a string.
3981
3d4ff2dd
GM
3982** If called for a symbol, the function `documentation' now looks for
3983a `function-documentation' property of that symbol. If it has a non-nil
3984value, the documentation is taken from that value. If the value is
3985not a string, it is evaluated to obtain a string.
3986
16ce590d
DL
3987** The last argument of `define-key-after' defaults to t for convenience.
3988
73825616 3989** The new function `replace-regexp-in-string' replaces all matches
16ce590d
DL
3990for a regexp in a string.
3991
3992** `mouse-position' now runs the abnormal hook
3993`mouse-position-function'.
3994
723e779c
GM
3995** The function string-to-number now returns a float for numbers
3996that don't fit into a Lisp integer.
3997
d1e103b2
GM
3998** The variable keyword-symbols-constants-flag has been removed.
3999Keywords are now always considered constants.
4000
31047e0d
DL
4001** The new function `delete-and-extract-region' deletes text and
4002returns it.
4003
7a85e4df
GM
4004** The function `clear-this-command-keys' now also clears the vector
4005returned by function `recent-keys'.
4006
02b14400
RS
4007** Variables `beginning-of-defun-function' and `end-of-defun-function'
4008can be used to define handlers for the functions that find defuns.
3a426197 4009Major modes can define these locally instead of rebinding C-M-a
02b14400
RS
4010etc. if the normal conventions for defuns are not appropriate for the
4011mode.
404fa7d6 4012
8964fec7
SM
4013** easy-mmode-define-minor-mode now takes an additional BODY argument
4014and is renamed `define-minor-mode'.
4015
02b14400
RS
4016** If an abbrev has a hook function which is a symbol, and that symbol
4017has a non-nil `no-self-insert' property, the return value of the hook
4018function specifies whether an expansion has been done or not. If it
4019returns nil, abbrev-expand also returns nil, meaning "no expansion has
4020been performed."
4021
4022When abbrev expansion is done by typing a self-inserting character,
4023and the abbrev has a hook with the `no-self-insert' property, and the
4024hook function returns non-nil meaning expansion has been done,
4025then the self-inserting character is not inserted.
ef961722 4026
81da8b32
GM
4027** The function `intern-soft' now accepts a symbol as first argument.
4028In this case, that exact symbol is looked up in the specified obarray,
4029and the function's value is nil if it is not found.
4030
9e207b90
GM
4031** The new macro `with-syntax-table' can be used to evaluate forms
4032with the syntax table of the current buffer temporarily set to a
4033specified table.
4034
4035 (with-syntax-table TABLE &rest BODY)
4036
4037Evaluate BODY with syntax table of current buffer set to a copy of
03d9c64c
GM
4038TABLE. The current syntax table is saved, BODY is evaluated, and the
4039saved table is restored, even in case of an abnormal exit. Value is
4040what BODY returns.
9e207b90 4041
d7f89643 4042** Regular expressions now support intervals \{n,m\} as well as
95cd4c40 4043Perl's shy-groups \(?:...\) and non-greedy *? +? and ?? operators.
8a33023e 4044Also back-references like \2 are now considered as an error if the
601e0081
SM
4045corresponding subgroup does not exist (or is not closed yet).
4046Previously it would have been silently turned into `2' (ignoring the `\').
8964fec7 4047
dde9e75a
GM
4048** The optional argument BUFFER of function file-local-copy has been
4049removed since it wasn't used by anything.
4050
9da30515
GM
4051** The file name argument of function `file-locked-p' is now required
4052instead of being optional.
4053
d20679eb
GM
4054** The new built-in error `text-read-only' is signaled when trying to
4055modify read-only text.
4056
fbc164de
PE
4057** New functions and variables for locales.
4058
4059The new variable `locale-coding-system' specifies how to encode and
4060decode strings passed to low-level message functions like strerror and
b718982a
PE
4061time functions like strftime. The new variables
4062`system-messages-locale' and `system-time-locale' give the system
4063locales to be used when invoking these two types of functions.
fbc164de
PE
4064
4065The new function `set-locale-environment' sets the language
4066environment, preferred coding system, and locale coding system from
4067the system locale as specified by the LC_ALL, LC_CTYPE, and LANG
b718982a
PE
4068environment variables. Normally, it is invoked during startup and need
4069not be invoked thereafter. It uses the new variables
4070`locale-language-names', `locale-charset-language-names', and
4071`locale-preferred-coding-systems' to make its decisions.
fbc164de 4072
863476d1
SM
4073** syntax tables now understand nested comments.
4074To declare a comment syntax as allowing nesting, just add an `n'
4075modifier to either of the characters of the comment end and the comment
4076start sequences.
4077
ef6d912c
GM
4078** The function `pixmap-spec-p' has been renamed `bitmap-spec-p'
4079because `bitmap' is more in line with the usual X terminology.
4080
a933dad1
DL
4081** New function `propertize'
4082
4083The new function `propertize' can be used to conveniently construct
4084strings with text properties.
4085
4086- Function: propertize STRING &rest PROPERTIES
4087
4088Value is a copy of STRING with text properties assigned as specified
4089by PROPERTIES. PROPERTIES is a sequence of pairs PROPERTY VALUE, with
4090PROPERTY being the name of a text property and VALUE being the
4091specified value of that property. Example:
4092
4093 (propertize "foo" 'face 'bold 'read-only t)
4094
a933dad1
DL
4095** push and pop macros.
4096
02b14400
RS
4097Simple versions of the push and pop macros of Common Lisp
4098are now defined in Emacs Lisp. These macros allow only symbols
a933dad1
DL
4099as the place that holds the list to be changed.
4100
4101(push NEWELT LISTNAME) add NEWELT to the front of LISTNAME's value.
4102(pop LISTNAME) return first elt of LISTNAME, and remove it
4103 (thus altering the value of LISTNAME).
4104
02b14400
RS
4105** New dolist and dotimes macros.
4106
6c7fd5aa
RS
4107Simple versions of the dolist and dotimes macros of Common Lisp
4108are now defined in Emacs Lisp.
02b14400
RS
4109
4110(dolist (VAR LIST [RESULT]) BODY...)
4111 Execute body once for each element of LIST,
4112 using the variable VAR to hold the current element.
4113 Then return the value of RESULT, or nil if RESULT is omitted.
4114
4115(dotimes (VAR COUNT [RESULT]) BODY...)
4116 Execute BODY with VAR bound to successive integers running from 0,
4117 inclusive, to COUNT, exclusive.
4118 Then return the value of RESULT, or nil if RESULT is omitted.
4119
6c083b4c
GM
4120** Regular expressions now support Posix character classes such as
4121[:alpha:], [:space:] and so on. These must be used within a character
4122class--for instance, [-[:digit:].+] matches digits or a period
4123or a sign.
a933dad1
DL
4124
4125[:digit:] matches 0 through 9
4126[:cntrl:] matches ASCII control characters
4127[:xdigit:] matches 0 through 9, a through f and A through F.
4128[:blank:] matches space and tab only
4129[:graph:] matches graphic characters--everything except ASCII control chars,
4130 space, and DEL.
4131[:print:] matches printing characters--everything except ASCII control chars
4132 and DEL.
4133[:alnum:] matches letters and digits.
4134 (But at present, for multibyte characters,
4135 it matches anything that has word syntax.)
4136[:alpha:] matches letters.
4137 (But at present, for multibyte characters,
4138 it matches anything that has word syntax.)
4139[:ascii:] matches ASCII (unibyte) characters.
4140[:nonascii:] matches non-ASCII (multibyte) characters.
4141[:lower:] matches anything lower-case.
4142[:punct:] matches punctuation.
4143 (But at present, for multibyte characters,
4144 it matches anything that has non-word syntax.)
4145[:space:] matches anything that has whitespace syntax.
4146[:upper:] matches anything upper-case.
4147[:word:] matches anything that has word syntax.
4148
a933dad1
DL
4149** Emacs now has built-in hash tables.
4150
4151The following functions are defined for hash tables:
4152
4153- Function: make-hash-table ARGS
4154
4155The argument list ARGS consists of keyword/argument pairs. All arguments
4156are optional. The following arguments are defined:
4157
4158:test TEST
4159
4160TEST must be a symbol specifying how to compare keys. Default is `eql'.
4161Predefined are `eq', `eql' and `equal'. If TEST is not predefined,
4162it must have been defined with `define-hash-table-test'.
4163
4164:size SIZE
4165
4166SIZE must be an integer > 0 giving a hint to the implementation how
4167many elements will be put in the hash table. Default size is 65.
4168
4169:rehash-size REHASH-SIZE
4170
4171REHASH-SIZE specifies by how much to grow a hash table once it becomes
4172full. If REHASH-SIZE is an integer, add that to the hash table's old
4173size to get the new size. Otherwise, REHASH-SIZE must be a float >
41741.0, and the new size is computed by multiplying REHASH-SIZE with the
4175old size. Default rehash size is 1.5.
4176
4177:rehash-threshold THRESHOLD
4178
4179THRESHOLD must be a float > 0 and <= 1.0 specifying when to resize the
4180hash table. It is resized when the ratio of (number of entries) /
4181(size of hash table) is >= THRESHOLD. Default threshold is 0.8.
4182
4183:weakness WEAK
4184
b548072f
GM
4185WEAK must be either nil, one of the symbols `key, `value',
4186`key-or-value', `key-and-value', or t, meaning the same as
4187`key-and-value'. Entries are removed from weak tables during garbage
4188collection if their key and/or value are not referenced elsewhere
4189outside of the hash table. Default are non-weak hash tables.
a933dad1
DL
4190
4191- Function: makehash &optional TEST
4192
4193Similar to make-hash-table, but only TEST can be specified.
4194
4195- Function: hash-table-p TABLE
4196
4197Returns non-nil if TABLE is a hash table object.
4198
4199- Function: copy-hash-table TABLE
4200
4201Returns a copy of TABLE. Only the table itself is copied, keys and
4202values are shared.
4203
4204- Function: hash-table-count TABLE
4205
4206Returns the number of entries in TABLE.
4207
4208- Function: hash-table-rehash-size TABLE
4209
4210Returns the rehash size of TABLE.
4211
4212- Function: hash-table-rehash-threshold TABLE
4213
4214Returns the rehash threshold of TABLE.
4215
4216- Function: hash-table-rehash-size TABLE
4217
4218Returns the size of TABLE.
4219
d96d6bb0 4220- Function: hash-table-test TABLE
a933dad1
DL
4221
4222Returns the test TABLE uses to compare keys.
4223
4224- Function: hash-table-weakness TABLE
4225
4226Returns the weakness specified for TABLE.
4227
4228- Function: clrhash TABLE
4229
4230Clear TABLE.
4231
4232- Function: gethash KEY TABLE &optional DEFAULT
4233
4234Look up KEY in TABLE and return its associated VALUE or DEFAULT if
4235not found.
4236
79214ddf 4237- Function: puthash KEY VALUE TABLE
a933dad1
DL
4238
4239Associate KEY with VALUE in TABLE. If KEY is already associated with
4240another value, replace the old value with VALUE.
4241
4242- Function: remhash KEY TABLE
4243
4244Remove KEY from TABLE if it is there.
4245
4246- Function: maphash FUNCTION TABLE
4247
4248Call FUNCTION for all elements in TABLE. FUNCTION must take two
4249arguments KEY and VALUE.
4250
4251- Function: sxhash OBJ
4252
4253Return a hash code for Lisp object OBJ.
4254
4255- Function: define-hash-table-test NAME TEST-FN HASH-FN
4256
4257Define a new hash table test named NAME. If NAME is specified as
4258a test in `make-hash-table', the table created will use TEST-FN for
79214ddf 4259comparing keys, and HASH-FN to compute hash codes for keys. Test
a933dad1
DL
4260and hash function are stored as symbol property `hash-table-test'
4261of NAME with a value of (TEST-FN HASH-FN).
4262
4263TEST-FN must take two arguments and return non-nil if they are the same.
4264
4265HASH-FN must take one argument and return an integer that is the hash
4266code of the argument. The function should use the whole range of
4267integer values for hash code computation, including negative integers.
4268
4269Example: The following creates a hash table whose keys are supposed to
4270be strings that are compared case-insensitively.
4271
4272 (defun case-fold-string= (a b)
4273 (compare-strings a nil nil b nil nil t))
4274
4275 (defun case-fold-string-hash (a)
4276 (sxhash (upcase a)))
4277
79214ddf 4278 (define-hash-table-test 'case-fold 'case-fold-string=
a933dad1
DL
4279 'case-fold-string-hash))
4280
4281 (make-hash-table :test 'case-fold)
4282
a933dad1
DL
4283** The Lisp reader handles circular structure.
4284
4285It now works to use the #N= and #N# constructs to represent
4286circular structures. For example, #1=(a . #1#) represents
4287a cons cell which is its own cdr.
4288
a933dad1
DL
4289** The Lisp printer handles circular structure.
4290
4291If you bind print-circle to a non-nil value, the Lisp printer outputs
4292#N= and #N# constructs to represent circular and shared structure.
4293
a933dad1
DL
4294** If the second argument to `move-to-column' is anything but nil or
4295t, that means replace a tab with spaces if necessary to reach the
4296specified column, but do not add spaces at the end of the line if it
4297is too short to reach that column.
4298
a933dad1
DL
4299** perform-replace has a new feature: the REPLACEMENTS argument may
4300now be a cons cell (FUNCTION . DATA). This means to call FUNCTION
4301after each match to get the replacement text. FUNCTION is called with
4302two arguments: DATA, and the number of replacements already made.
4303
4304If the FROM-STRING contains any upper-case letters,
4305perform-replace also turns off `case-fold-search' temporarily
4306and inserts the replacement text without altering case in it.
4307
a933dad1
DL
4308** The function buffer-size now accepts an optional argument
4309to specify which buffer to return the size of.
4310
a933dad1
DL
4311** The calendar motion commands now run the normal hook
4312calendar-move-hook after moving point.
4313
a933dad1
DL
4314** The new variable small-temporary-file-directory specifies a
4315directory to use for creating temporary files that are likely to be
4316small. (Certain Emacs features use this directory.) If
4317small-temporary-file-directory is nil, they use
4318temporary-file-directory instead.
4319
a933dad1
DL
4320** The variable `inhibit-modification-hooks', if non-nil, inhibits all
4321the hooks that track changes in the buffer. This affects
4322`before-change-functions' and `after-change-functions', as well as
4323hooks attached to text properties and overlay properties.
4324
2018166d
DL
4325** assq-delete-all is a new function that deletes all the
4326elements of an alist which have a car `eq' to a particular value.
a933dad1 4327
a933dad1
DL
4328** make-temp-file provides a more reliable way to create a temporary file.
4329
4330make-temp-file is used like make-temp-name, except that it actually
4331creates the file before it returns. This prevents a timing error,
4332ensuring that no other job can use the same name for a temporary file.
4333
a933dad1
DL
4334** New exclusive-open feature in `write-region'
4335
4336The optional seventh arg is now called MUSTBENEW. If non-nil, it insists
4337on a check for an existing file with the same name. If MUSTBENEW
4338is `excl', that means to get an error if the file already exists;
4339never overwrite. If MUSTBENEW is neither nil nor `excl', that means
4340ask for confirmation before overwriting, but do go ahead and
4341overwrite the file if the user gives confirmation.
4342
4343If the MUSTBENEW argument in `write-region' is `excl',
4344that means to use a special feature in the `open' system call
4345to get an error if the file exists at that time.
4346The error reported is `file-already-exists'.
4347
a933dad1
DL
4348** Function `format' now handles text properties.
4349
4350Text properties of the format string are applied to the result string.
4351If the result string is longer than the format string, text properties
4352ending at the end of the format string are extended to the end of the
4353result string.
4354
4355Text properties from string arguments are applied to the result
4356string where arguments appear in the result string.
4357
4358Example:
4359
4360 (let ((s1 "hello, %s")
4361 (s2 "world"))
4362 (put-text-property 0 (length s1) 'face 'bold s1)
4363 (put-text-property 0 (length s2) 'face 'italic s2)
b246b1f6 4364 (format s1 s2))
a933dad1
DL
4365
4366results in a bold-face string with an italic `world' at the end.
4367
a933dad1
DL
4368** Messages can now be displayed with text properties.
4369
4370Text properties are handled as described above for function `format'.
4371The following example displays a bold-face message with an italic
4372argument in it.
4373
4374 (let ((msg "hello, %s!")
4375 (arg "world"))
4376 (put-text-property 0 (length msg) 'face 'bold msg)
4377 (put-text-property 0 (length arg) 'face 'italic arg)
4378 (message msg arg))
4379
a933dad1
DL
4380** Sound support
4381
4382Emacs supports playing sound files on GNU/Linux and the free BSDs
4383(Voxware driver and native BSD driver, aka as Luigi's driver).
4384
4385Currently supported file formats are RIFF-WAVE (*.wav) and Sun Audio
4386(*.au). You must configure Emacs with the option `--with-sound=yes'
4387to enable sound support.
4388
4389Sound files can be played by calling (play-sound SOUND). SOUND is a
4390list of the form `(sound PROPERTY...)'. The function is only defined
4391when sound support is present for the system on which Emacs runs. The
4392functions runs `play-sound-functions' with one argument which is the
4393sound to play, before playing the sound.
4394
4395The following sound properties are supported:
4396
4397- `:file FILE'
4398
4399FILE is a file name. If FILE isn't an absolute name, it will be
4400searched relative to `data-directory'.
4401
6fb40beb
GM
4402- `:data DATA'
4403
4404DATA is a string containing sound data. Either :file or :data
4405may be present, but not both.
4406
a933dad1
DL
4407- `:volume VOLUME'
4408
4409VOLUME must be an integer in the range 0..100 or a float in the range
44100..1. This property is optional.
4411
01242779
DL
4412- `:device DEVICE'
4413
4414DEVICE is a string specifying the system device on which to play the
4415sound. The default device is system-dependent.
4416
a933dad1
DL
4417Other properties are ignored.
4418
01242779
DL
4419An alternative interface is called as
4420(play-sound-file FILE &optional VOLUME DEVICE).
4421
a933dad1 4422** `multimedia' is a new Finder keyword and Custom group.
356673d4
DL
4423
4424** keywordp is a new predicate to test efficiently for an object being
4425a keyword symbol.
fc91dc2d
GM
4426
4427** Changes to garbage collection
4428
4429*** The function garbage-collect now additionally returns the number
4430of live and free strings.
4431
4432*** There is a new variable `strings-consed' holding the number of
4433strings that have been consed so far.
4434
05197f40 4435\f
04545643
GM
4436* Lisp-level Display features added after release 2.6 of the Emacs
4437Lisp Manual
4438
a299a6f0
GM
4439** The user-option `resize-mini-windows' controls how Emacs resizes
4440mini-windows.
4441
26fcde61
MB
4442** The function `pos-visible-in-window-p' now has a third optional
4443argument, PARTIALLY. If a character is only partially visible, nil is
4444returned, unless PARTIALLY is non-nil.
ea4c1b7c 4445
a299a6f0 4446** On window systems, `glyph-table' is no longer used.
82a452c8 4447
9a8d84ca 4448** Help strings in menu items are now used to provide `help-echo' text.
2c69ced2
GM
4449
4450** The function `image-size' can be used to determine the size of an
4451image.
4452
4453- Function: image-size SPEC &optional PIXELS FRAME
4454
4455Return the size of an image as a pair (WIDTH . HEIGHT).
4456
4457SPEC is an image specification. PIXELS non-nil means return sizes
4458measured in pixels, otherwise return sizes measured in canonical
4459character units (fractions of the width/height of the frame's default
4460font). FRAME is the frame on which the image will be displayed.
4461FRAME nil or omitted means use the selected frame.
4462
ebb8f116
GM
4463** The function `image-mask-p' can be used to determine if an image
4464has a mask bitmap.
4465
4466- Function: image-mask-p SPEC &optional FRAME
4467
4468Return t if image SPEC has a mask bitmap.
4469FRAME is the frame on which the image will be displayed. FRAME nil
4470or omitted means use the selected frame.
4471
0b8a3a6d
DL
4472** The function `find-image' can be used to find a usable image
4473satisfying one of a list of specifications.
4474
0b8a3a6d
DL
4475** The STRING argument of `put-image' and `insert-image' is now
4476optional.
4477
f6499c03
DL
4478** Image specifications may contain the property `:ascent center' (see
4479below).
04545643 4480
05197f40 4481\f
a933dad1
DL
4482* New Lisp-level Display features in Emacs 21.1
4483
f6d3257b
GM
4484** The function tty-suppress-bold-inverse-default-colors can be used
4485to make Emacs avoid displaying text with bold black foreground on TTYs.
4486
4487Some terminals, notably PC consoles, emulate bold text by displaying
4488text in brighter colors. On such a console, a bold black foreground
4489is displayed in a gray color. If this turns out to be hard to read on
4490your monitor---the problem occurred with the mode line on
4491laptops---you can instruct Emacs to ignore the text's boldness, and to
4492just display it black instead.
4493
4494This situation can't be detected automatically. You will have to put
4495a line like
4496
4497 (tty-suppress-bold-inverse-default-colors t)
4498
4499in your `.emacs'.
4500
a933dad1
DL
4501** New face implementation.
4502
4503Emacs faces have been reimplemented from scratch. They don't use XLFD
4504font names anymore and face merging now works as expected.
4505
a933dad1
DL
4506*** New faces.
4507
4508Each face can specify the following display attributes:
4509
4510 1. Font family or fontset alias name.
79214ddf 4511
a933dad1
DL
4512 2. Relative proportionate width, aka character set width or set
4513 width (swidth), e.g. `semi-compressed'.
79214ddf 4514
a933dad1 4515 3. Font height in 1/10pt
79214ddf 4516
a933dad1 4517 4. Font weight, e.g. `bold'.
79214ddf 4518
a933dad1 4519 5. Font slant, e.g. `italic'.
79214ddf 4520
a933dad1 4521 6. Foreground color.
79214ddf 4522
a933dad1
DL
4523 7. Background color.
4524
4525 8. Whether or not characters should be underlined, and in what color.
4526
4527 9. Whether or not characters should be displayed in inverse video.
4528
4529 10. A background stipple, a bitmap.
4530
4531 11. Whether or not characters should be overlined, and in what color.
4532
4533 12. Whether or not characters should be strike-through, and in what
4534 color.
4535
4536 13. Whether or not a box should be drawn around characters, its
4537 color, the width of the box lines, and 3D appearance.
4538
4539Faces are frame-local by nature because Emacs allows to define the
4540same named face (face names are symbols) differently for different
4541frames. Each frame has an alist of face definitions for all named
4542faces. The value of a named face in such an alist is a Lisp vector
0969bd6a 4543with the symbol `face' in slot 0, and a slot for each of the face
a933dad1
DL
4544attributes mentioned above.
4545
4546There is also a global face alist `face-new-frame-defaults'. Face
4547definitions from this list are used to initialize faces of newly
4548created frames.
79214ddf 4549
a933dad1
DL
4550A face doesn't have to specify all attributes. Those not specified
4551have a nil value. Faces specifying all attributes are called
4552`fully-specified'.
4553
a933dad1
DL
4554*** Face merging.
4555
4556The display style of a given character in the text is determined by
4557combining several faces. This process is called `face merging'. Any
4558aspect of the display style that isn't specified by overlays or text
4559properties is taken from the `default' face. Since it is made sure
4560that the default face is always fully-specified, face merging always
4561results in a fully-specified face.
4562
a933dad1
DL
4563*** Face realization.
4564
4565After all face attributes for a character have been determined by
4566merging faces of that character, that face is `realized'. The
4567realization process maps face attributes to what is physically
4568available on the system where Emacs runs. The result is a `realized
4569face' in form of an internal structure which is stored in the face
4570cache of the frame on which it was realized.
4571
4572Face realization is done in the context of the charset of the
4573character to display because different fonts and encodings are used
4574for different charsets. In other words, for characters of different
4575charsets, different realized faces are needed to display them.
4576
4577Except for composite characters, faces are always realized for a
4578specific character set and contain a specific font, even if the face
4579being realized specifies a fontset. The reason is that the result of
4580the new font selection stage is better than what can be done with
4581statically defined font name patterns in fontsets.
4582
4583In unibyte text, Emacs' charsets aren't applicable; function
4584`char-charset' reports ASCII for all characters, including those >
45850x7f. The X registry and encoding of fonts to use is determined from
4586the variable `face-default-registry' in this case. The variable is
4587initialized at Emacs startup time from the font the user specified for
4588Emacs.
4589
4590Currently all unibyte text, i.e. all buffers with
4591`enable-multibyte-characters' nil are displayed with fonts of the same
4592registry and encoding `face-default-registry'. This is consistent
4593with the fact that languages can also be set globally, only.
4594
a933dad1
DL
4595**** Clearing face caches.
4596
4597The Lisp function `clear-face-cache' can be called to clear face caches
4598on all frames. If called with a non-nil argument, it will also unload
4599unused fonts.
4600
a933dad1 4601*** Font selection.
79214ddf 4602
a933dad1
DL
4603Font selection tries to find the best available matching font for a
4604given (charset, face) combination. This is done slightly differently
4605for faces specifying a fontset, or a font family name.
4606
4607If the face specifies a fontset name, that fontset determines a
4608pattern for fonts of the given charset. If the face specifies a font
4609family, a font pattern is constructed. Charset symbols have a
4610property `x-charset-registry' for that purpose that maps a charset to
4611an XLFD registry and encoding in the font pattern constructed.
4612
4613Available fonts on the system on which Emacs runs are then matched
4614against the font pattern. The result of font selection is the best
4615match for the given face attributes in this font list.
4616
4617Font selection can be influenced by the user.
4618
4619The user can specify the relative importance he gives the face
4620attributes width, height, weight, and slant by setting
4621face-font-selection-order (faces.el) to a list of face attribute
4622names. The default is (:width :height :weight :slant), and means
4623that font selection first tries to find a good match for the font
4624width specified by a face, then---within fonts with that width---tries
4625to find a best match for the specified font height, etc.
4626
52d89894
GM
4627Setting `face-font-family-alternatives' allows the user to specify
4628alternative font families to try if a family specified by a face
89d57763 4629doesn't exist.
af4bb4c8
KH
4630
4631Setting `face-font-registry-alternatives' allows the user to specify
8a33023e 4632all alternative font registry names to try for a face specifying a
af4bb4c8
KH
4633registry.
4634
8a33023e 4635Please note that the interpretations of the above two variables are
af4bb4c8
KH
4636slightly different.
4637
4638Setting face-ignored-fonts allows the user to ignore specific fonts.
4639
a933dad1 4640
a933dad1
DL
4641**** Scalable fonts
4642
4643Emacs can make use of scalable fonts but doesn't do so by default,
4644since the use of too many or too big scalable fonts may crash XFree86
4645servers.
4646
4647To enable scalable font use, set the variable
b246b1f6 4648`scalable-fonts-allowed'. A value of nil, the default, means never use
a933dad1
DL
4649scalable fonts. A value of t means any scalable font may be used.
4650Otherwise, the value must be a list of regular expressions. A
4651scalable font may then be used if it matches a regular expression from
4652that list. Example:
4653
4654 (setq scalable-fonts-allowed '("muleindian-2$"))
4655
4656allows the use of scalable fonts with registry `muleindian-2'.
4657
a933dad1
DL
4658*** Functions and variables related to font selection.
4659
4660- Function: x-family-fonts &optional FAMILY FRAME
4661
4662Return a list of available fonts of family FAMILY on FRAME. If FAMILY
4663is omitted or nil, list all families. Otherwise, FAMILY must be a
4664string, possibly containing wildcards `?' and `*'.
4665
4666If FRAME is omitted or nil, use the selected frame. Each element of
4667the result is a vector [FAMILY WIDTH POINT-SIZE WEIGHT SLANT FIXED-P
4668FULL REGISTRY-AND-ENCODING]. FAMILY is the font family name.
4669POINT-SIZE is the size of the font in 1/10 pt. WIDTH, WEIGHT, and
4670SLANT are symbols describing the width, weight and slant of the font.
4671These symbols are the same as for face attributes. FIXED-P is non-nil
4672if the font is fixed-pitch. FULL is the full name of the font, and
4673REGISTRY-AND-ENCODING is a string giving the registry and encoding of
4674the font. The result list is sorted according to the current setting
4675of the face font sort order.
4676
79214ddf 4677- Function: x-font-family-list
a933dad1
DL
4678
4679Return a list of available font families on FRAME. If FRAME is
4680omitted or nil, use the selected frame. Value is a list of conses
4681(FAMILY . FIXED-P) where FAMILY is a font family, and FIXED-P is
4682non-nil if fonts of that family are fixed-pitch.
4683
4684- Variable: font-list-limit
4685
4686Limit for font matching. If an integer > 0, font matching functions
4687won't load more than that number of fonts when searching for a
4688matching font. The default is currently 100.
4689
a933dad1
DL
4690*** Setting face attributes.
4691
4692For the most part, the new face implementation is interface-compatible
4693with the old one. Old face attribute related functions are now
4694implemented in terms of the new functions `set-face-attribute' and
4695`face-attribute'.
4696
4697Face attributes are identified by their names which are keyword
4698symbols. All attributes can be set to `unspecified'.
4699
4700The following attributes are recognized:
4701
4702`:family'
4703
4704VALUE must be a string specifying the font family, e.g. ``courier'',
4705or a fontset alias name. If a font family is specified, wild-cards `*'
4706and `?' are allowed.
4707
4708`:width'
4709
4710VALUE specifies the relative proportionate width of the font to use.
4711It must be one of the symbols `ultra-condensed', `extra-condensed',
4712`condensed', `semi-condensed', `normal', `semi-expanded', `expanded',
4713`extra-expanded', or `ultra-expanded'.
4714
4715`:height'
4716
787345ff
MB
4717VALUE must be either an integer specifying the height of the font to use
4718in 1/10 pt, a floating point number specifying the amount by which to
4719scale any underlying face, or a function, which is called with the old
4720height (from the underlying face), and should return the new height.
a933dad1
DL
4721
4722`:weight'
4723
4724VALUE specifies the weight of the font to use. It must be one of the
4725symbols `ultra-bold', `extra-bold', `bold', `semi-bold', `normal',
4726`semi-light', `light', `extra-light', `ultra-light'.
4727
4728`:slant'
4729
4730VALUE specifies the slant of the font to use. It must be one of the
4731symbols `italic', `oblique', `normal', `reverse-italic', or
4732`reverse-oblique'.
4733
4734`:foreground', `:background'
4735
4736VALUE must be a color name, a string.
4737
4738`:underline'
4739
4740VALUE specifies whether characters in FACE should be underlined. If
4741VALUE is t, underline with foreground color of the face. If VALUE is
4742a string, underline with that color. If VALUE is nil, explicitly
4743don't underline.
4744
4745`:overline'
4746
4747VALUE specifies whether characters in FACE should be overlined. If
4748VALUE is t, overline with foreground color of the face. If VALUE is a
4749string, overline with that color. If VALUE is nil, explicitly don't
4750overline.
4751
4752`:strike-through'
4753
4754VALUE specifies whether characters in FACE should be drawn with a line
4755striking through them. If VALUE is t, use the foreground color of the
4756face. If VALUE is a string, strike-through with that color. If VALUE
4757is nil, explicitly don't strike through.
4758
4759`:box'
4760
4761VALUE specifies whether characters in FACE should have a box drawn
4762around them. If VALUE is nil, explicitly don't draw boxes. If
4763VALUE is t, draw a box with lines of width 1 in the foreground color
4764of the face. If VALUE is a string, the string must be a color name,
4765and the box is drawn in that color with a line width of 1. Otherwise,
4766VALUE must be a property list of the form `(:line-width WIDTH
4767:color COLOR :style STYLE)'. If a keyword/value pair is missing from
4768the property list, a default value will be used for the value, as
4769specified below. WIDTH specifies the width of the lines to draw; it
4770defaults to 1. COLOR is the name of the color to draw in, default is
4771the foreground color of the face for simple boxes, and the background
4772color of the face for 3D boxes. STYLE specifies whether a 3D box
4773should be draw. If STYLE is `released-button', draw a box looking
4774like a released 3D button. If STYLE is `pressed-button' draw a box
4775that appears like a pressed button. If STYLE is nil, the default if
4776the property list doesn't contain a style specification, draw a 2D
4777box.
4778
4779`:inverse-video'
4780
4781VALUE specifies whether characters in FACE should be displayed in
4782inverse video. VALUE must be one of t or nil.
4783
4784`:stipple'
4785
4786If VALUE is a string, it must be the name of a file of pixmap data.
4787The directories listed in the `x-bitmap-file-path' variable are
4788searched. Alternatively, VALUE may be a list of the form (WIDTH
4789HEIGHT DATA) where WIDTH and HEIGHT are the size in pixels, and DATA
4790is a string containing the raw bits of the bitmap. VALUE nil means
4791explicitly don't use a stipple pattern.
4792
4793For convenience, attributes `:family', `:width', `:height', `:weight',
4794and `:slant' may also be set in one step from an X font name:
4795
4796`:font'
4797
4798Set font-related face attributes from VALUE. VALUE must be a valid
4799XLFD font name. If it is a font name pattern, the first matching font
4800is used--this is for compatibility with the behavior of previous
4801versions of Emacs.
4802
4803For compatibility with Emacs 20, keywords `:bold' and `:italic' can
4804be used to specify that a bold or italic font should be used. VALUE
4805must be t or nil in that case. A value of `unspecified' is not allowed."
4806
4807Please see also the documentation of `set-face-attribute' and
4808`defface'.
4809
787345ff
MB
4810`:inherit'
4811
4812VALUE is the name of a face from which to inherit attributes, or a list
4813of face names. Attributes from inherited faces are merged into the face
4814like an underlying face would be, with higher priority than underlying faces.
4815
a933dad1
DL
4816*** Face attributes and X resources
4817
4818The following X resource names can be used to set face attributes
4819from X resources:
4820
4821 Face attribute X resource class
4822-----------------------------------------------------------------------
4823 :family attributeFamily . Face.AttributeFamily
4824 :width attributeWidth Face.AttributeWidth
4825 :height attributeHeight Face.AttributeHeight
4826 :weight attributeWeight Face.AttributeWeight
4827 :slant attributeSlant Face.AttributeSlant
4828 foreground attributeForeground Face.AttributeForeground
4829 :background attributeBackground . Face.AttributeBackground
4830 :overline attributeOverline Face.AttributeOverline
4831 :strike-through attributeStrikeThrough Face.AttributeStrikeThrough
4832 :box attributeBox Face.AttributeBox
4833 :underline attributeUnderline Face.AttributeUnderline
4834 :inverse-video attributeInverse Face.AttributeInverse
4835 :stipple attributeStipple Face.AttributeStipple
79214ddf 4836 or attributeBackgroundPixmap
a933dad1
DL
4837 Face.AttributeBackgroundPixmap
4838 :font attributeFont Face.AttributeFont
4839 :bold attributeBold Face.AttributeBold
4840 :italic attributeItalic . Face.AttributeItalic
4841 :font attributeFont Face.AttributeFont
4842
a933dad1
DL
4843*** Text property `face'.
4844
4845The value of the `face' text property can now be a single face
4846specification or a list of such specifications. Each face
4847specification can be
4848
48491. A symbol or string naming a Lisp face.
4850
48512. A property list of the form (KEYWORD VALUE ...) where each
4852 KEYWORD is a face attribute name, and VALUE is an appropriate value
4853 for that attribute. Please see the doc string of `set-face-attribute'
4854 for face attribute names.
4855
48563. Conses of the form (FOREGROUND-COLOR . COLOR) or
4857 (BACKGROUND-COLOR . COLOR) where COLOR is a color name. This is
4858 for compatibility with previous Emacs versions.
4859
a933dad1
DL
4860** Support functions for colors on text-only terminals.
4861
acf3ecb7
EZ
4862The function `tty-color-define' can be used to define colors for use
4863on TTY and MSDOS frames. It maps a color name to a color number on
4864the terminal. Emacs defines a couple of common color mappings by
a933dad1 4865default. You can get defined colors with a call to
acf3ecb7 4866`defined-colors'. The function `tty-color-clear' can be
a933dad1
DL
4867used to clear the mapping table.
4868
acf3ecb7
EZ
4869** Unified support for colors independent of frame type.
4870
4871The new functions `defined-colors', `color-defined-p', `color-values',
4872and `display-color-p' work for any type of frame. On frames whose
4873type is neither x nor w32, these functions transparently map X-style
4874color specifications to the closest colors supported by the frame
4875display. Lisp programs should use these new functions instead of the
4876old `x-defined-colors', `x-color-defined-p', `x-color-values', and
4877`x-display-color-p'. (The old function names are still available for
4878compatibility; they are now aliases of the new names.) Lisp programs
4879should no more look at the value of the variable window-system to
4880modify their color-related behavior.
4881
4882The primitives `color-gray-p' and `color-supported-p' also work for
4883any frame type.
4884
8a5719f0
EZ
4885** Platform-independent functions to describe display capabilities.
4886
4887The new functions `display-mouse-p', `display-popup-menus-p',
4888`display-graphic-p', `display-selections-p', `display-screens',
4889`display-pixel-width', `display-pixel-height', `display-mm-width',
4890`display-mm-height', `display-backing-store', `display-save-under',
4891`display-planes', `display-color-cells', `display-visual-class', and
4892`display-grayscale-p' describe the basic capabilities of a particular
4893display. Lisp programs should call these functions instead of testing
4894the value of the variables `window-system' or `system-type', or calling
4895platform-specific functions such as `x-display-pixel-width'.
4896
27009a49
EZ
4897The new function `display-images-p' returns non-nil if a particular
4898display can display image files.
4899
a933dad1 4900** The minibuffer prompt is now actually inserted in the minibuffer.
a933dad1 4901
463cac2d 4902This makes it possible to scroll through the prompt, if you want to.
3b51cca0
MB
4903To disallow this completely (like previous versions of emacs), customize
4904the variable `minibuffer-prompt-properties', and turn on the
4905`Inviolable' option.
a933dad1 4906
d586cf1e 4907The function `minibuffer-prompt-end' returns the current position of the
a933dad1 4908end of the minibuffer prompt, if the minibuffer is current.
d586cf1e 4909Otherwise, it returns `(point-min)'.
a933dad1 4910
463cac2d
GM
4911** New `field' abstraction in buffers.
4912
4913There is now code to support an abstraction called `fields' in emacs
4914buffers. A field is a contiguous region of text with the same `field'
59927f88 4915property (which can be a text property or an overlay).
463cac2d 4916
9a9dfda8 4917Many emacs functions, such as forward-word, forward-sentence,
463cac2d 4918forward-paragraph, beginning-of-line, etc., stop moving when they come
9a9dfda8 4919to the boundary between fields; beginning-of-line and end-of-line will
463cac2d 4920not let the point move past the field boundary, but other movement
fc7ac24f
GM
4921commands continue into the next field if repeated. Stopping at field
4922boundaries can be suppressed programmatically by binding
4923`inhibit-field-text-motion' to a non-nil value around calls to these
4924functions.
463cac2d
GM
4925
4926Now that the minibuffer prompt is inserted into the minibuffer, it is in
9a9dfda8 4927a separate field from the user-input part of the buffer, so that common
463cac2d 4928editing commands treat the user's text separately from the prompt.
a933dad1 4929
9a9dfda8
GM
4930The following functions are defined for operating on fields:
4931
59927f88 4932- Function: constrain-to-field NEW-POS OLD-POS &optional ESCAPE-FROM-EDGE ONLY-IN-LINE INHIBIT-CAPTURE-PROPERTY
9a9dfda8
GM
4933
4934Return the position closest to NEW-POS that is in the same field as OLD-POS.
59927f88 4935
9a9dfda8
GM
4936A field is a region of text with the same `field' property.
4937If NEW-POS is nil, then the current point is used instead, and set to the
9b2a085d 4938constrained position if that is different.
9a9dfda8
GM
4939
4940If OLD-POS is at the boundary of two fields, then the allowable
4941positions for NEW-POS depends on the value of the optional argument
4942ESCAPE-FROM-EDGE: If ESCAPE-FROM-EDGE is nil, then NEW-POS is
59927f88 4943constrained to the field that has the same `field' char-property
9a9dfda8
GM
4944as any new characters inserted at OLD-POS, whereas if ESCAPE-FROM-EDGE
4945is non-nil, NEW-POS is constrained to the union of the two adjacent
59927f88
MB
4946fields. Additionally, if two fields are separated by another field with
4947the special value `boundary', then any point within this special field is
4948also considered to be `on the boundary'.
9a9dfda8
GM
4949
4950If the optional argument ONLY-IN-LINE is non-nil and constraining
4951NEW-POS would move it to a different line, NEW-POS is returned
4952unconstrained. This useful for commands that move by line, like
4953C-n or C-a, which should generally respect field boundaries
4954only in the case where they can still move to the right line.
4955
59927f88
MB
4956If the optional argument INHIBIT-CAPTURE-PROPERTY is non-nil, and OLD-POS has
4957a non-nil property of that name, then any field boundaries are ignored.
4958
4959Field boundaries are not noticed if `inhibit-field-text-motion' is non-nil.
4960
4961- Function: delete-field &optional POS
9a9dfda8 4962
59927f88 4963Delete the field surrounding POS.
9a9dfda8 4964A field is a region of text with the same `field' property.
59927f88 4965If POS is nil, the value of point is used for POS.
9a9dfda8
GM
4966
4967- Function: field-beginning &optional POS ESCAPE-FROM-EDGE
4968
4969Return the beginning of the field surrounding POS.
4970A field is a region of text with the same `field' property.
59927f88
MB
4971If POS is nil, the value of point is used for POS.
4972If ESCAPE-FROM-EDGE is non-nil and POS is at the beginning of its
9a9dfda8
GM
4973field, then the beginning of the *previous* field is returned.
4974
4975- Function: field-end &optional POS ESCAPE-FROM-EDGE
4976
4977Return the end of the field surrounding POS.
4978A field is a region of text with the same `field' property.
59927f88
MB
4979If POS is nil, the value of point is used for POS.
4980If ESCAPE-FROM-EDGE is non-nil and POS is at the end of its field,
9a9dfda8
GM
4981then the end of the *following* field is returned.
4982
4983- Function: field-string &optional POS
4984
4985Return the contents of the field surrounding POS as a string.
4986A field is a region of text with the same `field' property.
59927f88 4987If POS is nil, the value of point is used for POS.
9a9dfda8
GM
4988
4989- Function: field-string-no-properties &optional POS
4990
4991Return the contents of the field around POS, without text-properties.
4992A field is a region of text with the same `field' property.
59927f88 4993If POS is nil, the value of point is used for POS.
9a9dfda8 4994
a933dad1
DL
4995** Image support.
4996
4997Emacs can now display images. Images are inserted into text by giving
4998strings or buffer text a `display' text property containing one of
4999(AREA IMAGE) or IMAGE. The display of the `display' property value
5000replaces the display of the characters having that property.
5001
5002If the property value has the form (AREA IMAGE), AREA must be one of
5003`(margin left-margin)', `(margin right-margin)' or `(margin nil)'. If
5004AREA is `(margin nil)', IMAGE will be displayed in the text area of a
5005window, otherwise it will be displayed in the left or right marginal
5006area.
5007
5008IMAGE is an image specification.
5009
5010*** Image specifications
5011
5012Image specifications are lists of the form `(image PROPS)' where PROPS
5013is a property list whose keys are keyword symbols. Each
5014specifications must contain a property `:type TYPE' with TYPE being a
35a5514b
GM
5015symbol specifying the image type, e.g. `xbm'. Properties not
5016described below are ignored.
a933dad1
DL
5017
5018The following is a list of properties all image types share.
5019
5020`:ascent ASCENT'
5021
576da55d
GM
5022ASCENT must be a number in the range 0..100, or the symbol `center'.
5023If it is a number, it specifies the percentage of the image's height
5d94f558 5024to use for its ascent.
576da55d
GM
5025
5026If not specified, ASCENT defaults to the value 50 which means that the
5027image will be centered with the base line of the row it appears in.
5028
5d94f558 5029If ASCENT is `center' the image is vertically centered around a
04545643
GM
5030centerline which is the vertical center of text drawn at the position
5031of the image, in the manner specified by the text properties and
5032overlays that apply to the image.
a933dad1
DL
5033
5034`:margin MARGIN'
5035
b30623be
GM
5036MARGIN must be either a number >= 0 specifying how many pixels to put
5037as margin around the image, or a pair (X . Y) with X specifying the
5038horizontal margin and Y specifying the vertical margin. Default is 0.
a933dad1
DL
5039
5040`:relief RELIEF'
5041
5042RELIEF is analogous to the `:relief' attribute of faces. Puts a relief
5043around an image.
5044
f864120f 5045`:conversion ALGO'
a933dad1 5046
47e351a3
GM
5047Apply an image algorithm to the image before displaying it.
5048
5049ALGO `laplace' or `emboss' means apply a Laplace or ``emboss''
5050edge-detection algorithm to the image.
5051
5052ALGO `(edge-detection :matrix MATRIX :color-adjust ADJUST)' means
5053apply a general edge-detection algorithm. MATRIX must be either a
5054nine-element list or a nine-element vector of numbers. A pixel at
5055position x/y in the transformed image is computed from original pixels
5056around that position. MATRIX specifies, for each pixel in the
5057neighborhood of x/y, a factor with which that pixel will influence the
5058transformed pixel; element 0 specifies the factor for the pixel at
5059x-1/y-1, element 1 the factor for the pixel at x/y-1 etc. as shown
5060below.
5061
5062 (x-1/y-1 x/y-1 x+1/y-1
5063 x-1/y x/y x+1/y
5064 x-1/y+1 x/y+1 x+1/y+1)
5065
5066The resulting pixel is computed from the color intensity of the color
5067resulting from summing up the RGB values of surrounding pixels,
5068multiplied by the specified factors, and dividing that sum by the sum
5069of the factors' absolute values.
5070
327652be 5071Laplace edge-detection currently uses a matrix of
a933dad1 5072
47e351a3
GM
5073 (1 0 0
5074 0 0 0
5075 9 9 -1)
5076
5077Emboss edge-detection uses a matrix of
5078
5079 ( 2 -1 0
5080 -1 0 1
5081 0 1 -2)
5082
ba9eeda1
GM
5083ALGO `disabled' means transform the image so that it looks
5084``disabled''.
5085
47e351a3
GM
5086`:mask MASK'
5087
5088If MASK is `heuristic' or `(heuristic BG)', build a clipping mask for
5089the image, so that the background of a frame is visible behind the
5090image. If BG is not specified, or if BG is t, determine the
5091background color of the image by looking at the 4 corners of the
8a33023e 5092image, assuming the most frequently occurring color from the corners is
47e351a3
GM
5093the background color of the image. Otherwise, BG must be a list `(RED
5094GREEN BLUE)' specifying the color to assume for the background of the
5095image.
a933dad1 5096
47e351a3
GM
5097If MASK is nil, remove a mask from the image, if it has one. Images
5098in some formats include a mask which can be removed by specifying
5099`:mask nil'.
a933dad1
DL
5100
5101`:file FILE'
5102
5103Load image from FILE. If FILE is not absolute after expanding it,
5104search for the image in `data-directory'. Some image types support
5105building images from data. When this is done, no `:file' property
5106may be present in the image specification.
5107
518df5c4
GM
5108`:data DATA'
5109
5110Get image data from DATA. (As of this writing, this is not yet
5111supported for image type `postscript'). Either :file or :data may be
5112present in an image specification, but not both. All image types
5113support strings as DATA, some types allow additional types of DATA.
5114
a933dad1
DL
5115*** Supported image types
5116
b246b1f6 5117**** XBM, image type `xbm'.
a933dad1
DL
5118
5119XBM images don't require an external library. Additional image
5120properties supported are
5121
5122`:foreground FG'
5123
94736c7c
GM
5124FG must be a string specifying the image foreground color, or nil
5125meaning to use the default. Default is the frame's foreground.
a933dad1 5126
46c5af7f 5127`:background BG'
a933dad1 5128
94736c7c
GM
5129BG must be a string specifying the image foreground color, or nil
5130meaning to use the default. Default is the frame's background color.
a933dad1
DL
5131
5132XBM images can be constructed from data instead of file. In this
5133case, the image specification must contain the following properties
5134instead of a `:file' property.
5135
5136`:width WIDTH'
5137
5138WIDTH specifies the width of the image in pixels.
5139
5140`:height HEIGHT'
5141
5142HEIGHT specifies the height of the image in pixels.
5143
5144`:data DATA'
5145
5146DATA must be either
5147
5148 1. a string large enough to hold the bitmap data, i.e. it must
5149 have a size >= (WIDTH + 7) / 8 * HEIGHT
5150
5151 2. a bool-vector of size >= WIDTH * HEIGHT
5152
5153 3. a vector of strings or bool-vectors, one for each line of the
5154 bitmap.
5155
c76e04a8
GM
5156 4. a string that's an in-memory XBM file. Neither width nor
5157 height may be specified in this case because these are defined
5158 in the file.
5159
a933dad1
DL
5160**** XPM, image type `xpm'
5161
5162XPM images require the external library `libXpm', package
5163`xpm-3.4k.tar.gz', version 3.4k or later. Make sure the library is
5164found when Emacs is configured by supplying appropriate paths via
5165`--x-includes' and `--x-libraries'.
5166
5167Additional image properties supported are:
5168
5169`:color-symbols SYMBOLS'
5170
5171SYMBOLS must be a list of pairs (NAME . COLOR), with NAME being the
5172name of color as it appears in an XPM file, and COLOR being an X color
5173name.
5174
5175XPM images can be built from memory instead of files. In that case,
5176add a `:data' property instead of a `:file' property.
5177
a933dad1
DL
5178The XPM library uses libz in its implementation so that it is able
5179to display compressed images.
5180
5181**** PBM, image type `pbm'
5182
5183PBM images don't require an external library. Color, gray-scale and
2b8e9c91
GM
5184mono images are supported. Additional image properties supported for
5185mono images are
5186
5187`:foreground FG'
5188
94736c7c
GM
5189FG must be a string specifying the image foreground color, or nil
5190meaning to use the default. Default is the frame's foreground.
2b8e9c91
GM
5191
5192`:background FG'
5193
94736c7c
GM
5194BG must be a string specifying the image foreground color, or nil
5195meaning to use the default. Default is the frame's background color.
a933dad1
DL
5196
5197**** JPEG, image type `jpeg'
5198
5199Support for JPEG images requires the external library `libjpeg',
3bd37feb
GM
5200package `jpegsrc.v6a.tar.gz', or later. Additional image properties
5201are:
5202
a933dad1
DL
5203**** TIFF, image type `tiff'
5204
5205Support for TIFF images requires the external library `libtiff',
5206package `tiff-v3.4-tar.gz', or later. There are no additional image
5207properties defined.
5208
5209**** GIF, image type `gif'
5210
5211Support for GIF images requires the external library `libungif', package
5212`libungif-4.1.0', or later.
5213
5214Additional image properties supported are:
5215
5216`:index INDEX'
5217
5218INDEX must be an integer >= 0. Load image number INDEX from a
8a33023e 5219multi-image GIF file. An error is signaled if INDEX is too large.
a933dad1
DL
5220
5221This could be used to implement limited support for animated GIFs.
5222For example, the following function displays a multi-image GIF file
5223at point-min in the current buffer, switching between sub-images
5224every 0.1 seconds.
5225
5226(defun show-anim (file max)
5227 "Display multi-image GIF file FILE which contains MAX subimages."
5228 (display-anim (current-buffer) file 0 max t))
5229
5230(defun display-anim (buffer file idx max first-time)
5231 (when (= idx max)
5232 (setq idx 0))
518df5c4 5233 (let ((img (create-image file nil nil :index idx)))
a933dad1
DL
5234 (save-excursion
5235 (set-buffer buffer)
5236 (goto-char (point-min))
5237 (unless first-time (delete-char 1))
5238 (insert-image img "x"))
5239 (run-with-timer 0.1 nil 'display-anim buffer file (1+ idx) max nil)))
5240
5241**** PNG, image type `png'
5242
5243Support for PNG images requires the external library `libpng',
5244package `libpng-1.0.2.tar.gz', or later. There are no additional image
5245properties defined.
5246
5247**** Ghostscript, image type `postscript'.
5248
5249Additional image properties supported are:
5250
5251`:pt-width WIDTH'
5252
5253WIDTH is width of the image in pt (1/72 inch). WIDTH must be an
b246b1f6 5254integer. This is a required property.
a933dad1
DL
5255
5256`:pt-height HEIGHT'
5257
5258HEIGHT specifies the height of the image in pt (1/72 inch). HEIGHT
b246b1f6 5259must be a integer. This is an required property.
a933dad1
DL
5260
5261`:bounding-box BOX'
5262
5263BOX must be a list or vector of 4 integers giving the bounding box of
5264the PS image, analogous to the `BoundingBox' comment found in PS
5265files. This is an required property.
5266
5267Part of the Ghostscript interface is implemented in Lisp. See
5268lisp/gs.el.
5269
5270*** Lisp interface.
5271
79214ddf
FP
5272The variable `image-types' contains a list of those image types
5273which are supported in the current configuration.
a933dad1
DL
5274
5275Images are stored in an image cache and removed from the cache when
5276they haven't been displayed for `image-cache-eviction-delay seconds.
5277The function `clear-image-cache' can be used to clear the image cache
084cec2f
GM
5278manually. Images in the cache are compared with `equal', i.e. all
5279images with `equal' specifications share the same image.
a933dad1
DL
5280
5281*** Simplified image API, image.el
5282
5283The new Lisp package image.el contains functions that simplify image
5284creation and putting images into text. The function `create-image'
5285can be used to create images. The macro `defimage' can be used to
5286define an image based on available image types. The functions
5287`put-image' and `insert-image' can be used to insert an image into a
5288buffer.
5289
a933dad1
DL
5290** Display margins.
5291
5292Windows can now have margins which are used for special text
5293and images.
5294
5295To give a window margins, either set the buffer-local variables
5296`left-margin-width' and `right-margin-width', or call
5297`set-window-margins'. The function `window-margins' can be used to
5298obtain the current settings. To make `left-margin-width' and
5299`right-margin-width' take effect, you must set them before displaying
5300the buffer in a window, or use `set-window-buffer' to force an update
5301of the display margins.
5302
5303You can put text in margins by giving it a `display' text property
5304containing a pair of the form `(LOCATION . VALUE)', where LOCATION is
5305one of `left-margin' or `right-margin' or nil. VALUE can be either a
5306string, an image specification or a stretch specification (see later
5307in this file).
5308
a933dad1
DL
5309** Help display
5310
5311Emacs displays short help messages in the echo area, when the mouse
5312moves over a tool-bar item or a piece of text that has a text property
5313`help-echo'. This feature also applies to strings in the mode line
5314that have a `help-echo' property.
5315
9662da0b 5316If the value of the `help-echo' property is a function, that function
85a8aca9 5317is called with three arguments WINDOW, OBJECT and POSITION. WINDOW is
c20aeb83
GM
5318the window in which the help was found.
5319
5320If OBJECT is a buffer, POS is the position in the buffer where the
5321`help-echo' text property was found.
5322
5323If OBJECT is an overlay, that overlay has a `help-echo' property, and
5324POS is the position in the overlay's buffer under the mouse.
5325
5326If OBJECT is a string (an overlay string or a string displayed with
5ed8d5af 5327the `display' property), POS is the position in that string under the
c20aeb83 5328mouse.
d5aa31d8 5329
9662da0b
GM
5330If the value of the `help-echo' property is neither a function nor a
5331string, it is evaluated to obtain a help string.
5332
5333For tool-bar and menu-bar items, their key definition is used to
5334determine the help to display. If their definition contains a
5335property `:help FORM', FORM is evaluated to determine the help string.
5336For tool-bar items without a help form, the caption of the item is
5337used as help string.
a933dad1
DL
5338
5339The hook `show-help-function' can be set to a function that displays
f0298744
DL
5340the help string differently. For example, enabling a tooltip window
5341causes the help display to appear there instead of in the echo area.
a933dad1 5342
a933dad1
DL
5343** Vertical fractional scrolling.
5344
5345The display of text in windows can be scrolled smoothly in pixels.
5346This is useful, for example, for making parts of large images visible.
5347
5348The function `window-vscroll' returns the current value of vertical
5349scrolling, a non-negative fraction of the canonical character height.
5350The function `set-window-vscroll' can be used to set the vertical
5351scrolling value. Here is an example of how these function might be
5352used.
5353
79214ddf
FP
5354 (global-set-key [A-down]
5355 #'(lambda ()
a933dad1 5356 (interactive)
79214ddf 5357 (set-window-vscroll (selected-window)
a933dad1 5358 (+ 0.5 (window-vscroll)))))
79214ddf 5359 (global-set-key [A-up]
a933dad1
DL
5360 #'(lambda ()
5361 (interactive)
79214ddf 5362 (set-window-vscroll (selected-window)
a933dad1
DL
5363 (- (window-vscroll) 0.5)))))
5364
a933dad1
DL
5365** New hook `fontification-functions'.
5366
5367Functions from `fontification-functions' are called from redisplay
5368when it encounters a region of text that is not yet fontified. This
5369variable automatically becomes buffer-local when set. Each function
5370is called with one argument, POS.
5371
5372At least one of the hook functions should fontify one or more
5373characters starting at POS in the current buffer. It should mark them
5374as fontified by giving them a non-nil value of the `fontified' text
5375property. It may be reasonable for these functions to check for the
5376`fontified' property and not put it back on, but they do not have to.
5377
a933dad1
DL
5378** Tool bar support.
5379
5380Emacs supports a tool bar at the top of a frame under X. The frame
5381parameter `tool-bar-lines' (X resource "toolBar", class "ToolBar")
5382controls how may lines to reserve for the tool bar. A zero value
5383suppresses the tool bar. If the value is non-zero and
5384`auto-resize-tool-bars' is non-nil the tool bar's size will be changed
5385automatically so that all tool bar items are visible.
5386
5387*** Tool bar item definitions
5388
5389Tool bar items are defined using `define-key' with a prefix-key
5390`tool-bar'. For example `(define-key global-map [tool-bar item1] ITEM)'
5391where ITEM is a list `(menu-item CAPTION BINDING PROPS...)'.
79214ddf 5392
a933dad1
DL
5393CAPTION is the caption of the item, If it's not a string, it is
5394evaluated to get a string. The caption is currently not displayed in
5395the tool bar, but it is displayed if the item doesn't have a `:help'
5396property (see below).
79214ddf 5397
a933dad1
DL
5398BINDING is the tool bar item's binding. Tool bar items with keymaps as
5399binding are currently ignored.
5400
5401The following properties are recognized:
5402
5403`:enable FORM'.
79214ddf 5404
a933dad1
DL
5405FORM is evaluated and specifies whether the tool bar item is enabled
5406or disabled.
79214ddf 5407
a933dad1 5408`:visible FORM'
79214ddf 5409
a933dad1 5410FORM is evaluated and specifies whether the tool bar item is displayed.
79214ddf 5411
a933dad1
DL
5412`:filter FUNCTION'
5413
5414FUNCTION is called with one parameter, the same list BINDING in which
5415FUNCTION is specified as the filter. The value FUNCTION returns is
5416used instead of BINDING to display this item.
79214ddf 5417
a933dad1
DL
5418`:button (TYPE SELECTED)'
5419
5420TYPE must be one of `:radio' or `:toggle'. SELECTED is evaluated
5421and specifies whether the button is selected (pressed) or not.
79214ddf 5422
a933dad1
DL
5423`:image IMAGES'
5424
5425IMAGES is either a single image specification or a vector of four
5426image specifications. If it is a vector, this table lists the
5427meaning of each of the four elements:
5428
5429 Index Use when item is
5430 ----------------------------------------
5431 0 enabled and selected
5432 1 enabled and deselected
5433 2 disabled and selected
5434 3 disabled and deselected
79214ddf 5435
4ba7246d
GM
5436If IMAGE is a single image specification, a Laplace edge-detection
5437algorithm is used on that image to draw the image in disabled state.
5438
a933dad1 5439`:help HELP-STRING'.
79214ddf 5440
a933dad1
DL
5441Gives a help string to display for the tool bar item. This help
5442is displayed when the mouse is moved over the item.
5443
dab96841 5444The function `toolbar-add-item' is a convenience function for adding
d1e68bce
DL
5445toolbar items generally, and `tool-bar-add-item-from-menu' can be used
5446to define a toolbar item with a binding copied from an item on the
5447menu bar.
dab96841 5448
8628686a
DL
5449The default bindings use a menu-item :filter to derive the tool-bar
5450dynamically from variable `tool-bar-map' which may be set
5451buffer-locally to override the global map.
5452
a933dad1
DL
5453*** Tool-bar-related variables.
5454
5455If `auto-resize-tool-bar' is non-nil, the tool bar will automatically
5456resize to show all defined tool bar items. It will never grow larger
5457than 1/4 of the frame's size.
5458
79214ddf 5459If `auto-raise-tool-bar-buttons' is non-nil, tool bar buttons will be
a933dad1
DL
5460raised when the mouse moves over them.
5461
5462You can add extra space between tool bar items by setting
5463`tool-bar-button-margin' to a positive integer specifying a number of
b30623be
GM
5464pixels, or a pair of integers (X . Y) specifying horizontal and
5465vertical margins . Default is 1.
a933dad1
DL
5466
5467You can change the shadow thickness of tool bar buttons by setting
5468`tool-bar-button-relief' to an integer. Default is 3.
5469
5470*** Tool-bar clicks with modifiers.
5471
5472You can bind commands to clicks with control, shift, meta etc. on
79214ddf 5473a tool bar item. If
a933dad1
DL
5474
5475 (define-key global-map [tool-bar shell]
5476 '(menu-item "Shell" shell
5477 :image (image :type xpm :file "shell.xpm")))
5478
5479is the original tool bar item definition, then
5480
5481 (define-key global-map [tool-bar S-shell] 'some-command)
5482
5483makes a binding to run `some-command' for a shifted click on the same
5484item.
5485
5486** Mode line changes.
5487
a933dad1
DL
5488*** Mouse-sensitive mode line.
5489
5490The mode line can be made mouse-sensitive by displaying strings there
5491that have a `local-map' text property. There are three ways to display
5492a string with a `local-map' property in the mode line.
5493
54941. The mode line spec contains a variable whose string value has
5495a `local-map' text property.
5496
54972. The mode line spec contains a format specifier (e.g. `%12b'), and
5498that format specifier has a `local-map' property.
5499
55003. The mode line spec contains a list containing `:eval FORM'. FORM
5501is evaluated. If the result is a string, and that string has a
5502`local-map' property.
5503
5504The same mechanism is used to determine the `face' and `help-echo'
5505properties of strings in the mode line. See `bindings.el' for an
5506example.
5507
54522c9f
GM
5508*** If a mode line element has the form `(:eval FORM)', FORM is
5509evaluated and the result is used as mode line element.
5510
a933dad1
DL
5511*** You can suppress mode-line display by setting the buffer-local
5512variable mode-line-format to nil.
5513
a933dad1
DL
5514*** A headerline can now be displayed at the top of a window.
5515
5516This mode line's contents are controlled by the new variable
5517`header-line-format' and `default-header-line-format' which are
5518completely analogous to `mode-line-format' and
5519`default-mode-line-format'. A value of nil means don't display a top
5520line.
5521
5522The appearance of top mode lines is controlled by the face
5523`header-line'.
5524
5525The function `coordinates-in-window-p' returns `header-line' for a
5526position in the header-line.
5527
a933dad1
DL
5528** Text property `display'
5529
623a0aae
GM
5530The `display' text property is used to insert images into text,
5531replace text with other text, display text in marginal area, and it is
5532also used to control other aspects of how text displays. The value of
5533the `display' property should be a display specification, as described
a933dad1
DL
5534below, or a list or vector containing display specifications.
5535
623a0aae
GM
5536*** Replacing text, displaying text in marginal areas
5537
5538To replace the text having the `display' property with some other
5539text, use a display specification of the form `(LOCATION STRING)'.
5540
5541If LOCATION is `(margin left-margin)', STRING is displayed in the left
5542marginal area, if it is `(margin right-margin)', it is displayed in
5543the right marginal area, and if LOCATION is `(margin nil)' STRING
5544is displayed in the text. In the latter case you can also use the
5545simpler form STRING as property value.
5546
a933dad1
DL
5547*** Variable width and height spaces
5548
5549To display a space of fractional width or height, use a display
5550specification of the form `(LOCATION STRECH)'. If LOCATION is
5551`(margin left-margin)', the space is displayed in the left marginal
5552area, if it is `(margin right-margin)', it is displayed in the right
5553marginal area, and if LOCATION is `(margin nil)' the space is
5554displayed in the text. In the latter case you can also use the
5555simpler form STRETCH as property value.
5556
5557The stretch specification STRETCH itself is a list of the form `(space
5558PROPS)', where PROPS is a property list which can contain the
5559properties described below.
5560
5561The display of the fractional space replaces the display of the
5562characters having the `display' property.
5563
5564- :width WIDTH
5565
5566Specifies that the space width should be WIDTH times the normal
5567character width. WIDTH can be an integer or floating point number.
5568
5569- :relative-width FACTOR
5570
5571Specifies that the width of the stretch should be computed from the
5572first character in a group of consecutive characters that have the
5573same `display' property. The computation is done by multiplying the
5574width of that character by FACTOR.
5575
5576- :align-to HPOS
5577
5578Specifies that the space should be wide enough to reach HPOS. The
5579value HPOS is measured in units of the normal character width.
5580
5581Exactly one of the above properties should be used.
5582
5583- :height HEIGHT
5584
5585Specifies the height of the space, as HEIGHT, measured in terms of the
5586normal line height.
5587
5588- :relative-height FACTOR
5589
5590The height of the space is computed as the product of the height
5591of the text having the `display' property and FACTOR.
5592
5593- :ascent ASCENT
5594
5595Specifies that ASCENT percent of the height of the stretch should be
5596used for the ascent of the stretch, i.e. for the part above the
5597baseline. The value of ASCENT must be a non-negative number less or
5598equal to 100.
5599
5600You should not use both `:height' and `:relative-height' together.
5601
5602*** Images
5603
5604A display specification for an image has the form `(LOCATION
5605. IMAGE)', where IMAGE is an image specification. The image replaces,
5606in the display, the characters having this display specification in
5607their `display' text property. If LOCATION is `(margin left-margin)',
5608the image will be displayed in the left marginal area, if it is
5609`(margin right-margin)' it will be displayed in the right marginal
5610area, and if LOCATION is `(margin nil)' the image will be displayed in
5611the text. In the latter case you can also use the simpler form IMAGE
5612as display specification.
5613
5614*** Other display properties
5615
c9e73000 5616- (space-width FACTOR)
a933dad1
DL
5617
5618Specifies that space characters in the text having that property
5619should be displayed FACTOR times as wide as normal; FACTOR must be an
5620integer or float.
5621
c9e73000 5622- (height HEIGHT)
a933dad1
DL
5623
5624Display text having this property in a font that is smaller or larger.
5625
5626If HEIGHT is a list of the form `(+ N)', where N is an integer, that
5627means to use a font that is N steps larger. If HEIGHT is a list of
5628the form `(- N)', that means to use a font that is N steps smaller. A
5629``step'' is defined by the set of available fonts; each size for which
5630a font is available counts as a step.
5631
5632If HEIGHT is a number, that means to use a font that is HEIGHT times
5633as tall as the frame's default font.
5634
5635If HEIGHT is a symbol, it is called as a function with the current
5636height as argument. The function should return the new height to use.
5637
5638Otherwise, HEIGHT is evaluated to get the new height, with the symbol
5639`height' bound to the current specified font height.
5640
c9e73000 5641- (raise FACTOR)
a933dad1
DL
5642
5643FACTOR must be a number, specifying a multiple of the current
5644font's height. If it is positive, that means to display the characters
5645raised. If it is negative, that means to display them lower down. The
5646amount of raising or lowering is computed without taking account of the
c9e73000 5647`height' subproperty.
a933dad1
DL
5648
5649*** Conditional display properties
5650
5651All display specifications can be conditionalized. If a specification
6c6caea2
GM
5652has the form `(when CONDITION . SPEC)', the specification SPEC applies
5653only when CONDITION yields a non-nil value when evaluated. During the
5654evaluation, `object' is bound to the string or buffer having the
5655conditional display property; `position' and `buffer-position' are
5656bound to the position within `object' and the buffer position where
5657the display property was found, respectively. Both positions can be
5658different when object is a string.
a933dad1
DL
5659
5660The normal specification consisting of SPEC only is equivalent to
6c6caea2 5661`(when t . SPEC)'.
a933dad1 5662
a933dad1
DL
5663** New menu separator types.
5664
5665Emacs now supports more than one menu separator type. Menu items with
5666item names consisting of dashes only (including zero dashes) are
5667treated like before. In addition, the following item names are used
5668to specify other menu separator types.
5669
5670- `--no-line' or `--space', or `--:space', or `--:noLine'
5671
5672No separator lines are drawn, but a small space is inserted where the
5673separator occurs.
5674
5675- `--single-line' or `--:singleLine'
5676
5677A single line in the menu's foreground color.
5678
5679- `--double-line' or `--:doubleLine'
5680
5681A double line in the menu's foreground color.
5682
5683- `--single-dashed-line' or `--:singleDashedLine'
5684
5685A single dashed line in the menu's foreground color.
5686
5687- `--double-dashed-line' or `--:doubleDashedLine'
5688
5689A double dashed line in the menu's foreground color.
5690
5691- `--shadow-etched-in' or `--:shadowEtchedIn'
5692
f3780fe4 5693A single line with 3D sunken appearance. This is the form
a933dad1
DL
5694displayed for item names consisting of dashes only.
5695
5696- `--shadow-etched-out' or `--:shadowEtchedOut'
5697
5698A single line with 3D raised appearance.
5699
5700- `--shadow-etched-in-dash' or `--:shadowEtchedInDash'
5701
5702A single dashed line with 3D sunken appearance.
5703
5704- `--shadow-etched-out-dash' or `--:shadowEtchedOutDash'
5705
5706A single dashed line with 3D raise appearance.
5707
5708- `--shadow-double-etched-in' or `--:shadowDoubleEtchedIn'
5709
5710Two lines with 3D sunken appearance.
5711
5712- `--shadow-double-etched-out' or `--:shadowDoubleEtchedOut'
5713
5714Two lines with 3D raised appearance.
5715
5716- `--shadow-double-etched-in-dash' or `--:shadowDoubleEtchedInDash'
5717
5718Two dashed lines with 3D sunken appearance.
5719
5720- `--shadow-double-etched-out-dash' or `--:shadowDoubleEtchedOutDash'
5721
5722Two dashed lines with 3D raised appearance.
5723
5724Under LessTif/Motif, the last four separator types are displayed like
5725the corresponding single-line separators.
5726
a933dad1
DL
5727** New frame parameters for scroll bar colors.
5728
5729The new frame parameters `scroll-bar-foreground' and
5730`scroll-bar-background' can be used to change scroll bar colors.
5731Their value must be either a color name, a string, or nil to specify
5732that scroll bars should use a default color. For toolkit scroll bars,
5733default colors are toolkit specific. For non-toolkit scroll bars, the
5734default background is the background color of the frame, and the
5735default foreground is black.
5736
5737The X resource name of these parameters are `scrollBarForeground'
5738(class ScrollBarForeground) and `scrollBarBackground' (class
5739`ScrollBarBackground').
5740
5741Setting these parameters overrides toolkit specific X resource
5742settings for scroll bar colors.
5743
a933dad1
DL
5744** You can set `redisplay-dont-pause' to a non-nil value to prevent
5745display updates from being interrupted when input is pending.
5746
a933dad1
DL
5747** Changing a window's width may now change its window start if it
5748starts on a continuation line. The new window start is computed based
5749on the window's new width, starting from the start of the continued
5750line as the start of the screen line with the minimum distance from
5751the original window start.
5752
a933dad1
DL
5753** The variable `hscroll-step' and the functions
5754`hscroll-point-visible' and `hscroll-window-column' have been removed
5755now that proper horizontal scrolling is implemented.
5756
a933dad1
DL
5757** Windows can now be made fixed-width and/or fixed-height.
5758
5759A window is fixed-size if its buffer has a buffer-local variable
5760`window-size-fixed' whose value is not nil. A value of `height' makes
5761windows fixed-height, a value of `width' makes them fixed-width, any
5762other non-nil value makes them both fixed-width and fixed-height.
5763
5764The following code makes all windows displaying the current buffer
5765fixed-width and fixed-height.
5766
5767 (set (make-local-variable 'window-size-fixed) t)
5768
5769A call to enlarge-window on a window gives an error if that window is
5770fixed-width and it is tried to change the window's width, or if the
5771window is fixed-height, and it is tried to change its height. To
5772change the size of a fixed-size window, bind `window-size-fixed'
5773temporarily to nil, for example
5774
5775 (let ((window-size-fixed nil))
5776 (enlarge-window 10))
5777
79214ddf 5778Likewise, an attempt to split a fixed-height window vertically,
a933dad1 5779or a fixed-width window horizontally results in a error.
e411ce4b
EZ
5780
5781** The cursor-type frame parameter is now supported on MS-DOS
5782terminals. When Emacs starts, it by default changes the cursor shape
5783to a solid box, as it does on Unix. The `cursor-type' frame parameter
5784overrides this as it does on Unix, except that the bar cursor is
5785horizontal rather than vertical (since the MS-DOS display doesn't
5786support a vertical-bar cursor).
76299050 5787
3787e12e 5788
05197f40 5789\f
3787e12e
GM
5790* Emacs 20.7 is a bug-fix release with few user-visible changes
5791
5792** It is now possible to use CCL-based coding systems for keyboard
5793input.
5794
5795** ange-ftp now handles FTP security extensions, like Kerberos.
5796
5797** Rmail has been extended to recognize more forms of digest messages.
5798
5799** Now, most coding systems set in keyboard coding system work not
5800only for character input, but also in incremental search. The
5801exceptions are such coding systems that handle 2-byte character sets
5802(e.g euc-kr, euc-jp) and that use ISO's escape sequence
5803(e.g. iso-2022-jp). They are ignored in incremental search.
5804
5805** Support for Macintosh PowerPC-based machines running GNU/Linux has
5806been added.
5807
05197f40 5808\f
3787e12e
GM
5809* Emacs 20.6 is a bug-fix release with one user-visible change
5810
5811** Support for ARM-based non-RISCiX machines has been added.
5812
0cb146bf 5813
05197f40 5814\f
3787e12e
GM
5815* Emacs 20.5 is a bug-fix release with no user-visible changes.
5816
5817** Not new, but not mentioned before:
5818M-w when Transient Mark mode is enabled disables the mark.
05197f40 5819\f
3787e12e
GM
5820* Changes in Emacs 20.4
5821
5822** Init file may be called .emacs.el.
5823
5824You can now call the Emacs init file `.emacs.el'.
5825Formerly the name had to be `.emacs'. If you use the name
5826`.emacs.el', you can byte-compile the file in the usual way.
5827
5828If both `.emacs' and `.emacs.el' exist, the latter file
5829is the one that is used.
5830
5831** shell-command, and shell-command-on-region, now return
5832the exit code of the command (unless it is asynchronous).
5833Also, you can specify a place to put the error output,
5834separate from the command's regular output.
5835Interactively, the variable shell-command-default-error-buffer
5836says where to put error output; set it to a buffer name.
5837In calls from Lisp, an optional argument ERROR-BUFFER specifies
5838the buffer name.
5839
5840When you specify a non-nil error buffer (or buffer name), any error
5841output is inserted before point in that buffer, with \f\n to separate
5842it from the previous batch of error output. The error buffer is not
5843cleared, so error output from successive commands accumulates there.
5844
5845** Setting the default value of enable-multibyte-characters to nil in
5846the .emacs file, either explicitly using setq-default, or via Custom,
5847is now essentially equivalent to using --unibyte: all buffers
5848created during startup will be made unibyte after loading .emacs.
5849
5850** C-x C-f now handles the wildcards * and ? in file names. For
5851example, typing C-x C-f c*.c RET visits all the files whose names
5852match c*.c. To visit a file whose name contains * or ?, add the
5853quoting sequence /: to the beginning of the file name.
5854
5855** The M-x commands keep-lines, flush-lines and count-matches
5856now have the same feature as occur and query-replace:
5857if the pattern contains any upper case letters, then
5858they never ignore case.
5859
5860** The end-of-line format conversion feature previously mentioned
5861under `* Emacs 20.1 changes for MS-DOS and MS-Windows' actually
5862applies to all operating systems. Emacs recognizes from the contents
5863of a file what convention it uses to separate lines--newline, CRLF, or
5864just CR--and automatically converts the contents to the normal Emacs
5865convention (using newline to separate lines) for editing. This is a
5866part of the general feature of coding system conversion.
5867
5868If you subsequently save the buffer, Emacs converts the text back to
5869the same format that was used in the file before.
5870
5871You can turn off end-of-line conversion by setting the variable
5872`inhibit-eol-conversion' to non-nil, e.g. with Custom in the MULE group.
5873
5874** The character set property `prefered-coding-system' has been
5875renamed to `preferred-coding-system', for the sake of correct spelling.
5876This is a fairly internal feature, so few programs should be affected.
5877
5878** Mode-line display of end-of-line format is changed.
5879The indication of the end-of-line format of the file visited by a
5880buffer is now more explicit when that format is not the usual one for
5881your operating system. For example, the DOS-style end-of-line format
5882is displayed as "(DOS)" on Unix and GNU/Linux systems. The usual
5883end-of-line format is still displayed as a single character (colon for
5884Unix, backslash for DOS and Windows, and forward slash for the Mac).
5885
5886The values of the variables eol-mnemonic-unix, eol-mnemonic-dos,
5887eol-mnemonic-mac, and eol-mnemonic-undecided, which are strings,
5888control what is displayed in the mode line for each end-of-line
5889format. You can now customize these variables.
5890
5891** In the previous version of Emacs, tar-mode didn't work well if a
5892filename contained non-ASCII characters. Now this is fixed. Such a
5893filename is decoded by file-name-coding-system if the default value of
5894enable-multibyte-characters is non-nil.
5895
5896** The command temp-buffer-resize-mode toggles a minor mode
5897in which temporary buffers (such as help buffers) are given
5898windows just big enough to hold the whole contents.
5899
5900** If you use completion.el, you must now run the function
5901dynamic-completion-mode to enable it. Just loading the file
5902doesn't have any effect.
5903
5904** In Flyspell mode, the default is now to make just one Ispell process,
5905not one per buffer.
5906
5907** If you use iswitchb but do not call (iswitchb-default-keybindings) to
5908use the default keybindings, you will need to add the following line:
5909 (add-hook 'minibuffer-setup-hook 'iswitchb-minibuffer-setup)
5910
5911** Auto-show mode is no longer enabled just by loading auto-show.el.
5912To control it, set `auto-show-mode' via Custom or use the
5913`auto-show-mode' command.
5914
5915** Handling of X fonts' ascent/descent parameters has been changed to
5916avoid redisplay problems. As a consequence, compared with previous
5917versions the line spacing and frame size now differ with some font
5918choices, typically increasing by a pixel per line. This change
5919occurred in version 20.3 but was not documented then.
5920
5921** If you select the bar cursor style, it uses the frame's
5922cursor-color, rather than the cursor foreground pixel.
5923
5924** In multibyte mode, Rmail decodes incoming MIME messages using the
5925character set specified in the message. If you want to disable this
5926feature, set the variable rmail-decode-mime-charset to nil.
5927
5928** Not new, but not mentioned previously in NEWS: when you use #! at
5929the beginning of a file to make it executable and specify an
5930interpreter program, Emacs looks on the second line for the -*- mode
5931and variable specification, as well as on the first line.
5932
5933** Support for IBM codepage encoding of non-ASCII characters.
5934
5935The new command M-x codepage-setup creates a special coding system
5936that can be used to convert text between a specific IBM codepage and
5937one of the character sets built into Emacs which matches that
5938codepage. For example, codepage 850 corresponds to Latin-1 character
5939set, codepage 855 corresponds to Cyrillic-ISO character set, etc.
5940
5941Windows codepages 1250, 1251 and some others, where Windows deviates
5942from the corresponding ISO character set, are also supported.
5943
5944IBM box-drawing characters and other glyphs which don't have
5945equivalents in the corresponding ISO character set, are converted to
5946a character defined by dos-unsupported-char-glyph on MS-DOS, and to
5947`?' on other systems.
5948
5949IBM codepages are widely used on MS-DOS and MS-Windows, so this
5950feature is most useful on those platforms, but it can also be used on
5951Unix.
5952
5953Emacs compiled for MS-DOS automatically loads the support for the
5954current codepage when it starts.
5955
5956** Mail changes
5957
5958*** When mail is sent using compose-mail (C-x m), and if
5959`mail-send-nonascii' is set to the new default value `mime',
5960appropriate MIME headers are added. The headers are added only if
5961non-ASCII characters are present in the body of the mail, and no other
5962MIME headers are already present. For example, the following three
5963headers are added if the coding system used in the *mail* buffer is
5964latin-1:
5965
5966 MIME-version: 1.0
5967 Content-type: text/plain; charset=iso-8859-1
5968 Content-Transfer-Encoding: 8bit
5969
5970*** The new variable default-sendmail-coding-system specifies the
5971default way to encode outgoing mail. This has higher priority than
5972default-buffer-file-coding-system but has lower priority than
5973sendmail-coding-system and the local value of
5974buffer-file-coding-system.
5975
5976You should not set this variable manually. Instead, set
5977sendmail-coding-system to specify a fixed encoding for all outgoing
5978mail.
5979
5980*** When you try to send a message that contains non-ASCII characters,
5981if the coding system specified by those variables doesn't handle them,
5982Emacs will ask you to select a suitable coding system while showing a
5983list of possible coding systems.
5984
5985** CC Mode changes
5986
5987*** c-default-style can now take an association list that maps major
5988modes to style names. When this variable is an alist, Java mode no
5989longer hardcodes a setting to "java" style. See the variable's
5990docstring for details.
5991
5992*** It's now possible to put a list as the offset on a syntactic
5993symbol. The list is evaluated recursively until a non-nil offset is
5994found. This is useful to combine several lineup functions to act in a
5995prioritized order on a single line. However, none of the supplied
5996lineup functions use this feature currently.
5997
5998*** New syntactic symbol catch-clause, which is used on the "catch" and
5999"finally" lines in try-catch constructs in C++ and Java.
6000
6001*** New cleanup brace-catch-brace on c-cleanup-list, which does for
6002"catch" lines what brace-elseif-brace does for "else if" lines.
6003
6004*** The braces of Java anonymous inner classes are treated separately
6005from the braces of other classes in auto-newline mode. Two new
6006symbols inexpr-class-open and inexpr-class-close may be used on
6007c-hanging-braces-alist to control the automatic newlines used for
6008anonymous classes.
6009
6010*** Support for the Pike language added, along with new Pike specific
6011syntactic symbols: inlambda, lambda-intro-cont
6012
6013*** Support for Java anonymous classes via new syntactic symbol
6014inexpr-class. New syntactic symbol inexpr-statement for Pike
6015support and gcc-style statements inside expressions. New lineup
6016function c-lineup-inexpr-block.
6017
6018*** New syntactic symbol brace-entry-open which is used in brace lists
6019(i.e. static initializers) when a list entry starts with an open
6020brace. These used to be recognized as brace-list-entry's.
6021c-electric-brace also recognizes brace-entry-open braces
6022(brace-list-entry's can no longer be electrified).
6023
6024*** New command c-indent-line-or-region, not bound by default.
6025
6026*** `#' is only electric when typed in the indentation of a line.
6027
6028*** Parentheses are now electric (via the new command c-electric-paren)
6029for auto-reindenting lines when parens are typed.
6030
6031*** In "gnu" style, inline-open offset is now set to zero.
6032
6033*** Uniform handling of the inclass syntactic symbol. The indentation
6034associated with it is now always relative to the class opening brace.
6035This means that the indentation behavior has changed in some
6036circumstances, but only if you've put anything besides 0 on the
6037class-open syntactic symbol (none of the default styles do that).
6038
6039** Gnus changes.
6040
6041*** New functionality for using Gnus as an offline newsreader has been
6042added. A plethora of new commands and modes have been added. See the
6043Gnus manual for the full story.
6044
6045*** The nndraft backend has returned, but works differently than
6046before. All Message buffers are now also articles in the nndraft
6047group, which is created automatically.
6048
6049*** `gnus-alter-header-function' can now be used to alter header
6050values.
6051
6052*** `gnus-summary-goto-article' now accept Message-ID's.
6053
6054*** A new Message command for deleting text in the body of a message
6055outside the region: `C-c C-v'.
6056
6057*** You can now post to component group in nnvirtual groups with
6058`C-u C-c C-c'.
6059
6060*** `nntp-rlogin-program' -- new variable to ease customization.
6061
6062*** `C-u C-c C-c' in `gnus-article-edit-mode' will now inhibit
6063re-highlighting of the article buffer.
6064
6065*** New element in `gnus-boring-article-headers' -- `long-to'.
6066
6067*** `M-i' symbolic prefix command. See the section "Symbolic
6068Prefixes" in the Gnus manual for details.
6069
6070*** `L' and `I' in the summary buffer now take the symbolic prefix
6071`a' to add the score rule to the "all.SCORE" file.
6072
6073*** `gnus-simplify-subject-functions' variable to allow greater
6074control over simplification.
6075
6076*** `A T' -- new command for fetching the current thread.
6077
6078*** `/ T' -- new command for including the current thread in the
6079limit.
6080
6081*** `M-RET' is a new Message command for breaking cited text.
6082
6083*** \\1-expressions are now valid in `nnmail-split-methods'.
6084
6085*** The `custom-face-lookup' function has been removed.
6086If you used this function in your initialization files, you must
6087rewrite them to use `face-spec-set' instead.
6088
8a33023e 6089*** Canceling now uses the current select method. Symbolic prefix
3787e12e
GM
6090`a' forces normal posting method.
6091
6092*** New command to translate M******** sm*rtq**t*s into proper text
6093-- `W d'.
6094
6095*** For easier debugging of nntp, you can set `nntp-record-commands'
6096to a non-nil value.
6097
6098*** nntp now uses ~/.authinfo, a .netrc-like file, for controlling
6099where and how to send AUTHINFO to NNTP servers.
6100
6101*** A command for editing group parameters from the summary buffer
6102has been added.
6103
6104*** A history of where mails have been split is available.
6105
6106*** A new article date command has been added -- `article-date-iso8601'.
6107
6108*** Subjects can be simplified when threading by setting
6109`gnus-score-thread-simplify'.
6110
6111*** A new function for citing in Message has been added --
6112`message-cite-original-without-signature'.
6113
6114*** `article-strip-all-blank-lines' -- new article command.
6115
6116*** A new Message command to kill to the end of the article has
6117been added.
6118
6119*** A minimum adaptive score can be specified by using the
6120`gnus-adaptive-word-minimum' variable.
6121
6122*** The "lapsed date" article header can be kept continually
6123updated by the `gnus-start-date-timer' command.
6124
6125*** Web listserv archives can be read with the nnlistserv backend.
6126
6127*** Old dejanews archives can now be read by nnweb.
6128
6129*** `gnus-posting-styles' has been re-activated.
6130
6131** Changes to TeX and LaTeX mode
6132
6133*** The new variable `tex-start-options-string' can be used to give
6134options for the TeX run. The default value causes TeX to run in
6135nonstopmode. For an interactive TeX run set it to nil or "".
6136
6137*** The command `tex-feed-input' sends input to the Tex Shell. In a
6138TeX buffer it is bound to the keys C-RET, C-c RET, and C-c C-m (some
6139of these keys may not work on all systems). For instance, if you run
6140TeX interactively and if the TeX run stops because of an error, you
6141can continue it without leaving the TeX buffer by typing C-RET.
6142
6143*** The Tex Shell Buffer is now in `compilation-shell-minor-mode'.
6144All error-parsing commands of the Compilation major mode are available
6145but bound to keys that don't collide with the shell. Thus you can use
6146the Tex Shell for command line executions like a usual shell.
6147
6148*** The commands `tex-validate-region' and `tex-validate-buffer' check
6149the matching of braces and $'s. The errors are listed in a *Occur*
6150buffer and you can use C-c C-c or mouse-2 to go to a particular
6151mismatch.
6152
6153** Changes to RefTeX mode
6154
6155*** The table of contents buffer can now also display labels and
6156file boundaries in addition to sections. Use `l', `i', and `c' keys.
6157
6158*** Labels derived from context (the section heading) are now
6159lowercase by default. To make the label legal in LaTeX, latin-1
6160characters will lose their accent. All Mule characters will be
6161removed from the label.
6162
6163*** The automatic display of cross reference information can also use
6164a window instead of the echo area. See variable `reftex-auto-view-crossref'.
6165
6166*** kpsewhich can be used by RefTeX to find TeX and BibTeX files. See the
6167customization group `reftex-finding-files'.
6168
6169*** The option `reftex-bibfile-ignore-list' has been renamed to
6170`reftex-bibfile-ignore-regexps' and indeed can be fed with regular
6171expressions.
6172
6173*** Multiple Selection buffers are now hidden buffers.
6174
6175** New/deleted modes and packages
6176
6177*** The package snmp-mode.el provides major modes for editing SNMP and
6178SNMPv2 MIBs. It has entries on `auto-mode-alist'.
6179
6180*** The package sql.el provides a major mode, M-x sql-mode, for
6181editing SQL files, and M-x sql-interactive-mode for interacting with
6182SQL interpreters. It has an entry on `auto-mode-alist'.
6183
6184*** M-x highlight-changes-mode provides a minor mode displaying buffer
6185changes with a special face.
6186
6187*** ispell4.el has been deleted. It got in the way of ispell.el and
6188this was hard to fix reliably. It has long been obsolete -- use
6189Ispell 3.1 and ispell.el.
05197f40 6190\f
3787e12e
GM
6191* MS-DOS changes in Emacs 20.4
6192
6193** Emacs compiled for MS-DOS now supports MULE features better.
6194This includes support for display of all ISO 8859-N character sets,
6195conversion to and from IBM codepage encoding of non-ASCII characters,
6196and automatic setup of the MULE environment at startup. For details,
6197check out the section `MS-DOS and MULE' in the manual.
6198
6199The MS-DOS installation procedure automatically configures and builds
6200Emacs with input method support if it finds an unpacked Leim
6201distribution when the config.bat script is run.
6202
6203** Formerly, the value of lpr-command did not affect printing on
6204MS-DOS unless print-region-function was set to nil, but now it
6205controls whether an external program is invoked or output is written
6206directly to a printer port. Similarly, in the previous version of
6207Emacs, the value of ps-lpr-command did not affect PostScript printing
6208on MS-DOS unless ps-printer-name was set to something other than a
6209string (eg. t or `pipe'), but now it controls whether an external
6210program is used. (These changes were made so that configuration of
6211printing variables would be almost identical across all platforms.)
6212
6213** In the previous version of Emacs, PostScript and non-PostScript
6214output was piped to external programs, but because most print programs
6215available for MS-DOS and MS-Windows cannot read data from their standard
6216input, on those systems the data to be output is now written to a
6217temporary file whose name is passed as the last argument to the external
6218program.
6219
6220An exception is made for `print', a standard program on Windows NT,
6221and `nprint', a standard program on Novell Netware. For both of these
6222programs, the command line is constructed in the appropriate syntax
6223automatically, using only the value of printer-name or ps-printer-name
6224as appropriate--the value of the relevant `-switches' variable is
6225ignored, as both programs have no useful switches.
6226
6227** The value of the variable dos-printer (cf. dos-ps-printer), if it has
6228a value, overrides the value of printer-name (cf. ps-printer-name), on
6229MS-DOS and MS-Windows only. This has been true since version 20.3, but
6230was not documented clearly before.
6231
6232** All the Emacs games now work on MS-DOS terminals.
6233This includes Tetris and Snake.
05197f40 6234\f
3787e12e
GM
6235* Lisp changes in Emacs 20.4
6236
6237** New functions line-beginning-position and line-end-position
6238return the position of the beginning or end of the current line.
6239They both accept an optional argument, which has the same
6240meaning as the argument to beginning-of-line or end-of-line.
6241
6242** find-file and allied functions now have an optional argument
6243WILDCARD. If this is non-nil, they do wildcard processing,
6244and visit all files that match the wildcard pattern.
6245
6246** Changes in the file-attributes function.
6247
6248*** The file size returned by file-attributes may be an integer or a float.
6249It is an integer if the size fits in a Lisp integer, float otherwise.
6250
6251*** The inode number returned by file-attributes may be an integer (if
6252the number fits in a Lisp integer) or a cons cell containing two
6253integers.
6254
6255** The new function directory-files-and-attributes returns a list of
6256files in a directory and their attributes. It accepts the same
6257arguments as directory-files and has similar semantics, except that
6258file names and attributes are returned.
6259
6260** The new function file-attributes-lessp is a helper function for
6261sorting the list generated by directory-files-and-attributes. It
8a33023e 6262accepts two arguments, each a list of a file name and its attributes.
3787e12e
GM
6263It compares the file names of each according to string-lessp and
6264returns the result.
6265
6266** The new function file-expand-wildcards expands a wildcard-pattern
6267to produce a list of existing files that match the pattern.
6268
6269** New functions for base64 conversion:
6270
6271The function base64-encode-region converts a part of the buffer
6272into the base64 code used in MIME. base64-decode-region
6273performs the opposite conversion. Line-breaking is supported
6274optionally.
6275
6276Functions base64-encode-string and base64-decode-string do a similar
6277job on the text in a string. They return the value as a new string.
6278
6279**
6280The new function process-running-child-p
6281will tell you if a subprocess has given control of its
6282terminal to its own child process.
6283
6284** interrupt-process and such functions have a new feature:
6285when the second argument is `lambda', they send a signal
6286to the running child of the subshell, if any, but if the shell
6287itself owns its terminal, no signal is sent.
6288
6289** There are new widget types `plist' and `alist' which can
6290be used for customizing variables whose values are plists or alists.
6291
4a389f53 6292** easymenu.el now understands `:key-sequence' and `:style button'.
3787e12e
GM
6293:included is an alias for :visible.
6294
6295easy-menu-add-item now understands the values returned by
6296easy-menu-remove-item and easy-menu-item-present-p. This can be used
6297to move or copy menu entries.
6298
6299** Multibyte editing changes
6300
6301*** The definitions of sref and char-bytes are changed. Now, sref is
6302an alias of aref and char-bytes always returns 1. This change is to
6303make some Emacs Lisp code which works on 20.2 and earlier also
6304work on the latest Emacs. Such code uses a combination of sref and
6305char-bytes in a loop typically as below:
6306 (setq char (sref str idx)
6307 idx (+ idx (char-bytes idx)))
6308The byte-compiler now warns that this is obsolete.
6309
6310If you want to know how many bytes a specific multibyte character
6311(say, CH) occupies in a multibyte buffer, use this code:
6312 (charset-bytes (char-charset ch))
6313
6314*** In multibyte mode, when you narrow a buffer to some region, and the
6315region is preceded or followed by non-ASCII codes, inserting or
6316deleting at the head or the end of the region may signal this error:
6317
8a33023e 6318 Byte combining across boundary of accessible buffer text inhibited
3787e12e
GM
6319
6320This is to avoid some bytes being combined together into a character
6321across the boundary.
6322
6323*** The functions find-charset-region and find-charset-string include
6324`unknown' in the returned list in the following cases:
6325 o The current buffer or the target string is unibyte and
6326 contains 8-bit characters.
6327 o The current buffer or the target string is multibyte and
6328 contains invalid characters.
6329
6330*** The functions decode-coding-region and encode-coding-region remove
6331text properties of the target region. Ideally, they should correctly
6332preserve text properties, but for the moment, it's hard. Removing
6333text properties is better than preserving them in a less-than-correct
6334way.
6335
6336*** prefer-coding-system sets EOL conversion of default coding systems.
6337If the argument to prefer-coding-system specifies a certain type of
6338end of line conversion, the default coding systems set by
6339prefer-coding-system will specify that conversion type for end of line.
6340
6341*** The new function thai-compose-string can be used to properly
6342compose Thai characters in a string.
6343
6344** The primitive `define-prefix-command' now takes an optional third
6345argument NAME, which should be a string. It supplies the menu name
6346for the created keymap. Keymaps created in order to be displayed as
6347menus should always use the third argument.
6348
6349** The meanings of optional second arguments for read-char,
6350read-event, and read-char-exclusive are flipped. Now the second
6351arguments are INHERIT-INPUT-METHOD. These functions use the current
6352input method (if any) if and only if INHERIT-INPUT-METHOD is non-nil.
6353
6354** The new function clear-this-command-keys empties out the contents
6355of the vector that (this-command-keys) returns. This is useful in
6356programs that read passwords, to prevent the passwords from echoing
6357inadvertently as part of the next command in certain cases.
6358
6359** The new macro `with-temp-message' displays a temporary message in
6360the echo area, while executing some Lisp code. Like `progn', it
6361returns the value of the last form, but it also restores the previous
6362echo area contents.
6363
6364 (with-temp-message MESSAGE &rest BODY)
6365
6366** The function `require' now takes an optional third argument
6367NOERROR. If it is non-nil, then there is no error if the
6368requested feature cannot be loaded.
6369
6370** In the function modify-face, an argument of (nil) for the
6371foreground color, background color or stipple pattern
6372means to clear out that attribute.
6373
6374** The `outer-window-id' frame property of an X frame
6375gives the window number of the outermost X window for the frame.
6376
6377** Temporary buffers made with with-output-to-temp-buffer are now
6378read-only by default, and normally use the major mode Help mode
6379unless you put them in some other non-Fundamental mode before the
6380end of with-output-to-temp-buffer.
6381
6382** The new functions gap-position and gap-size return information on
6383the gap of the current buffer.
6384
6385** The new functions position-bytes and byte-to-position provide a way
6386to convert between character positions and byte positions in the
6387current buffer.
6388
6389** vc.el defines two new macros, `edit-vc-file' and `with-vc-file', to
6390facilitate working with version-controlled files from Lisp programs.
6391These macros check out a given file automatically if needed, and check
6392it back in after any modifications have been made.
05197f40 6393\f
3787e12e
GM
6394* Installation Changes in Emacs 20.3
6395
6396** The default value of load-path now includes most subdirectories of
6397the site-specific directories /usr/local/share/emacs/site-lisp and
6398/usr/local/share/emacs/VERSION/site-lisp, in addition to those
6399directories themselves. Both immediate subdirectories and
6400subdirectories multiple levels down are added to load-path.
6401
6402Not all subdirectories are included, though. Subdirectories whose
6403names do not start with a letter or digit are excluded.
6404Subdirectories named RCS or CVS are excluded. Also, a subdirectory
6405which contains a file named `.nosearch' is excluded. You can use
6406these methods to prevent certain subdirectories from being searched.
6407
6408Emacs finds these subdirectories and adds them to load-path when it
6409starts up. While it would be cleaner to find the subdirectories each
6410time Emacs loads a file, that would be much slower.
6411
6412This feature is an incompatible change. If you have stored some Emacs
6413Lisp files in a subdirectory of the site-lisp directory specifically
6414to prevent them from being used, you will need to rename the
6415subdirectory to start with a non-alphanumeric character, or create a
6416`.nosearch' file in it, in order to continue to achieve the desired
6417results.
6418
6419** Emacs no longer includes an old version of the C preprocessor from
6420GCC. This was formerly used to help compile Emacs with C compilers
6421that had limits on the significant length of an identifier, but in
6422fact we stopped supporting such compilers some time ago.
05197f40 6423\f
3787e12e
GM
6424* Changes in Emacs 20.3
6425
6426** The new command C-x z (repeat) repeats the previous command
6427including its argument. If you repeat the z afterward,
6428it repeats the command additional times; thus, you can
6429perform many repetitions with one keystroke per repetition.
6430
6431** Emacs now supports "selective undo" which undoes only within a
6432specified region. To do this, set point and mark around the desired
6433region and type C-u C-x u (or C-u C-_). You can then continue undoing
6434further, within the same region, by repeating the ordinary undo
6435command C-x u or C-_. This will keep undoing changes that were made
6436within the region you originally specified, until either all of them
6437are undone, or it encounters a change which crosses the edge of that
6438region.
6439
6440In Transient Mark mode, undoing when a region is active requests
6441selective undo.
6442
6443** If you specify --unibyte when starting Emacs, then all buffers are
6444unibyte, except when a Lisp program specifically creates a multibyte
6445buffer. Setting the environment variable EMACS_UNIBYTE has the same
6446effect. The --no-unibyte option overrides EMACS_UNIBYTE and directs
6447Emacs to run normally in multibyte mode.
6448
6449The option --unibyte does not affect the reading of Emacs Lisp files,
6450though. If you want a Lisp file to be read in unibyte mode, use
6451-*-unibyte: t;-*- on its first line. That will force Emacs to
6452load that file in unibyte mode, regardless of how Emacs was started.
6453
6454** toggle-enable-multibyte-characters no longer has a key binding and
6455no longer appears in the menu bar. We've realized that changing the
6456enable-multibyte-characters variable in an existing buffer is
6457something that most users not do.
6458
6459** You can specify a coding system to use for the next cut or paste
6460operations through the window system with the command C-x RET X.
6461The coding system can make a difference for communication with other
6462applications.
6463
6464C-x RET x specifies a coding system for all subsequent cutting and
6465pasting operations.
6466
6467** You can specify the printer to use for commands that do printing by
6468setting the variable `printer-name'. Just what a printer name looks
6469like depends on your operating system. You can specify a different
6470printer for the Postscript printing commands by setting
6471`ps-printer-name'.
6472
6473** Emacs now supports on-the-fly spell checking by the means of a
6474minor mode. It is called M-x flyspell-mode. You don't have to remember
6475any other special commands to use it, and you will hardly notice it
6476except when you make a spelling error. Flyspell works by highlighting
6477incorrect words as soon as they are completed or as soon as the cursor
6478hits a new word.
6479
6480Flyspell mode works with whichever dictionary you have selected for
6481Ispell in Emacs. In TeX mode, it understands TeX syntax so as not
6482to be confused by TeX commands.
6483
6484You can correct a misspelled word by editing it into something
6485correct. You can also correct it, or accept it as correct, by
6486clicking on the word with Mouse-2; that gives you a pop-up menu
6487of various alternative replacements and actions.
6488
6489Flyspell mode also proposes "automatic" corrections. M-TAB replaces
6490the current misspelled word with a possible correction. If several
6491corrections are made possible, M-TAB cycles through them in
6492alphabetical order, or in order of decreasing likelihood if
6493flyspell-sort-corrections is nil.
6494
6495Flyspell mode also flags an error when a word is repeated, if
6496flyspell-mark-duplications-flag is non-nil.
6497
6498** Changes in input method usage.
6499
6500Now you can use arrow keys (right, left, down, up) for selecting among
6501the alternatives just the same way as you do by C-f, C-b, C-n, and C-p
6502respectively.
6503
6504You can use the ENTER key to accept the current conversion.
6505
6506If you type TAB to display a list of alternatives, you can select one
6507of the alternatives with Mouse-2.
6508
6509The meaning of the variable `input-method-verbose-flag' is changed so
6510that you can set it to t, nil, `default', or `complex-only'.
6511
6512 If the value is nil, extra guidance is never given.
6513
6514 If the value is t, extra guidance is always given.
6515
6516 If the value is `complex-only', extra guidance is always given only
6517 when you are using complex input methods such as chinese-py.
6518
6519 If the value is `default' (this is the default), extra guidance is
6520 given in the following case:
6521 o When you are using a complex input method.
6522 o When you are using a simple input method but not in the minibuffer.
6523
6524If you are using Emacs through a very slow line, setting
6525input-method-verbose-flag to nil or to complex-only is a good choice,
6526and if you are using an input method you are not familiar with,
6527setting it to t is helpful.
6528
6529The old command select-input-method is now called set-input-method.
6530
6531In the language environment "Korean", you can use the following
6532keys:
6533 Shift-SPC toggle-korean-input-method
6534 C-F9 quail-hangul-switch-symbol-ksc
6535 F9 quail-hangul-switch-hanja
6536These key bindings are canceled when you switch to another language
6537environment.
6538
6539** The minibuffer history of file names now records the specified file
6540names, not the entire minibuffer input. For example, if the
6541minibuffer starts out with /usr/foo/, you might type in /etc/passwd to
6542get
6543
6544 /usr/foo//etc/passwd
6545
6546which stands for the file /etc/passwd.
6547
6548Formerly, this used to put /usr/foo//etc/passwd in the history list.
6549Now this puts just /etc/passwd in the history list.
6550
6551** If you are root, Emacs sets backup-by-copying-when-mismatch to t
6552at startup, so that saving a file will be sure to preserve
6553its owner and group.
6554
6555** find-func.el can now also find the place of definition of Emacs
6556Lisp variables in user-loaded libraries.
6557
6558** C-x r t (string-rectangle) now deletes the existing rectangle
6559contents before inserting the specified string on each line.
6560
6561** There is a new command delete-whitespace-rectangle
6562which deletes whitespace starting from a particular column
6563in all the lines on a rectangle. The column is specified
6564by the left edge of the rectangle.
6565
6566** You can now store a number into a register with C-u NUMBER C-x r n REG,
6567increment it by INC with C-u INC C-x r + REG (to increment by one, omit
6568C-u INC), and insert it in the buffer with C-x r g REG. This is useful
6569for writing keyboard macros.
6570
6571** The new command M-x speedbar displays a frame in which directories,
6572files, and tags can be displayed, manipulated, and jumped to. The
6573frame defaults to 20 characters in width, and is the same height as
6574the frame that it was started from. Some major modes define
6575additional commands for the speedbar, including Rmail, GUD/GDB, and
6576info.
6577
6578** query-replace-regexp is now bound to C-M-%.
6579
6580** In Transient Mark mode, when the region is active, M-x
6581query-replace and the other replace commands now operate on the region
6582contents only.
6583
6584** M-x write-region, when used interactively, now asks for
6585confirmation before overwriting an existing file. When you call
6586the function from a Lisp program, a new optional argument CONFIRM
6587says whether to ask for confirmation in this case.
6588
6589** If you use find-file-literally and the file is already visited
6590non-literally, the command asks you whether to revisit the file
6591literally. If you say no, it signals an error.
6592
6593** Major modes defined with the "derived mode" feature
6594now use the proper name for the mode hook: WHATEVER-mode-hook.
6595Formerly they used the name WHATEVER-mode-hooks, but that is
6596inconsistent with Emacs conventions.
6597
6598** shell-command-on-region (and shell-command) reports success or
6599failure if the command produces no output.
6600
6601** Set focus-follows-mouse to nil if your window system or window
6602manager does not transfer focus to another window when you just move
6603the mouse.
6604
6605** mouse-menu-buffer-maxlen has been renamed to
6606mouse-buffer-menu-maxlen to be consistent with the other related
6607function and variable names.
6608
6609** The new variable auto-coding-alist specifies coding systems for
6610reading specific files. This has higher priority than
6611file-coding-system-alist.
6612
6613** If you set the variable unibyte-display-via-language-environment to
6614t, then Emacs displays non-ASCII characters are displayed by
6615converting them to the equivalent multibyte characters according to
6616the current language environment. As a result, they are displayed
6617according to the current fontset.
6618
6619** C-q's handling of codes in the range 0200 through 0377 is changed.
6620
6621The codes in the range 0200 through 0237 are inserted as one byte of
6622that code regardless of the values of nonascii-translation-table and
6623nonascii-insert-offset.
6624
6625For the codes in the range 0240 through 0377, if
6626enable-multibyte-characters is non-nil and nonascii-translation-table
6627nor nonascii-insert-offset can't convert them to valid multibyte
6628characters, they are converted to Latin-1 characters.
6629
6630** If you try to find a file that is not read-accessible, you now get
6631an error, rather than an empty buffer and a warning.
6632
6633** In the minibuffer history commands M-r and M-s, an upper case
6634letter in the regular expression forces case-sensitive search.
6635
6636** In the *Help* buffer, cross-references to commands and variables
6637are inferred and hyperlinked. Use C-h m in Help mode for the relevant
6638command keys.
6639
6640** M-x apropos-command, with a prefix argument, no longer looks for
6641user option variables--instead it looks for noninteractive functions.
6642
6643Meanwhile, the command apropos-variable normally searches for
6644user option variables; with a prefix argument, it looks at
6645all variables that have documentation.
6646
6647** When you type a long line in the minibuffer, and the minibuffer
6648shows just one line, automatically scrolling works in a special way
6649that shows you overlap with the previous line of text. The variable
6650minibuffer-scroll-overlap controls how many characters of overlap
6651it should show; the default is 20.
6652
6653Meanwhile, Resize Minibuffer mode is still available; in that mode,
6654the minibuffer grows taller (up to a point) as needed to show the whole
6655of your input.
6656
6657** The new command M-x customize-changed-options lets you customize
6658all the options whose meanings or default values have changed in
6659recent Emacs versions. You specify a previous Emacs version number as
6660argument, and the command creates a customization buffer showing all
6661the customizable options which were changed since that version.
6662Newly added options are included as well.
6663
6664If you don't specify a particular version number argument,
6665then the customization buffer shows all the customizable options
6666for which Emacs versions of changes are recorded.
6667
6668This function is also bound to the Changed Options entry in the
6669Customize menu.
6670
6671** When you run M-x grep with a prefix argument, it figures out
6672the tag around point and puts that into the default grep command.
6673
6674** The new command M-* (pop-tag-mark) pops back through a history of
6675buffer positions from which M-. or other tag-finding commands were
6676invoked.
6677
6678** The new variable comment-padding specifies the number of spaces
6679that `comment-region' will insert before the actual text of the comment.
6680The default is 1.
6681
6682** In Fortran mode the characters `.', `_' and `$' now have symbol
6683syntax, not word syntax. Fortran mode now supports `imenu' and has
6684new commands fortran-join-line (M-^) and fortran-narrow-to-subprogram
6685(C-x n d). M-q can be used to fill a statement or comment block
6686sensibly.
6687
6688** GUD now supports jdb, the Java debugger, and pdb, the Python debugger.
6689
6690** If you set the variable add-log-keep-changes-together to a non-nil
6691value, the command `C-x 4 a' will automatically notice when you make
6692two entries in one day for one file, and combine them.
6693
6694** You can use the command M-x diary-mail-entries to mail yourself a
6695reminder about upcoming diary entries. See the documentation string
6696for a sample shell script for calling this function automatically
6697every night.
6698
6699** Desktop changes
6700
6701*** All you need to do to enable use of the Desktop package, is to set
6702the variable desktop-enable to t with Custom.
6703
6704*** Minor modes are now restored. Which minor modes are restored
6705and how modes are restored is controlled by `desktop-minor-mode-table'.
6706
6707** There is no need to do anything special, now, to enable Gnus to
6708read and post multi-lingual articles.
6709
6710** Outline mode has now support for showing hidden outlines when
6711doing an isearch. In order for this to happen search-invisible should
6712be set to open (the default). If an isearch match is inside a hidden
6713outline the outline is made visible. If you continue pressing C-s and
6714the match moves outside the formerly invisible outline, the outline is
6715made invisible again.
6716
6717** Mail reading and sending changes
6718
6719*** The Rmail e command now switches to displaying the whole header of
6720the message before it lets you edit the message. This is so that any
6721changes you make in the header will not be lost if you subsequently
6722toggle.
6723
6724*** The w command in Rmail, which writes the message body into a file,
6725now works in the summary buffer as well. (The command to delete the
6726summary buffer is now Q.) The default file name for the w command, if
6727the message has no subject, is stored in the variable
6728rmail-default-body-file.
6729
6730*** Most of the commands and modes that operate on mail and netnews no
6731longer depend on the value of mail-header-separator. Instead, they
6732handle whatever separator the buffer happens to use.
6733
6734*** If you set mail-signature to a value which is not t, nil, or a string,
6735it should be an expression. When you send a message, this expression
6736is evaluated to insert the signature.
6737
6738*** The new Lisp library feedmail.el (version 8) enhances processing of
6739outbound email messages. It works in coordination with other email
6740handling packages (e.g., rmail, VM, gnus) and is responsible for
6741putting final touches on messages and actually submitting them for
6742transmission. Users of the emacs program "fakemail" might be
6743especially interested in trying feedmail.
6744
6745feedmail is not enabled by default. See comments at the top of
6746feedmail.el for set-up instructions. Among the bigger features
6747provided by feedmail are:
6748
6749**** you can park outgoing messages into a disk-based queue and
6750stimulate sending some or all of them later (handy for laptop users);
6751there is also a queue for draft messages
6752
6753**** you can get one last look at the prepped outbound message and
6754be prompted for confirmation
6755
6756**** does smart filling of address headers
6757
6758**** can generate a MESSAGE-ID: line and a DATE: line; the date can be
6759the time the message was written or the time it is being sent; this
6760can make FCC copies more closely resemble copies that recipients get
6761
6762**** you can specify an arbitrary function for actually transmitting
6763the message; included in feedmail are interfaces for /bin/[r]mail,
6764/usr/lib/sendmail, and elisp smtpmail; it's easy to write a new
6765function for something else (10-20 lines of elisp)
6766
6767** Dired changes
6768
6769*** The Dired function dired-do-toggle, which toggles marked and unmarked
6770files, is now bound to "t" instead of "T".
6771
6772*** dired-at-point has been added to ffap.el. It allows one to easily
6773run Dired on the directory name at point.
6774
6775*** Dired has a new command: %g. It searches the contents of
6776files in the directory and marks each file that contains a match
6777for a specified regexp.
6778
6779** VC Changes
6780
6781*** New option vc-ignore-vc-files lets you turn off version control
6782conveniently.
6783
6784*** VC Dired has been completely rewritten. It is now much
6785faster, especially for CVS, and works very similar to ordinary
6786Dired.
6787
6788VC Dired is invoked by typing C-x v d and entering the name of the
6789directory to display. By default, VC Dired gives you a recursive
6790listing of all files at or below the given directory which are
6791currently locked (for CVS, all files not up-to-date are shown).
6792
6793You can change the listing format by setting vc-dired-recurse to nil,
6794then it shows only the given directory, and you may also set
6795vc-dired-terse-display to nil, then it shows all files under version
6796control plus the names of any subdirectories, so that you can type `i'
6797on such lines to insert them manually, as in ordinary Dired.
6798
6799All Dired commands operate normally in VC Dired, except for `v', which
6800is redefined as the version control prefix. That means you may type
6801`v l', `v =' etc. to invoke `vc-print-log', `vc-diff' and the like on
6802the file named in the current Dired buffer line. `v v' invokes
6803`vc-next-action' on this file, or on all files currently marked.
6804
6805The new command `v t' (vc-dired-toggle-terse-mode) allows you to
6806toggle between terse display (only locked files) and full display (all
6807VC files plus subdirectories). There is also a special command,
6808`* l', to mark all files currently locked.
6809
6810Giving a prefix argument to C-x v d now does the same thing as in
6811ordinary Dired: it allows you to supply additional options for the ls
6812command in the minibuffer, to fine-tune VC Dired's output.
6813
6814*** Under CVS, if you merge changes from the repository into a working
6815file, and CVS detects conflicts, VC now offers to start an ediff
6816session to resolve them.
6817
6818Alternatively, you can use the new command `vc-resolve-conflicts' to
6819resolve conflicts in a file at any time. It works in any buffer that
6820contains conflict markers as generated by rcsmerge (which is what CVS
6821uses as well).
6822
6823*** You can now transfer changes between branches, using the new
6824command vc-merge (C-x v m). It is implemented for RCS and CVS. When
6825you invoke it in a buffer under version-control, you can specify
6826either an entire branch or a pair of versions, and the changes on that
6827branch or between the two versions are merged into the working file.
6828If this results in any conflicts, they may be resolved interactively,
6829using ediff.
6830
6831** Changes in Font Lock
6832
6833*** The face and variable previously known as font-lock-reference-face
6834are now called font-lock-constant-face to better reflect their typical
6835use for highlighting constants and labels. (Its face properties are
6836unchanged.) The variable font-lock-reference-face remains for now for
6837compatibility reasons, but its value is font-lock-constant-face.
6838
6839** Frame name display changes
6840
6841*** The command set-frame-name lets you set the name of the current
6842frame. You can use the new command select-frame-by-name to select and
6843raise a frame; this is mostly useful on character-only terminals, or
6844when many frames are invisible or iconified.
6845
6846*** On character-only terminal (not a window system), changing the
6847frame name is now reflected on the mode line and in the Buffers/Frames
6848menu.
6849
6850** Comint (subshell) changes
6851
6852*** In Comint modes, the commands to kill, stop or interrupt a
6853subjob now also kill pending input. This is for compatibility
6854with ordinary shells, where the signal characters do this.
6855
6856*** There are new commands in Comint mode.
6857
6858C-c C-x fetches the "next" line from the input history;
6859that is, the line after the last line you got.
6860You can use this command to fetch successive lines, one by one.
6861
6862C-c SPC accumulates lines of input. More precisely, it arranges to
6863send the current line together with the following line, when you send
6864the following line.
6865
6866C-c C-a if repeated twice consecutively now moves to the process mark,
6867which separates the pending input from the subprocess output and the
6868previously sent input.
6869
6870C-c M-r now runs comint-previous-matching-input-from-input;
6871it searches for a previous command, using the current pending input
6872as the search string.
6873
6874*** New option compilation-scroll-output can be set to scroll
6875automatically in compilation-mode windows.
6876
6877** C mode changes
6878
6879*** Multiline macros are now handled, both as they affect indentation,
6880and as recognized syntax. New syntactic symbol cpp-macro-cont is
6881assigned to second and subsequent lines of a multiline macro
6882definition.
6883
6884*** A new style "user" which captures all non-hook-ified
6885(i.e. top-level) .emacs file variable settings and customizations.
6886Style "cc-mode" is an alias for "user" and is deprecated. "gnu"
6887style is still the default however.
6888
6889*** "java" style now conforms to Sun's JDK coding style.
6890
6891*** There are new commands c-beginning-of-defun, c-end-of-defun which
6892are alternatives which you could bind to C-M-a and C-M-e if you prefer
6893them. They do not have key bindings by default.
6894
6895*** New and improved implementations of M-a (c-beginning-of-statement)
6896and M-e (c-end-of-statement).
6897
6898*** C++ namespace blocks are supported, with new syntactic symbols
6899namespace-open, namespace-close, and innamespace.
6900
6901*** File local variable settings of c-file-style and c-file-offsets
6902makes the style variables local to that buffer only.
6903
6904*** New indentation functions c-lineup-close-paren,
6905c-indent-one-line-block, c-lineup-dont-change.
6906
6907*** Improvements (hopefully!) to the way CC Mode is loaded. You
6908should now be able to do a (require 'cc-mode) to get the entire
6909package loaded properly for customization in your .emacs file. A new
6910variable c-initialize-on-load controls this and is t by default.
6911
6912** Changes to hippie-expand.
6913
6914*** New customization variable `hippie-expand-dabbrev-skip-space'. If
6915non-nil, trailing spaces may be included in the abbreviation to search for,
6916which then gives the same behavior as the original `dabbrev-expand'.
6917
6918*** New customization variable `hippie-expand-dabbrev-as-symbol'. If
6919non-nil, characters of syntax '_' is considered part of the word when
6920expanding dynamically.
6921
6922*** New customization variable `hippie-expand-no-restriction'. If
6923non-nil, narrowed buffers are widened before they are searched.
6924
6925*** New customization variable `hippie-expand-only-buffers'. If
6926non-empty, buffers searched are restricted to the types specified in
6927this list. Useful for example when constructing new special-purpose
6928expansion functions with `make-hippie-expand-function'.
6929
6930*** Text properties of the expansion are no longer copied.
6931
6932** Changes in BibTeX mode.
6933
6934*** Any titleword matching a regexp in the new variable
6935bibtex-autokey-titleword-ignore (case sensitive) is ignored during
6936automatic key generation. This replaces variable
6937bibtex-autokey-titleword-first-ignore, which only checked for matches
6938against the first word in the title.
6939
6940*** Autokey generation now uses all words from the title, not just
6941capitalized words. To avoid conflicts with existing customizations,
6942bibtex-autokey-titleword-ignore is set up such that words starting with
6943lowerkey characters will still be ignored. Thus, if you want to use
6944lowercase words from the title, you will have to overwrite the
6945bibtex-autokey-titleword-ignore standard setting.
6946
6947*** Case conversion of names and title words for automatic key
6948generation is more flexible. Variable bibtex-autokey-preserve-case is
6949replaced by bibtex-autokey-titleword-case-convert and
6950bibtex-autokey-name-case-convert.
6951
6952** Changes in vcursor.el.
6953
6954*** Support for character terminals is available: there is a new keymap
6955and the vcursor will appear as an arrow between buffer text. A
6956variable `vcursor-interpret-input' allows input from the vcursor to be
6957entered exactly as if typed. Numerous functions, including
6958`vcursor-compare-windows', have been rewritten to improve consistency
6959in the selection of windows and corresponding keymaps.
6960
6961*** vcursor options can now be altered with M-x customize under the
6962Editing group once the package is loaded.
6963
6964*** Loading vcursor now does not define keys by default, as this is
6965generally a bad side effect. Use M-x customize to set
8a33023e 6966vcursor-key-bindings to t to restore the old behavior.
3787e12e
GM
6967
6968*** vcursor-auto-disable can be `copy', which turns off copying from the
6969vcursor, but doesn't disable it, after any non-vcursor command.
6970
6971** Ispell changes.
6972
6973*** You can now spell check comments and strings in the current
6974buffer with M-x ispell-comments-and-strings. Comments and strings
6975are identified by syntax tables in effect.
6976
6977*** Generic region skipping implemented.
6978A single buffer can be broken into a number of regions where text will
6979and will not be checked. The definitions of the regions can be user
6980defined. New applications and improvements made available by this
6981include:
6982
6983 o URLs are automatically skipped
6984 o EMail message checking is vastly improved.
6985
6986*** Ispell can highlight the erroneous word even on non-window terminals.
6987
6988** Changes to RefTeX mode
6989
6990RefTeX has been updated in order to make it more usable with very
6991large projects (like a several volume math book). The parser has been
6992re-written from scratch. To get maximum speed from RefTeX, check the
6993section `Optimizations' in the manual.
6994
6995*** New recursive parser.
6996
6997The old version of RefTeX created a single large buffer containing the
6998entire multifile document in order to parse the document. The new
6999recursive parser scans the individual files.
7000
7001*** Parsing only part of a document.
7002
7003Reparsing of changed document parts can now be made faster by enabling
7004partial scans. To use this feature, read the documentation string of
7005the variable `reftex-enable-partial-scans' and set the variable to t.
7006
7007 (setq reftex-enable-partial-scans t)
7008
7009*** Storing parsing information in a file.
7010
7011This can improve startup times considerably. To turn it on, use
7012
7013 (setq reftex-save-parse-info t)
7014
7015*** Using multiple selection buffers
7016
7017If the creation of label selection buffers is too slow (this happens
7018for large documents), you can reuse these buffers by setting
7019
7020 (setq reftex-use-multiple-selection-buffers t)
7021
7022*** References to external documents.
7023
7024The LaTeX package `xr' allows to cross-reference labels in external
7025documents. RefTeX can provide information about the external
7026documents as well. To use this feature, set up the \externaldocument
7027macros required by the `xr' package and rescan the document with
7028RefTeX. The external labels can then be accessed with the `x' key in
7029the selection buffer provided by `reftex-reference' (bound to `C-c )').
7030The `x' key also works in the table of contents buffer.
7031
7032*** Many more labeled LaTeX environments are recognized by default.
7033
8a33023e 7034The built-in command list now covers all the standard LaTeX commands,
3787e12e
GM
7035and all of the major packages included in the LaTeX distribution.
7036
7037Also, RefTeX now understands the \appendix macro and changes
7038the enumeration of sections in the *toc* buffer accordingly.
7039
7040*** Mouse support for selection and *toc* buffers
7041
7042The mouse can now be used to select items in the selection and *toc*
7043buffers. See also the new option `reftex-highlight-selection'.
7044
7045*** New keymaps for selection and table of contents modes.
7046
7047The selection processes for labels and citation keys, and the table of
7048contents buffer now have their own keymaps: `reftex-select-label-map',
7049`reftex-select-bib-map', `reftex-toc-map'. The selection processes
7050have a number of new keys predefined. In particular, TAB lets you
7051enter a label with completion. Check the on-the-fly help (press `?'
7052at the selection prompt) or read the Info documentation to find out
7053more.
7054
7055*** Support for the varioref package
7056
7057The `v' key in the label selection buffer toggles \ref versus \vref.
7058
7059*** New hooks
7060
7061Three new hooks can be used to redefine the way labels, references,
7062and citations are created. These hooks are
7063`reftex-format-label-function', `reftex-format-ref-function',
7064`reftex-format-cite-function'.
7065
7066*** Citations outside LaTeX
7067
7068The command `reftex-citation' may also be used outside LaTeX (e.g. in
7069a mail buffer). See the Info documentation for details.
7070
7071*** Short context is no longer fontified.
7072
7073The short context in the label menu no longer copies the
7074fontification from the text in the buffer. If you prefer it to be
7075fontified, use
7076
7077 (setq reftex-refontify-context t)
7078
7079** file-cache-minibuffer-complete now accepts a prefix argument.
7080With a prefix argument, it does not try to do completion of
7081the file name within its directory; it only checks for other
7082directories that contain the same file name.
7083
7084Thus, given the file name Makefile, and assuming that a file
7085Makefile.in exists in the same directory, ordinary
7086file-cache-minibuffer-complete will try to complete Makefile to
7087Makefile.in and will therefore never look for other directories that
7088have Makefile. A prefix argument tells it not to look for longer
7089names such as Makefile.in, so that instead it will look for other
7090directories--just as if the name were already complete in its present
7091directory.
7092
7093** New modes and packages
7094
7095*** There is a new alternative major mode for Perl, Cperl mode.
7096It has many more features than Perl mode, and some people prefer
7097it, but some do not.
7098
7099*** There is a new major mode, M-x vhdl-mode, for editing files of VHDL
7100code.
7101
7102*** M-x which-function-mode enables a minor mode that displays the
7103current function name continuously in the mode line, as you move
7104around in a buffer.
7105
7106Which Function mode is effective in major modes which support Imenu.
7107
7108*** Gametree is a major mode for editing game analysis trees. The author
7109uses it for keeping notes about his postal Chess games, but it should
7110be helpful for other two-player games as well, as long as they have an
7111established system of notation similar to Chess.
7112
7113*** The new minor mode checkdoc-minor-mode provides Emacs Lisp
7114documentation string checking for style and spelling. The style
7115guidelines are found in the Emacs Lisp programming manual.
7116
7117*** The net-utils package makes some common networking features
7118available in Emacs. Some of these functions are wrappers around
7119system utilities (ping, nslookup, etc); others are implementations of
7120simple protocols (finger, whois) in Emacs Lisp. There are also
7121functions to make simple connections to TCP/IP ports for debugging and
7122the like.
7123
7124*** highlight-changes-mode is a minor mode that uses colors to
7125identify recently changed parts of the buffer text.
7126
7127*** The new package `midnight' lets you specify things to be done
7128within Emacs at midnight--by default, kill buffers that you have not
7129used in a considerable time. To use this feature, customize
7130the user option `midnight-mode' to t.
7131
7132*** The file generic-x.el defines a number of simple major modes.
7133
7134 apache-generic-mode: For Apache and NCSA httpd configuration files
7135 samba-generic-mode: Samba configuration files
7136 fvwm-generic-mode: For fvwm initialization files
7137 x-resource-generic-mode: For X resource files
7138 hosts-generic-mode: For hosts files (.rhosts, /etc/hosts, etc)
7139 mailagent-rules-generic-mode: For mailagent .rules files
7140 javascript-generic-mode: For JavaScript files
7141 vrml-generic-mode: For VRML files
7142 java-manifest-generic-mode: For Java MANIFEST files
7143 java-properties-generic-mode: For Java property files
7144 mailrc-generic-mode: For .mailrc files
7145
7146 Platform-specific modes:
7147
7148 prototype-generic-mode: For Solaris/Sys V prototype files
7149 pkginfo-generic-mode: For Solaris/Sys V pkginfo files
7150 alias-generic-mode: For C shell alias files
7151 inf-generic-mode: For MS-Windows INF files
7152 ini-generic-mode: For MS-Windows INI files
7153 reg-generic-mode: For MS-Windows Registry files
7154 bat-generic-mode: For MS-Windows BAT scripts
7155 rc-generic-mode: For MS-Windows Resource files
7156 rul-generic-mode: For InstallShield scripts
05197f40 7157\f
3787e12e
GM
7158* Lisp changes in Emacs 20.3 since the Emacs Lisp Manual was published
7159
7160** If you want a Lisp file to be read in unibyte mode,
7161use -*-unibyte: t;-*- on its first line.
7162That will force Emacs to read that file in unibyte mode.
7163Otherwise, the file will be loaded and byte-compiled in multibyte mode.
7164
7165Thus, each lisp file is read in a consistent way regardless of whether
7166you started Emacs with --unibyte, so that a Lisp program gives
7167consistent results regardless of how Emacs was started.
7168
7169** The new function assoc-default is useful for searching an alist,
7170and using a default value if the key is not found there. You can
7171specify a comparison predicate, so this function is useful for
7172searching comparing a string against an alist of regular expressions.
7173
7174** The functions unibyte-char-to-multibyte and
7175multibyte-char-to-unibyte convert between unibyte and multibyte
7176character codes, in a way that is appropriate for the current language
7177environment.
7178
7179** The functions read-event, read-char and read-char-exclusive now
7180take two optional arguments. PROMPT, if non-nil, specifies a prompt
7181string. SUPPRESS-INPUT-METHOD, if non-nil, says to disable the
7182current input method for reading this one event.
7183
7184** Two new variables print-escape-nonascii and print-escape-multibyte
7185now control whether to output certain characters as
7186backslash-sequences. print-escape-nonascii applies to single-byte
7187non-ASCII characters; print-escape-multibyte applies to multibyte
7188characters. Both of these variables are used only when printing
7189in readable fashion (prin1 uses them, princ does not).
05197f40 7190\f
3787e12e
GM
7191* Lisp changes in Emacs 20.3 before the Emacs Lisp Manual was published
7192
7193** Compiled Emacs Lisp files made with the modified "MBSK" version
7194of Emacs 20.2 do not work in Emacs 20.3.
7195
7196** Buffer positions are now measured in characters, as they were
7197in Emacs 19 and before. This means that (forward-char 1)
7198always increases point by 1.
7199
7200The function chars-in-region now just subtracts its arguments. It is
7201considered obsolete. The function char-boundary-p has been deleted.
7202
7203See below for additional changes relating to multibyte characters.
7204
7205** defcustom, defface and defgroup now accept the keyword `:version'.
7206Use this to specify in which version of Emacs a certain variable's
7207default value changed. For example,
7208
7209 (defcustom foo-max 34 "*Maximum number of foo's allowed."
7210 :type 'integer
7211 :group 'foo
7212 :version "20.3")
7213
7214 (defgroup foo-group nil "The foo group."
7215 :version "20.3")
7216
7217If an entire new group is added or the variables in it have the
7218default values changed, then just add a `:version' to that group. It
7219is recommended that new packages added to the distribution contain a
7220`:version' in the top level group.
7221
7222This information is used to control the customize-changed-options command.
7223
7224** It is now an error to change the value of a symbol whose name
7225starts with a colon--if it is interned in the standard obarray.
7226
7227However, setting such a symbol to its proper value, which is that
7228symbol itself, is not an error. This is for the sake of programs that
7229support previous Emacs versions by explicitly setting these variables
7230to themselves.
7231
7232If you set the variable keyword-symbols-constant-flag to nil,
7233this error is suppressed, and you can set these symbols to any
7234values whatever.
7235
7236** There is a new debugger command, R.
7237It evaluates an expression like e, but saves the result
7238in the buffer *Debugger-record*.
7239
7240** Frame-local variables.
7241
7242You can now make a variable local to various frames. To do this, call
7243the function make-variable-frame-local; this enables frames to have
7244local bindings for that variable.
7245
7246These frame-local bindings are actually frame parameters: you create a
7247frame-local binding in a specific frame by calling
7248modify-frame-parameters and specifying the variable name as the
7249parameter name.
7250
7251Buffer-local bindings take precedence over frame-local bindings.
7252Thus, if the current buffer has a buffer-local binding, that binding is
7253active; otherwise, if the selected frame has a frame-local binding,
7254that binding is active; otherwise, the default binding is active.
7255
7256It would not be hard to implement window-local bindings, but it is not
7257clear that this would be very useful; windows tend to come and go in a
7258very transitory fashion, so that trying to produce any specific effect
7259through a window-local binding would not be very robust.
7260
7261** `sregexq' and `sregex' are two new functions for constructing
7262"symbolic regular expressions." These are Lisp expressions that, when
7263evaluated, yield conventional string-based regexps. The symbolic form
7264makes it easier to construct, read, and maintain complex patterns.
7265See the documentation in sregex.el.
7266
7267** parse-partial-sexp's return value has an additional element which
7268is used to pass information along if you pass it to another call to
7269parse-partial-sexp, starting its scan where the first call ended.
7270The contents of this field are not yet finalized.
7271
7272** eval-region now accepts a fourth optional argument READ-FUNCTION.
7273If it is non-nil, that function is used instead of `read'.
7274
7275** unload-feature by default removes the feature's functions from
7276known hooks to avoid trouble, but a package providing FEATURE can
7277define a hook FEATURE-unload-hook to be run by unload-feature instead.
7278
7279** read-from-minibuffer no longer returns the argument DEFAULT-VALUE
7280when the user enters empty input. It now returns the null string, as
7281it did in Emacs 19. The default value is made available in the
7282history via M-n, but it is not applied here as a default.
7283
7284The other, more specialized minibuffer-reading functions continue to
7285return the default value (not the null string) when the user enters
7286empty input.
7287
7288** The new variable read-buffer-function controls which routine to use
7289for selecting buffers. For example, if you set this variable to
7290`iswitchb-read-buffer', iswitchb will be used to read buffer names.
7291Other functions can also be used if they accept the same arguments as
7292`read-buffer' and return the selected buffer name as a string.
7293
7294** The new function read-passwd reads a password from the terminal,
7295echoing a period for each character typed. It takes three arguments:
7296a prompt string, a flag which says "read it twice to make sure", and a
7297default password to use if the user enters nothing.
7298
7299** The variable fill-nobreak-predicate gives major modes a way to
7300specify not to break a line at certain places. Its value is a
7301function which is called with no arguments, with point located at the
7302place where a break is being considered. If the function returns
7303non-nil, then the line won't be broken there.
7304
7305** window-end now takes an optional second argument, UPDATE.
7306If this is non-nil, then the function always returns an accurate
7307up-to-date value for the buffer position corresponding to the
7308end of the window, even if this requires computation.
7309
7310** other-buffer now takes an optional argument FRAME
7311which specifies which frame's buffer list to use.
7312If it is nil, that means use the selected frame's buffer list.
7313
7314** The new variable buffer-display-time, always local in every buffer,
7315holds the value of (current-time) as of the last time that a window
7316was directed to display this buffer.
7317
7318** It is now meaningful to compare two window-configuration objects
7319with `equal'. Two window-configuration objects are equal if they
7320describe equivalent arrangements of windows, in the same frame--in
7321other words, if they would give the same results if passed to
7322set-window-configuration.
7323
7324** compare-window-configurations is a new function that compares two
7325window configurations loosely. It ignores differences in saved buffer
7326positions and scrolling, and considers only the structure and sizes of
7327windows and the choice of buffers to display.
7328
7329** The variable minor-mode-overriding-map-alist allows major modes to
7330override the key bindings of a minor mode. The elements of this alist
7331look like the elements of minor-mode-map-alist: (VARIABLE . KEYMAP).
7332
7333If the VARIABLE in an element of minor-mode-overriding-map-alist has a
7334non-nil value, the paired KEYMAP is active, and totally overrides the
7335map (if any) specified for the same variable in minor-mode-map-alist.
7336
7337minor-mode-overriding-map-alist is automatically local in all buffers,
7338and it is meant to be set by major modes.
7339
7340** The function match-string-no-properties is like match-string
7341except that it discards all text properties from the result.
7342
7343** The function load-average now accepts an optional argument
7344USE-FLOATS. If it is non-nil, the load average values are returned as
7345floating point numbers, rather than as integers to be divided by 100.
7346
7347** The new variable temporary-file-directory specifies the directory
7348to use for creating temporary files. The default value is determined
7349in a reasonable way for your operating system; on GNU and Unix systems
7350it is based on the TMP and TMPDIR environment variables.
7351
7352** Menu changes
7353
7354*** easymenu.el now uses the new menu item format and supports the
7355keywords :visible and :filter. The existing keyword :keys is now
7356better supported.
7357
7358The variable `easy-menu-precalculate-equivalent-keybindings' controls
7359a new feature which calculates keyboard equivalents for the menu when
7360you define the menu. The default is t. If you rarely use menus, you
7361can set the variable to nil to disable this precalculation feature;
7362then the calculation is done only if you use the menu bar.
7363
7364*** A new format for menu items is supported.
7365
7366In a keymap, a key binding that has the format
7367 (STRING . REAL-BINDING) or (STRING HELP-STRING . REAL-BINDING)
7368defines a menu item. Now a menu item definition may also be a list that
7369starts with the symbol `menu-item'.
7370
7371The format is:
7372 (menu-item ITEM-NAME) or
7373 (menu-item ITEM-NAME REAL-BINDING . ITEM-PROPERTY-LIST)
7374where ITEM-NAME is an expression which evaluates to the menu item
7375string, and ITEM-PROPERTY-LIST has the form of a property list.
7376The supported properties include
7377
7378:enable FORM Evaluate FORM to determine whether the
7379 item is enabled.
7380:visible FORM Evaluate FORM to determine whether the
7381 item should appear in the menu.
7382:filter FILTER-FN
7383 FILTER-FN is a function of one argument,
7384 which will be REAL-BINDING.
7385 It should return a binding to use instead.
7386:keys DESCRIPTION
7387 DESCRIPTION is a string that describes an equivalent keyboard
f3780fe4 7388 binding for REAL-BINDING. DESCRIPTION is expanded with
3787e12e
GM
7389 `substitute-command-keys' before it is used.
7390:key-sequence KEY-SEQUENCE
7391 KEY-SEQUENCE is a key-sequence for an equivalent
7392 keyboard binding.
7393:key-sequence nil
7394 This means that the command normally has no
7395 keyboard equivalent.
7396:help HELP HELP is the extra help string (not currently used).
7397:button (TYPE . SELECTED)
7398 TYPE is :toggle or :radio.
7399 SELECTED is a form, to be evaluated, and its
7400 value says whether this button is currently selected.
7401
7402Buttons are at the moment only simulated by prefixes in the menu.
7403Eventually ordinary X-buttons may be supported.
7404
7405(menu-item ITEM-NAME) defines unselectable item.
7406
7407** New event types
7408
7409*** The new event type `mouse-wheel' is generated by a wheel on a
7410mouse (such as the MS Intellimouse). The event contains a delta that
7411corresponds to the amount and direction that the wheel is rotated,
7412which is typically used to implement a scroll or zoom. The format is:
7413
7414 (mouse-wheel POSITION DELTA)
7415
7416where POSITION is a list describing the position of the event in the
7417same format as a mouse-click event, and DELTA is a signed number
7418indicating the number of increments by which the wheel was rotated. A
7419negative DELTA indicates that the wheel was rotated backwards, towards
7420the user, and a positive DELTA indicates that the wheel was rotated
7421forward, away from the user.
7422
7423As of now, this event type is generated only on MS Windows.
7424
7425*** The new event type `drag-n-drop' is generated when a group of
7426files is selected in an application outside of Emacs, and then dragged
7427and dropped onto an Emacs frame. The event contains a list of
7428filenames that were dragged and dropped, which are then typically
7429loaded into Emacs. The format is:
7430
7431 (drag-n-drop POSITION FILES)
7432
7433where POSITION is a list describing the position of the event in the
7434same format as a mouse-click event, and FILES is the list of filenames
7435that were dragged and dropped.
7436
7437As of now, this event type is generated only on MS Windows.
7438
7439** Changes relating to multibyte characters.
7440
7441*** The variable enable-multibyte-characters is now read-only;
7442any attempt to set it directly signals an error. The only way
7443to change this value in an existing buffer is with set-buffer-multibyte.
7444
7445*** In a string constant, `\ ' now stands for "nothing at all". You
7446can use it to terminate a hex escape which is followed by a character
7447that could otherwise be read as part of the hex escape.
7448
7449*** String indices are now measured in characters, as they were
7450in Emacs 19 and before.
7451
7452The function chars-in-string has been deleted.
7453The function concat-chars has been renamed to `string'.
7454
7455*** The function set-buffer-multibyte sets the flag in the current
7456buffer that says whether the buffer uses multibyte representation or
7457unibyte representation. If the argument is nil, it selects unibyte
7458representation. Otherwise it selects multibyte representation.
7459
7460This function does not change the contents of the buffer, viewed
7461as a sequence of bytes. However, it does change the contents
7462viewed as characters; a sequence of two bytes which is treated as
7463one character when the buffer uses multibyte representation
7464will count as two characters using unibyte representation.
7465
7466This function sets enable-multibyte-characters to record which
7467representation is in use. It also adjusts various data in the buffer
7468(including its markers, overlays and text properties) so that they are
7469consistent with the new representation.
7470
7471*** string-make-multibyte takes a string and converts it to multibyte
7472representation. Most of the time, you don't need to care
7473about the representation, because Emacs converts when necessary;
7474however, it makes a difference when you compare strings.
7475
7476The conversion of non-ASCII characters works by adding the value of
7477nonascii-insert-offset to each character, or by translating them
7478using the table nonascii-translation-table.
7479
7480*** string-make-unibyte takes a string and converts it to unibyte
7481representation. Most of the time, you don't need to care about the
7482representation, but it makes a difference when you compare strings.
7483
7484The conversion from multibyte to unibyte representation
7485loses information; the only time Emacs performs it automatically
7486is when inserting a multibyte string into a unibyte buffer.
7487
7488*** string-as-multibyte takes a string, and returns another string
7489which contains the same bytes, but treats them as multibyte.
7490
7491*** string-as-unibyte takes a string, and returns another string
7492which contains the same bytes, but treats them as unibyte.
7493
7494*** The new function compare-strings lets you compare
7495portions of two strings. Unibyte strings are converted to multibyte,
7496so that a unibyte string can match a multibyte string.
7497You can specify whether to ignore case or not.
7498
7499*** assoc-ignore-case now uses compare-strings so that
7500it can treat unibyte and multibyte strings as equal.
7501
7502*** Regular expression operations and buffer string searches now
7503convert the search pattern to multibyte or unibyte to accord with the
7504buffer or string being searched.
7505
7506One consequence is that you cannot always use \200-\377 inside of
7507[...] to match all non-ASCII characters. This does still work when
7508searching or matching a unibyte buffer or string, but not when
7509searching or matching a multibyte string. Unfortunately, there is no
7510obvious choice of syntax to use within [...] for that job. But, what
7511you want is just to match all non-ASCII characters, the regular
7512expression [^\0-\177] works for it.
7513
7514*** Structure of coding system changed.
7515
7516All coding systems (including aliases and subsidiaries) are named
7517by symbols; the symbol's `coding-system' property is a vector
7518which defines the coding system. Aliases share the same vector
7519as the principal name, so that altering the contents of this
7520vector affects the principal name and its aliases. You can define
7521your own alias name of a coding system by the function
7522define-coding-system-alias.
7523
7524The coding system definition includes a property list of its own. Use
7525the new functions `coding-system-get' and `coding-system-put' to
7526access such coding system properties as post-read-conversion,
7527pre-write-conversion, character-translation-table-for-decode,
7528character-translation-table-for-encode, mime-charset, and
7529safe-charsets. For instance, (coding-system-get 'iso-latin-1
7530'mime-charset) gives the corresponding MIME-charset parameter
7531`iso-8859-1'.
7532
7533Among the coding system properties listed above, safe-charsets is new.
7534The value of this property is a list of character sets which this
7535coding system can correctly encode and decode. For instance:
7536(coding-system-get 'iso-latin-1 'safe-charsets) => (ascii latin-iso8859-1)
7537
7538Here, "correctly encode" means that the encoded character sets can
7539also be handled safely by systems other than Emacs as far as they
7540are capable of that coding system. Though, Emacs itself can encode
7541the other character sets and read it back correctly.
7542
7543*** The new function select-safe-coding-system can be used to find a
7544proper coding system for encoding the specified region or string.
7545This function requires a user interaction.
7546
7547*** The new functions find-coding-systems-region and
7548find-coding-systems-string are helper functions used by
7549select-safe-coding-system. They return a list of all proper coding
7550systems to encode a text in some region or string. If you don't want
7551a user interaction, use one of these functions instead of
7552select-safe-coding-system.
7553
7554*** The explicit encoding and decoding functions, such as
7555decode-coding-region and encode-coding-string, now set
7556last-coding-system-used to reflect the actual way encoding or decoding
7557was done.
7558
7559*** The new function detect-coding-with-language-environment can be
7560used to detect a coding system of text according to priorities of
7561coding systems used by some specific language environment.
7562
7563*** The functions detect-coding-region and detect-coding-string always
7564return a list if the arg HIGHEST is nil. Thus, if only ASCII
7565characters are found, they now return a list of single element
7566`undecided' or its subsidiaries.
7567
7568*** The new functions coding-system-change-eol-conversion and
7569coding-system-change-text-conversion can be used to get a different
7570coding system than what specified only in how end-of-line or text is
7571converted.
7572
7573*** The new function set-selection-coding-system can be used to set a
7574coding system for communicating with other X clients.
7575
7576*** The function `map-char-table' now passes as argument only valid
7577character codes, plus generic characters that stand for entire
7578character sets or entire subrows of a character set. In other words,
7579each time `map-char-table' calls its FUNCTION argument, the key value
7580either will be a valid individual character code, or will stand for a
7581range of characters.
7582
7583*** The new function `char-valid-p' can be used for checking whether a
7584Lisp object is a valid character code or not.
7585
7586*** The new function `charset-after' returns a charset of a character
7587in the current buffer at position POS.
7588
7589*** Input methods are now implemented using the variable
7590input-method-function. If this is non-nil, its value should be a
7591function; then, whenever Emacs reads an input event that is a printing
7592character with no modifier bits, it calls that function, passing the
7593event as an argument. Often this function will read more input, first
7594binding input-method-function to nil.
7595
7596The return value should be a list of the events resulting from input
7597method processing. These events will be processed sequentially as
7598input, before resorting to unread-command-events. Events returned by
7599the input method function are not passed to the input method function,
7600not even if they are printing characters with no modifier bits.
7601
7602The input method function is not called when reading the second and
7603subsequent events of a key sequence.
7604
7605*** You can customize any language environment by using
7606set-language-environment-hook and exit-language-environment-hook.
7607
7608The hook `exit-language-environment-hook' should be used to undo
7609customizations that you made with set-language-environment-hook. For
7610instance, if you set up a special key binding for a specific language
7611environment by set-language-environment-hook, you should set up
7612exit-language-environment-hook to restore the normal key binding.
05197f40 7613\f
3787e12e
GM
7614* Changes in Emacs 20.1
7615
7616** Emacs has a new facility for customization of its many user
7617options. It is called M-x customize. With this facility you can look
7618at the many user options in an organized way; they are grouped into a
7619tree structure.
7620
7621M-x customize also knows what sorts of values are legitimate for each
7622user option and ensures that you don't use invalid values.
7623
7624With M-x customize, you can set options either for the present Emacs
7625session or permanently. (Permanent settings are stored automatically
7626in your .emacs file.)
7627
7628** Scroll bars are now on the left side of the window.
7629You can change this with M-x customize-option scroll-bar-mode.
7630
7631** The mode line no longer includes the string `Emacs'.
7632This makes more space in the mode line for other information.
7633
7634** When you select a region with the mouse, it is highlighted
7635immediately afterward. At that time, if you type the DELETE key, it
7636kills the region.
7637
7638The BACKSPACE key, and the ASCII character DEL, do not do this; they
7639delete the character before point, as usual.
7640
7641** In an incremental search the whole current match is highlighted
7642on terminals which support this. (You can disable this feature
7643by setting search-highlight to nil.)
7644
7645** In the minibuffer, in some cases, you can now use M-n to
7646insert the default value into the minibuffer as text. In effect,
7647the default value (if the minibuffer routines know it) is tacked
7648onto the history "in the future". (The more normal use of the
7649history list is to use M-p to insert minibuffer input used in the
7650past.)
7651
7652** In Text mode, now only blank lines separate paragraphs.
7653This makes it possible to get the full benefit of Adaptive Fill mode
7654in Text mode, and other modes derived from it (such as Mail mode).
7655TAB in Text mode now runs the command indent-relative; this
7656makes a practical difference only when you use indented paragraphs.
7657
7658As a result, the old Indented Text mode is now identical to Text mode,
7659and is an alias for it.
7660
7661If you want spaces at the beginning of a line to start a paragraph,
7662use the new mode, Paragraph Indent Text mode.
7663
7664** Scrolling changes
7665
7666*** Scroll commands to scroll a whole screen now preserve the screen
7667position of the cursor, if scroll-preserve-screen-position is non-nil.
7668
7669In this mode, if you scroll several screens back and forth, finishing
7670on the same screen where you started, the cursor goes back to the line
7671where it started.
7672
7673*** If you set scroll-conservatively to a small number, then when you
7674move point a short distance off the screen, Emacs will scroll the
7675screen just far enough to bring point back on screen, provided that
7676does not exceed `scroll-conservatively' lines.
7677
7678*** The new variable scroll-margin says how close point can come to the
7679top or bottom of a window. It is a number of screen lines; if point
7680comes within that many lines of the top or bottom of the window, Emacs
7681recenters the window.
7682
7683** International character set support (MULE)
7684
7685Emacs now supports a wide variety of international character sets,
7686including European variants of the Latin alphabet, as well as Chinese,
7687Devanagari (Hindi and Marathi), Ethiopian, Greek, IPA, Japanese,
7688Korean, Lao, Russian, Thai, Tibetan, and Vietnamese scripts. These
7689features have been merged from the modified version of Emacs known as
7690MULE (for "MULti-lingual Enhancement to GNU Emacs")
7691
7692Users of these scripts have established many more-or-less standard
7693coding systems for storing files. Emacs uses a single multibyte
7694character encoding within Emacs buffers; it can translate from a wide
7695variety of coding systems when reading a file and can translate back
7696into any of these coding systems when saving a file.
7697
7698Keyboards, even in the countries where these character sets are used,
7699generally don't have keys for all the characters in them. So Emacs
7700supports various "input methods", typically one for each script or
7701language, to make it possible to type them.
7702
7703The Emacs internal multibyte encoding represents a non-ASCII
7704character as a sequence of bytes in the range 0200 through 0377.
7705
7706The new prefix key C-x RET is used for commands that pertain
7707to multibyte characters, coding systems, and input methods.
7708
7709You can disable multibyte character support as follows:
7710
7711 (setq-default enable-multibyte-characters nil)
7712
7713Calling the function standard-display-european turns off multibyte
7714characters, unless you specify a non-nil value for the second
7715argument, AUTO. This provides compatibility for people who are
7716already using standard-display-european to continue using unibyte
7717characters for their work until they want to change.
7718
7719*** Input methods
7720
7721An input method is a kind of character conversion which is designed
7722specifically for interactive input. In Emacs, typically each language
7723has its own input method (though sometimes several languages which use
7724the same characters can share one input method). Some languages
7725support several input methods.
7726
7727The simplest kind of input method works by mapping ASCII letters into
7728another alphabet. This is how the Greek and Russian input methods
7729work.
7730
7731A more powerful technique is composition: converting sequences of
7732characters into one letter. Many European input methods use
7733composition to produce a single non-ASCII letter from a sequence which
7734consists of a letter followed by diacritics. For example, a' is one
7735sequence of two characters that might be converted into a single
7736letter.
7737
7738The input methods for syllabic scripts typically use mapping followed
7739by conversion. The input methods for Thai and Korean work this way.
7740First, letters are mapped into symbols for particular sounds or tone
7741marks; then, sequences of these which make up a whole syllable are
7742mapped into one syllable sign--most often a "composite character".
7743
7744None of these methods works very well for Chinese and Japanese, so
7745they are handled specially. First you input a whole word using
7746phonetic spelling; then, after the word is in the buffer, Emacs
7747converts it into one or more characters using a large dictionary.
7748
7749Since there is more than one way to represent a phonetically spelled
7750word using Chinese characters, Emacs can only guess which one to use;
7751typically these input methods give you a way to say "guess again" if
7752the first guess is wrong.
7753
7754*** The command C-x RET m (toggle-enable-multibyte-characters)
7755turns multibyte character support on or off for the current buffer.
7756
7757If multibyte character support is turned off in a buffer, then each
7758byte is a single character, even codes 0200 through 0377--exactly as
7759they did in Emacs 19.34. This includes the features for support for
7760the European characters, ISO Latin-1 and ISO Latin-2.
7761
7762However, there is no need to turn off multibyte character support to
7763use ISO Latin-1 or ISO Latin-2; the Emacs multibyte character set
7764includes all the characters in these character sets, and Emacs can
7765translate automatically to and from either one.
7766
7767*** Visiting a file in unibyte mode.
7768
7769Turning off multibyte character support in the buffer after visiting a
7770file with multibyte code conversion will display the multibyte
7771sequences already in the buffer, byte by byte. This is probably not
7772what you want.
7773
7774If you want to edit a file of unibyte characters (Latin-1, for
7775example), you can do it by specifying `no-conversion' as the coding
7776system when reading the file. This coding system also turns off
7777multibyte characters in that buffer.
7778
7779If you turn off multibyte character support entirely, this turns off
7780character conversion as well.
7781
7782*** Displaying international characters on X Windows.
7783
7784A font for X typically displays just one alphabet or script.
7785Therefore, displaying the entire range of characters Emacs supports
7786requires using many fonts.
7787
7788Therefore, Emacs now supports "fontsets". Each fontset is a
7789collection of fonts, each assigned to a range of character codes.
7790
7791A fontset has a name, like a font. Individual fonts are defined by
7792the X server; fontsets are defined within Emacs itself. But once you
7793have defined a fontset, you can use it in a face or a frame just as
7794you would use a font.
7795
7796If a fontset specifies no font for a certain character, or if it
7797specifies a font that does not exist on your system, then it cannot
7798display that character. It will display an empty box instead.
7799
7800The fontset height and width are determined by the ASCII characters
7801(that is, by the font in the fontset which is used for ASCII
f327c2f9 7802characters).
3787e12e
GM
7803
7804*** Defining fontsets.
7805
7806Emacs does not use any fontset by default. Its default font is still
7807chosen as in previous versions. You can tell Emacs to use a fontset
7808with the `-fn' option or the `Font' X resource.
7809
7810Emacs creates a standard fontset automatically according to the value
7811of standard-fontset-spec. This fontset's short name is
7812`fontset-standard'. Bold, italic, and bold-italic variants of the
7813standard fontset are created automatically.
7814
7815If you specify a default ASCII font with the `Font' resource or `-fn'
7816argument, a fontset is generated from it. This works by replacing the
7817FOUNDARY, FAMILY, ADD_STYLE, and AVERAGE_WIDTH fields of the font name
7818with `*' then using this to specify a fontset. This fontset's short
7819name is `fontset-startup'.
7820
7821Emacs checks resources of the form Fontset-N where N is 0, 1, 2...
7822The resource value should have this form:
7823 FONTSET-NAME, [CHARSET-NAME:FONT-NAME]...
7824FONTSET-NAME should have the form of a standard X font name, except:
7825 * most fields should be just the wild card "*".
7826 * the CHARSET_REGISTRY field should be "fontset"
7827 * the CHARSET_ENCODING field can be any nickname of the fontset.
7828The construct CHARSET-NAME:FONT-NAME can be repeated any number
7829of times; each time specifies the font for one character set.
0969bd6a
EZ
7830CHARSET-NAME should be the name of a character set, and FONT-NAME
7831should specify an actual font to use for that character set.
3787e12e
GM
7832
7833Each of these fontsets has an alias which is made from the
7834last two font name fields, CHARSET_REGISTRY and CHARSET_ENCODING.
7835You can refer to the fontset by that alias or by its full name.
7836
7837For any character sets that you don't mention, Emacs tries to choose a
7838font by substituting into FONTSET-NAME. For instance, with the
7839following resource,
7840 Emacs*Fontset-0: -*-fixed-medium-r-normal-*-24-*-*-*-*-*-fontset-24
7841the font for ASCII is generated as below:
7842 -*-fixed-medium-r-normal-*-24-*-ISO8859-1
7843Here is the substitution rule:
7844 Change CHARSET_REGISTRY and CHARSET_ENCODING to that of the charset
7845 defined in the variable x-charset-registries. For instance, ASCII has
7846 the entry (ascii . "ISO8859-1") in this variable. Then, reduce
7847 sequences of wild cards -*-...-*- with a single wildcard -*-.
7848 (This is to prevent use of auto-scaled fonts.)
7849
7850The function which processes the fontset resource value to create the
7851fontset is called create-fontset-from-fontset-spec. You can also call
7852that function explicitly to create a fontset.
7853
7854With the X resource Emacs.Font, you can specify a fontset name just
7855like an actual font name. But be careful not to specify a fontset
7856name in a wildcard resource like Emacs*Font--that tries to specify the
7857fontset for other purposes including menus, and they cannot handle
7858fontsets.
7859
7860*** The command M-x set-language-environment sets certain global Emacs
7861defaults for a particular choice of language.
7862
7863Selecting a language environment typically specifies a default input
7864method and which coding systems to recognize automatically when
7865visiting files. However, it does not try to reread files you have
7866already visited; the text in those buffers is not affected. The
7867language environment may also specify a default choice of coding
7868system for new files that you create.
7869
7870It makes no difference which buffer is current when you use
7871set-language-environment, because these defaults apply globally to the
7872whole Emacs session.
7873
7874For example, M-x set-language-environment RET Latin-1 RET
7875chooses the Latin-1 character set. In the .emacs file, you can do this
7876with (set-language-environment "Latin-1").
7877
7878*** The command C-x RET f (set-buffer-file-coding-system)
7879specifies the file coding system for the current buffer. This
7880specifies what sort of character code translation to do when saving
7881the file. As an argument, you must specify the name of one of the
7882coding systems that Emacs supports.
7883
7884*** The command C-x RET c (universal-coding-system-argument)
7885lets you specify a coding system when you read or write a file.
7886This command uses the minibuffer to read a coding system name.
7887After you exit the minibuffer, the specified coding system
7888is used for *the immediately following command*.
7889
7890So if the immediately following command is a command to read or
7891write a file, it uses the specified coding system for that file.
7892
7893If the immediately following command does not use the coding system,
7894then C-x RET c ultimately has no effect.
7895
7896For example, C-x RET c iso-8859-1 RET C-x C-f temp RET
7897visits the file `temp' treating it as ISO Latin-1.
7898
7899*** You can specify the coding system for a file using the -*-
7900construct. Include `coding: CODINGSYSTEM;' inside the -*-...-*-
7901to specify use of coding system CODINGSYSTEM. You can also
7902specify the coding system in a local variable list at the end
7903of the file.
7904
7905*** The command C-x RET t (set-terminal-coding-system) specifies
7906the coding system for terminal output. If you specify a character
7907code for terminal output, all characters output to the terminal are
7908translated into that character code.
7909
7910This feature is useful for certain character-only terminals built in
7911various countries to support the languages of those countries.
7912
7913By default, output to the terminal is not translated at all.
7914
7915*** The command C-x RET k (set-keyboard-coding-system) specifies
7916the coding system for keyboard input.
7917
7918Character code translation of keyboard input is useful for terminals
7919with keys that send non-ASCII graphic characters--for example,
7920some terminals designed for ISO Latin-1 or subsets of it.
7921
7922By default, keyboard input is not translated at all.
7923
7924Character code translation of keyboard input is similar to using an
7925input method, in that both define sequences of keyboard input that
7926translate into single characters. However, input methods are designed
7927to be convenient for interactive use, while the code translations are
7928designed to work with terminals.
7929
7930*** The command C-x RET p (set-buffer-process-coding-system)
7931specifies the coding system for input and output to a subprocess.
7932This command applies to the current buffer; normally, each subprocess
7933has its own buffer, and thus you can use this command to specify
7934translation to and from a particular subprocess by giving the command
7935in the corresponding buffer.
7936
7937By default, process input and output are not translated at all.
7938
7939*** The variable file-name-coding-system specifies the coding system
7940to use for encoding file names before operating on them.
7941It is also used for decoding file names obtained from the system.
7942
7943*** The command C-\ (toggle-input-method) activates or deactivates
7944an input method. If no input method has been selected before, the
7945command prompts for you to specify the language and input method you
7946want to use.
7947
7948C-u C-\ (select-input-method) lets you switch to a different input
7949method. C-h C-\ (or C-h I) describes the current input method.
7950
7951*** Some input methods remap the keyboard to emulate various keyboard
7952layouts commonly used for particular scripts. How to do this
7953remapping properly depends on your actual keyboard layout. To specify
7954which layout your keyboard has, use M-x quail-set-keyboard-layout.
7955
7956*** The command C-h C (describe-coding-system) displays
7957the coding systems currently selected for various purposes, plus
7958related information.
7959
7960*** The command C-h h (view-hello-file) displays a file called
7961HELLO, which has examples of text in many languages, using various
7962scripts.
7963
7964*** The command C-h L (describe-language-support) displays
7965information about the support for a particular language.
7966You specify the language as an argument.
7967
7968*** The mode line now contains a letter or character that identifies
7969the coding system used in the visited file. It normally follows the
7970first dash.
7971
7972A dash indicates the default state of affairs: no code conversion
7973(except CRLF => newline if appropriate). `=' means no conversion
7974whatsoever. The ISO 8859 coding systems are represented by digits
79751 through 9. Other coding systems are represented by letters:
7976
7977 A alternativnyj (Russian)
7978 B big5 (Chinese)
7979 C cn-gb-2312 (Chinese)
7980 C iso-2022-cn (Chinese)
7981 D in-is13194-devanagari (Indian languages)
7982 E euc-japan (Japanese)
7983 I iso-2022-cjk or iso-2022-ss2 (Chinese, Japanese, Korean)
7984 J junet (iso-2022-7) or old-jis (iso-2022-jp-1978-irv) (Japanese)
7985 K euc-korea (Korean)
7986 R koi8 (Russian)
7987 Q tibetan
7988 S shift_jis (Japanese)
7989 T lao
7990 T tis620 (Thai)
7991 V viscii or vscii (Vietnamese)
7992 i iso-2022-lock (Chinese, Japanese, Korean)
7993 k iso-2022-kr (Korean)
7994 v viqr (Vietnamese)
7995 z hz (Chinese)
7996
7997When you are using a character-only terminal (not a window system),
7998two additional characters appear in between the dash and the file
7999coding system. These two characters describe the coding system for
8000keyboard input, and the coding system for terminal output.
8001
8002*** The new variable rmail-file-coding-system specifies the code
8003conversion to use for RMAIL files. The default value is nil.
8004
8005When you read mail with Rmail, each message is decoded automatically
8006into Emacs' internal format. This has nothing to do with
8007rmail-file-coding-system. That variable controls reading and writing
8008Rmail files themselves.
8009
8010*** The new variable sendmail-coding-system specifies the code
8011conversion for outgoing mail. The default value is nil.
8012
8013Actually, there are three different ways of specifying the coding system
8014for sending mail:
8015
8016- If you use C-x RET f in the mail buffer, that takes priority.
8017- Otherwise, if you set sendmail-coding-system non-nil, that specifies it.
8018- Otherwise, the default coding system for new files is used,
8019 if that is non-nil. That comes from your language environment.
8020- Otherwise, Latin-1 is used.
8021
8022*** The command C-h t (help-with-tutorial) accepts a prefix argument
8023to specify the language for the tutorial file. Currently, English,
8024Japanese, Korean and Thai are supported. We welcome additional
8025translations.
8026
8027** An easy new way to visit a file with no code or format conversion
8028of any kind: Use M-x find-file-literally. There is also a command
8029insert-file-literally which inserts a file into the current buffer
8030without any conversion.
8031
8032** C-q's handling of octal character codes is changed.
8033You can now specify any number of octal digits.
8034RET terminates the digits and is discarded;
8035any other non-digit terminates the digits and is then used as input.
8036
8037** There are new commands for looking up Info documentation for
8038functions, variables and file names used in your programs.
8039
8040Type M-x info-lookup-symbol to look up a symbol in the buffer at point.
8041Type M-x info-lookup-file to look up a file in the buffer at point.
8042
8043Precisely which Info files are used to look it up depends on the major
8044mode. For example, in C mode, the GNU libc manual is used.
8045
8046** M-TAB in most programming language modes now runs the command
8047complete-symbol. This command performs completion on the symbol name
8048in the buffer before point.
8049
8050With a numeric argument, it performs completion based on the set of
8051symbols documented in the Info files for the programming language that
8052you are using.
8053
8054With no argument, it does completion based on the current tags tables,
8055just like the old binding of M-TAB (complete-tag).
8056
8057** File locking works with NFS now.
8058
8059The lock file for FILENAME is now a symbolic link named .#FILENAME,
8060in the same directory as FILENAME.
8061
8062This means that collision detection between two different machines now
8063works reasonably well; it also means that no file server or directory
8064can become a bottleneck.
8065
8066The new method does have drawbacks. It means that collision detection
8067does not operate when you edit a file in a directory where you cannot
8068create new files. Collision detection also doesn't operate when the
8069file server does not support symbolic links. But these conditions are
8070rare, and the ability to have collision detection while using NFS is
8071so useful that the change is worth while.
8072
8073When Emacs or a system crashes, this may leave behind lock files which
8074are stale. So you may occasionally get warnings about spurious
8075collisions. When you determine that the collision is spurious, just
8076tell Emacs to go ahead anyway.
8077
8078** If you wish to use Show Paren mode to display matching parentheses,
8079it is no longer sufficient to load paren.el. Instead you must call
8080show-paren-mode.
8081
8082** If you wish to use Delete Selection mode to replace a highlighted
8083selection when you insert new text, it is no longer sufficient to load
8084delsel.el. Instead you must call the function delete-selection-mode.
8085
8086** If you wish to use Partial Completion mode to complete partial words
8087within symbols or filenames, it is no longer sufficient to load
8088complete.el. Instead you must call the function partial-completion-mode.
8089
8090** If you wish to use uniquify to rename buffers for you,
8091it is no longer sufficient to load uniquify.el. You must also
8092set uniquify-buffer-name-style to one of the non-nil legitimate values.
8093
8094** Changes in View mode.
8095
8096*** Several new commands are available in View mode.
8097Do H in view mode for a list of commands.
8098
8099*** There are two new commands for entering View mode:
8100view-file-other-frame and view-buffer-other-frame.
8101
8102*** Exiting View mode does a better job of restoring windows to their
8103previous state.
8104
8105*** New customization variable view-scroll-auto-exit. If non-nil,
8106scrolling past end of buffer makes view mode exit.
8107
8108*** New customization variable view-exits-all-viewing-windows. If
8109non-nil, view-mode will at exit restore all windows viewing buffer,
8110not just the selected window.
8111
8112*** New customization variable view-read-only. If non-nil, visiting a
8113read-only file automatically enters View mode, and toggle-read-only
8114turns View mode on or off.
8115
8116*** New customization variable view-remove-frame-by-deleting controls
8117how to remove a not needed frame at view mode exit. If non-nil,
8118delete the frame, if nil make an icon of it.
8119
8120** C-x v l, the command to print a file's version control log,
8121now positions point at the entry for the file's current branch version.
8122
8123** C-x v =, the command to compare a file with the last checked-in version,
8124has a new feature. If the file is currently not locked, so that it is
8125presumably identical to the last checked-in version, the command now asks
8126which version to compare with.
8127
8128** When using hideshow.el, incremental search can temporarily show hidden
8129blocks if a match is inside the block.
8130
8131The block is hidden again if the search is continued and the next match
8132is outside the block. By customizing the variable
8133isearch-hide-immediately you can choose to hide all the temporarily
8134shown blocks only when exiting from incremental search.
8135
8136By customizing the variable hs-isearch-open you can choose what kind
8137of blocks to temporarily show during isearch: comment blocks, code
8138blocks, all of them or none.
8139
8140** The new command C-x 4 0 (kill-buffer-and-window) kills the
8141current buffer and deletes the selected window. It asks for
8142confirmation first.
8143
8144** C-x C-w, which saves the buffer into a specified file name,
8145now changes the major mode according to that file name.
8146However, the mode will not be changed if
8147(1) a local variables list or the `-*-' line specifies a major mode, or
8148(2) the current major mode is a "special" mode,
8149 not suitable for ordinary files, or
8150(3) the new file name does not particularly specify any mode.
8151
8152This applies to M-x set-visited-file-name as well.
8153
8154However, if you set change-major-mode-with-file-name to nil, then
8155these commands do not change the major mode.
8156
8157** M-x occur changes.
8158
8159*** If the argument to M-x occur contains upper case letters,
8160it performs a case-sensitive search.
8161
8162*** In the *Occur* buffer made by M-x occur,
8163if you type g or M-x revert-buffer, this repeats the search
8164using the same regular expression and the same buffer as before.
8165
8166** In Transient Mark mode, the region in any one buffer is highlighted
8167in just one window at a time. At first, it is highlighted in the
8168window where you set the mark. The buffer's highlighting remains in
8169that window unless you select to another window which shows the same
8170buffer--then the highlighting moves to that window.
8171
8172** The feature to suggest key bindings when you use M-x now operates
8173after the command finishes. The message suggesting key bindings
8174appears temporarily in the echo area. The previous echo area contents
8175come back after a few seconds, in case they contain useful information.
8176
8177** Each frame now independently records the order for recently
8178selected buffers, so that the default for C-x b is now based on the
8179buffers recently selected in the selected frame.
8180
8181** Outline mode changes.
8182
8183*** Outline mode now uses overlays (this is the former noutline.el).
8184
8185*** Incremental searches skip over invisible text in Outline mode.
8186
8187** When a minibuffer window is active but not the selected window, if
8188you try to use the minibuffer, you used to get a nested minibuffer.
8189Now, this not only gives an error, it also cancels the minibuffer that
8190was already active.
8191
8192The motive for this change is so that beginning users do not
8193unknowingly move away from minibuffers, leaving them active, and then
8194get confused by it.
8195
8196If you want to be able to have recursive minibuffers, you must
8197set enable-recursive-minibuffers to non-nil.
8198
8199** Changes in dynamic abbrevs.
8200
8201*** Expanding dynamic abbrevs with M-/ is now smarter about case
8202conversion. If the expansion has mixed case not counting the first
8203character, and the abbreviation matches the beginning of the expansion
8204including case, then the expansion is copied verbatim.
8205
8206The expansion is also copied verbatim if the abbreviation itself has
8207mixed case. And using SPC M-/ to copy an additional word always
8208copies it verbatim except when the previous copied word is all caps.
8209
8210*** The values of `dabbrev-case-replace' and `dabbrev-case-fold-search'
8211are no longer Lisp expressions. They have simply three possible
8212values.
8213
8214`dabbrev-case-replace' has these three values: nil (don't preserve
8215case), t (do), or `case-replace' (do like M-x query-replace).
8216`dabbrev-case-fold-search' has these three values: nil (don't ignore
8217case), t (do), or `case-fold-search' (do like search).
8218
8219** Minibuffer history lists are truncated automatically now to a
8220certain length. The variable history-length specifies how long they
8221can be. The default value is 30.
8222
8223** Changes in Mail mode.
8224
8225*** The key C-x m no longer runs the `mail' command directly.
8226Instead, it runs the command `compose-mail', which invokes the mail
8227composition mechanism you have selected with the variable
8228`mail-user-agent'. The default choice of user agent is
8229`sendmail-user-agent', which gives behavior compatible with the old
8230behavior.
8231
8232C-x 4 m now runs compose-mail-other-window, and C-x 5 m runs
8233compose-mail-other-frame.
8234
8235*** While composing a reply to a mail message, from Rmail, you can use
8236the command C-c C-r to cite just the region from the message you are
8237replying to. This copies the text which is the selected region in the
8238buffer that shows the original message.
8239
8240*** The command C-c C-i inserts a file at the end of the message,
8241with separator lines around the contents.
8242
8243*** The command M-x expand-mail-aliases expands all mail aliases
8244in suitable mail headers. Emacs automatically extracts mail alias
8245definitions from your mail alias file (e.g., ~/.mailrc). You do not
8246need to expand mail aliases yourself before sending mail.
8247
8248*** New features in the mail-complete command.
8249
8250**** The mail-complete command now inserts the user's full name,
8251for local users or if that is known. The variable mail-complete-style
8252controls the style to use, and whether to do this at all.
8253Its values are like those of mail-from-style.
8254
8255**** The variable mail-passwd-command lets you specify a shell command
8256to run to fetch a set of password-entries that add to the ones in
8257/etc/passwd.
8258
8259**** The variable mail-passwd-file now specifies a list of files to read
8260to get the list of user ids. By default, one file is used:
8261/etc/passwd.
8262
8263** You can "quote" a file name to inhibit special significance of
8264special syntax, by adding `/:' to the beginning. Thus, if you have a
8265directory named `/foo:', you can prevent it from being treated as a
8266reference to a remote host named `foo' by writing it as `/:/foo:'.
8267
8268Emacs uses this new construct automatically when necessary, such as
8269when you start it with a working directory whose name might otherwise
8270be taken to be magic.
8271
8272** There is a new command M-x grep-find which uses find to select
8273files to search through, and grep to scan them. The output is
8274available in a Compile mode buffer, as with M-x grep.
8275
8276M-x grep now uses the -e option if the grep program supports that.
8277(-e prevents problems if the search pattern starts with a dash.)
8278
8279** In Dired, the & command now flags for deletion the files whose names
8280suggest they are probably not needed in the long run.
8281
8282In Dired, * is now a prefix key for mark-related commands.
8283
8284new key dired.el binding old key
8285------- ---------------- -------
8286 * c dired-change-marks c
8287 * m dired-mark m
8288 * * dired-mark-executables * (binding deleted)
8289 * / dired-mark-directories / (binding deleted)
8290 * @ dired-mark-symlinks @ (binding deleted)
8291 * u dired-unmark u
8292 * DEL dired-unmark-backward DEL
3a426197 8293 * ? dired-unmark-all-files C-M-?
3787e12e
GM
8294 * ! dired-unmark-all-marks
8295 * % dired-mark-files-regexp % m
8296 * C-n dired-next-marked-file M-}
8297 * C-p dired-prev-marked-file M-{
8298
8299** Rmail changes.
8300
8301*** When Rmail cannot convert your incoming mail into Babyl format, it
8302saves the new mail in the file RMAILOSE.n, where n is an integer
8303chosen to make a unique name. This way, Rmail will not keep crashing
8304each time you run it.
8305
8306*** In Rmail, the variable rmail-summary-line-count-flag now controls
8307whether to include the line count in the summary. Non-nil means yes.
8308
8309*** In Rmail summary buffers, d and C-d (the commands to delete
8310messages) now take repeat counts as arguments. A negative argument
8311means to move in the opposite direction.
8312
8313*** In Rmail, the t command now takes an optional argument which lets
8314you specify whether to show the message headers in full or pruned.
8315
8316*** In Rmail, the new command w (rmail-output-body-to-file) writes
8317just the body of the current message into a file, without the headers.
8318It takes the file name from the message subject, by default, but you
8319can edit that file name in the minibuffer before it is actually used
8320for output.
8321
8322** Gnus changes.
8323
8324*** nntp.el has been totally rewritten in an asynchronous fashion.
8325
8326*** Article prefetching functionality has been moved up into
8327Gnus.
8328
8329*** Scoring can now be performed with logical operators like
8330`and', `or', `not', and parent redirection.
8331
8332*** Article washing status can be displayed in the
8333article mode line.
8334
8335*** gnus.el has been split into many smaller files.
8336
8337*** Suppression of duplicate articles based on Message-ID.
8338
8339(setq gnus-suppress-duplicates t)
8340
8341*** New variables for specifying what score and adapt files
8342are to be considered home score and adapt files. See
8343`gnus-home-score-file' and `gnus-home-adapt-files'.
8344
8345*** Groups can inherit group parameters from parent topics.
8346
8347*** Article editing has been revamped and is now usable.
8348
8349*** Signatures can be recognized in more intelligent fashions.
8350See `gnus-signature-separator' and `gnus-signature-limit'.
8351
8352*** Summary pick mode has been made to look more nn-like.
8353Line numbers are displayed and the `.' command can be
8354used to pick articles.
8355
8356*** Commands for moving the .newsrc.eld from one server to
8357another have been added.
8358
8359 `M-x gnus-change-server'
8360
8361*** A way to specify that "uninteresting" fields be suppressed when
8362generating lines in buffers.
8363
8364*** Several commands in the group buffer can be undone with
3a426197 8365`C-M-_'.
3787e12e
GM
8366
8367*** Scoring can be done on words using the new score type `w'.
8368
8369*** Adaptive scoring can be done on a Subject word-by-word basis:
8370
8371 (setq gnus-use-adaptive-scoring '(word))
8372
8373*** Scores can be decayed.
8374
8375 (setq gnus-decay-scores t)
8376
8377*** Scoring can be performed using a regexp on the Date header. The
8378Date is normalized to compact ISO 8601 format first.
8379
8380*** A new command has been added to remove all data on articles from
8381the native server.
8382
8383 `M-x gnus-group-clear-data-on-native-groups'
8384
8385*** A new command for reading collections of documents
3a426197 8386(nndoc with nnvirtual on top) has been added -- `C-M-d'.
3787e12e
GM
8387
8388*** Process mark sets can be pushed and popped.
8389
8390*** A new mail-to-news backend makes it possible to post
8391even when the NNTP server doesn't allow posting.
8392
8393*** A new backend for reading searches from Web search engines
8394(DejaNews, Alta Vista, InReference) has been added.
8395
8396 Use the `G w' command in the group buffer to create such
8397 a group.
8398
8399*** Groups inside topics can now be sorted using the standard
8400sorting functions, and each topic can be sorted independently.
8401
8402 See the commands under the `T S' submap.
8403
8404*** Subsets of the groups can be sorted independently.
8405
8406 See the commands under the `G P' submap.
8407
8408*** Cached articles can be pulled into the groups.
8409
8410 Use the `Y c' command.
8411
8412*** Score files are now applied in a more reliable order.
8413
8414*** Reports on where mail messages end up can be generated.
8415
8416 `M-x nnmail-split-history'
8417
8418*** More hooks and functions have been added to remove junk
8419from incoming mail before saving the mail.
8420
8421 See `nnmail-prepare-incoming-header-hook'.
8422
8423*** The nnml mail backend now understands compressed article files.
8424
8425*** To enable Gnus to read/post multi-lingual articles, you must execute
8426the following code, for instance, in your .emacs.
8427
8428 (add-hook 'gnus-startup-hook 'gnus-mule-initialize)
8429
8430Then, when you start Gnus, it will decode non-ASCII text automatically
8431and show appropriate characters. (Note: if you are using gnus-mime
8432from the SEMI package, formerly known as TM, you should NOT add this
8433hook to gnus-startup-hook; gnus-mime has its own method of handling
8434this issue.)
8435
8436Since it is impossible to distinguish all coding systems
8437automatically, you may need to specify a choice of coding system for a
8438particular news group. This can be done by:
8439
8440 (gnus-mule-add-group NEWSGROUP 'CODING-SYSTEM)
8441
8442Here NEWSGROUP should be a string which names a newsgroup or a tree
8443of newsgroups. If NEWSGROUP is "XXX.YYY", all news groups under
8444"XXX.YYY" (including "XXX.YYY.ZZZ") will use the specified coding
8445system. CODING-SYSTEM specifies which coding system to use (for both
8446for reading and posting).
8447
8448CODING-SYSTEM can also be a cons cell of the form
8449 (READ-CODING-SYSTEM . POST-CODING-SYSTEM)
8450Then READ-CODING-SYSTEM is used when you read messages from the
8451newsgroups, while POST-CODING-SYSTEM is used when you post messages
8452there.
8453
8454Emacs knows the right coding systems for certain newsgroups by
8455default. Here are some of these default settings:
8456
8457 (gnus-mule-add-group "fj" 'iso-2022-7)
8458 (gnus-mule-add-group "alt.chinese.text" 'hz-gb-2312)
8459 (gnus-mule-add-group "alt.hk" 'hz-gb-2312)
8460 (gnus-mule-add-group "alt.chinese.text.big5" 'cn-big5)
8461 (gnus-mule-add-group "soc.culture.vietnamese" '(nil . viqr))
8462
8463When you reply by mail to an article, these settings are ignored;
8464the mail is encoded according to sendmail-coding-system, as usual.
8465
8466** CC mode changes.
8467
8468*** If you edit primarily one style of C (or C++, Objective-C, Java)
8469code, you may want to make the CC Mode style variables have global
8470values so that you can set them directly in your .emacs file. To do
8471this, set c-style-variables-are-local-p to nil in your .emacs file.
8472Note that this only takes effect if you do it *before* cc-mode.el is
8473loaded.
8474
8475If you typically edit more than one style of C (or C++, Objective-C,
8476Java) code in a single Emacs session, you may want to make the CC Mode
8477style variables have buffer local values. By default, all buffers
8478share the same style variable settings; to make them buffer local, set
8479c-style-variables-are-local-p to t in your .emacs file. Note that you
8480must do this *before* CC Mode is loaded.
8481
8482*** The new variable c-indentation-style holds the C style name
8483of the current buffer.
8484
8485*** The variable c-block-comments-indent-p has been deleted, because
8486it is no longer necessary. C mode now handles all the supported styles
8487of block comments, with no need to say which one you will use.
8488
8489*** There is a new indentation style "python", which specifies the C
8490style that the Python developers like.
8491
8492*** There is a new c-cleanup-list option: brace-elseif-brace.
8493This says to put ...} else if (...) {... on one line,
8494just as brace-else-brace says to put ...} else {... on one line.
8495
8496** VC Changes [new]
8497
9614842d 8498*** In vc-retrieve-snapshot (C-x v r), if you don't specify a snapshot
3787e12e
GM
8499name, it retrieves the *latest* versions of all files in the current
8500directory and its subdirectories (aside from files already locked).
8501
8502This feature is useful if your RCS directory is a link to a common
8503master directory, and you want to pick up changes made by other
8504developers.
8505
8506You can do the same thing for an individual file by typing C-u C-x C-q
8507RET in a buffer visiting that file.
8508
8509*** VC can now handle files under CVS that are being "watched" by
8510other developers. Such files are made read-only by CVS. To get a
8511writable copy, type C-x C-q in a buffer visiting such a file. VC then
8512calls "cvs edit", which notifies the other developers of it.
8513
8514*** vc-version-diff (C-u C-x v =) now suggests reasonable defaults for
8515version numbers, based on the current state of the file.
8516
8517** Calendar changes.
8518
9614842d
JW
8519*** A new function, list-holidays, allows you list holidays or
8520subclasses of holidays for ranges of years. Related menu items allow
8521you do this for the year of the selected date, or the
8522following/previous years.
8523
8524*** There is now support for the Baha'i calendar system. Use `pb' in
8525the *Calendar* buffer to display the current Baha'i date. The Baha'i
8526calendar, or "Badi calendar" is a system of 19 months with 19 days
8527each, and 4 intercalary days (5 during a Gregorian leap year). The
8528calendar begins May 23, 1844, with each of the months named after a
8529supposed attribute of God.
3787e12e
GM
8530
8531** ps-print changes
8532
2261f14e
GM
8533There are some new user variables and subgroups for customizing the page
8534layout.
3787e12e 8535
2261f14e 8536*** Headers & Footers (subgroup)
3787e12e 8537
2261f14e
GM
8538Some printer systems print a header page and force the first page to
8539be printed on the back of the header page when using duplex. If your
8540printer system has this behavior, set variable
8541`ps-banner-page-when-duplexing' to t.
3787e12e 8542
2261f14e
GM
8543If variable `ps-banner-page-when-duplexing' is non-nil, it prints a
8544blank page as the very first printed page. So, it behaves as if the
a5d03456 8545very first character of buffer (or region) were a form feed ^L (\014).
3787e12e 8546
2261f14e
GM
8547The variable `ps-spool-config' specifies who is responsible for
8548setting duplex mode and page size. Valid values are:
3787e12e 8549
2261f14e
GM
8550 lpr-switches duplex and page size are configured by `ps-lpr-switches'.
8551 Don't forget to set `ps-lpr-switches' to select duplex
8552 printing for your printer.
3787e12e 8553
2261f14e
GM
8554 setpagedevice duplex and page size are configured by ps-print using the
8555 setpagedevice PostScript operator.
3787e12e 8556
2261f14e
GM
8557 nil duplex and page size are configured by ps-print *not* using
8558 the setpagedevice PostScript operator.
3787e12e 8559
2261f14e
GM
8560The variable `ps-spool-tumble' specifies how the page images on
8561opposite sides of a sheet are oriented with respect to each other. If
8562`ps-spool-tumble' is nil, ps-print produces output suitable for
8563bindings on the left or right. If `ps-spool-tumble' is non-nil,
8564ps-print produces output suitable for bindings at the top or bottom.
8565This variable takes effect only if `ps-spool-duplex' is non-nil.
8566The default value is nil.
3787e12e 8567
2261f14e
GM
8568The variable `ps-header-frame-alist' specifies a header frame
8569properties alist. Valid frame properties are:
3787e12e 8570
2261f14e
GM
8571 fore-color Specify the foreground frame color.
8572 Value should be a float number between 0.0 (black
8573 color) and 1.0 (white color), or a string which is a
8574 color name, or a list of 3 float numbers which
8575 correspond to the Red Green Blue color scale, each
8576 float number between 0.0 (dark color) and 1.0 (bright
8577 color). The default is 0 ("black").
3787e12e 8578
2261f14e
GM
8579 back-color Specify the background frame color (similar to fore-color).
8580 The default is 0.9 ("gray90").
8581
8582 shadow-color Specify the shadow color (similar to fore-color).
8583 The default is 0 ("black").
8584
8585 border-color Specify the border color (similar to fore-color).
8586 The default is 0 ("black").
8587
8588 border-width Specify the border width.
8589 The default is 0.4.
8590
8591Any other property is ignored.
8592
8593Don't change this alist directly; instead use Custom, or the
8594`ps-value', `ps-get', `ps-put' and `ps-del' functions (see there for
8595documentation).
8596
8597Ps-print can also print footers. The footer variables are:
8598`ps-print-footer', `ps-footer-offset', `ps-print-footer-frame',
8599`ps-footer-font-family', `ps-footer-font-size', `ps-footer-line-pad',
8600`ps-footer-lines', `ps-left-footer', `ps-right-footer' and
8601`ps-footer-frame-alist'. These variables are similar to those
8602controlling headers.
3787e12e 8603
2261f14e
GM
8604*** Color management (subgroup)
8605
8606If `ps-print-color-p' is non-nil, the buffer's text will be printed in
8607color.
8608
8609*** Face Management (subgroup)
3787e12e 8610
2261f14e
GM
8611If you need to print without worrying about face background colors,
8612set the variable `ps-use-face-background' which specifies if face
8613background should be used. Valid values are:
8614
8615 t always use face background color.
8616 nil never use face background color.
8617 (face...) list of faces whose background color will be used.
8618
8619*** N-up printing (subgroup)
8620
8621The variable `ps-n-up-printing' specifies the number of pages per
8622sheet of paper.
8623
8624The variable `ps-n-up-margin' specifies the margin in points (pt)
8625between the sheet border and the n-up printing.
8626
8627If variable `ps-n-up-border-p' is non-nil, a border is drawn around
8628each page.
8629
8630The variable `ps-n-up-filling' specifies how the page matrix is filled
8631on each sheet of paper. Following are the valid values for
8632`ps-n-up-filling' with a filling example using a 3x4 page matrix:
8633
8634 `left-top' 1 2 3 4 `left-bottom' 9 10 11 12
8635 5 6 7 8 5 6 7 8
8636 9 10 11 12 1 2 3 4
3787e12e 8637
2261f14e
GM
8638 `right-top' 4 3 2 1 `right-bottom' 12 11 10 9
8639 8 7 6 5 8 7 6 5
8640 12 11 10 9 4 3 2 1
8641
8642 `top-left' 1 4 7 10 `bottom-left' 3 6 9 12
8643 2 5 8 11 2 5 8 11
8644 3 6 9 12 1 4 7 10
8645
8646 `top-right' 10 7 4 1 `bottom-right' 12 9 6 3
8647 11 8 5 2 11 8 5 2
8648 12 9 6 3 10 7 4 1
3787e12e 8649
2261f14e
GM
8650Any other value is treated as `left-top'.
8651
8652*** Zebra stripes (subgroup)
3787e12e 8653
2261f14e
GM
8654The variable `ps-zebra-color' controls the zebra stripes grayscale or
8655RGB color.
8656
8657The variable `ps-zebra-stripe-follow' specifies how zebra stripes
8658continue on next page. Visually, valid values are (the character `+'
8659to the right of each column indicates that a line is printed):
8660
8661 `nil' `follow' `full' `full-follow'
8662 Current Page -------- ----------- --------- ----------------
8663 1 XXXXX + 1 XXXXXXXX + 1 XXXXXX + 1 XXXXXXXXXXXXX +
8664 2 XXXXX + 2 XXXXXXXX + 2 XXXXXX + 2 XXXXXXXXXXXXX +
8665 3 XXXXX + 3 XXXXXXXX + 3 XXXXXX + 3 XXXXXXXXXXXXX +
8666 4 + 4 + 4 + 4 +
8667 5 + 5 + 5 + 5 +
8668 6 + 6 + 6 + 6 +
8669 7 XXXXX + 7 XXXXXXXX + 7 XXXXXX + 7 XXXXXXXXXXXXX +
8670 8 XXXXX + 8 XXXXXXXX + 8 XXXXXX + 8 XXXXXXXXXXXXX +
8671 9 XXXXX + 9 XXXXXXXX + 9 XXXXXX + 9 XXXXXXXXXXXXX +
8672 10 + 10 +
8673 11 + 11 +
8674 -------- ----------- --------- ----------------
8675 Next Page -------- ----------- --------- ----------------
8676 12 XXXXX + 12 + 10 XXXXXX + 10 +
8677 13 XXXXX + 13 XXXXXXXX + 11 XXXXXX + 11 +
8678 14 XXXXX + 14 XXXXXXXX + 12 XXXXXX + 12 +
8679 15 + 15 XXXXXXXX + 13 + 13 XXXXXXXXXXXXX +
8680 16 + 16 + 14 + 14 XXXXXXXXXXXXX +
8681 17 + 17 + 15 + 15 XXXXXXXXXXXXX +
8682 18 XXXXX + 18 + 16 XXXXXX + 16 +
8683 19 XXXXX + 19 XXXXXXXX + 17 XXXXXX + 17 +
8684 20 XXXXX + 20 XXXXXXXX + 18 XXXXXX + 18 +
8685 21 + 21 XXXXXXXX +
8686 22 + 22 +
8687 -------- ----------- --------- ----------------
8688
8689Any other value is treated as `nil'.
8690
8691
8692*** Printer management (subgroup)
8693
8694The variable `ps-printer-name-option' determines the option used by
8695some utilities to indicate the printer name; it's used only when
8696`ps-printer-name' is a non-empty string. If you're using the lpr
8697utility to print, for example, `ps-printer-name-option' should be set
8698to "-P".
8699
8700The variable `ps-manual-feed' indicates if the printer requires manual
8701paper feeding. If it's nil, automatic feeding takes place. If it's
8702non-nil, manual feeding takes place.
8703
8704The variable `ps-end-with-control-d' specifies whether C-d (\x04)
8705should be inserted at end of the generated PostScript. Non-nil means
8706do so.
8707
8708*** Page settings (subgroup)
8709
8710If variable `ps-warn-paper-type' is nil, it's *not* treated as an
8711error if the PostScript printer doesn't have a paper with the size
8712indicated by `ps-paper-type'; the default paper size will be used
8713instead. If `ps-warn-paper-type' is non-nil, an error is signaled if
8714the PostScript printer doesn't support a paper with the size indicated
8715by `ps-paper-type'. This is used when `ps-spool-config' is set to
8716`setpagedevice'.
8717
8718The variable `ps-print-upside-down' determines the orientation for
8719printing pages: nil means `normal' printing, non-nil means
8720`upside-down' printing (that is, the page is rotated by 180 degrees).
8721
8722The variable `ps-selected-pages' specifies which pages to print. If
8723it's nil, all pages are printed. If it's a list, list elements may be
8724integers specifying a single page to print, or cons cells (FROM . TO)
8725specifying to print from page FROM to TO. Invalid list elements, that
8726is integers smaller than one, or elements whose FROM is greater than
8727its TO, are ignored.
8728
8729The variable `ps-even-or-odd-pages' specifies how to print even/odd
8730pages. Valid values are:
8731
8732 nil print all pages.
8733
8734 `even-page' print only even pages.
8735
8736 `odd-page' print only odd pages.
8737
8738 `even-sheet' print only even sheets.
8739 That is, if `ps-n-up-printing' is 1, it behaves like
8740 `even-page', but for values greater than 1, it'll
8741 print only the even sheet of paper.
8742
8743 `odd-sheet' print only odd sheets.
8744 That is, if `ps-n-up-printing' is 1, it behaves like
8745 `odd-page'; but for values greater than 1, it'll print
8746 only the odd sheet of paper.
8747
8748Any other value is treated as nil.
8749
8750If you set `ps-selected-pages' (see there for documentation), pages
8751are filtered by `ps-selected-pages', and then by
8752`ps-even-or-odd-pages'. For example, if we have:
8753
8754 (setq ps-selected-pages '(1 4 (6 . 10) (12 . 16) 20))
8755
8756and we combine this with `ps-even-or-odd-pages' and
8757`ps-n-up-printing', we get:
8758
8759`ps-n-up-printing' = 1:
8760 `ps-even-or-odd-pages' PAGES PRINTED
8761 nil 1, 4, 6, 7, 8, 9, 10, 12, 13, 14, 15, 16, 20
8762 even-page 4, 6, 8, 10, 12, 14, 16, 20
8763 odd-page 1, 7, 9, 13, 15
8764 even-sheet 4, 6, 8, 10, 12, 14, 16, 20
8765 odd-sheet 1, 7, 9, 13, 15
8766
8767`ps-n-up-printing' = 2:
8768 `ps-even-or-odd-pages' PAGES PRINTED
8769 nil 1/4, 6/7, 8/9, 10/12, 13/14, 15/16, 20
8770 even-page 4/6, 8/10, 12/14, 16/20
8771 odd-page 1/7, 9/13, 15
8772 even-sheet 6/7, 10/12, 15/16
8773 odd-sheet 1/4, 8/9, 13/14, 20
8774
8775*** Miscellany (subgroup)
8776
8777The variable `ps-error-handler-message' specifies where error handler
8778messages should be sent.
8779
8780It is also possible to add a user-defined PostScript prologue code in
8781front of all generated prologue code by setting the variable
8782`ps-user-defined-prologue'.
8783
8784The variable `ps-line-number-font' specifies the font for line numbers.
8785
8786The variable `ps-line-number-font-size' specifies the font size in
8787points for line numbers.
8788
8789The variable `ps-line-number-color' specifies the color for line
8790numbers. See `ps-zebra-color' for documentation.
8791
8792The variable `ps-line-number-step' specifies the interval in which
8793line numbers are printed. For example, if `ps-line-number-step' is set
8794to 2, the printing will look like:
8795
8796 1 one line
8797 one line
8798 3 one line
8799 one line
8800 5 one line
8801 one line
8802 ...
8803
8804Valid values are:
8805
8806integer an integer specifying the interval in which line numbers are
8807 printed. If it's smaller than or equal to zero, 1
8808 is used.
8809
8810`zebra' specifies that only the line number of the first line in a
8811 zebra stripe is to be printed.
8812
8813Any other value is treated as `zebra'.
8814
8815The variable `ps-line-number-start' specifies the starting point in
8816the interval given by `ps-line-number-step'. For example, if
8817`ps-line-number-step' is set to 3, and `ps-line-number-start' is set to
88183, the output will look like:
8819
8820 one line
8821 one line
8822 3 one line
8823 one line
8824 one line
8825 6 one line
8826 one line
8827 one line
8828 9 one line
8829 one line
8830 ...
8831
8832The variable `ps-postscript-code-directory' specifies the directory
8833where the PostScript prologue file used by ps-print is found.
8834
8835The variable `ps-line-spacing' determines the line spacing in points,
8836for ordinary text, when generating PostScript (similar to
8837`ps-font-size').
8838
8839The variable `ps-paragraph-spacing' determines the paragraph spacing,
8840in points, for ordinary text, when generating PostScript (similar to
8841`ps-font-size').
8842
8843The variable `ps-paragraph-regexp' specifies the paragraph delimiter.
8844
8845The variable `ps-begin-cut-regexp' and `ps-end-cut-regexp' specify the
8846start and end of a region to cut out when printing.
3787e12e
GM
8847
8848** hideshow changes.
8849
8850*** now supports hiding of blocks of single line comments (like // for
8851C++, ; for lisp).
8852
8853*** Support for java-mode added.
8854
8855*** When doing `hs-hide-all' it is now possible to also hide the comments
8856in the file if `hs-hide-comments-when-hiding-all' is set.
8857
f3780fe4 8858*** The new function `hs-hide-initial-comment' hides the comments at
3787e12e
GM
8859the beginning of the files. Finally those huge RCS logs don't stay in your
8860way! This is run by default when entering the `hs-minor-mode'.
8861
8862*** Now uses overlays instead of `selective-display', so is more
8863robust and a lot faster.
8864
8865*** A block beginning can span multiple lines.
8866
8867*** The new variable `hs-show-hidden-short-form' if t, directs hideshow
8868to show only the beginning of a block when it is hidden. See the
8869documentation for more details.
8870
8871** Changes in Enriched mode.
8872
8873*** When you visit a file in enriched-mode, Emacs will make sure it is
8874filled to the current fill-column. This behavior is now independent
8875of the size of the window. When you save the file, the fill-column in
8876use is stored as well, so that the whole buffer need not be refilled
8877the next time unless the fill-column is different.
8878
8879*** use-hard-newlines is now a minor mode. When it is enabled, Emacs
8880distinguishes between hard and soft newlines, and treats hard newlines
8881as paragraph boundaries. Otherwise all newlines inserted are marked
8882as soft, and paragraph boundaries are determined solely from the text.
8883
8884** Font Lock mode
8885
8886*** Custom support
8887
8888The variables font-lock-face-attributes, font-lock-display-type and
8889font-lock-background-mode are now obsolete; the recommended way to specify the
8890faces to use for Font Lock mode is with M-x customize-group on the new custom
8891group font-lock-highlighting-faces. If you set font-lock-face-attributes in
8892your ~/.emacs file, Font Lock mode will respect its value. However, you should
8893consider converting from setting that variable to using M-x customize.
8894
8895You can still use X resources to specify Font Lock face appearances.
8896
8897*** Maximum decoration
8898
8899Fontification now uses the maximum level of decoration supported by
8900default. Previously, fontification used a mode-specific default level
8901of decoration, which is typically the minimum level of decoration
8902supported. You can set font-lock-maximum-decoration to nil
8903to get the old behavior.
8904
8905*** New support
8906
8907Support is now provided for Java, Objective-C, AWK and SIMULA modes.
8908
8909Note that Font Lock mode can be turned on without knowing exactly what modes
8910support Font Lock mode, via the command global-font-lock-mode.
8911
8912*** Configurable support
8913
8914Support for C, C++, Objective-C and Java can be more easily configured for
8915additional types and classes via the new variables c-font-lock-extra-types,
8916c++-font-lock-extra-types, objc-font-lock-extra-types and, you guessed it,
8917java-font-lock-extra-types. These value of each of these variables should be a
8918list of regexps matching the extra type names. For example, the default value
8919of c-font-lock-extra-types is ("\\sw+_t") which means fontification follows the
8920convention that C type names end in _t. This results in slower fontification.
8921
8922Of course, you can change the variables that specify fontification in whatever
8923way you wish, typically by adding regexps. However, these new variables make
8924it easier to make specific and common changes for the fontification of types.
8925
8926*** Adding highlighting patterns to existing support
8927
8928You can use the new function font-lock-add-keywords to add your own
8929highlighting patterns, such as for project-local or user-specific constructs,
8930for any mode.
8931
8932For example, to highlight `FIXME:' words in C comments, put:
8933
8934 (font-lock-add-keywords 'c-mode '(("\\<FIXME:" 0 font-lock-warning-face t)))
8935
8936in your ~/.emacs.
8937
8938*** New faces
8939
8940Font Lock now defines two new faces, font-lock-builtin-face and
8941font-lock-warning-face. These are intended to highlight builtin keywords,
8942distinct from a language's normal keywords, and objects that should be brought
8943to user attention, respectively. Various modes now use these new faces.
8944
8945*** Changes to fast-lock support mode
8946
8947The fast-lock package, one of the two Font Lock support modes, can now process
8948cache files silently. You can use the new variable fast-lock-verbose, in the
8949same way as font-lock-verbose, to control this feature.
8950
8951*** Changes to lazy-lock support mode
8952
8953The lazy-lock package, one of the two Font Lock support modes, can now fontify
8954according to the true syntactic context relative to other lines. You can use
8955the new variable lazy-lock-defer-contextually to control this feature. If
8956non-nil, changes to the buffer will cause subsequent lines in the buffer to be
8957refontified after lazy-lock-defer-time seconds of idle time. If nil, then only
8958the modified lines will be refontified; this is the same as the previous Lazy
8959Lock mode behaviour and the behaviour of Font Lock mode.
8960
8961This feature is useful in modes where strings or comments can span lines.
8962For example, if a string or comment terminating character is deleted, then if
8963this feature is enabled subsequent lines in the buffer will be correctly
8964refontified to reflect their new syntactic context. Previously, only the line
8965containing the deleted character would be refontified and you would have to use
8966the command M-g M-g (font-lock-fontify-block) to refontify some lines.
8967
8968As a consequence of this new feature, two other variables have changed:
8969
8970Variable `lazy-lock-defer-driven' is renamed `lazy-lock-defer-on-scrolling'.
8971Variable `lazy-lock-defer-time' can now only be a time, i.e., a number.
8972Buffer modes for which on-the-fly deferral applies can be specified via the
8973new variable `lazy-lock-defer-on-the-fly'.
8974
8975If you set these variables in your ~/.emacs, then you may have to change those
8976settings.
8977
8978** Ada mode changes.
8979
8980*** There is now better support for using find-file.el with Ada mode.
8981If you switch between spec and body, the cursor stays in the same
8982procedure (modulo overloading). If a spec has no body file yet, but
8983you try to switch to its body file, Ada mode now generates procedure
8984stubs.
8985
8986*** There are two new commands:
8987 - `ada-make-local' : invokes gnatmake on the current buffer
8988 - `ada-check-syntax' : check syntax of current buffer.
8989
8990The user options `ada-compiler-make', `ada-make-options',
8991`ada-language-version', `ada-compiler-syntax-check', and
8992`ada-compile-options' are used within these commands.
8993
8994*** Ada mode can now work with Outline minor mode. The outline level
8995is calculated from the indenting, not from syntactic constructs.
8996Outlining does not work if your code is not correctly indented.
8997
8998*** The new function `ada-gnat-style' converts the buffer to the style of
8999formatting used in GNAT. It places two blanks after a comment start,
9000places one blank between a word end and an opening '(', and puts one
9001space between a comma and the beginning of a word.
9002
9003** Scheme mode changes.
9004
9005*** Scheme mode indentation now uses many of the facilities of Lisp
9006mode; therefore, the variables to customize it are the variables used
9007for Lisp mode which have names starting with `lisp-'. The variables
9008with names starting with `scheme-' which used to do this no longer
9009have any effect.
9010
9011If you want to use different indentation for Scheme and Lisp, this is
9012still possible, but now you must do it by adding a hook to
9013scheme-mode-hook, which could work by setting the `lisp-' indentation
9014variables as buffer-local variables.
9015
9016*** DSSSL mode is a variant of Scheme mode, for editing DSSSL scripts.
9017Use M-x dsssl-mode.
9018
9019** Changes to the emacsclient program
9020
9021*** If a socket can't be found, and environment variables LOGNAME or
9022USER are set, emacsclient now looks for a socket based on the UID
9023associated with the name. That is an emacsclient running as root
9024can connect to an Emacs server started by a non-root user.
9025
9026*** The emacsclient program now accepts an option --no-wait which tells
9027it to return immediately without waiting for you to "finish" the
9028buffer in Emacs.
9029
9030*** The new option --alternate-editor allows to specify an editor to
9031use if Emacs is not running. The environment variable
9032ALTERNATE_EDITOR can be used for the same effect; the command line
9033option takes precedence.
9034
9035** M-x eldoc-mode enables a minor mode in which the echo area
9036constantly shows the parameter list for function being called at point
9037(in Emacs Lisp and Lisp Interaction modes only).
9038
9039** C-x n d now runs the new command narrow-to-defun,
9040which narrows the accessible parts of the buffer to just
9041the current defun.
9042
9043** Emacs now handles the `--' argument in the standard way; all
9044following arguments are treated as ordinary file names.
9045
9046** On MSDOS and Windows, the bookmark file is now called _emacs.bmk,
9047and the saved desktop file is now called _emacs.desktop (truncated if
9048necessary).
9049
9050** When you kill a buffer that visits a file,
9051if there are any registers that save positions in the file,
9052these register values no longer become completely useless.
9053If you try to go to such a register with C-x j, then you are
9054asked whether to visit the file again. If you say yes,
9055it visits the file and then goes to the same position.
9056
9057** When you visit a file that changes frequently outside Emacs--for
9058example, a log of output from a process that continues to run--it may
9059be useful for Emacs to revert the file without querying you whenever
9060you visit the file afresh with C-x C-f.
9061
9062You can request this behavior for certain files by setting the
9063variable revert-without-query to a list of regular expressions. If a
9064file's name matches any of these regular expressions, find-file and
9065revert-buffer revert the buffer without asking for permission--but
9066only if you have not edited the buffer text yourself.
9067
9068** set-default-font has been renamed to set-frame-font
9069since it applies only to the current frame.
9070
9071** In TeX mode, you can use the variable tex-main-file to specify the
9072file for tex-file to run TeX on. (By default, tex-main-file is nil,
9073and tex-file runs TeX on the current visited file.)
9074
9075This is useful when you are editing a document that consists of
9076multiple files. In each of the included files, you can set up a local
9077variable list which specifies the top-level file of your document for
9078tex-main-file. Then tex-file will run TeX on the whole document
9079instead of just the file you are editing.
9080
9081** RefTeX mode
9082
9083RefTeX mode is a new minor mode with special support for \label, \ref
9084and \cite macros in LaTeX documents. RefTeX distinguishes labels of
9085different environments (equation, figure, ...) and has full support for
9086multifile documents. To use it, select a buffer with a LaTeX document and
9087turn the mode on with M-x reftex-mode. Here are the main user commands:
9088
9089C-c ( reftex-label
9090 Creates a label semi-automatically. RefTeX is context sensitive and
9091 knows which kind of label is needed.
9092
9093C-c ) reftex-reference
9094 Offers in a menu all labels in the document, along with context of the
9095 label definition. The selected label is referenced as \ref{LABEL}.
9096
9097C-c [ reftex-citation
9098 Prompts for a regular expression and displays a list of matching BibTeX
9099 database entries. The selected entry is cited with a \cite{KEY} macro.
9100
9101C-c & reftex-view-crossref
9102 Views the cross reference of a \ref or \cite command near point.
9103
9104C-c = reftex-toc
9105 Shows a table of contents of the (multifile) document. From there you
9106 can quickly jump to every section.
9107
9108Under X, RefTeX installs a "Ref" menu in the menu bar, with additional
9109commands. Press `?' to get help when a prompt mentions this feature.
9110Full documentation and customization examples are in the file
9111reftex.el. You can use the finder to view the file documentation:
9112C-h p --> tex --> reftex.el
9113
9114** Changes in BibTeX mode.
9115
9116*** Info documentation is now available.
9117
9118*** Don't allow parentheses in string constants anymore. This confused
9119both the BibTeX program and Emacs BibTeX mode.
9120
9121*** Renamed variable bibtex-mode-user-optional-fields to
9122bibtex-user-optional-fields.
9123
9124*** Removed variable bibtex-include-OPTannote
9125(use bibtex-user-optional-fields instead).
9126
9127*** New interactive functions to copy and kill fields and complete
9128entries to the BibTeX kill ring, from where they can be yanked back by
9129appropriate functions.
9130
9131*** New interactive functions for repositioning and marking of
3a426197 9132entries. They are bound by default to C-M-l and C-M-h.
3787e12e
GM
9133
9134*** New hook bibtex-clean-entry-hook. It is called after entry has
9135been cleaned.
9136
9137*** New variable bibtex-field-delimiters, which replaces variables
9138bibtex-field-{left|right}-delimiter.
9139
9140*** New variable bibtex-entry-delimiters to determine how entries
9141shall be delimited.
9142
9143*** Allow preinitialization of fields. See documentation of
9144bibtex-user-optional-fields, bibtex-entry-field-alist, and
9145bibtex-include-OPTkey for details.
9146
9147*** Book and InBook entries require either an author or an editor
9148field. This is now supported by bibtex.el. Alternative fields are
9149prefixed with `ALT'.
9150
9151*** New variable bibtex-entry-format, which replaces variable
9152bibtex-clean-entry-zap-empty-opts and allows specification of many
9153formatting options performed on cleaning an entry (see variable
9154documentation).
9155
9156*** Even more control on how automatic keys are generated. See
9157documentation of bibtex-generate-autokey for details. Transcriptions
9158for foreign languages other than German are now handled, too.
9159
9160*** New boolean user option bibtex-comma-after-last-field to decide if
9161comma should be inserted at end of last field.
9162
9163*** New boolean user option bibtex-align-at-equal-sign to determine if
9164alignment should be made at left side of field contents or at equal
9165signs. New user options to control entry layout (e.g. indentation).
9166
9167*** New function bibtex-fill-entry to realign entries.
9168
9169*** New function bibtex-reformat to reformat region or buffer.
9170
9171*** New function bibtex-convert-alien to convert a BibTeX database
9172from alien sources.
9173
9174*** New function bibtex-complete-key (similar to bibtex-complete-string)
9175to complete prefix to a key defined in buffer. Mainly useful in
9176crossref entries.
9177
9178*** New function bibtex-count-entries to count entries in buffer or
9179region.
9180
9181*** Added support for imenu.
9182
9183*** The function `bibtex-validate' now checks current region instead
9184of buffer if mark is active. Now it shows all errors of buffer in a
9185`compilation mode' buffer. You can use the normal commands (e.g.
9186`next-error') for compilation modes to jump to errors.
9187
9188*** New variable `bibtex-string-file-path' to determine where the files
9189from `bibtex-string-files' are searched.
9190
9191** Iso Accents mode now supports Latin-3 as an alternative.
9192
9193** The command next-error now opens blocks hidden by hideshow.
9194
9195** The function using-unix-filesystems has been replaced by the
9196functions add-untranslated-filesystem and remove-untranslated-filesystem.
9197Each of these functions takes the name of a drive letter or directory
9198as an argument.
9199
9200When a filesystem is added as untranslated, all files on it are read
9201and written in binary mode (no cr/lf translation is performed).
9202
9203** browse-url changes
9204
9205*** New methods for: Grail (browse-url-generic), MMM (browse-url-mmm),
9206Lynx in a separate xterm (browse-url-lynx-xterm) or in an Emacs window
9207(browse-url-lynx-emacs), remote W3 (browse-url-w3-gnudoit), generic
9208non-remote-controlled browsers (browse-url-generic) and associated
9209customization variables.
9210
9211*** New commands `browse-url-of-region' and `browse-url'.
9212
9213*** URLs marked up with <URL:...> (RFC1738) work if broken across
9214lines. Browsing methods can be associated with URL regexps
9215(e.g. mailto: URLs) via `browse-url-browser-function'.
9216
9217** Changes in Ediff
9218
9219*** Clicking Mouse-2 on a brief command description in Ediff control panel
9220pops up the Info file for this command.
9221
9222*** There is now a variable, ediff-autostore-merges, which controls whether
9223the result of a merge is saved in a file. By default, this is done only when
9224merge is done from a session group (eg, when merging files in two different
9225directories).
9226
9227*** Since Emacs 19.31 (this hasn't been announced before), Ediff can compare
9228and merge groups of files residing in different directories, or revisions of
9229files in the same directory.
9230
9231*** Since Emacs 19.31, Ediff can apply multi-file patches interactively.
9232The patches must be in the context format or GNU unified format. (The bug
9233related to the GNU format has now been fixed.)
9234
9235** Changes in Viper
9236
9237*** The startup file is now .viper instead of .vip
9238*** All variable/function names have been changed to start with viper-
9239 instead of vip-.
9240*** C-\ now simulates the meta-key in all Viper states.
9241*** C-z in Insert state now escapes to Vi for the duration of the next
9242Viper command. In Vi and Insert states, C-z behaves as before.
9243*** C-c \ escapes to Vi for one command if Viper is in Insert or Emacs states.
9244*** _ is no longer the meta-key in Vi state.
9245*** The variable viper-insert-state-cursor-color can be used to change cursor
9246color when Viper is in insert state.
9247*** If search lands the cursor near the top or the bottom of the window,
9248Viper pulls the window up or down to expose more context. The variable
9249viper-adjust-window-after-search controls this behavior.
9250
9251** Etags changes.
9252
9253*** In C, C++, Objective C and Java, Etags tags global variables by
9254default. The resulting tags files are inflated by 30% on average.
9255Use --no-globals to turn this feature off. Etags can also tag
9256variables which are members of structure-like constructs, but it does
9257not by default. Use --members to turn this feature on.
9258
9259*** C++ member functions are now recognized as tags.
9260
9261*** Java is tagged like C++. In addition, "extends" and "implements"
9262constructs are tagged. Files are recognised by the extension .java.
9263
9264*** Etags can now handle programs written in Postscript. Files are
9265recognised by the extensions .ps and .pdb (Postscript with C syntax).
9266In Postscript, tags are lines that start with a slash.
9267
9268*** Etags now handles Objective C and Objective C++ code. The usual C and
9269C++ tags are recognized in these languages; in addition, etags
9270recognizes special Objective C syntax for classes, class categories,
9271methods and protocols.
9272
9273*** Etags also handles Cobol. Files are recognised by the extension
9274.cobol. The tagged lines are those containing a word that begins in
9275column 8 and ends in a full stop, i.e. anything that could be a
9276paragraph name.
9277
9278*** Regexps in Etags now support intervals, as in ed or grep. The syntax of
9279an interval is \{M,N\}, and it means to match the preceding expression
9280at least M times and as many as N times.
9281
9282** The format for specifying a custom format for time-stamp to insert
9283in files has changed slightly.
9284
9285With the new enhancements to the functionality of format-time-string,
9286time-stamp-format will change to be eventually compatible with it.
9287This conversion is being done in two steps to maintain compatibility
9288with old time-stamp-format values.
9289
9290In the new scheme, alternate case is signified by the number-sign
9291(`#') modifier, rather than changing the case of the format character.
9292This feature is as yet incompletely implemented for compatibility
9293reasons.
9294
9295In the old time-stamp-format, all numeric fields defaulted to their
9296natural width. (With format-time-string, each format has a
9297fixed-width default.) In this version, you can specify the colon
9298(`:') modifier to a numeric conversion to mean "give me the historical
9299time-stamp-format width default." Do not use colon if you are
9300specifying an explicit width, as in "%02d".
9301
9302Numbers are no longer truncated to the requested width, except in the
9303case of "%02y", which continues to give a two-digit year. Digit
9304truncation probably wasn't being used for anything else anyway.
9305
9306The new formats will work with old versions of Emacs. New formats are
9307being recommended now to allow time-stamp-format to change in the
9308future to be compatible with format-time-string. The new forms being
9309recommended now will continue to work then.
9310
9311See the documentation string for the variable time-stamp-format for
9312details.
9313
9314** There are some additional major modes:
9315
9316dcl-mode, for editing VMS DCL files.
9317m4-mode, for editing files of m4 input.
9318meta-mode, for editing MetaFont and MetaPost source files.
9319
9320** In Shell mode, the command shell-copy-environment-variable lets you
9321copy the value of a specified environment variable from the subshell
9322into Emacs.
9323
9324** New Lisp packages include:
9325
9326*** battery.el displays battery status for laptops.
9327
9328*** M-x bruce (named after Lenny Bruce) is a program that might
9329be used for adding some indecent words to your email.
9330
9331*** M-x crisp-mode enables an emulation for the CRiSP editor.
9332
9333*** M-x dirtrack arranges for better tracking of directory changes
9334in shell buffers.
9335
9336*** The new library elint.el provides for linting of Emacs Lisp code.
9337See the documentation for `elint-initialize', `elint-current-buffer'
9338and `elint-defun'.
9339
9340*** M-x expand-add-abbrevs defines a special kind of abbrev which is
9341meant for programming constructs. These abbrevs expand like ordinary
9342ones, when you type SPC, but only at the end of a line and not within
9343strings or comments.
9344
9345These abbrevs can act as templates: you can define places within an
9346abbrev for insertion of additional text. Once you expand the abbrev,
9347you can then use C-x a p and C-x a n to move back and forth to these
9348insertion points. Thus you can conveniently insert additional text
9349at these points.
9350
9351*** filecache.el remembers the location of files so that you
9352can visit them by short forms of their names.
9353
9354*** find-func.el lets you find the definition of the user-loaded
9355Emacs Lisp function at point.
9356
9357*** M-x handwrite converts text to a "handwritten" picture.
9358
9359*** M-x iswitchb-buffer is a command for switching to a buffer, much like
9360switch-buffer, but it reads the argument in a more helpful way.
9361
9362*** M-x landmark implements a neural network for landmark learning.
9363
9364*** M-x locate provides a convenient interface to the `locate' program.
9365
9366*** M4 mode is a new mode for editing files of m4 input.
9367
9368*** mantemp.el creates C++ manual template instantiations
9369from the GCC error messages which indicate which instantiations are needed.
9370
9371*** mouse-copy.el provides a one-click copy and move feature.
9372You can drag a region with M-mouse-1, and it is automatically
9373inserted at point. M-Shift-mouse-1 deletes the text from its
9374original place after inserting the copy.
9375
9376*** mouse-drag.el lets you do scrolling by dragging Mouse-2
9377on the buffer.
9378
9379You click the mouse and move; that distance either translates into the
9380velocity to scroll (with mouse-drag-throw) or the distance to scroll
9381(with mouse-drag-drag). Horizontal scrolling is enabled when needed.
9382
9383Enable mouse-drag with:
9384 (global-set-key [down-mouse-2] 'mouse-drag-throw)
9385-or-
9386 (global-set-key [down-mouse-2] 'mouse-drag-drag)
9387
9388*** mspools.el is useful for determining which mail folders have
9389mail waiting to be read in them. It works with procmail.
9390
9391*** Octave mode is a major mode for editing files of input for Octave.
9392It comes with a facility for communicating with an Octave subprocess.
9393
9394*** ogonek
9395
9396The ogonek package provides functions for changing the coding of
9397Polish diacritic characters in buffers. Codings known from various
9398platforms are supported such as ISO8859-2, Mazovia, IBM Latin2, and
9399TeX. For example, you can change the coding from Mazovia to
9400ISO8859-2. Another example is a change of coding from ISO8859-2 to
9401prefix notation (in which `/a' stands for the aogonek character, for
9402instance) and vice versa.
9403
9404To use this package load it using
9405 M-x load-library [enter] ogonek
9406Then, you may get an explanation by calling one of
9407 M-x ogonek-jak -- in Polish
9408 M-x ogonek-how -- in English
9409The info specifies the commands and variables provided as well as the
9410ways of customization in `.emacs'.
9411
9412*** Interface to ph.
9413
9414Emacs provides a client interface to CCSO Nameservers (ph/qi)
9415
9416The CCSO nameserver is used in many universities to provide directory
9417services about people. ph.el provides a convenient Emacs interface to
9418these servers.
9419
9420*** uce.el is useful for replying to unsolicited commercial email.
9421
9422*** vcursor.el implements a "virtual cursor" feature.
9423You can move the virtual cursor with special commands
9424while the real cursor does not move.
9425
9426*** webjump.el is a "hot list" package which you can set up
9427for visiting your favorite web sites.
9428
9429*** M-x winner-mode is a minor mode which saves window configurations,
9430so you can move back to other configurations that you have recently used.
9431
9432** movemail change
9433
9434Movemail no longer needs to be installed setuid root in order for POP
9435mail retrieval to function properly. This is because it no longer
9436supports the RPOP (reserved-port POP) protocol; instead, it uses the
9437user's POP password to authenticate to the mail server.
9438
9439This change was made earlier, but not reported in NEWS before.
05197f40 9440\f
3787e12e
GM
9441* Emacs 20.1 changes for MS-DOS and MS-Windows.
9442
9443** Changes in handling MS-DOS/MS-Windows text files.
9444
9445Emacs handles three different conventions for representing
9446end-of-line: CRLF for MSDOS, LF for Unix and GNU, and CR (used on the
9447Macintosh). Emacs determines which convention is used in a specific
9448file based on the contents of that file (except for certain special
9449file names), and when it saves the file, it uses the same convention.
9450
9451To save the file and change the end-of-line convention, you can use
9452C-x RET f (set-buffer-file-coding-system) to specify a different
9453coding system for the buffer. Then, when you save the file, the newly
9454specified coding system will take effect. For example, to save with
9455LF, specify undecided-unix (or some other ...-unix coding system); to
9456save with CRLF, specify undecided-dos.
05197f40 9457\f
3787e12e
GM
9458* Lisp Changes in Emacs 20.1
9459
9460** Byte-compiled files made with Emacs 20 will, in general, work in
9461Emacs 19 as well, as long as the source code runs in Emacs 19. And
9462vice versa: byte-compiled files made with Emacs 19 should also run in
9463Emacs 20, as long as the program itself works in Emacs 20.
9464
9465** Windows-specific functions and variables have been renamed
9466to start with w32- instead of win32-.
9467
9468In hacker language, calling something a "win" is a form of praise. We
9469don't want to praise a non-free Microsoft system, so we don't call it
9470"win".
9471
9472** Basic Lisp changes
9473
9474*** A symbol whose name starts with a colon now automatically
9475evaluates to itself. Therefore such a symbol can be used as a constant.
9476
9477*** The defined purpose of `defconst' has been changed. It should now
9478be used only for values that should not be changed whether by a program
9479or by the user.
9480
9481The actual behavior of defconst has not been changed.
9482
9483*** There are new macros `when' and `unless'
9484
9485(when CONDITION BODY...) is short for (if CONDITION (progn BODY...))
9486(unless CONDITION BODY...) is short for (if CONDITION nil BODY...)
9487
9488*** Emacs now defines functions caar, cadr, cdar and cddr with their
9489usual Lisp meanings. For example, caar returns the car of the car of
9490its argument.
9491
9492*** equal, when comparing strings, now ignores their text properties.
9493
9494*** The new function `functionp' tests whether an object is a function.
9495
9496*** arrayp now returns t for char-tables and bool-vectors.
9497
9498*** Certain primitives which use characters (as integers) now get an
9499error if the integer is not a valid character code. These primitives
9500include insert-char, char-to-string, and the %c construct in the
9501`format' function.
9502
9503*** The `require' function now insists on adding a suffix, either .el
9504or .elc, to the file name. Thus, (require 'foo) will not use a file
9505whose name is just foo. It insists on foo.el or foo.elc.
9506
9507*** The `autoload' function, when the file name does not contain
9508either a directory name or the suffix .el or .elc, insists on
9509adding one of these suffixes.
9510
9511*** string-to-number now takes an optional second argument BASE
9512which specifies the base to use when converting an integer.
9513If BASE is omitted, base 10 is used.
9514
9515We have not implemented other radices for floating point numbers,
9516because that would be much more work and does not seem useful.
9517
9518*** substring now handles vectors as well as strings.
9519
9520*** The Common Lisp function eql is no longer defined normally.
9521You must load the `cl' library to define it.
9522
9523*** The new macro `with-current-buffer' lets you evaluate an expression
9524conveniently with a different current buffer. It looks like this:
9525
9526 (with-current-buffer BUFFER BODY-FORMS...)
9527
9528BUFFER is the expression that says which buffer to use.
9529BODY-FORMS say what to do in that buffer.
9530
9531*** The new primitive `save-current-buffer' saves and restores the
9532choice of current buffer, like `save-excursion', but without saving or
9533restoring the value of point or the mark. `with-current-buffer'
9534works using `save-current-buffer'.
9535
9536*** The new macro `with-temp-file' lets you do some work in a new buffer and
9537write the output to a specified file. Like `progn', it returns the value
9538of the last form.
9539
9540*** The new macro `with-temp-buffer' lets you do some work in a new buffer,
9541which is discarded after use. Like `progn', it returns the value of the
9542last form. If you wish to return the buffer contents, use (buffer-string)
9543as the last form.
9544
9545*** The new function split-string takes a string, splits it at certain
9546characters, and returns a list of the substrings in between the
9547matches.
9548
9549For example, (split-string "foo bar lose" " +") returns ("foo" "bar" "lose").
9550
9551*** The new macro with-output-to-string executes some Lisp expressions
9552with standard-output set up so that all output feeds into a string.
9553Then it returns that string.
9554
9555For example, if the current buffer name is `foo',
9556
9557(with-output-to-string
9558 (princ "The buffer is ")
9559 (princ (buffer-name)))
9560
9561returns "The buffer is foo".
9562
9563** Non-ASCII characters are now supported, if enable-multibyte-characters
9564is non-nil.
9565
9566These characters have character codes above 256. When inserted in the
9567buffer or stored in a string, they are represented as multibyte
9568characters that occupy several buffer positions each.
9569
9570*** When enable-multibyte-characters is non-nil, a single character in
9571a buffer or string can be two or more bytes (as many as four).
9572
9573Buffers and strings are still made up of unibyte elements;
9574character positions and string indices are always measured in bytes.
9575Therefore, moving forward one character can increase the buffer
9576position by 2, 3 or 4. The function forward-char moves by whole
9577characters, and therefore is no longer equivalent to
9578 (lambda (n) (goto-char (+ (point) n))).
9579
9580ASCII characters (codes 0 through 127) are still single bytes, always.
9581Sequences of byte values 128 through 255 are used to represent
9582non-ASCII characters. These sequences are called "multibyte
9583characters".
9584
9585The first byte of a multibyte character is always in the range 128
9586through 159 (octal 0200 through 0237). These values are called
9587"leading codes". The second and subsequent bytes are always in the
9588range 160 through 255 (octal 0240 through 0377). The first byte, the
9589leading code, determines how many bytes long the sequence is.
9590
9591*** The function forward-char moves over characters, and therefore
9592(forward-char 1) may increase point by more than 1 if it moves over a
9593multibyte character. Likewise, delete-char always deletes a
9594character, which may be more than one buffer position.
9595
9596This means that some Lisp programs, which assume that a character is
9597always one buffer position, need to be changed.
9598
9599However, all ASCII characters are always one buffer position.
9600
9601*** The regexp [\200-\377] no longer matches all non-ASCII characters,
9602because when enable-multibyte-characters is non-nil, these characters
9603have codes that are not in the range octal 200 to octal 377. However,
9604the regexp [^\000-\177] does match all non-ASCII characters,
9605guaranteed.
9606
9607*** The function char-boundary-p returns non-nil if position POS is
9608between two characters in the buffer (not in the middle of a
9609character).
9610
9611When the value is non-nil, it says what kind of character follows POS:
9612
9613 0 if POS is at an ASCII character or at the end of range,
9614 1 if POS is before a 2-byte length multi-byte form,
9615 2 if POS is at a head of 3-byte length multi-byte form,
9616 3 if POS is at a head of 4-byte length multi-byte form,
9617 4 if POS is at a head of multi-byte form of a composite character.
9618
9619*** The function char-bytes returns how many bytes the character CHAR uses.
9620
9621*** Strings can contain multibyte characters. The function
9622`length' returns the string length counting bytes, which may be
9623more than the number of characters.
9624
9625You can include a multibyte character in a string constant by writing
9626it literally. You can also represent it with a hex escape,
9627\xNNNNNNN..., using as many digits as necessary. Any character which
9628is not a valid hex digit terminates this construct. If you want to
9629follow it with a character that is a hex digit, write backslash and
9630newline in between; that will terminate the hex escape.
9631
9632*** The function concat-chars takes arguments which are characters
9633and returns a string containing those characters.
9634
9635*** The function sref access a multibyte character in a string.
9636(sref STRING INDX) returns the character in STRING at INDEX. INDEX
9637counts from zero. If INDEX is at a position in the middle of a
9638character, sref signals an error.
9639
9640*** The function chars-in-string returns the number of characters
9641in a string. This is less than the length of the string, if the
9642string contains multibyte characters (the length counts bytes).
9643
9644*** The function chars-in-region returns the number of characters
9645in a region from BEG to END. This is less than (- END BEG) if the
9646region contains multibyte characters (the length counts bytes).
9647
9648*** The function string-to-list converts a string to a list of
9649the characters in it. string-to-vector converts a string
9650to a vector of the characters in it.
9651
9652*** The function store-substring alters part of the contents
9653of a string. You call it as follows:
9654
9655 (store-substring STRING IDX OBJ)
9656
9657This says to alter STRING, by storing OBJ starting at index IDX in
9658STRING. OBJ may be either a character or a (smaller) string.
9659This function really does alter the contents of STRING.
9660Since it is impossible to change the length of an existing string,
9661it is an error if OBJ doesn't fit within STRING's actual length.
9662
9663*** char-width returns the width (in columns) of the character CHAR,
9664if it were displayed in the current buffer and the selected window.
9665
9666*** string-width returns the width (in columns) of the text in STRING,
9667if it were displayed in the current buffer and the selected window.
9668
9669*** truncate-string-to-width shortens a string, if necessary,
9670to fit within a certain number of columns. (Of course, it does
9671not alter the string that you give it; it returns a new string
9672which contains all or just part of the existing string.)
9673
9674(truncate-string-to-width STR END-COLUMN &optional START-COLUMN PADDING)
9675
9676This returns the part of STR up to column END-COLUMN.
9677
9678The optional argument START-COLUMN specifies the starting column.
9679If this is non-nil, then the first START-COLUMN columns of the string
9680are not included in the resulting value.
9681
9682The optional argument PADDING, if non-nil, is a padding character to be added
9683at the beginning and end the resulting string, to extend it to exactly
9684WIDTH columns. If PADDING is nil, that means do not pad; then, if STRING
9685is narrower than WIDTH, the value is equal to STRING.
9686
9687If PADDING and START-COLUMN are both non-nil, and if there is no clean
9688place in STRING that corresponds to START-COLUMN (because one
9689character extends across that column), then the padding character
9690PADDING is added one or more times at the beginning of the result
9691string, so that its columns line up as if it really did start at
9692column START-COLUMN.
9693
9694*** When the functions in the list after-change-functions are called,
9695the third argument is the number of bytes in the pre-change text, not
9696necessarily the number of characters. It is, in effect, the
9697difference in buffer position between the beginning and the end of the
9698changed text, before the change.
9699
9700*** The characters Emacs uses are classified in various character
9701sets, each of which has a name which is a symbol. In general there is
9702one character set for each script, not for each language.
9703
9704**** The function charsetp tests whether an object is a character set name.
9705
9706**** The variable charset-list holds a list of character set names.
9707
9708**** char-charset, given a character code, returns the name of the character
9709set that the character belongs to. (The value is a symbol.)
9710
9711**** split-char, given a character code, returns a list containing the
9712name of the character set, followed by one or two byte-values
9713which identify the character within that character set.
9714
9715**** make-char, given a character set name and one or two subsequent
9716byte-values, constructs a character code. This is roughly the
9717opposite of split-char.
9718
9719**** find-charset-region returns a list of the character sets
9720of all the characters between BEG and END.
9721
9722**** find-charset-string returns a list of the character sets
9723of all the characters in a string.
9724
9725*** Here are the Lisp facilities for working with coding systems
9726and specifying coding systems.
9727
9728**** The function coding-system-list returns a list of all coding
9729system names (symbols). With optional argument t, it returns a list
9730of all distinct base coding systems, not including variants.
9731(Variant coding systems are those like latin-1-dos, latin-1-unix
9732and latin-1-mac which specify the end-of-line conversion as well
9733as what to do about code conversion.)
9734
9735**** coding-system-p tests a symbol to see if it is a coding system
9736name. It returns t if so, nil if not.
9737
9738**** file-coding-system-alist specifies which coding systems to use
9739for certain file names. It works like network-coding-system-alist,
9740except that the PATTERN is matched against the file name.
9741
9742Each element has the format (PATTERN . VAL), where PATTERN determines
9743which file names the element applies to. PATTERN should be a regexp
9744to match against a file name.
9745
9746VAL is a coding system, a cons cell containing two coding systems, or
9747a function symbol. If VAL is a coding system, it is used for both
9748decoding what received from the network stream and encoding what sent
9749to the network stream. If VAL is a cons cell containing two coding
9750systems, the car specifies the coding system for decoding, and the cdr
9751specifies the coding system for encoding.
9752
9753If VAL is a function symbol, the function must return a coding system
9754or a cons cell containing two coding systems, which is used as above.
9755
9756**** The variable network-coding-system-alist specifies
9757the coding system to use for network sockets.
9758
9759Each element has the format (PATTERN . VAL), where PATTERN determines
9760which network sockets the element applies to. PATTERN should be
9761either a port number or a regular expression matching some network
9762service names.
9763
9764VAL is a coding system, a cons cell containing two coding systems, or
9765a function symbol. If VAL is a coding system, it is used for both
9766decoding what received from the network stream and encoding what sent
9767to the network stream. If VAL is a cons cell containing two coding
9768systems, the car specifies the coding system for decoding, and the cdr
9769specifies the coding system for encoding.
9770
9771If VAL is a function symbol, the function must return a coding system
9772or a cons cell containing two coding systems, which is used as above.
9773
9774**** process-coding-system-alist specifies which coding systems to use
9775for certain subprocess. It works like network-coding-system-alist,
9776except that the PATTERN is matched against the program name used to
9777start the subprocess.
9778
9779**** The variable default-process-coding-system specifies the coding
9780systems to use for subprocess (and net connection) input and output,
9781when nothing else specifies what to do. The value is a cons cell
9782(OUTPUT-CODING . INPUT-CODING). OUTPUT-CODING applies to output
9783to the subprocess, and INPUT-CODING applies to input from it.
9784
9785**** The variable coding-system-for-write, if non-nil, specifies the
9786coding system to use for writing a file, or for output to a synchronous
9787subprocess.
9788
9789It also applies to any asynchronous subprocess or network connection,
9790but in a different way: the value of coding-system-for-write when you
9791start the subprocess or connection affects that subprocess or
9792connection permanently or until overridden.
9793
9794The variable coding-system-for-write takes precedence over
9795file-coding-system-alist, process-coding-system-alist and
9796network-coding-system-alist, and all other methods of specifying a
9797coding system for output. But most of the time this variable is nil.
9798It exists so that Lisp programs can bind it to a specific coding
9799system for one operation at a time.
9800
9801**** coding-system-for-read applies similarly to input from
9802files, subprocesses or network connections.
9803
9804**** The function process-coding-system tells you what
9805coding systems(s) an existing subprocess is using.
9806The value is a cons cell,
9807 (DECODING-CODING-SYSTEM . ENCODING-CODING-SYSTEM)
9808where DECODING-CODING-SYSTEM is used for decoding output from
9809the subprocess, and ENCODING-CODING-SYSTEM is used for encoding
9810input to the subprocess.
9811
9812**** The function set-process-coding-system can be used to
9813change the coding systems in use for an existing subprocess.
9814
9815** Emacs has a new facility to help users manage the many
9816customization options. To make a Lisp program work with this facility,
9817you need to use the new macros defgroup and defcustom.
9818
9819You use defcustom instead of defvar, for defining a user option
9820variable. The difference is that you specify two additional pieces of
9821information (usually): the "type" which says what values are
9822legitimate, and the "group" which specifies the hierarchy for
9823customization.
9824
9825Thus, instead of writing
9826
9827 (defvar foo-blurgoze nil
9828 "*Non-nil means that foo will act very blurgozely.")
9829
9830you would now write this:
9831
9832 (defcustom foo-blurgoze nil
9833 "*Non-nil means that foo will act very blurgozely."
9834 :type 'boolean
9835 :group foo)
9836
9837The type `boolean' means that this variable has only
9838two meaningful states: nil and non-nil. Other type values
9839describe other possibilities; see the manual for Custom
9840for a description of them.
9841
9842The "group" argument is used to specify a group which the option
9843should belong to. You define a new group like this:
9844
9845 (defgroup ispell nil
9846 "Spell checking using Ispell."
9847 :group 'processes)
9848
9849The "group" argument in defgroup specifies the parent group. The root
9850group is called `emacs'; it should not contain any variables itself,
9851but only other groups. The immediate subgroups of `emacs' correspond
9852to the keywords used by C-h p. Under these subgroups come
9853second-level subgroups that belong to individual packages.
9854
9855Each Emacs package should have its own set of groups. A simple
9856package should have just one group; a more complex package should
9857have a hierarchy of its own groups. The sole or root group of a
9858package should be a subgroup of one or more of the "keyword"
9859first-level subgroups.
9860
9861** New `widget' library for inserting UI components in buffers.
9862
9863This library, used by the new custom library, is documented in a
9864separate manual that accompanies Emacs.
9865
9866** easy-mmode
9867
9868The easy-mmode package provides macros and functions that make
9869developing minor modes easier. Roughly, the programmer has to code
9870only the functionality of the minor mode. All the rest--toggles,
9871predicate, and documentation--can be done in one call to the macro
9872`easy-mmode-define-minor-mode' (see the documentation). See also
9873`easy-mmode-define-keymap'.
9874
9875** Text property changes
9876
9877*** The `intangible' property now works on overlays as well as on a
9878text property.
9879
9880*** The new functions next-char-property-change and
9881previous-char-property-change scan through the buffer looking for a
9882place where either a text property or an overlay might change. The
9883functions take two arguments, POSITION and LIMIT. POSITION is the
9884starting position for the scan. LIMIT says where to stop the scan.
9885
9886If no property change is found before LIMIT, the value is LIMIT. If
9887LIMIT is nil, scan goes to the beginning or end of the accessible part
9888of the buffer. If no property change is found, the value is the
9889position of the beginning or end of the buffer.
9890
9891*** In the `local-map' text property or overlay property, the property
9892value can now be a symbol whose function definition is a keymap. This
9893is an alternative to using the keymap itself.
9894
9895** Changes in invisibility features
9896
9897*** Isearch can now temporarily show parts of the buffer which are
9898hidden by an overlay with a invisible property, when the search match
9899is inside that portion of the buffer. To enable this the overlay
9900should have a isearch-open-invisible property which is a function that
9901would be called having the overlay as an argument, the function should
9902make the overlay visible.
9903
9904During incremental search the overlays are shown by modifying the
9905invisible and intangible properties, if beside this more actions are
9906needed the overlay should have a isearch-open-invisible-temporary
9907which is a function. The function is called with 2 arguments: one is
9908the overlay and the second is nil when it should show the overlay and
9909t when it should hide it.
9910
9911*** add-to-invisibility-spec, remove-from-invisibility-spec
9912
9913Modes that use overlays to hide portions of a buffer should set the
9914invisible property of the overlay to the mode's name (or another symbol)
9915and modify the `buffer-invisibility-spec' to include that symbol.
9916Use `add-to-invisibility-spec' and `remove-from-invisibility-spec' to
9917manipulate the `buffer-invisibility-spec'.
9918Here is an example of how to do this:
9919
9920 ;; If we want to display an ellipsis:
9921 (add-to-invisibility-spec '(my-symbol . t))
9922 ;; If you don't want ellipsis:
9923 (add-to-invisibility-spec 'my-symbol)
9924
9925 ...
9926 (overlay-put (make-overlay beginning end) 'invisible 'my-symbol)
9927
9928 ...
9929 ;; When done with the overlays:
9930 (remove-from-invisibility-spec '(my-symbol . t))
9931 ;; Or respectively:
9932 (remove-from-invisibility-spec 'my-symbol)
9933
9934** Changes in syntax parsing.
9935
9936*** The syntax-directed buffer-scan functions (such as
9937`parse-partial-sexp', `forward-word' and similar functions) can now
9938obey syntax information specified by text properties, if the variable
9939`parse-sexp-lookup-properties' is non-nil.
9940
9941If the value of `parse-sexp-lookup-properties' is nil, the behavior
9942is as before: the syntax-table of the current buffer is always
9943used to determine the syntax of the character at the position.
9944
9945When `parse-sexp-lookup-properties' is non-nil, the syntax of a
9946character in the buffer is calculated thus:
9947
9948 a) if the `syntax-table' text-property of that character
9949 is a cons, this cons becomes the syntax-type;
9950
9951 Valid values of `syntax-table' text-property are: nil, a valid
9952 syntax-table, and a valid syntax-table element, i.e.,
9953 a cons cell of the form (SYNTAX-CODE . MATCHING-CHAR).
9954
9955 b) if the character's `syntax-table' text-property
9956 is a syntax table, this syntax table is used
9957 (instead of the syntax-table of the current buffer) to
9958 determine the syntax type of the character.
9959
9960 c) otherwise the syntax-type is determined by the syntax-table
9961 of the current buffer.
9962
9963*** The meaning of \s in regular expressions is also affected by the
9964value of `parse-sexp-lookup-properties'. The details are the same as
9965for the syntax-directed buffer-scan functions.
9966
9967*** There are two new syntax-codes, `!' and `|' (numeric values 14
9968and 15). A character with a code `!' starts a comment which is ended
9969only by another character with the same code (unless quoted). A
9970character with a code `|' starts a string which is ended only by
9971another character with the same code (unless quoted).
9972
9973These codes are mainly meant for use as values of the `syntax-table'
9974text property.
9975
9976*** The function `parse-partial-sexp' has new semantics for the sixth
9977arg COMMENTSTOP. If it is `syntax-table', parse stops after the start
9978of a comment or a string, or after end of a comment or a string.
9979
9980*** The state-list which the return value from `parse-partial-sexp'
9981(and can also be used as an argument) now has an optional ninth
9982element: the character address of the start of last comment or string;
9983nil if none. The fourth and eighth elements have special values if the
9984string/comment is started by a "!" or "|" syntax-code.
9985
9986*** Since new features of `parse-partial-sexp' allow a complete
9987syntactic parsing, `font-lock' no longer supports
9988`font-lock-comment-start-regexp'.
9989
9990** Changes in face features
9991
9992*** The face functions are now unconditionally defined in Emacs, even
9993if it does not support displaying on a device that supports faces.
9994
9995*** The function face-documentation returns the documentation string
9996of a face (or nil if it doesn't have one).
9997
9998*** The function face-bold-p returns t if a face should be bold.
9999set-face-bold-p sets that flag.
10000
10001*** The function face-italic-p returns t if a face should be italic.
10002set-face-italic-p sets that flag.
10003
10004*** You can now specify foreground and background colors for text
10005by adding elements of the form (foreground-color . COLOR-NAME)
10006and (background-color . COLOR-NAME) to the list of faces in
10007the `face' property (either the character's text property or an
10008overlay property).
10009
10010This means that you no longer need to create named faces to use
10011arbitrary colors in a Lisp package.
10012
10013** Changes in file-handling functions
10014
10015*** File-access primitive functions no longer discard an extra redundant
10016directory name from the beginning of the file name. In other words,
10017they no longer do anything special with // or /~. That conversion
10018is now done only in substitute-in-file-name.
10019
10020This makes it possible for a Lisp program to open a file whose name
10021begins with ~.
10022
10023*** If copy-file is unable to set the date of the output file,
10024it now signals an error with the condition file-date-error.
10025
10026*** The inode number returned by file-attributes may be an integer (if
10027the number fits in a Lisp integer) or a list of integers.
10028
10029*** insert-file-contents can now read from a special file,
10030as long as the arguments VISIT and REPLACE are nil.
10031
10032*** The RAWFILE arg to find-file-noselect, if non-nil, now suppresses
10033character code conversion as well as other things.
10034
10035Meanwhile, this feature does work with remote file names
10036(formerly it did not).
10037
10038*** Lisp packages which create temporary files should use the TMPDIR
10039environment variable to decide which directory to put them in.
10040
10041*** interpreter-mode-alist elements now specify regexps
10042instead of constant strings.
10043
10044*** expand-file-name no longer treats `//' or `/~' specially. It used
10045to delete all the text of a file name up through the first slash of
10046any `//' or `/~' sequence. Now it passes them straight through.
10047
10048substitute-in-file-name continues to treat those sequences specially,
10049in the same way as before.
10050
10051*** The variable `format-alist' is more general now.
10052The FROM-FN and TO-FN in a format definition can now be strings
10053which specify shell commands to use as filters to perform conversion.
10054
10055*** The new function access-file tries to open a file, and signals an
10056error if that fails. If the open succeeds, access-file does nothing
10057else, and returns nil.
10058
10059*** The function insert-directory now signals an error if the specified
10060directory cannot be listed.
10061
10062** Changes in minibuffer input
10063
10064*** The functions read-buffer, read-variable, read-command, read-string
10065read-file-name, read-from-minibuffer and completing-read now take an
10066additional argument which specifies the default value. If this
10067argument is non-nil, it should be a string; that string is used in two
10068ways:
10069
10070 It is returned if the user enters empty input.
10071 It is available through the history command M-n.
10072
10073*** The functions read-string, read-from-minibuffer,
10074read-no-blanks-input and completing-read now take an additional
10075argument INHERIT-INPUT-METHOD. If this is non-nil, then the
10076minibuffer inherits the current input method and the setting of
10077enable-multibyte-characters from the previously current buffer.
10078
10079In an interactive spec, you can use M instead of s to read an
10080argument in this way.
10081
10082*** All minibuffer input functions discard text properties
10083from the text you enter in the minibuffer, unless the variable
10084minibuffer-allow-text-properties is non-nil.
10085
10086** Echo area features
10087
10088*** Clearing the echo area now runs the normal hook
10089echo-area-clear-hook. Note that the echo area can be used while the
10090minibuffer is active; in that case, the minibuffer is still active
10091after the echo area is cleared.
10092
10093*** The function current-message returns the message currently displayed
10094in the echo area, or nil if there is none.
10095
10096** Keyboard input features
10097
10098*** tty-erase-char is a new variable that reports which character was
10099set up as the terminal's erase character when time Emacs was started.
10100
10101*** num-nonmacro-input-events is the total number of input events
10102received so far from the terminal. It does not count those generated
10103by keyboard macros.
10104
10105** Frame-related changes
10106
10107*** make-frame runs the normal hook before-make-frame-hook just before
10108creating a frame, and just after creating a frame it runs the abnormal
10109hook after-make-frame-functions with the new frame as arg.
10110
10111*** The new hook window-configuration-change-hook is now run every time
10112the window configuration has changed. The frame whose configuration
10113has changed is the selected frame when the hook is run.
10114
10115*** Each frame now independently records the order for recently
10116selected buffers, in its buffer-list frame parameter, so that the
10117value of other-buffer is now based on the buffers recently displayed
10118in the selected frame.
10119
10120*** The value of the frame parameter vertical-scroll-bars
10121is now `left', `right' or nil. A non-nil value specifies
10122which side of the window to put the scroll bars on.
10123
10124** X Windows features
10125
10126*** You can examine X resources for other applications by binding
10127x-resource-class around a call to x-get-resource. The usual value of
10128x-resource-class is "Emacs", which is the correct value for Emacs.
10129
10130*** In menus, checkboxes and radio buttons now actually work.
10131The menu displays the current status of the box or button.
10132
10133*** The function x-list-fonts now takes an optional fourth argument
10134MAXIMUM which sets a limit on how many matching fonts to return.
10135A smaller value of MAXIMUM makes the function faster.
10136
10137If the only question is whether *any* font matches the pattern,
10138it is good to supply 1 for this argument.
10139
10140** Subprocess features
10141
10142*** A reminder: it is no longer necessary for subprocess filter
10143functions and sentinels to do save-match-data, because Emacs does this
10144automatically.
10145
10146*** The new function shell-command-to-string executes a shell command
10147and returns the output from the command as a string.
10148
10149*** The new function process-contact returns t for a child process,
10150and (HOSTNAME SERVICE) for a net connection.
10151
10152** An error in running pre-command-hook or post-command-hook
10153does clear the variable to nil. The documentation was wrong before.
10154
10155** In define-key-after, if AFTER is t, the new binding now always goes
10156at the end of the keymap. If the keymap is a menu, this means it
10157goes after the other menu items.
10158
10159** If you have a program that makes several changes in the same area
10160of the buffer, you can use the macro combine-after-change-calls
10161around that Lisp code to make it faster when after-change hooks
10162are in use.
10163
10164The macro arranges to call the after-change functions just once for a
10165series of several changes--if that seems safe.
10166
10167Don't alter the variables after-change-functions and
10168after-change-function within the body of a combine-after-change-calls
10169form.
10170
10171** If you define an abbrev (with define-abbrev) whose EXPANSION
10172is not a string, then the abbrev does not expand in the usual sense,
10173but its hook is still run.
10174
10175** Normally, the Lisp debugger is not used (even if you have enabled it)
10176for errors that are handled by condition-case.
10177
10178If you set debug-on-signal to a non-nil value, then the debugger is called
10179regardless of whether there is a handler for the condition. This is
10180useful for debugging problems that happen inside of a condition-case.
10181
10182This mode of operation seems to be unreliable in other ways. Errors that
10183are normal and ought to be handled, perhaps in timers or process
10184filters, will instead invoke the debugger. So don't say you weren't
10185warned.
10186
10187** The new variable ring-bell-function lets you specify your own
10188way for Emacs to "ring the bell".
10189
10190** If run-at-time's TIME argument is t, the action is repeated at
10191integral multiples of REPEAT from the epoch; this is useful for
10192functions like display-time.
10193
10194** You can use the function locate-library to find the precise file
10195name of a Lisp library. This isn't new, but wasn't documented before.
10196
10197** Commands for entering view mode have new optional arguments that
10198can be used from Lisp. Low-level entrance to and exit from view mode
10199is done by functions view-mode-enter and view-mode-exit.
10200
10201** batch-byte-compile-file now makes Emacs return a nonzero status code
10202if there is an error in compilation.
10203
10204** pop-to-buffer, switch-to-buffer-other-window and
10205switch-to-buffer-other-frame now accept an additional optional
10206argument NORECORD, much like switch-to-buffer. If it is non-nil,
10207they don't put the buffer at the front of the buffer list.
10208
10209** If your .emacs file leaves the *scratch* buffer non-empty,
10210Emacs does not display the startup message, so as to avoid changing
10211the *scratch* buffer.
10212
10213** The new function regexp-opt returns an efficient regexp to match a string.
10214The arguments are STRINGS and (optionally) PAREN. This function can be used
10215where regexp matching or searching is intensively used and speed is important,
10216e.g., in Font Lock mode.
10217
10218** The variable buffer-display-count is local to each buffer,
10219and is incremented each time the buffer is displayed in a window.
10220It starts at 0 when the buffer is created.
10221
10222** The new function compose-mail starts composing a mail message
10223using the user's chosen mail composition agent (specified with the
10224variable mail-user-agent). It has variants compose-mail-other-window
10225and compose-mail-other-frame.
10226
10227** The `user-full-name' function now takes an optional parameter which
10228can either be a number (the UID) or a string (the login name). The
10229full name of the specified user will be returned.
10230
10231** Lisp packages that load files of customizations, or any other sort
10232of user profile, should obey the variable init-file-user in deciding
10233where to find it. They should load the profile of the user name found
10234in that variable. If init-file-user is nil, meaning that the -q
10235option was used, then Lisp packages should not load the customization
10236files at all.
10237
10238** format-time-string now allows you to specify the field width
10239and type of padding. This works as in printf: you write the field
10240width as digits in the middle of a %-construct. If you start
10241the field width with 0, it means to pad with zeros.
10242
10243For example, %S normally specifies the number of seconds since the
10244minute; %03S means to pad this with zeros to 3 positions, %_3S to pad
10245with spaces to 3 positions. Plain %3S pads with zeros, because that
10246is how %S normally pads to two positions.
10247
10248** thing-at-point now supports a new kind of "thing": url.
10249
10250** imenu.el changes.
10251
10252You can now specify a function to be run when selecting an
10253item from menu created by imenu.
10254
10255An example of using this feature: if we define imenu items for the
10256#include directives in a C file, we can open the included file when we
10257select one of those items.
05197f40 10258\f
3787e12e 10259* For older news, see the file ONEWS
a933dad1
DL
10260
10261----------------------------------------------------------------------
10262Copyright information:
10263
75d80cc6 10264Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc.
a933dad1
DL
10265
10266 Permission is granted to anyone to make or distribute verbatim copies
10267 of this document as received, in any medium, provided that the
10268 copyright notice and this permission notice are preserved,
10269 thus giving the recipient permission to redistribute in turn.
10270
10271 Permission is granted to distribute modified versions
10272 of this document, or of portions of it,
10273 under the above conditions, provided also that they
10274 carry prominent notices stating who last changed them.
05197f40 10275\f
a933dad1
DL
10276Local variables:
10277mode: outline
10278paragraph-separate: "[ \f]*$"
10279end: