* lisp/simple.el (mark-word): Mark more if repeated.
[emacs.git] / etc / NEWS
blob06e6553a54ba32497fec26e5c05ec0bf3aa30b3b
1 GNU Emacs NEWS -- history of user-visible changes.  2001-03-15
2 Copyright (C) 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
3 See the end for copying conditions.
5 Please send Emacs bug reports to bug-gnu-emacs@gnu.org.
6 For older news, see the file ONEWS
8 Temporary note:
9  +++ indicates that the appropriate manual has already been updated.
10  --- means no change in the manuals is called for.
11 When you add a new item, please add it without either +++ or ---
12 so we will look at it
15 * Installation Changes in Emacs 21.3
17 ** Emacs now supports new configure options `--program-prefix',
18 `--program-suffix' and `--program-transform-name' that affect the names of
19 installed programs.
21 ---
22 ** Leim is now part of the Emacs distribution.
23 You no longer need to download a separate tarball in order to build
24 Emacs with Leim.
26 ---
27 ** Support for FreeBSD/Alpha has been added.
29 ---
30 ** Support for BSD/OS 5.0 was added.
33 * Changes in Emacs 21.3
35 ** The new command `describe-text-at' pops up a buffer with description
36 of text properties, overlays, and widgets at point, and lets you get
37 more information about them, by clicking on mouse-sensitive areas or
38 moving there and pressing RET.
40 ** font-lock: in modes like C and Lisp where the fontification assumes that
41 an open-paren in column 0 is always outside of any string or comment,
42 font-lock now highlights any such open-paren-in-column-zero in bold-red
43 if it is inside a string or a comment, to indicate that it can cause
44 trouble with fontification and/or indentation.
46 +++
47 ** There's a new face `minibuffer-prompt'.
48 Emacs adds this face to the list of text properties stored in the
49 variable `minibuffer-prompt-properties', which is used to display the
50 prompt string.
52 +++
53 ** The new face `mode-line-inactive' is used to display the mode line
54 of non-selected windows.  The `mode-line' face is now used to display
55 the mode line of the currently selected window.
57 The new variable `mode-line-in-non-selected-windows' controls whether
58 the `mode-line-inactive' face is used.
60 ** A menu item "Show/Hide" was added to the top-level menu "Options".
61 This menu allows you to turn various display features on and off (like
62 tool bar and the menu bar itself).  You can also move the vertical
63 scroll bar to either side here or turn it off completely.  There is also
64 a menu-item to toggle displaying of current date and time, current line
65 and column number in the mode-line.
67 ** Emacs can now indicate in the mode-line the presence of new e-mails in
68 directory in addition to file.  See the documentation of the user option
69 `display-time-mail-directory'.
71 +++
72 ** The new option `Info-scroll-prefer-subnodes' causes Info to behave
73 like the stand-alone Info reader (from the GNU Texinfo package) as far
74 as motion between nodes and their subnodes is concerned.  If it is t
75 (the default), Emacs behaves as before when you type SPC in a menu: it
76 visits the subnode pointed to by the first menu entry.  If this option
77 is nil, SPC scrolls to the end of the current node, and only then goes
78 to the first menu item, like the stand-alone reader does.
80 This change was already in Emacs 21.1, but wasn't advertised in the
81 NEWS.
83 ---
84 ** LDAP support now defaults to ldapsearch from OpenLDAP version 2.
86 +++
87 ** You can now disable pc-selection-mode after enabling it.
88 M-x pc-selection-mode behaves like a proper minor mode, and with no
89 argument it toggles the mode.
91 Turning off PC-Selection mode restores the global key bindings
92 that were replaced by turning on the mode.
94 ** Changes in support of colors on character terminals
96 +++
97 *** The new command-line option --color=MODE lets you specify a standard
98 mode for a tty color support.  It is meant to be used on character
99 terminals whose capabilities are not set correctly in the terminal
100 database, or with terminal emulators which support colors, but don't
101 set the TERM environment variable to a name of a color-capable
102 terminal.  "emacs --color" uses the same color commands as GNU `ls'
103 when invoked with "ls --color", so if your terminal can support colors
104 in "ls --color", it will support "emacs --color" as well.  See the
105 user manual for the possible values of the MODE parameter.
108 *** Emacs now supports several character terminals which provide more
109 than 8 colors.  For example, for `xterm', 16-color, 88-color, and
110 256-color modes are supported.  Emacs automatically notes at startup
111 the extended number of colors, and defines the appropriate entries for
112 all of these colors.
115 *** There's a new support for colors on `rxvt' terminal emulator.
118 ** Emacs can now be invoked in full-screen mode on a windowed display.
120 When Emacs is invoked on a window system, the new command-line options
121 `--fullwidth', `--fullheight', and `--fullscreen' produce a frame
122 whose width, height, or both width and height take up the entire
123 screen size.  (For now, this works only on GNU and Unix systems, and
124 not with every window manager.)
126 ** Info-index finally offers completion.
128 ** Controlling the left and right fringe widths.
130 The left and right fringe widths can now be controlled by setting the
131 `left-fringe' and `right-fringe' frame parameters to an integer value
132 specifying the width in pixels.  Setting the width to 0 effectively
133 removes the corresponding fringe.
135 The actual fringe widths may deviate from the specified widths, since
136 the combined fringe widths must match an integral number of columns.
137 The extra width is distributed evenly between the left and right fringe.
138 For force a specific fringe width, specify the width as a negative
139 integer (if both widths are negative, only the left fringe gets the
140 specified width).
142 Setting the width to nil (the default), restores the default fringe
143 width which is the minimum number of pixels necessary to display any
144 of the currently defined fringe bitmaps.  The width of the built-in
145 fringe bitmaps is 8 pixels.
147 ** Changes in C-h bindings:
149 C-h e displays the *Messages* buffer.
151 C-h followed by a control character is used for displaying files
152     that do not change:
154 C-h C-f displays the FAQ.
155 C-h C-e displays the PROBLEMS file.
157 The info-search bindings on C-h C-f, C-h C-k and C-h C-i
158 have been moved to C-h F, C-h K and C-h S.
160 C-h c, C-h k, C-h w, and C-h f now handle remapped interactive commands.
162 - C-h c and C-h k report the actual command (after possible remapping)
163   run by the key sequence.
165 - C-h w and C-h f on a command which has been remapped now report the
166   command it is remapped to, and the keys which can be used to run
167   that command.
169 For example, if C-k is bound to kill-line, and kill-line is remapped
170 to new-kill-line, these commands now report: 
172 - C-h c and C-h k C-k reports:
173   C-k runs the command new-kill-line
175 - C-h w and C-h f kill-line reports:
176   kill-line is remapped to new-kill-line which is on C-k, <deleteline>
178 - C-h w and C-h f new-kill-line reports:
179   new-kill-line is on C-k
181 ** C-w in incremental search now grabs either a character or a word,
182 making the decision in a heuristic way.  This new job is done by the
183 command `isearch-yank-word-or-char'.  To restore the old behavior,
184 bind C-w to `isearch-yank-word' in `isearch-mode-map'.
186 ** In GUD mode when talking to GDB, C-x C-a C-j "jumps" the program
187 counter to the specified source line (the one where point is).
189 ** GUD mode improvements for jdb:
191 *** Search for source files using jdb classpath and class
192     information. Fast startup since there is no need to scan all
193     source files up front. There is also no need to create and maintain
194     lists of source directories to scan. Look at `gud-jdb-use-classpath'
195     and `gud-jdb-classpath' customization variables documentation.
197 *** Supports the standard breakpoint (gud-break, gud-clear)
198     set/clear operations from java source files under the classpath, stack
199     traversal (gud-up, gud-down), and run until current stack finish
200     (gud-finish).
202 *** Supports new jdb (Java 1.2 and later) in addition to oldjdb
203     (Java 1.1 jdb).
205 *** The previous method of searching for source files has been
206     preserved in case someone still wants/needs to use it.
207     Set gud-jdb-use-classpath to nil.
209   Added Customization Variables
211 *** gud-jdb-command-name.  What command line to use to invoke jdb.
213 *** gud-jdb-use-classpath. Allows selection of java source file searching
214     method: set to t for new method, nil to scan gud-jdb-directories for
215     java sources (previous method).
217 *** gud-jdb-directories. List of directories to scan and search for java
218     classes using the original gud-jdb method (if gud-jdb-use-classpath
219     is nil).
221   Minor Improvements
223 *** Do not allow debugger output history variable to grow without bounds.
225 ** hide-ifdef-mode now uses overlays rather than selective-display
226 to hide its text.  This should be mostly transparent but slightly
227 changes the behavior of motion commands line C-e and C-p.
229 ** In Dired's ! command (dired-do-shell-command), `*' and `?' now
230 control substitution of the file names only when they are surrounded
231 by whitespace.  This means you can now use them as shell wildcards
232 too.  If you want to use just plain `*' as a wildcard, type `*""'; the
233 doublequotes make no difference in the shell, but they prevent
234 special treatment in `dired-do-shell-command'.
236 ** Unquoted `$' in file names do not signal an error any more when
237 the corresponding environment variable does not exist.
238 Instead, the `$ENVVAR' text is left as is, so that `$$' quoting
239 is only rarely needed.
241 ** jit-lock can now be delayed with `jit-lock-defer-time'.
243 If this variable is non-nil, its value should be the amount of Emacs
244 idle time in seconds to wait before starting fontification.  For
245 example, if you set `jit-lock-defer-time' to 0.25, fontification will
246 only happen after 0.25s of idle time.
249 ** Marking commands extend the region when invoked multiple times.  If
250 you hit M-C-SPC (mark-sexp), M-@ (mark-word), M-h (mark-paragraph), or
251 C-M-h (mark-defun) repeatedly, the marked region will now be extended
252 each time, so you can mark the next two sexps with M-C-SPC M-C-SPC,
253 for example.  This feature also works for mark-end-of-sentence, if you
254 bind that to a key.
256 ** In the *Occur* buffer, `o' switches to it in another window, and
257 C-o displays the current line's occurrence in another window without
258 switching to it.
260 ** When you specify a frame size with --geometry, the size applies to
261 all frames you create.  A position specified with --geometry only
262 affects the initial frame.
265 ** M-h (mark-paragraph) now accepts a prefix arg.
266 With positive arg, M-h marks the current and the following paragraphs;
267 if the arg is negative, it marks the current and the preceding
268 paragraphs.
270 ** In Dired, the w command now copies the current line's file name
271 into the kill ring.
273 ** The variables dired-free-space-program and dired-free-space-args
274 have been renamed to directory-free-space-program and
275 directory-free-space-args, and they now apply whenever Emacs puts a
276 directory listing into a buffer.
278 ** mouse-wheels can now scroll a specific fraction of the window
279 (rather than a fixed number of lines) and the scrolling is `progressive'.
281 ** The keyboard-coding-system is now automatically set based on
282 your current locale settings.  If it turns out that your terminal
283 does not support the encoding implied by your locale (for example,
284 it inserts non-ASCII chars if you hit M-i), you will need to add
286         (set-keyboard-coding-system nil)
288 to your .emacs to revert to the old behavior.
290 ** A new coding system `euc-tw' has been added for traditional Chinese
291 in CNS encoding; it accepts both Big 5 and CNS as input; on saving,
292 Big 5 is then converted to CNS.
295 ** Emacs now reads the standard abbrevs file ~/.abbrev_defs
296 automatically at startup, if it exists.  When Emacs offers to save
297 modified buffers, it saves the abbrevs too if they have changed.  It
298 can do this either silently or asking for confirmation first,
299 according to the value of `save-abbrevs'.
301 ** Display of hollow cursors now obeys the buffer-local value (if any)
302 of `cursor-in-non-selected-windows' in the buffer that the cursor
303 appears in.
305 ** The default values of `tooltip-delay' and `tooltip-hide-delay'
306 were changed.
308 ** On terminals whose erase-char is ^H (Backspace), Emacs
309 now uses normal-erase-is-backspace-mode.
311 ** Etags changes.
313 *** In Prolog, etags creates tags for rules in addition to predicates.
315 *** In Perl, packages are tags.  Subroutine tags are named from their
316 package.  You can jump to sub tags as you did before, by the sub name, or
317 additionally by looking for package::sub.
319 *** New language PHP: tags are functions, classes and defines.  If
320 the --members option is specified to etags, tags are vars also.
323 ** The command line option --no-windows has been changed to
324 --no-window-system.  The old one still works, but is deprecated.
326 ** `buffer-menu' and `list-buffers' now list buffers whose names begin
327 with a space, if they visit files.
329 ** You can now customize fill-nobreak-predicate to control where
330 filling can break lines.  We provide two sample predicates,
331 fill-single-word-nobreak-p and fill-french-nobreak-p.
333 ** New user option `add-log-always-start-new-record'.
334 When this option is enabled, M-x add-change-log-entry will always
335 start a new record regardless of when the last record is.
337 ** New user option `sgml-xml'.
338 When this option is enabled, SGML tags are inserted in XML style,
339 i.e., there is always a closing tag.
340 When not customized, it becomes buffer-local when it can be inferred
341 from the file name or buffer contents.
343 ** New user option `isearch-resume-enabled'.
344 This option can be disabled, to avoid the normal behaviour of isearch
345 which puts calls to `isearch-resume' in the command history.
347 ** When the *scratch* buffer is recreated, its mode is set from
348 initial-major-mode, which normally is lisp-interaction-mode,
349 instead of using default-major-mode.
351 ** Byte compiler warning and error messages have been brought more
352 in line with the output of other GNU tools.
354 ** Lisp-mode now uses font-lock-doc-face for the docstrings.
356 ** perl-mode has a new variable `perl-indent-continued-arguments'.
358 ** `special-display-buffer-names' and `special-display-regexps' now
359 understand two new boolean pseudo-frame-parameters `same-frame' and
360 `same-window'.
362 ** When pure storage overflows while dumping, Emacs now prints how
363 much pure storage it will approximately need.
365 ** M-x setenv now expands environment variables of the form `$foo' and
366 `${foo}' in the specified new value of the environment variable.  To
367 include a `$' in the value, use `$$'.
370 ** File-name completion can now ignore directories.
371 If an element of the list in `completion-ignored-extensions' ends in a
372 slash `/', it indicates a subdirectory that should be ignored when
373 completing file names.  Elements of `completion-ignored-extensions'
374 which do not end in a slash are never considered when a completion
375 candidate is a directory.
377 ** New user option `inhibit-startup-buffer-menu'.
378 When loading many files, for instance with `emacs *', Emacs normally
379 displays a buffer menu.  This option turns the buffer menu off.
381 ** Rmail now displays 5-digit message ids in its summary buffer.
383 ** When using M-x revert-buffer in a compilation buffer to rerun a
384 compilation, it is now made sure that the compilation buffer is reused
385 in case it has been renamed.
387 ** On MS Windows, the "system caret" now follows the cursor.
388 This enables Emacs to work better with programs that need to track
389 the cursor, for example screen magnifiers and text to speech programs.
391 ** Tooltips now work on MS Windows.
392 See the Emacs 21.1 NEWS entry for tooltips for details.
394 ** Pointing devices with more than 3 buttons are now supported on MS Windows.
395 The new variable `w32-pass-extra-mouse-buttons-to-system' controls
396 whether Emacs should handle the extra buttons itself (the default), or
397 pass them to Windows to be handled with system-wide functions.
400 ** A French translation of the `Emacs Survival Guide' is available.
403 ** A French translation of the Emacs Tutorial is available.
405 ** New modes and packages
408 *** Calc is now part of the Emacs distribution.
410 Calc is an advanced desk calculator and mathematical tool written in
411 Emacs Lisp.  Its documentation is in a separate manual; within Emacs,
412 type "C-h i m calc RET" to read that manual.  A reference card is
413 available in `etc/calccard.tex' and `etc/calccard.ps'.
416 *** The Emacs Lisp Reference Manual is now part of the distribution.
418 The ELisp reference manual in Info format is built as part of the
419 Emacs build procedure and installed together with the Emacs User
420 Manual.  A menu item was added to the menu bar that makes it easy
421 accessible (Help->More Manuals->Emacs Lisp Reference).
423 *** The Introduction to Programming in Emacs Lisp manual is now part of
424 the distribution.
426 This manual is now part of the standard distribution and is installed,
427 together with the Emacs User Manual, into the Info directory.  A menu
428 item was added to the menu bar that makes it easy accessible
429 (Help->More Manuals->Introduction to Emacs Lisp).
431 *** The ruler-mode.el library provides a minor mode for displaying an
432 "active" ruler in the header line.  You can use the mouse to visually
433 change the `fill-column', `window-margins' and `tab-stop-list'
434 settings.
436 *** The reveal.el package provides the minor modes `reveal-mode' and
437 `global-reveal-mode' which will make text visible on the fly as you
438 move your cursor into hidden region of the buffer.
439 It should work with any package that uses overlays to hide parts
440 of a buffer, such as outline-minor-mode, hs-minor-mode, hide-ifdef-mode, ...
442 *** master-mode.el implements a minor mode for scrolling a slave
443 buffer without leaving your current buffer, the master buffer.
445 It can be used by sql.el, for example: the SQL buffer is the master
446 and its SQLi buffer is the slave.  This allows you to scroll the SQLi
447 buffer containing the output from the SQL buffer containing the
448 commands.
450 This is how to use sql.el and master.el together: the variable
451 sql-buffer contains the slave buffer.  It is a local variable in the
452 SQL buffer.
454 (add-hook 'sql-mode-hook
455    (function (lambda ()
456                (master-mode t)
457                (master-set-slave sql-buffer))))
458 (add-hook 'sql-set-sqli-hook
459    (function (lambda ()
460                (master-set-slave sql-buffer))))
463 * Lisp Changes in Emacs 21.3
465 ** Interactive commands can be remapped through keymaps.
467 This is an alternative to using defadvice or substitute-key-definition
468 to modify the behaviour of a key binding using the normal keymap
469 binding and lookup functionality.
471 When a key sequence is bound to a command, and that command is
472 remapped to another command, that command is run instead of the
473 original command.
475 Example:
476 Suppose that minor mode my-mode has defined the commands
477 my-kill-line and my-kill-word, and it wants C-k (and any other key
478 bound to kill-line) to run the command my-kill-line instead of
479 kill-line, and likewise it wants to run my-kill-word instead of
480 kill-word.
482 Instead of rebinding C-k and the other keys in the minor mode map,
483 command remapping allows you to directly map kill-line into
484 my-kill-line and kill-word into my-kill-word through the minor mode
485 map using define-key:
487    (define-key my-mode-map 'kill-line 'my-kill-line)
488    (define-key my-mode-map 'kill-word 'my-kill-word)
490 Now, when my-mode is enabled, and the user enters C-k or M-d,
491 the commands my-kill-line and my-kill-word are run.
493 Notice that only one level of remapping is supported.  In the above
494 example, this means that if my-kill-line is remapped to other-kill,
495 then C-k still runs my-kill-line.
497 The following changes have been made to provide command remapping:
499 - define-key now accepts a command name as the KEY argument.
500   This identifies the command to be remapped in the specified keymap.
501   This is equivalent to specifying the command name as the only
502   element of a vector, e.g [kill-line], except that when KEY is a
503   symbol, the DEF argument must also be a symbol.
505 - In calls from Lisp, global-set-key, global-unset-key, local-set-key,
506   and local-unset-key also accept a command name as the KEY argument.
508 - key-binding now remaps interactive commands unless the optional
509   third argument NO-REMAP is non-nil.  It also accepts a command name
510   as the KEY argument.
512 - lookup-key now accepts a command name as the KEY argument.
514 - where-is-internal now returns nil for a remapped command (e.g.
515   kill-line if my-mode is enabled), and the actual key binding for
516   the command it is remapped to (e.g. C-k for my-kill-line).
517   It also has a new optional fifth argument, NO-REMAP, which inhibits
518   remapping if non-nil (e.g. it returns C-k for kill-line and
519   <kill-line> for my-kill-line).
521 - The new variable `this-original-command' contains the original
522   command before remapping.  It is equal to `this-command' when the
523   command was not remapped.
525 ** Atomic change groups.
527 To perform some changes in the current buffer "atomically" so that
528 they either all succeed or are all undone, use `atomic-change-group'
529 around the code that makes changes.  For instance:
531   (atomic-change-group
532     (insert foo)
533     (delete-region x y))
535 If an error (or other nonlocal exit) occurs inside the body of
536 `atomic-change-group', it unmakes all the changes in that buffer that
537 were during the execution of the body.  The change group has no effect
538 on any other buffers--any such changes remain.
540 If you need something more sophisticated, you can directly call the
541 lower-level functions that `atomic-change-group' uses.  Here is how.
543 To set up a change group for one buffer, call `prepare-change-group'.
544 Specify the buffer as argument; it defaults to the current buffer.
545 This function returns a "handle" for the change group.  You must save
546 the handle to activate the change group and then finish it.
548 Before you change the buffer again, you must activate the change
549 group.  Pass the handle to `activate-change-group' afterward to
550 do this.
552 After you make the changes, you must finish the change group.  You can
553 either accept the changes or cancel them all.  Call
554 `accept-change-group' to accept the changes in the group as final;
555 call `cancel-change-group' to undo them all.
557 You should use `unwind-protect' to make sure the group is always
558 finished.  The call to `activate-change-group' should be inside the
559 `unwind-protect', in case the user types C-g just after it runs.
560 (This is one reason why `prepare-change-group' and
561 `activate-change-group' are separate functions.)  Once you finish the
562 group, don't use the handle again--don't try to finish the same group
563 twice.
565 To make a multibuffer change group, call `prepare-change-group' once
566 for each buffer you want to cover, then use `nconc' to combine the
567 returned values, like this:
569   (nconc (prepare-change-group buffer-1)
570          (prepare-change-group buffer-2))
572 You can then activate the multibuffer change group with a single call
573 to `activate-change-group', and finish it with a single call to
574 `accept-change-group' or `cancel-change-group'.
576 Nested use of several change groups for the same buffer works as you
577 would expect.  Non-nested use of change groups for the same buffer
578 will lead to undesirable results, so don't let it happen; the first
579 change group you start for any given buffer should be the last one
580 finished.
582 ** New function substring-no-properties.
585 *** The meanings of scroll-up-aggressively and scroll-down-aggressively
586 have been interchanged, so that the former now controls scrolling up,
587 and the latter now controls scrolling down.
590 ** New function window-body-height.
592 This is like window-height but does not count the mode line
593 or the header line.
596 ** You can now make a window as short as one line.
598 A window that is just one line tall does not display either a mode
599 line or a header line, even if the variables `mode-line-format' and
600 `header-line-format' call for them.  A window that is two lines tall
601 cannot display both a mode line and a header line at once; if the
602 variables call for both, only the mode line actually appears.
605 ** The new frame parameter `tty-color-mode' specifies the mode to use
606 for color support on character terminal frames.  Its value can be a
607 number of colors to support, or a symbol.  See the Emacs Lisp
608 Reference manual for more detailed documentation.
610 ** Already true in Emacs 21.1, but not emphasized clearly enough:
612 Multibyte buffers can now faithfully record all 256 character codes
613 from 0 to 255.  As a result, most of the past reasons to use unibyte
614 buffers no longer exist.  We only know of three reasons to use them
615 now:
617 1. If you prefer to use unibyte text all of the time.
619 2. For reading files into temporary buffers, when you want to avoid
620 the time it takes to convert the format.
622 3. For binary files where format conversion would be pointless and
623 wasteful.
625 ** If text has a `keymap' property, that keymap takes precedence
626 over minor mode keymaps.
628 ** A hex escape in a string forces the string to be multibyte.
629 An octal escape makes it unibyte.
631 ** The position after an invisible, intangible character
632 is considered an unacceptable value for point;
633 intangibility processing effectively treats the following character
634 as part of the intangible region even if it is not itself intangible.
636 Thus, point can go before an invisible, intangible region, but not
637 after it.  This prevents C-f and C-b from appearing to stand still on
638 the screen.
641 ** define-abbrev now accepts an optional argument SYSTEM-FLAG.  If
642 non-nil, this marks the abbrev as a "system" abbrev, which means that
643 it won't be stored in the user's abbrevs file if he saves the abbrevs.
644 Major modes that predefine some abbrevs should always specify this
645 flag.
647 ** Support for Mocklisp has been removed.
649 ** The function insert-string is now obsolete.
651 ** The precedence of file-name-handlers has been changed.
652 Instead of blindly choosing the first handler that matches,
653 find-file-name-handler now gives precedence to a file-name handler
654 that matches near the end of the file name.  More specifically, the
655 handler whose (match-beginning 0) is the largest is chosen.
656 In case of ties, the old "first matched" rule applies.
658 ** Dense keymaps now handle inheritance correctly.
659 Previously a dense keymap would hide all of the simple-char key
660 bindings of the parent keymap.
662 ** jit-lock obeys a new text-property `jit-lock-defer-multiline'.
663 If a piece of text with that property gets contextually refontified
664 (see jit-lock-defer-contextually), then all of that text will
665 be refontified.  This is useful when the syntax of a textual element
666 depends on text several lines further down (and when font-lock-multiline
667 is not appropriate to solve that problem).  For example in Perl:
669         s{
670                 foo
671         }{
672                 bar
673         }e
675 Adding/removing the last `e' changes the `bar' from being a piece of
676 text to being a piece of code, so you'd put a jit-lock-defer-multiline
677 property over the second half of the command to force (deferred)
678 refontification of `bar' whenever the `e' is added/removed.
680 ** describe-vector now takes a second argument `describer' which is
681 called to print the entries' values.  It defaults to `princ'.
683 ** defcustom and other custom declarations now use a default group
684 (the last group defined in the same file) when no :group was given.
686 ** emacsserver now runs pre-command-hook and post-command-hook when
687 it receives a request from emacsclient.
689 ** The variable `recursive-load-depth-limit' has been deleted.
690 Emacs now signals an error if the same file is loaded with more
691 than 3 levels of nesting.
693 ** The default values of paragraph-start and indent-line-function have
694 been changed to reflect those used in Text mode rather than those used
695 in Indented-Text mode.
697 ** If a major mode function has a non-nil `no-clone-indirect'
698 property, `clone-indirect-buffer' signals an error if you use
699 it in that buffer.
701 ** If you set `query-replace-skip-read-only' non-nil,
702 `query-replace' and related functions simply ignore
703 a match if part of it has a read-only property.
705 ** In `replace-match', the replacement text no longer inherits
706 properties from surrounding text.
708 ** New function `buffer-local-value'.
710 - Function: buffer-local-value variable buffer
712 This function returns the buffer-local binding of VARIABLE (a symbol)
713 in buffer BUFFER.  If VARIABLE does not have a buffer-local binding in
714 buffer BUFFER, it returns the default value of VARIABLE instead.
716 ** The default value of `paragraph-start' and `indent-line-function' has
717 been changed to reflect the one used in Text mode rather than the one
718 used in Indented Text mode.
720 ** New function `text-clone-create'.  Text clones are chunks of text
721 that are kept identical by transparently propagating changes from one
722 clone to the other.
724 ** font-lock can manage arbitrary text-properties beside `face'.
725 *** the FACENAME returned in font-lock-keywords can be a list
726 of the form (face FACE PROP1 VAL1 PROP@ VAL2 ...) so you can set
727 other properties than `face'.
728 *** font-lock-extra-managed-props can be set to make sure those extra
729 properties are automatically cleaned up by font-lock.
731 ** The new function `run-mode-hooks' and the new macro `delay-mode-hooks'
732 are used by define-derived-mode to make sure the mode hook for the
733 parent mode is run at the end of the child mode.
735 ** `provide' and `featurep' now accept an optional second argument
736 to test/provide subfeatures.  Also `provide' now checks `after-load-alist'
737 and run any code associated with the provided feature.
739 ** The variable `compilation-parse-errors-filename-function' can
740 be used to transform filenames found in compilation output.
743 ** Functions `file-name-sans-extension' and `file-name-extension' now
744 ignore the leading dots in file names, so that file names such as
745 `.emacs' are treated as extensionless.
747 ** Functions `user-uid' and `user-real-uid' now return floats if the
748 user UID doesn't fit in a Lisp integer.  Function `user-full-name'
749 accepts a float as UID parameter.
751 ** `define-key-after' now accepts keys longer than 1.
753 ** `define-derived-mode' now accepts nil as the parent.
755 ** The local variable `no-byte-compile' in elisp files is now obeyed.
757 ** New functions `keymap-prompt' and `current-active-maps'.
759 ** New function `describe-buffer-bindings'.
761 ** New vars `exec-suffixes' and `load-suffixes' used when
762 searching for an executable resp. an elisp file.
764 ** Variable aliases have been implemented
766 - Macro: defvaralias ALIAS-VAR BASE-VAR
768 This defines the symbol ALIAS-VAR as a variable alias for symbol
769 BASE-VAR.  This means that retrieving the value of ALIAS-VAR returns
770 the value of BASE-VAR, and changing the value of ALIAS-VAR changes the
771 value of BASE-VAR.
773 - Function: indirect-variable VARIABLE
775 This function returns the variable at the end of the chain of aliases
776 of VARIABLE.  If VARIABLE is not a symbol, or if VARIABLE is not
777 defined as an alias, the function returns VARIABLE.
779 It might be noteworthy that variables aliases work for all kinds of
780 variables, including buffer-local and frame-local variables.
782 ** Functions from `post-gc-hook' are run at the end of garbage
783 collection.  The hook is run with GC inhibited, so use it with care.
785 ** If the second argument to `copy-file' is the name of a directory,
786 the file is copied to that directory instead of signaling an error.
788 ** The variables most-positive-fixnum and most-negative-fixnum
789 have been moved from the CL package to the core.
791 ** On MS Windows, locale-coding-system is used to interact with the OS.
792 The Windows specific variable w32-system-coding-system, which was
793 formerly used for that purpose is now an alias for locale-coding-system.
795 ** New packages:
797 *** The new package syntax.el provides an efficient way to find the
798 current syntactic context (as returned by parse-partial-sexp).
800 *** The TCL package tcl-mode.el was replaced by tcl.el.
801 This was actually done in Emacs-21.1, and was not documented.
803 *** The new package Ibuffer provides a powerful, completely
804 customizable replacement for buff-menu.el.
807 * Installation Changes in Emacs 21.1
809 See the INSTALL file for information on installing extra libraries and
810 fonts to take advantage of the new graphical features and extra
811 charsets in this release.
813 ** Support for GNU/Linux on IA64 machines has been added.
815 ** Support for LynxOS has been added.
817 ** There are new configure options associated with the support for
818 images and toolkit scrollbars.  Use the --help option in `configure'
819 to list them.
821 ** You can build a 64-bit Emacs for SPARC/Solaris systems which
822 support 64-bit executables and also on Irix 6.5.  This increases the
823 maximum buffer size.  See etc/MACHINES for instructions.  Changes to
824 build on other 64-bit systems should be straightforward modulo any
825 necessary changes to unexec.
827 ** There is a new configure option `--disable-largefile' to omit
828 Unix-98-style support for large files if that is available.
830 ** There is a new configure option `--without-xim' that instructs
831 Emacs to not use X Input Methods (XIM), if these are available.
833 ** `movemail' defaults to supporting POP.  You can turn this off using
834 the --without-pop configure option, should that be necessary.
836 ** This version can be built for the Macintosh, but does not implement
837 all of the new display features described below.  The port currently
838 lacks unexec, asynchronous processes, and networking support.  See the
839 "Emacs and the Mac OS" appendix in the Emacs manual, for the
840 description of aspects specific to the Mac.
842 ** Note that the MS-Windows port does not yet implement various of the
843 new display features described below.
846 * Changes in Emacs 21.1
848 ** Emacs has a new redisplay engine.
850 The new redisplay handles characters of variable width and height.
851 Italic text can be used without redisplay problems.  Fonts containing
852 oversized characters, i.e. characters larger than the logical height
853 of a font can be used.  Images of various formats can be displayed in
854 the text.
856 ** Emacs has a new face implementation.
858 The new faces no longer fundamentally use X font names to specify the
859 font.  Instead, each face has several independent attributes--family,
860 height, width, weight and slant--that it may or may not specify.
861 These attributes can be merged from various faces, and then together
862 specify a font.
864 Faces are supported on terminals that can display color or fonts.
865 These terminal capabilities are auto-detected.  Details can be found
866 under Lisp changes, below.
868 ** Emacs can display faces on TTY frames.
870 Emacs automatically detects terminals that are able to display colors.
871 Faces with a weight greater than normal are displayed extra-bright, if
872 the terminal supports it.  Faces with a weight less than normal and
873 italic faces are displayed dimmed, if the terminal supports it.
874 Underlined faces are displayed underlined if possible.  Other face
875 attributes such as `overline', `strike-through', and `box' are ignored
876 on terminals.
878 The command-line options `-fg COLOR', `-bg COLOR', and `-rv' are now
879 supported on character terminals.
881 Emacs automatically remaps all X-style color specifications to one of
882 the colors supported by the terminal.  This means you could have the
883 same color customizations that work both on a windowed display and on
884 a TTY or when Emacs is invoked with the -nw option.
886 ** New default font is Courier 12pt under X.
888 ** Sound support
890 Emacs supports playing sound files on GNU/Linux and FreeBSD (Voxware
891 driver and native BSD driver, a.k.a. Luigi's driver).  Currently
892 supported file formats are RIFF-WAVE (*.wav) and Sun Audio (*.au).
893 You must configure Emacs with the option `--with-sound=yes' to enable
894 sound support.
896 ** Emacs now resizes mini-windows if appropriate.
898 If a message is longer than one line, or minibuffer contents are
899 longer than one line, Emacs can resize the minibuffer window unless it
900 is on a frame of its own.  You can control resizing and the maximum
901 minibuffer window size by setting the following variables:
903 - User option: max-mini-window-height
905 Maximum height for resizing mini-windows.  If a float, it specifies a
906 fraction of the mini-window frame's height.  If an integer, it
907 specifies a number of lines.
909 Default is 0.25.
911 - User option: resize-mini-windows
913 How to resize mini-windows.  If nil, don't resize.  If t, always
914 resize to fit the size of the text.  If `grow-only', let mini-windows
915 grow only, until they become empty, at which point they are shrunk
916 again.
918 Default is `grow-only'.
920 ** LessTif support.
922 Emacs now runs with the LessTif toolkit (see
923 <http://www.lesstif.org>).  You will need version 0.92.26, or later.
925 ** LessTif/Motif file selection dialog.
927 When Emacs is configured to use LessTif or Motif, reading a file name
928 from a menu will pop up a file selection dialog if `use-dialog-box' is
929 non-nil.
931 ** File selection dialog on MS-Windows is supported.
933 When a file is visited by clicking File->Open, the MS-Windows version
934 now pops up a standard file selection dialog where you can select a
935 file to visit.  File->Save As also pops up that dialog.
937 ** Toolkit scroll bars.
939 Emacs now uses toolkit scroll bars if available.  When configured for
940 LessTif/Motif, it will use that toolkit's scroll bar.  Otherwise, when
941 configured for Lucid and Athena widgets, it will use the Xaw3d scroll
942 bar if Xaw3d is available.  You can turn off the use of toolkit scroll
943 bars by specifying `--with-toolkit-scroll-bars=no' when configuring
944 Emacs.
946 When you encounter problems with the Xaw3d scroll bar, watch out how
947 Xaw3d is compiled on your system.  If the Makefile generated from
948 Xaw3d's Imakefile contains a `-DNARROWPROTO' compiler option, and your
949 Emacs system configuration file `s/your-system.h' does not contain a
950 define for NARROWPROTO, you might consider adding it.  Take
951 `s/freebsd.h' as an example.
953 Alternatively, if you don't have access to the Xaw3d source code, take
954 a look at your system's imake configuration file, for example in the
955 directory `/usr/X11R6/lib/X11/config' (paths are different on
956 different systems).  You will find files `*.cf' there.  If your
957 system's cf-file contains a line like `#define NeedWidePrototypes NO',
958 add a `#define NARROWPROTO' to your Emacs system configuration file.
960 The reason for this is that one Xaw3d function uses `double' or
961 `float' function parameters depending on the setting of NARROWPROTO.
962 This is not a problem when Imakefiles are used because each system's
963 imake configuration file contains the necessary information.  Since
964 Emacs doesn't use imake, this has do be done manually.
966 ** Tool bar support.
968 Emacs supports a tool bar at the top of a frame under X.  For details
969 of how to define a tool bar, see the page describing Lisp-level
970 changes.  Tool-bar global minor mode controls whether or not it is
971 displayed and is on by default.  The appearance of the bar is improved
972 if Emacs has been built with XPM image support.  Otherwise monochrome
973 icons will be used.
975 To make the tool bar more useful, we need contributions of extra icons
976 for specific modes (with copyright assignments).
978 ** Tooltips.
980 Tooltips are small X windows displaying a help string at the current
981 mouse position.  The Lisp package `tooltip' implements them.  You can
982 turn them off via the user option `tooltip-mode'.
984 Tooltips also provides support for GUD debugging.  If activated,
985 variable values can be displayed in tooltips by pointing at them with
986 the mouse in source buffers.  You can customize various aspects of the
987 tooltip display in the group `tooltip'.
989 ** Automatic Hscrolling
991 Horizontal scrolling now happens automatically if
992 `automatic-hscrolling' is set (the default).  This setting can be
993 customized.
995 If a window is scrolled horizontally with set-window-hscroll, or
996 scroll-left/scroll-right (C-x <, C-x >), this serves as a lower bound
997 for automatic horizontal scrolling.  Automatic scrolling will scroll
998 the text more to the left if necessary, but won't scroll the text more
999 to the right than the column set with set-window-hscroll etc.
1001 ** When using a windowing terminal, each Emacs window now has a cursor
1002 of its own.  By default, when a window is selected, the cursor is
1003 solid; otherwise, it is hollow.  The user-option
1004 `cursor-in-non-selected-windows' controls how to display the
1005 cursor in non-selected windows.  If nil, no cursor is shown, if
1006 non-nil a hollow box cursor is shown.
1008 ** Fringes to the left and right of windows are used to display
1009 truncation marks, continuation marks, overlay arrows and alike.  The
1010 foreground, background, and stipple of these areas can be changed by
1011 customizing face `fringe'.
1013 ** The mode line under X is now drawn with shadows by default.
1014 You can change its appearance by modifying the face `mode-line'.
1015 In particular, setting the `:box' attribute to nil turns off the 3D
1016 appearance of the mode line.  (The 3D appearance makes the mode line
1017 occupy more space, and thus might cause the first or the last line of
1018 the window to be partially obscured.)
1020 The variable `mode-line-inverse-video', which was used in older
1021 versions of emacs to make the mode-line stand out, is now deprecated.
1022 However, setting it to nil will cause the `mode-line' face to be
1023 ignored, and mode-lines to be drawn using the default text face.
1025 ** Mouse-sensitive mode line.
1027 Different parts of the mode line have been made mouse-sensitive on all
1028 systems which support the mouse.  Moving the mouse to a
1029 mouse-sensitive part in the mode line changes the appearance of the
1030 mouse pointer to an arrow, and help about available mouse actions is
1031 displayed either in the echo area, or in the tooltip window if you
1032 have enabled one.
1034 Currently, the following actions have been defined:
1036 - Mouse-1 on the buffer name in the mode line goes to the next buffer.
1038 - Mouse-3 on the buffer-name goes to the previous buffer.
1040 - Mouse-2 on the read-only or modified status in the mode line (`%' or
1041 `*') toggles the status.
1043 - Mouse-3 on the mode name displays a minor-mode menu.
1045 ** Hourglass pointer
1047 Emacs can optionally display an hourglass pointer under X.  You can
1048 turn the display on or off by customizing group `cursor'.
1050 ** Blinking cursor
1052 M-x blink-cursor-mode toggles a blinking cursor under X and on
1053 terminals having terminal capabilities `vi', `vs', and `ve'.  Blinking
1054 and related parameters like frequency and delay can be customized in
1055 the group `cursor'.
1057 ** New font-lock support mode `jit-lock-mode'.
1059 This support mode is roughly equivalent to `lazy-lock' but is
1060 generally faster.  It supports stealth and deferred fontification.
1061 See the documentation of the function `jit-lock-mode' for more
1062 details.
1064 Font-lock uses jit-lock-mode as default support mode, so you don't
1065 have to do anything to activate it.
1067 ** The default binding of the Delete key has changed.
1069 The new user-option `normal-erase-is-backspace' can be set to
1070 determine the effect of the Delete and Backspace function keys.
1072 On window systems, the default value of this option is chosen
1073 according to the keyboard used.  If the keyboard has both a Backspace
1074 key and a Delete key, and both are mapped to their usual meanings, the
1075 option's default value is set to t, so that Backspace can be used to
1076 delete backward, and Delete can be used to delete forward.  On
1077 keyboards which either have only one key (usually labeled DEL), or two
1078 keys DEL and BS which produce the same effect, the option's value is
1079 set to nil, and these keys delete backward.
1081 If not running under a window system, setting this option accomplishes
1082 a similar effect by mapping C-h, which is usually generated by the
1083 Backspace key, to DEL, and by mapping DEL to C-d via
1084 `keyboard-translate'.  The former functionality of C-h is available on
1085 the F1 key.  You should probably not use this setting on a text-only
1086 terminal if you don't have both Backspace, Delete and F1 keys.
1088 Programmatically, you can call function normal-erase-is-backspace-mode
1089 to toggle the behavior of the Delete and Backspace keys.
1091 ** The default for user-option `next-line-add-newlines' has been
1092 changed to nil, i.e. C-n will no longer add newlines at the end of a
1093 buffer by default.
1095 ** The <home> and <end> keys now move to the beginning or end of the
1096 current line, respectively.  C-<home> and C-<end> move to the
1097 beginning and end of the buffer.
1099 ** Emacs now checks for recursive loads of Lisp files.  If the
1100 recursion depth exceeds `recursive-load-depth-limit', an error is
1101 signaled.
1103 ** When an error is signaled during the loading of the user's init
1104 file, Emacs now pops up the *Messages* buffer.
1106 ** Emacs now refuses to load compiled Lisp files which weren't
1107 compiled with Emacs.  Set `load-dangerous-libraries' to t to change
1108 this behavior.
1110 The reason for this change is an incompatible change in XEmacs's byte
1111 compiler.  Files compiled with XEmacs can contain byte codes that let
1112 Emacs dump core.
1114 ** Toggle buttons and radio buttons in menus.
1116 When compiled with LessTif (or Motif) support, Emacs uses toolkit
1117 widgets for radio and toggle buttons in menus.  When configured for
1118 Lucid, Emacs draws radio buttons and toggle buttons similar to Motif.
1120 ** The menu bar configuration has changed.  The new configuration is
1121 more CUA-compliant.  The most significant change is that Options is
1122 now a separate menu-bar item, with Mule and Customize as its submenus.
1124 ** Item Save Options on the Options menu allows saving options set
1125 using that menu.
1127 ** Highlighting of trailing whitespace.
1129 When `show-trailing-whitespace' is non-nil, Emacs displays trailing
1130 whitespace in the face `trailing-whitespace'.  Trailing whitespace is
1131 defined as spaces or tabs at the end of a line.  To avoid busy
1132 highlighting when entering new text, trailing whitespace is not
1133 displayed if point is at the end of the line containing the
1134 whitespace.
1136 ** C-x 5 1 runs the new command delete-other-frames which deletes
1137 all frames except the selected one.
1139 ** The new user-option `confirm-kill-emacs' can be customized to
1140 let Emacs ask for confirmation before exiting.
1142 ** The header line in an Info buffer is now displayed as an emacs
1143 header-line (which is like a mode-line, but at the top of the window),
1144 so that it remains visible even when the buffer has been scrolled.
1145 This behavior may be disabled by customizing the option
1146 `Info-use-header-line'.
1148 ** Polish, Czech, German, and French translations of Emacs' reference card
1149 have been added.  They are named `pl-refcard.tex', `cs-refcard.tex',
1150 `de-refcard.tex' and `fr-refcard.tex'.  Postscript files are included.
1152 ** An `Emacs Survival Guide', etc/survival.tex, is available.
1154 ** A reference card for Dired has been added.  Its name is
1155 `dired-ref.tex'.  A French translation is available in
1156 `fr-drdref.tex'.
1158 ** C-down-mouse-3 is bound differently.  Now if the menu bar is not
1159 displayed it pops up a menu containing the items which would be on the
1160 menu bar.  If the menu bar is displayed, it pops up the major mode
1161 menu or the Edit menu if there is no major mode menu.
1163 ** Variable `load-path' is no longer customizable through Customize.
1165 You can no longer use `M-x customize-variable' to customize `load-path'
1166 because it now contains a version-dependent component.  You can still
1167 use `add-to-list' and `setq' to customize this variable in your
1168 `~/.emacs' init file or to modify it from any Lisp program in general.
1170 ** C-u C-x = provides detailed information about the character at
1171 point in a pop-up window.
1173 ** Emacs can now support 'wheeled' mice (such as the MS IntelliMouse)
1174 under XFree86.  To enable this, use the `mouse-wheel-mode' command, or
1175 customize the variable `mouse-wheel-mode'.
1177 The variables `mouse-wheel-follow-mouse' and `mouse-wheel-scroll-amount'
1178 determine where and by how much buffers are scrolled.
1180 ** Emacs' auto-save list files are now by default stored in a
1181 sub-directory `.emacs.d/auto-save-list/' of the user's home directory.
1182 (On MS-DOS, this subdirectory's name is `_emacs.d/auto-save.list/'.)
1183 You can customize `auto-save-list-file-prefix' to change this location.
1185 ** The function `getenv' is now callable interactively.
1187 ** The new user-option `even-window-heights' can be set to nil
1188 to prevent `display-buffer' from evening out window heights.
1190 ** The new command M-x delete-trailing-whitespace RET will delete the
1191 trailing whitespace within the current restriction.  You can also add
1192 this function to `write-file-hooks' or `local-write-file-hooks'.
1194 ** When visiting a file with M-x find-file-literally, no newlines will
1195 be added to the end of the buffer even if `require-final-newline' is
1196 non-nil.
1198 ** The new user-option `find-file-suppress-same-file-warnings' can be
1199 set to suppress warnings ``X and Y are the same file'' when visiting a
1200 file that is already visited under a different name.
1202 ** The new user-option `electric-help-shrink-window' can be set to
1203 nil to prevent adjusting the help window size to the buffer size.
1205 ** New command M-x describe-character-set reads a character set name
1206 and displays information about that.
1208 ** The new variable `auto-mode-interpreter-regexp' contains a regular
1209 expression matching interpreters, for file mode determination.
1211 This regular expression is matched against the first line of a file to
1212 determine the file's mode in `set-auto-mode' when Emacs can't deduce a
1213 mode from the file's name.  If it matches, the file is assumed to be
1214 interpreted by the interpreter matched by the second group of the
1215 regular expression.  The mode is then determined as the mode
1216 associated with that interpreter in `interpreter-mode-alist'.
1218 ** New function executable-make-buffer-file-executable-if-script-p is
1219 suitable as an after-save-hook as an alternative to `executable-chmod'.
1221 ** The most preferred coding-system is now used to save a buffer if
1222 buffer-file-coding-system is `undecided' and it is safe for the buffer
1223 contents.  (The most preferred is set by set-language-environment or
1224 by M-x prefer-coding-system.)  Thus if you visit an ASCII file and
1225 insert a non-ASCII character from your current language environment,
1226 the file will be saved silently with the appropriate coding.
1227 Previously you would be prompted for a safe coding system.
1229 ** The many obsolete language `setup-...-environment' commands have
1230 been removed -- use `set-language-environment'.
1232 ** The new Custom option `keyboard-coding-system' specifies a coding
1233 system for keyboard input.
1235 ** New variable `inhibit-iso-escape-detection' determines if Emacs'
1236 coding system detection algorithm should pay attention to ISO2022's
1237 escape sequences.  If this variable is non-nil, the algorithm ignores
1238 such escape sequences.  The default value is nil, and it is
1239 recommended not to change it except for the special case that you
1240 always want to read any escape code verbatim.  If you just want to
1241 read a specific file without decoding escape codes, use C-x RET c
1242 (`universal-coding-system-argument').  For instance, C-x RET c latin-1
1243 RET C-x C-f filename RET.
1245 ** Variable `default-korean-keyboard' is initialized properly from the
1246 environment variable `HANGUL_KEYBOARD_TYPE'.
1248 ** New command M-x list-charset-chars reads a character set name and
1249 displays all characters in that character set.
1251 ** M-x set-terminal-coding-system (C-x RET t) now allows CCL-based
1252 coding systems such as cpXXX and cyrillic-koi8.
1254 ** Emacs now attempts to determine the initial language environment
1255 and preferred and locale coding systems systematically from the
1256 LC_ALL, LC_CTYPE, and LANG environment variables during startup.
1258 ** New language environments `Polish', `Latin-8' and `Latin-9'.
1259 Latin-8 and Latin-9 correspond respectively to the ISO character sets
1260 8859-14 (Celtic) and 8859-15 (updated Latin-1, with the Euro sign).
1261 GNU Intlfonts doesn't support these yet but recent X releases have
1262 8859-15.  See etc/INSTALL for information on obtaining extra fonts.
1263 There are new Leim input methods for Latin-8 and Latin-9 prefix (only)
1264 and Polish `slash'.
1266 ** New language environments `Dutch' and `Spanish'.
1267 These new environments mainly select appropriate translations
1268 of the tutorial.
1270 ** In Ethiopic language environment, special key bindings for
1271 function keys are changed as follows.  This is to conform to "Emacs
1272 Lisp Coding Convention".
1274     new  command                            old-binding
1275     ---  -------                            -----------
1276     f3   ethio-fidel-to-sera-buffer         f5
1277     S-f3 ethio-fidel-to-sera-region         f5
1278     C-f3 ethio-fidel-to-sera-mail-or-marker f5
1280     f4   ethio-sera-to-fidel-buffer         unchanged
1281     S-f4 ethio-sera-to-fidel-region         unchanged
1282     C-f4 ethio-sera-to-fidel-mail-or-marker unchanged
1284     S-f5 ethio-toggle-punctuation           f3
1285     S-f6 ethio-modify-vowel                 f6
1286     S-f7 ethio-replace-space                f7
1287     S-f8 ethio-input-special-character      f8
1288     S-f9 ethio-replace-space                unchanged
1289     C-f9 ethio-toggle-space                 f2
1291 ** There are new Leim input methods.
1292 New input methods "turkish-postfix", "turkish-alt-postfix",
1293 "greek-mizuochi", "TeX", and "greek-babel" are now part of the Leim
1294 package.
1296 ** The rule of input method "slovak" is slightly changed.  Now the
1297 rules for translating "q" and "Q" to "`" (backquote) are deleted, thus
1298 typing them inserts "q" and "Q" respectively.  Rules for translating
1299 "=q", "+q", "=Q", and "+Q" to "`" are also deleted.  Now, to input
1300 "`", you must type "=q".
1302 ** When your terminal can't display characters from some of the ISO
1303 8859 character sets but can display Latin-1, you can display
1304 more-or-less mnemonic sequences of ASCII/Latin-1 characters instead of
1305 empty boxes (under a window system) or question marks (not under a
1306 window system).  Customize the option `latin1-display' to turn this
1309 ** M-; now calls comment-dwim which tries to do something clever based
1310 on the context.  M-x kill-comment is now an alias to comment-kill,
1311 defined in newcomment.el.  You can choose different styles of region
1312 commenting with the variable `comment-style'.
1314 ** New user options `display-time-mail-face' and
1315 `display-time-use-mail-icon' control the appearance of mode-line mail
1316 indicator used by the display-time package.  On a suitable display the
1317 indicator can be an icon and is mouse-sensitive.
1319 ** On window-systems, additional space can be put between text lines
1320 on the display using several methods
1322 - By setting frame parameter `line-spacing' to PIXELS.  PIXELS must be
1323 a positive integer, and specifies that PIXELS number of pixels should
1324 be put below text lines on the affected frame or frames.
1326 - By setting X resource `lineSpacing', class `LineSpacing'.  This is
1327 equivalent to specifying the frame parameter.
1329 - By specifying `--line-spacing=N' or `-lsp N' on the command line.
1331 - By setting buffer-local variable `line-spacing'.  The meaning is
1332 the same, but applies to the a particular buffer only.
1334 ** The new command `clone-indirect-buffer' can be used to create
1335 an indirect buffer that is a twin copy of the current buffer.  The
1336 command `clone-indirect-buffer-other-window', bound to C-x 4 c,
1337 does the same but displays the indirect buffer in another window.
1339 ** New user options `backup-directory-alist' and
1340 `make-backup-file-name-function' control the placement of backups,
1341 typically in a single directory or in an invisible sub-directory.
1343 ** New commands iso-iso2sgml and iso-sgml2iso convert between Latin-1
1344 characters and the corresponding SGML (HTML) entities.
1346 ** New X resources recognized
1348 *** The X resource `synchronous', class `Synchronous', specifies
1349 whether Emacs should run in synchronous mode.  Synchronous mode
1350 is useful for debugging X problems.
1352 Example:
1354   emacs.synchronous: true
1356 *** The X resource `visualClass, class `VisualClass', specifies the
1357 visual Emacs should use.  The resource's value should be a string of
1358 the form `CLASS-DEPTH', where CLASS is the name of the visual class,
1359 and DEPTH is the requested color depth as a decimal number.  Valid
1360 visual class names are
1362   TrueColor
1363   PseudoColor
1364   DirectColor
1365   StaticColor
1366   GrayScale
1367   StaticGray
1369 Visual class names specified as X resource are case-insensitive, i.e.
1370 `pseudocolor', `Pseudocolor' and `PseudoColor' all have the same
1371 meaning.
1373 The program `xdpyinfo' can be used to list the visual classes
1374 supported on your display, and which depths they have.  If
1375 `visualClass' is not specified, Emacs uses the display's default
1376 visual.
1378 Example:
1380   emacs.visualClass: TrueColor-8
1382 *** The X resource `privateColormap', class `PrivateColormap',
1383 specifies that Emacs should use a private colormap if it is using the
1384 default visual, and that visual is of class PseudoColor.  Recognized
1385 resource values are `true' or `on'.
1387 Example:
1389   emacs.privateColormap: true
1391 ** Faces and frame parameters.
1393 There are four new faces `scroll-bar', `border', `cursor' and `mouse'.
1394 Setting the frame parameters `scroll-bar-foreground' and
1395 `scroll-bar-background' sets foreground and background color of face
1396 `scroll-bar' and vice versa.  Setting frame parameter `border-color'
1397 sets the background color of face `border' and vice versa.  Likewise
1398 for frame parameters `cursor-color' and face `cursor', and frame
1399 parameter `mouse-color' and face `mouse'.
1401 Changing frame parameter `font' sets font-related attributes of the
1402 `default' face and vice versa.  Setting frame parameters
1403 `foreground-color' or `background-color' sets the colors of the
1404 `default' face and vice versa.
1406 ** New face `menu'.
1408 The face `menu' can be used to change colors and font of Emacs' menus.
1410 ** New frame parameter `screen-gamma' for gamma correction.
1412 The new frame parameter `screen-gamma' specifies gamma-correction for
1413 colors.  Its value may be nil, the default, in which case no gamma
1414 correction occurs, or a number > 0, usually a float, that specifies
1415 the screen gamma of a frame's display.
1417 PC monitors usually have a screen gamma of 2.2.  smaller values result
1418 in darker colors.  You might want to try a screen gamma of 1.5 for LCD
1419 color displays.  The viewing gamma Emacs uses is 0.4545. (1/2.2).
1421 The X resource name of this parameter is `screenGamma', class
1422 `ScreenGamma'.
1424 ** Tabs and variable-width text.
1426 Tabs are now displayed with stretch properties; the width of a tab is
1427 defined as a multiple of the normal character width of a frame, and is
1428 independent of the fonts used in the text where the tab appears.
1429 Thus, tabs can be used to line up text in different fonts.
1431 ** Enhancements of the Lucid menu bar
1433 *** The Lucid menu bar now supports the resource "margin".
1435         emacs.pane.menubar.margin: 5
1437 The default margin is 4 which makes the menu bar appear like the
1438 LessTif/Motif one.
1440 *** Arrows that indicate sub-menus are now drawn with shadows, as in
1441 LessTif and Motif.
1443 ** A block cursor can be drawn as wide as the glyph under it under X.
1445 As an example: if a block cursor is over a tab character, it will be
1446 drawn as wide as that tab on the display.  To do this, set
1447 `x-stretch-cursor' to a non-nil value.
1449 ** Empty display lines at the end of a buffer may be marked with a
1450 bitmap (this is similar to the tilde displayed by vi and Less).
1452 This behavior is activated by setting the buffer-local variable
1453 `indicate-empty-lines' to a non-nil value.  The default value of this
1454 variable is found in `default-indicate-empty-lines'.
1456 ** There is a new "aggressive" scrolling method.
1458 When scrolling up because point is above the window start, if the
1459 value of the buffer-local variable `scroll-up-aggressively' is a
1460 number, Emacs chooses a new window start so that point ends up that
1461 fraction of the window's height from the top of the window.
1463 When scrolling down because point is below the window end, if the
1464 value of the buffer-local variable `scroll-down-aggressively' is a
1465 number, Emacs chooses a new window start so that point ends up that
1466 fraction of the window's height from the bottom of the window.
1468 ** You can now easily create new *Info* buffers using either
1469 M-x clone-buffer, C-u m <entry> RET or C-u g <entry> RET.
1470 M-x clone-buffer can also be used on *Help* and several other special
1471 buffers.
1473 ** The command `Info-search' now uses a search history.
1475 ** Listing buffers with M-x list-buffers (C-x C-b) now shows
1476 abbreviated file names.  Abbreviations can be customized by changing
1477 `directory-abbrev-alist'.
1479 ** A new variable, backup-by-copying-when-privileged-mismatch, gives
1480 the highest file uid for which backup-by-copying-when-mismatch will be
1481 forced on.  The assumption is that uids less than or equal to this
1482 value are special uids (root, bin, daemon, etc.--not real system
1483 users) and that files owned by these users should not change ownership,
1484 even if your system policy allows users other than root to edit them.
1486 The default is 200; set the variable to nil to disable the feature.
1488 ** The rectangle commands now avoid inserting undesirable spaces,
1489 notably at the end of lines.
1491 All these functions have been rewritten to avoid inserting unwanted
1492 spaces, and an optional prefix now allows them to behave the old way.
1494 ** The function `replace-rectangle' is an alias for `string-rectangle'.
1496 ** The new command M-x string-insert-rectangle is like `string-rectangle',
1497 but inserts text instead of replacing it.
1499 ** The new command M-x query-replace-regexp-eval acts like
1500 query-replace-regexp, but takes a Lisp expression which is evaluated
1501 after each match to get the replacement text.
1503 ** M-x query-replace recognizes a new command `e' (or `E') that lets
1504 you edit the replacement string.
1506 ** The new command mail-abbrev-complete-alias, bound to `M-TAB'
1507 (if you load the library `mailabbrev'), lets you complete mail aliases
1508 in the text, analogous to lisp-complete-symbol.
1510 ** The variable `echo-keystrokes' may now have a floating point value.
1512 ** If your init file is compiled (.emacs.elc), `user-init-file' is set
1513 to the source name (.emacs.el), if that exists, after loading it.
1515 ** The help string specified for a menu-item whose definition contains
1516 the property `:help HELP' is now displayed under X, on MS-Windows, and
1517 MS-DOS, either in the echo area or with tooltips.  Many standard menus
1518 displayed by Emacs now have help strings.
1521 ** New user option `read-mail-command' specifies a command to use to
1522 read mail from the menu etc.
1524 ** The environment variable `EMACSLOCKDIR' is no longer used on MS-Windows.
1525 This environment variable was used when creating lock files.  Emacs on
1526 MS-Windows does not use this variable anymore.  This change was made
1527 before Emacs 21.1, but wasn't documented until now.
1529 ** Highlighting of mouse-sensitive regions is now supported in the
1530 MS-DOS version of Emacs.
1532 ** The new command `msdos-set-mouse-buttons' forces the MS-DOS version
1533 of Emacs to behave as if the mouse had a specified number of buttons.
1534 This comes handy with mice that don't report their number of buttons
1535 correctly.  One example is the wheeled mice, which report 3 buttons,
1536 but clicks on the middle button are not passed to the MS-DOS version
1537 of Emacs.
1539 ** Customize changes
1541 *** Customize now supports comments about customized items.  Use the
1542 `State' menu to add comments, or give a prefix argument to
1543 M-x customize-set-variable or M-x customize-set-value.  Note that
1544 customization comments will cause the customizations to fail in
1545 earlier versions of Emacs.
1547 *** The new option `custom-buffer-done-function' says whether to kill
1548 Custom buffers when you've done with them or just bury them (the
1549 default).
1551 *** If Emacs was invoked with the `-q' or `--no-init-file' options, it
1552 does not allow you to save customizations in your `~/.emacs' init
1553 file.  This is because saving customizations from such a session would
1554 wipe out all the other customizationss you might have on your init
1555 file.
1557 ** If Emacs was invoked with the `-q' or `--no-init-file' options, it
1558 does not save disabled and enabled commands for future sessions, to
1559 avoid overwriting existing customizations of this kind that are
1560 already in your init file.
1562 ** New features in evaluation commands
1564 *** The commands to evaluate Lisp expressions, such as C-M-x in Lisp
1565 modes, C-j in Lisp Interaction mode, and M-:, now bind the variables
1566 print-level, print-length, and debug-on-error based on the new
1567 customizable variables eval-expression-print-level,
1568 eval-expression-print-length, and eval-expression-debug-on-error.
1570 The default values for the first two of these variables are 12 and 4
1571 respectively, which means that `eval-expression' now prints at most
1572 the first 12 members of a list and at most 4 nesting levels deep (if
1573 the list is longer or deeper than that, an ellipsis `...'  is
1574 printed).
1576 <RET> or <mouse-2> on the printed text toggles between an abbreviated
1577 printed representation and an unabbreviated one.
1579 The default value of eval-expression-debug-on-error is t, so any error
1580 during evaluation produces a backtrace.
1582 *** The function `eval-defun' (C-M-x) now loads Edebug and instruments
1583 code when called with a prefix argument.
1585 ** CC mode changes.
1587 Note: This release contains changes that might not be compatible with
1588 current user setups (although it's believed that these
1589 incompatibilities will only show in very uncommon circumstances).
1590 However, since the impact is uncertain, these changes may be rolled
1591 back depending on user feedback.  Therefore there's no forward
1592 compatibility guarantee wrt the new features introduced in this
1593 release.
1595 *** The hardcoded switch to "java" style in Java mode is gone.
1596 CC Mode used to automatically set the style to "java" when Java mode
1597 is entered.  This has now been removed since it caused too much
1598 confusion.
1600 However, to keep backward compatibility to a certain extent, the
1601 default value for c-default-style now specifies the "java" style for
1602 java-mode, but "gnu" for all other modes (as before).  So you won't
1603 notice the change if you haven't touched that variable.
1605 *** New cleanups, space-before-funcall and compact-empty-funcall.
1606 Two new cleanups have been added to c-cleanup-list:
1608 space-before-funcall causes a space to be inserted before the opening
1609 parenthesis of a function call, which gives the style "foo (bar)".
1611 compact-empty-funcall causes any space before a function call opening
1612 parenthesis to be removed if there are no arguments to the function.
1613 It's typically useful together with space-before-funcall to get the
1614 style "foo (bar)" and "foo()".
1616 *** Some keywords now automatically trigger reindentation.
1617 Keywords like "else", "while", "catch" and "finally" have been made
1618 "electric" to make them reindent automatically when they continue an
1619 earlier statement.  An example:
1621 for (i = 0; i < 17; i++)
1622   if (a[i])
1623     res += a[i]->offset;
1624 else
1626 Here, the "else" should be indented like the preceding "if", since it
1627 continues that statement. CC Mode will automatically reindent it after
1628 the "else" has been typed in full, since it's not until then it's
1629 possible to decide whether it's a new statement or a continuation of
1630 the preceding "if".
1632 CC Mode uses Abbrev mode to achieve this, which is therefore turned on
1633 by default.
1635 *** M-a and M-e now moves by sentence in multiline strings.
1636 Previously these two keys only moved by sentence in comments, which
1637 meant that sentence movement didn't work in strings containing
1638 documentation or other natural language text.
1640 The reason it's only activated in multiline strings (i.e. strings that
1641 contain a newline, even when escaped by a '\') is to avoid stopping in
1642 the short strings that often reside inside statements.  Multiline
1643 strings almost always contain text in a natural language, as opposed
1644 to other strings that typically contain format specifications,
1645 commands, etc.  Also, it's not that bothersome that M-a and M-e misses
1646 sentences in single line strings, since they're short anyway.
1648 *** Support for autodoc comments in Pike mode.
1649 Autodoc comments for Pike are used to extract documentation from the
1650 source, like Javadoc in Java.  Pike mode now recognize this markup in
1651 comment prefixes and paragraph starts.
1653 *** The comment prefix regexps on c-comment-prefix may be mode specific.
1654 When c-comment-prefix is an association list, it specifies the comment
1655 line prefix on a per-mode basis, like c-default-style does.  This
1656 change came about to support the special autodoc comment prefix in
1657 Pike mode only.
1659 *** Better handling of syntactic errors.
1660 The recovery after unbalanced parens earlier in the buffer has been
1661 improved; CC Mode now reports them by dinging and giving a message
1662 stating the offending line, but still recovers and indent the
1663 following lines in a sane way (most of the time).  An "else" with no
1664 matching "if" is handled similarly.  If an error is discovered while
1665 indenting a region, the whole region is still indented and the error
1666 is reported afterwards.
1668 *** Lineup functions may now return absolute columns.
1669 A lineup function can give an absolute column to indent the line to by
1670 returning a vector with the desired column as the first element.
1672 *** More robust and warning-free byte compilation.
1673 Although this is strictly not a user visible change (well, depending
1674 on the view of a user), it's still worth mentioning that CC Mode now
1675 can be compiled in the standard ways without causing trouble.  Some
1676 code have also been moved between the subpackages to enhance the
1677 modularity somewhat.  Thanks to Martin Buchholz for doing the
1678 groundwork.
1680 *** c-style-variables-are-local-p now defaults to t.
1681 This is an incompatible change that has been made to make the behavior
1682 of the style system wrt global variable settings less confusing for
1683 non-advanced users.  If you know what this variable does you might
1684 want to set it to nil in your .emacs, otherwise you probably don't
1685 have to bother.
1687 Defaulting c-style-variables-are-local-p to t avoids the confusing
1688 situation that occurs when a user sets some style variables globally
1689 and edits both a Java and a non-Java file in the same Emacs session.
1690 If the style variables aren't buffer local in this case, loading of
1691 the second file will cause the default style (either "gnu" or "java"
1692 by default) to override the global settings made by the user.
1694 *** New initialization procedure for the style system.
1695 When the initial style for a buffer is determined by CC Mode (from the
1696 variable c-default-style), the global values of style variables now
1697 take precedence over the values specified by the chosen style.  This
1698 is different than the old behavior: previously, the style-specific
1699 settings would override the global settings.  This change makes it
1700 possible to do simple configuration in the intuitive way with
1701 Customize or with setq lines in one's .emacs file.
1703 By default, the global value of every style variable is the new
1704 special symbol set-from-style, which causes the value to be taken from
1705 the style system.  This means that in effect, only an explicit setting
1706 of a style variable will cause the "overriding" behavior described
1707 above.
1709 Also note that global settings override style-specific settings *only*
1710 when the initial style of a buffer is chosen by a CC Mode major mode
1711 function.  When a style is chosen in other ways --- for example, by a
1712 call like (c-set-style "gnu") in a hook, or via M-x c-set-style ---
1713 then the style-specific values take precedence over any global style
1714 values.  In Lisp terms, global values override style-specific values
1715 only when the new second argument to c-set-style is non-nil; see the
1716 function documentation for more info.
1718 The purpose of these changes is to make it easier for users,
1719 especially novice users, to do simple customizations with Customize or
1720 with setq in their .emacs files.  On the other hand, the new system is
1721 intended to be compatible with advanced users' customizations as well,
1722 such as those that choose styles in hooks or whatnot.  This new system
1723 is believed to be almost entirely compatible with current
1724 configurations, in spite of the changed precedence between style and
1725 global variable settings when a buffer's default style is set.
1727 (Thanks to Eric Eide for clarifying this explanation a bit.)
1729 **** c-offsets-alist is now a customizable variable.
1730 This became possible as a result of the new initialization behavior.
1732 This variable is treated slightly differently from the other style
1733 variables; instead of using the symbol set-from-style, it will be
1734 completed with the syntactic symbols it doesn't already contain when
1735 the style is first initialized.  This means it now defaults to the
1736 empty list to make all syntactic elements get their values from the
1737 style system.
1739 **** Compatibility variable to restore the old behavior.
1740 In case your configuration doesn't work with this change, you can set
1741 c-old-style-variable-behavior to non-nil to get the old behavior back
1742 as far as possible.
1744 *** Improvements to line breaking and text filling.
1745 CC Mode now handles this more intelligently and seamlessly wrt the
1746 surrounding code, especially inside comments.  For details see the new
1747 chapter about this in the manual.
1749 **** New variable to recognize comment line prefix decorations.
1750 The variable c-comment-prefix-regexp has been added to properly
1751 recognize the line prefix in both block and line comments.  It's
1752 primarily used to initialize the various paragraph recognition and
1753 adaptive filling variables that the text handling functions uses.
1755 **** New variable c-block-comment-prefix.
1756 This is a generalization of the now obsolete variable
1757 c-comment-continuation-stars to handle arbitrary strings.
1759 **** CC Mode now uses adaptive fill mode.
1760 This to make it adapt better to the paragraph style inside comments.
1762 It's also possible to use other adaptive filling packages inside CC
1763 Mode, notably Kyle E. Jones' Filladapt mode (http://wonderworks.com/).
1764 A new convenience function c-setup-filladapt sets up Filladapt for use
1765 inside CC Mode.
1767 Note though that the 2.12 version of Filladapt lacks a feature that
1768 causes it to work suboptimally when c-comment-prefix-regexp can match
1769 the empty string (which it commonly does).  A patch for that is
1770 available from the CC Mode web site (http://www.python.org/emacs/
1771 cc-mode/).
1773 **** The variables `c-hanging-comment-starter-p' and
1774 `c-hanging-comment-ender-p', which controlled how comment starters and
1775 enders were filled, are not used anymore.  The new version of the
1776 function `c-fill-paragraph' keeps the comment starters and enders as
1777 they were before the filling.
1779 **** It's now possible to selectively turn off auto filling.
1780 The variable c-ignore-auto-fill is used to ignore auto fill mode in
1781 specific contexts, e.g. in preprocessor directives and in string
1782 literals.
1784 **** New context sensitive line break function c-context-line-break.
1785 It works like newline-and-indent in normal code, and adapts the line
1786 prefix according to the comment style when used inside comments.  If
1787 you're normally using newline-and-indent, you might want to switch to
1788 this function.
1790 *** Fixes to IDL mode.
1791 It now does a better job in recognizing only the constructs relevant
1792 to IDL.  E.g. it no longer matches "class" as the beginning of a
1793 struct block, but it does match the CORBA 2.3 "valuetype" keyword.
1794 Thanks to Eric Eide.
1796 *** Improvements to the Whitesmith style.
1797 It now keeps the style consistently on all levels and both when
1798 opening braces hangs and when they don't.
1800 **** New lineup function c-lineup-whitesmith-in-block.
1802 *** New lineup functions c-lineup-template-args and c-indent-multi-line-block.
1803 See their docstrings for details.  c-lineup-template-args does a
1804 better job of tracking the brackets used as parens in C++ templates,
1805 and is used by default to line up continued template arguments.
1807 *** c-lineup-comment now preserves alignment with a comment on the
1808 previous line.  It used to instead preserve comments that started in
1809 the column specified by comment-column.
1811 *** c-lineup-C-comments handles "free form" text comments.
1812 In comments with a long delimiter line at the start, the indentation
1813 is kept unchanged for lines that start with an empty comment line
1814 prefix.  This is intended for the type of large block comments that
1815 contain documentation with its own formatting.  In these you normally
1816 don't want CC Mode to change the indentation.
1818 *** The `c' syntactic symbol is now relative to the comment start
1819 instead of the previous line, to make integers usable as lineup
1820 arguments.
1822 *** All lineup functions have gotten docstrings.
1824 *** More preprocessor directive movement functions.
1825 c-down-conditional does the reverse of c-up-conditional.
1826 c-up-conditional-with-else and c-down-conditional-with-else are
1827 variants of these that also stops at "#else" lines (suggested by Don
1828 Provan).
1830 *** Minor improvements to many movement functions in tricky situations.
1832 ** Dired changes
1834 *** New variable `dired-recursive-deletes' determines if the delete
1835 command will delete non-empty directories recursively.  The default
1836 is, delete only empty directories.
1838 *** New variable `dired-recursive-copies' determines if the copy
1839 command will copy directories recursively.  The default is, do not
1840 copy directories recursively.
1842 *** In command `dired-do-shell-command' (usually bound to `!') a `?'
1843 in the shell command has a special meaning similar to `*', but with
1844 the difference that the command will be run on each file individually.
1846 *** The new command `dired-find-alternate-file' (usually bound to `a')
1847 replaces the Dired buffer with the buffer for an alternate file or
1848 directory.
1850 *** The new command `dired-show-file-type' (usually bound to `y') shows
1851 a message in the echo area describing what type of file the point is on.
1852 This command invokes the external program `file' do its work, and so
1853 will only work on systems with that program, and will be only as
1854 accurate or inaccurate as it is.
1856 *** Dired now properly handles undo changes of adding/removing `-R'
1857 from ls switches.
1859 *** Dired commands that prompt for a destination file now allow the use
1860 of the `M-n' command in the minibuffer to insert the source filename,
1861 which the user can then edit.  This only works if there is a single
1862 source file, not when operating on multiple marked files.
1864 ** Gnus changes.
1866 The Gnus NEWS entries are short, but they reflect sweeping changes in
1867 four areas: Article display treatment, MIME treatment,
1868 internationalization and mail-fetching.
1870 *** The mail-fetching functions have changed.  See the manual for the
1871 many details.  In particular, all procmail fetching variables are gone.
1873 If you used procmail like in
1875 (setq nnmail-use-procmail t)
1876 (setq nnmail-spool-file 'procmail)
1877 (setq nnmail-procmail-directory "~/mail/incoming/")
1878 (setq nnmail-procmail-suffix "\\.in")
1880 this now has changed to
1882 (setq mail-sources
1883       '((directory :path "~/mail/incoming/"
1884                    :suffix ".in")))
1886 More information is available in the info doc at Select Methods ->
1887 Getting Mail -> Mail Sources
1889 *** Gnus is now a MIME-capable reader.  This affects many parts of
1890 Gnus, and adds a slew of new commands.  See the manual for details.
1891 Separate MIME packages like RMIME, mime-compose etc., will probably no
1892 longer work; remove them and use the native facilities.
1894 The FLIM/SEMI package still works with Emacs 21, but if you want to
1895 use the native facilities, you must remove any mailcap.el[c] that was
1896 installed by FLIM/SEMI version 1.13 or earlier.
1898 *** Gnus has also been multilingualized.  This also affects too many
1899 parts of Gnus to summarize here, and adds many new variables.  There
1900 are built-in facilities equivalent to those of gnus-mule.el, which is
1901 now just a compatibility layer.
1903 *** gnus-mule.el is now just a compatibility layer over the built-in
1904 Gnus facilities.
1906 *** gnus-auto-select-first can now be a function to be
1907 called to position point.
1909 *** The user can now decide which extra headers should be included in
1910 summary buffers and NOV files.
1912 *** `gnus-article-display-hook' has been removed.  Instead, a number
1913 of variables starting with `gnus-treat-' have been added.
1915 *** The Gnus posting styles have been redone again and now work in a
1916 subtly different manner.
1918 *** New web-based backends have been added: nnslashdot, nnwarchive
1919 and nnultimate.  nnweb has been revamped, again, to keep up with
1920 ever-changing layouts.
1922 *** Gnus can now read IMAP mail via nnimap.
1924 *** There is image support of various kinds and some sound support.
1926 ** Changes in Texinfo mode.
1928 *** A couple of new key bindings have been added for inserting Texinfo
1929 macros
1931   Key binding   Macro
1932   -------------------------
1933   C-c C-c C-s   @strong
1934   C-c C-c C-e   @emph
1935   C-c C-c u     @uref
1936   C-c C-c q     @quotation
1937   C-c C-c m     @email
1938   C-c C-o       @<block> ... @end <block>
1939   M-RET         @item
1941 *** The " key now inserts either " or `` or '' depending on context.
1943 ** Changes in Outline mode.
1945 There is now support for Imenu to index headings.  A new command
1946 `outline-headers-as-kill' copies the visible headings in the region to
1947 the kill ring, e.g. to produce a table of contents.
1949 ** Changes to Emacs Server
1951 *** The new option `server-kill-new-buffers' specifies what to do
1952 with buffers when done with them.  If non-nil, the default, buffers
1953 are killed, unless they were already present before visiting them with
1954 Emacs Server.  If nil, `server-temp-file-regexp' specifies which
1955 buffers to kill, as before.
1957 Please note that only buffers are killed that still have a client,
1958 i.e. buffers visited with `emacsclient --no-wait' are never killed in
1959 this way.
1961 ** Both emacsclient and Emacs itself now accept command line options
1962 of the form +LINE:COLUMN in addition to +LINE.
1964 ** Changes to Show Paren mode.
1966 *** Overlays used by Show Paren mode now use a priority property.
1967 The new user option show-paren-priority specifies the priority to
1968 use.  Default is 1000.
1970 ** New command M-x check-parens can be used to find unbalanced paren
1971 groups and strings in buffers in Lisp mode (or other modes).
1973 ** Changes to hideshow.el
1975 *** Generalized block selection and traversal
1977 A block is now recognized by its start and end regexps (both strings),
1978 and an integer specifying which sub-expression in the start regexp
1979 serves as the place where a `forward-sexp'-like function can operate.
1980 See the documentation of variable `hs-special-modes-alist'.
1982 *** During incremental search, if Hideshow minor mode is active,
1983 hidden blocks are temporarily shown.  The variable `hs-headline' can
1984 be used in the mode line format to show the line at the beginning of
1985 the open block.
1987 *** User option `hs-hide-all-non-comment-function' specifies a
1988 function to be called at each top-level block beginning, instead of
1989 the normal block-hiding function.
1991 *** The command `hs-show-region' has been removed.
1993 *** The key bindings have changed to fit the Emacs conventions,
1994 roughly imitating those of Outline minor mode.  Notably, the prefix
1995 for all bindings is now `C-c @'.  For details, see the documentation
1996 for `hs-minor-mode'.
1998 *** The variable `hs-show-hidden-short-form' has been removed, and
1999 hideshow.el now always behaves as if this variable were set to t.
2001 ** Changes to Change Log mode and Add-Log functions
2003 *** If you invoke `add-change-log-entry' from a backup file, it makes
2004 an entry appropriate for the file's parent.  This is useful for making
2005 log entries by comparing a version with deleted functions.
2007 **** New command M-x change-log-merge merges another log into the
2008 current buffer.
2010 *** New command M-x change-log-redate fixes any old-style date entries
2011 in a log file.
2013 *** Change Log mode now adds a file's version number to change log
2014 entries if user-option `change-log-version-info-enabled' is non-nil.
2015 Unless the file is under version control the search for a file's
2016 version number is performed based on regular expressions from
2017 `change-log-version-number-regexp-list' which can be customized.
2018 Version numbers are only found in the first 10 percent of a file.
2020 *** Change Log mode now defines its own faces for font-lock highlighting.
2022 ** Changes to cmuscheme
2024 *** The user-option `scheme-program-name' has been renamed
2025 `cmuscheme-program-name' due to conflicts with xscheme.el.
2027 ** Changes in Font Lock
2029 *** The new function `font-lock-remove-keywords' can be used to remove
2030 font-lock keywords from the current buffer or from a specific major mode.
2032 *** Multi-line patterns are now supported.  Modes using this, should
2033 set font-lock-multiline to t in their font-lock-defaults.
2035 *** `font-lock-syntactic-face-function' allows major-modes to choose
2036 the face used for each string/comment.
2038 *** A new standard face `font-lock-doc-face'.
2039 Meant for Lisp docstrings, Javadoc comments and other "documentation in code".
2041 ** Changes to Shell mode
2043 *** The `shell' command now accepts an optional argument to specify the buffer
2044 to use, which defaults to "*shell*".  When used interactively, a
2045 non-default buffer may be specified by giving the `shell' command a
2046 prefix argument (causing it to prompt for the buffer name).
2048 ** Comint (subshell) changes
2050 These changes generally affect all modes derived from comint mode, which
2051 include shell-mode, gdb-mode, scheme-interaction-mode, etc.
2053 *** Comint now by default interprets some carriage-control characters.
2054 Comint now removes CRs from CR LF sequences, and treats single CRs and
2055 BSs in the output in a way similar to a terminal (by deleting to the
2056 beginning of the line, or deleting the previous character,
2057 respectively).  This is achieved by adding `comint-carriage-motion' to
2058 the `comint-output-filter-functions' hook by default.
2060 *** By default, comint no longer uses the variable `comint-prompt-regexp'
2061 to distinguish prompts from user-input.  Instead, it notices which
2062 parts of the text were output by the process, and which entered by the
2063 user, and attaches `field' properties to allow emacs commands to use
2064 this information.  Common movement commands, notably beginning-of-line,
2065 respect field boundaries in a fairly natural manner.  To disable this
2066 feature, and use the old behavior, customize the user option
2067 `comint-use-prompt-regexp-instead-of-fields'.
2069 *** Comint now includes new features to send commands to running processes
2070 and redirect the output to a designated buffer or buffers.
2072 *** The command M-x comint-redirect-send-command reads a command and
2073 buffer name from the mini-buffer.  The command is sent to the current
2074 buffer's process, and its output is inserted into the specified buffer.
2076 The command M-x comint-redirect-send-command-to-process acts like
2077 M-x comint-redirect-send-command but additionally reads the name of
2078 the buffer whose process should be used from the mini-buffer.
2080 *** Packages based on comint now highlight user input and program prompts,
2081 and support choosing previous input with mouse-2.  To control these features,
2082 see the user-options `comint-highlight-input' and `comint-highlight-prompt'.
2084 *** The new command `comint-write-output' (usually bound to `C-c C-s')
2085 saves the output from the most recent command to a file.  With a prefix
2086 argument, it appends to the file.
2088 *** The command `comint-kill-output' has been renamed `comint-delete-output'
2089 (usually bound to `C-c C-o'); the old name is aliased to it for
2090 compatibility.
2092 *** The new function `comint-add-to-input-history' adds commands to the input
2093 ring (history).
2095 *** The new variable `comint-input-history-ignore' is a regexp for
2096 identifying history lines that should be ignored, like tcsh time-stamp
2097 strings, starting with a `#'.  The default value of this variable is "^#".
2099 ** Changes to Rmail mode
2101 *** The new user-option rmail-user-mail-address-regexp can be
2102 set to fine tune the identification of the correspondent when
2103 receiving new mail.  If it matches the address of the sender, the
2104 recipient is taken as correspondent of a mail.  If nil, the default,
2105 `user-login-name' and `user-mail-address' are used to exclude yourself
2106 as correspondent.
2108 Usually you don't have to set this variable, except if you collect
2109 mails sent by you under different user names.  Then it should be a
2110 regexp matching your mail addresses.
2112 *** The new user-option rmail-confirm-expunge controls whether and how
2113 to ask for confirmation before expunging deleted messages from an
2114 Rmail file.  You can choose between no confirmation, confirmation
2115 with y-or-n-p, or confirmation with yes-or-no-p.  Default is to ask
2116 for confirmation with yes-or-no-p.
2118 *** RET is now bound in the Rmail summary to rmail-summary-goto-msg,
2119 like `j'.
2121 *** There is a new user option `rmail-digest-end-regexps' that
2122 specifies the regular expressions to detect the line that ends a
2123 digest message.
2125 *** The new user option `rmail-automatic-folder-directives' specifies
2126 in which folder to put messages automatically.
2128 *** The new function `rmail-redecode-body' allows to fix a message
2129 with non-ASCII characters if Emacs happens to decode it incorrectly
2130 due to missing or malformed "charset=" header.
2132 ** The new user-option `mail-envelope-from' can be used to specify
2133 an envelope-from address different from user-mail-address.
2135 ** The variable mail-specify-envelope-from controls whether to
2136 use the -f option when sending mail.
2138 ** The Rmail command `o' (`rmail-output-to-rmail-file') now writes the
2139 current message in the internal `emacs-mule' encoding, rather than in
2140 the encoding taken from the variable `buffer-file-coding-system'.
2141 This allows to save messages whose characters cannot be safely encoded
2142 by the buffer's coding system, and makes sure the message will be
2143 displayed correctly when you later visit the target Rmail file.
2145 If you want your Rmail files be encoded in a specific coding system
2146 other than `emacs-mule', you can customize the variable
2147 `rmail-file-coding-system' to set its value to that coding system.
2149 ** Changes to TeX mode
2151 *** The default mode has been changed from `plain-tex-mode' to
2152 `latex-mode'.
2154 *** latex-mode now has a simple indentation algorithm.
2156 *** M-f and M-p jump around \begin...\end pairs.
2158 *** Added support for outline-minor-mode.
2160 ** Changes to RefTeX mode
2162 *** RefTeX has new support for index generation.  Index entries can be
2163     created with `C-c <', with completion available on index keys.
2164     Pressing `C-c /' indexes the word at the cursor with a default
2165     macro.  `C-c >' compiles all index entries into an alphabetically
2166     sorted *Index* buffer which looks like the final index.  Entries
2167     can be edited from that buffer.
2169 *** Label and citation key selection now allow to select several
2170     items and reference them together (use `m' to mark items, `a' or
2171     `A' to use all marked entries).
2173 *** reftex.el has been split into a number of smaller files to reduce
2174     memory use when only a part of RefTeX is being used.
2176 *** a new command `reftex-view-crossref-from-bibtex' (bound to `C-c &'
2177     in BibTeX-mode) can be called in a BibTeX database buffer in order
2178     to show locations in LaTeX documents where a particular entry has
2179     been cited.
2181 ** Emacs Lisp mode now allows multiple levels of outline headings.
2182 The level of a heading is determined from the number of leading
2183 semicolons in a heading line.  Toplevel forms starting with a `('
2184 in column 1 are always made leaves.
2186 ** The M-x time-stamp command (most commonly used on write-file-hooks)
2187 has the following new features:
2189 *** The patterns for finding the time stamp and for updating a pattern
2190 may match text spanning multiple lines.  For example, some people like
2191 to have the filename and date on separate lines.  The new variable
2192 time-stamp-inserts-lines controls the matching for multi-line patterns.
2194 *** More than one time stamp can be updated in the same file.  This
2195 feature is useful if you need separate time stamps in a program source
2196 file to both include in formatted documentation and insert in the
2197 compiled binary.  The same time-stamp will be written at each matching
2198 pattern.  The variable time-stamp-count enables this new feature; it
2199 defaults to 1.
2201 ** Partial Completion mode now completes environment variables in
2202 file names.
2204 ** Ispell changes
2206 *** The command `ispell' now spell-checks a region if
2207 transient-mark-mode is on, and the mark is active.  Otherwise it
2208 spell-checks the current buffer.
2210 *** Support for synchronous subprocesses - DOS/Windoze - has been
2211 added.
2213 *** An "alignment error" bug was fixed when a manual spelling
2214 correction is made and re-checked.
2216 *** An Italian, Portuguese, and Slovak dictionary definition has been added.
2218 *** Region skipping performance has been vastly improved in some
2219 cases.
2221 *** Spell checking HTML buffers has been improved and isn't so strict
2222 on syntax errors.
2224 *** The buffer-local words are now always placed on a new line at the
2225 end of the buffer.
2227 *** Spell checking now works in the MS-DOS version of Emacs.
2229 ** Makefile mode changes
2231 *** The mode now uses the abbrev table `makefile-mode-abbrev-table'.
2233 *** Conditionals and include statements are now highlighted when
2234 Fontlock mode is active.
2236 ** Isearch changes
2238 *** Isearch now puts a call to `isearch-resume' in the command history,
2239 so that searches can be resumed.
2241 *** In Isearch mode, C-M-s and C-M-r are now bound like C-s and C-r,
2242 respectively, i.e. you can repeat a regexp isearch with the same keys
2243 that started the search.
2245 *** In Isearch mode, mouse-2 in the echo area now yanks the current
2246 selection into the search string rather than giving an error.
2248 *** There is a new lazy highlighting feature in incremental search.
2250 Lazy highlighting is switched on/off by customizing variable
2251 `isearch-lazy-highlight'.  When active, all matches for the current
2252 search string are highlighted.  The current match is highlighted as
2253 before using face `isearch' or `region'.  All other matches are
2254 highlighted using face `isearch-lazy-highlight-face' which defaults to
2255 `secondary-selection'.
2257 The extra highlighting makes it easier to anticipate where the cursor
2258 will end up each time you press C-s or C-r to repeat a pending search.
2259 Highlighting of these additional matches happens in a deferred fashion
2260 using "idle timers," so the cycles needed do not rob isearch of its
2261 usual snappy response.
2263 If `isearch-lazy-highlight-cleanup' is set to t, highlights for
2264 matches are automatically cleared when you end the search.  If it is
2265 set to nil, you can remove the highlights manually with `M-x
2266 isearch-lazy-highlight-cleanup'.
2268 ** VC Changes
2270 VC has been overhauled internally.  It is now modular, making it
2271 easier to plug-in arbitrary version control backends.  (See Lisp
2272 Changes for details on the new structure.)  As a result, the mechanism
2273 to enable and disable support for particular version systems has
2274 changed: everything is now controlled by the new variable
2275 `vc-handled-backends'.  Its value is a list of symbols that identify
2276 version systems; the default is '(RCS CVS SCCS).  When finding a file,
2277 each of the backends in that list is tried in order to see whether the
2278 file is registered in that backend.
2280 When registering a new file, VC first tries each of the listed
2281 backends to see if any of them considers itself "responsible" for the
2282 directory of the file (e.g. because a corresponding subdirectory for
2283 master files exists).  If none of the backends is responsible, then
2284 the first backend in the list that could register the file is chosen.
2285 As a consequence, the variable `vc-default-back-end' is now obsolete.
2287 The old variable `vc-master-templates' is also obsolete, although VC
2288 still supports it for backward compatibility.  To define templates for
2289 RCS or SCCS, you should rather use the new variables
2290 vc-{rcs,sccs}-master-templates.  (There is no such feature under CVS
2291 where it doesn't make sense.)
2293 The variables `vc-ignore-vc-files' and `vc-handle-cvs' are also
2294 obsolete now, you must set `vc-handled-backends' to nil or exclude
2295 `CVS' from the list, respectively, to achieve their effect now.
2297 *** General Changes
2299 The variable `vc-checkout-carefully' is obsolete: the corresponding
2300 checks are always done now.
2302 VC Dired buffers are now kept up-to-date during all version control
2303 operations.
2305 `vc-diff' output is now displayed in `diff-mode'.
2306 `vc-print-log' uses `log-view-mode'.
2307 `vc-log-mode' (used for *VC-Log*) has been replaced by `log-edit-mode'.
2309 The command C-x v m (vc-merge) now accepts an empty argument as the
2310 first revision number.  This means that any recent changes on the
2311 current branch should be picked up from the repository and merged into
2312 the working file (``merge news'').
2314 The commands C-x v s (vc-create-snapshot) and C-x v r
2315 (vc-retrieve-snapshot) now ask for a directory name from which to work
2316 downwards.
2318 *** Multiple Backends
2320 VC now lets you register files in more than one backend.  This is
2321 useful, for example, if you are working with a slow remote CVS
2322 repository.  You can then use RCS for local editing, and occasionally
2323 commit your changes back to CVS, or pick up changes from CVS into your
2324 local RCS archives.
2326 To make this work, the ``more local'' backend (RCS in our example)
2327 should come first in `vc-handled-backends', and the ``more remote''
2328 backend (CVS) should come later.  (The default value of
2329 `vc-handled-backends' already has it that way.)
2331 You can then commit changes to another backend (say, RCS), by typing
2332 C-u C-x v v RCS RET (i.e. vc-next-action now accepts a backend name as
2333 a revision number).  VC registers the file in the more local backend
2334 if that hasn't already happened, and commits to a branch based on the
2335 current revision number from the more remote backend.
2337 If a file is registered in multiple backends, you can switch to
2338 another one using C-x v b (vc-switch-backend).  This does not change
2339 any files, it only changes VC's perspective on the file.  Use this to
2340 pick up changes from CVS while working under RCS locally.
2342 After you are done with your local RCS editing, you can commit your
2343 changes back to CVS using C-u C-x v v CVS RET.  In this case, the
2344 local RCS archive is removed after the commit, and the log entry
2345 buffer is initialized to contain the entire RCS change log of the file.
2347 *** Changes for CVS
2349 There is a new user option, `vc-cvs-stay-local'.  If it is `t' (the
2350 default), then VC avoids network queries for files registered in
2351 remote repositories.  The state of such files is then only determined
2352 by heuristics and past information.  `vc-cvs-stay-local' can also be a
2353 regexp to match against repository hostnames; only files from hosts
2354 that match it are treated locally.  If the variable is nil, then VC
2355 queries the repository just as often as it does for local files.
2357 If `vc-cvs-stay-local' is on, then VC also makes local backups of
2358 repository versions.  This means that ordinary diffs (C-x v =) and
2359 revert operations (C-x v u) can be done completely locally, without
2360 any repository interactions at all.  The name of a local version
2361 backup of FILE is FILE.~REV.~, where REV is the repository version
2362 number.  This format is similar to that used by C-x v ~
2363 (vc-version-other-window), except for the trailing dot.  As a matter
2364 of fact, the two features can each use the files created by the other,
2365 the only difference being that files with a trailing `.' are deleted
2366 automatically after commit.  (This feature doesn't work on MS-DOS,
2367 since DOS disallows more than a single dot in the trunk of a file
2368 name.)
2370 If `vc-cvs-stay-local' is on, and there have been changes in the
2371 repository, VC notifies you about it when you actually try to commit.
2372 If you want to check for updates from the repository without trying to
2373 commit, you can either use C-x v m RET to perform an update on the
2374 current file, or you can use C-x v r RET to get an update for an
2375 entire directory tree.
2377 The new user option `vc-cvs-use-edit' indicates whether VC should call
2378 "cvs edit" to make files writeable; it defaults to `t'.  (This option
2379 is only meaningful if the CVSREAD variable is set, or if files are
2380 "watched" by other developers.)
2382 The commands C-x v s (vc-create-snapshot) and C-x v r
2383 (vc-retrieve-snapshot) are now also implemented for CVS.  If you give
2384 an empty snapshot name to the latter, that performs a `cvs update',
2385 starting at the given directory.
2387 *** Lisp Changes in VC
2389 VC has been restructured internally to make it modular.  You can now
2390 add support for arbitrary version control backends by writing a
2391 library that provides a certain set of backend-specific functions, and
2392 then telling VC to use that library.  For example, to add support for
2393 a version system named SYS, you write a library named vc-sys.el, which
2394 provides a number of functions vc-sys-... (see commentary at the top
2395 of vc.el for a detailed list of them).  To make VC use that library,
2396 you need to put it somewhere into Emacs' load path and add the symbol
2397 `SYS' to the list `vc-handled-backends'.
2399 ** The customizable EDT emulation package now supports the EDT
2400 SUBS command and EDT scroll margins.  It also works with more
2401 terminal/keyboard configurations and it now works under XEmacs.
2402 See etc/edt-user.doc for more information.
2404 ** New modes and packages
2406 *** The new global minor mode `minibuffer-electric-default-mode'
2407 automatically hides the `(default ...)' part of minibuffer prompts when
2408 the default is not applicable.
2410 *** Artist is an Emacs lisp package that allows you to draw lines,
2411 rectangles and ellipses by using your mouse and/or keyboard.  The
2412 shapes are made up with the ascii characters |, -, / and \.
2414 Features are:
2416 - Intersecting: When a `|' intersects with a `-', a `+' is
2417   drawn, like this:   |         \ /
2418                     --+--        X
2419                       |         / \
2421 - Rubber-banding: When drawing lines you can interactively see the
2422   result while holding the mouse button down and moving the mouse.  If
2423   your machine is not fast enough (a 386 is a bit too slow, but a
2424   pentium is well enough), you can turn this feature off.  You will
2425   then see 1's and 2's which mark the 1st and 2nd endpoint of the line
2426   you are drawing.
2428 - Arrows: After having drawn a (straight) line or a (straight)
2429   poly-line, you can set arrows on the line-ends by typing < or >.
2431 - Flood-filling: You can fill any area with a certain character by
2432   flood-filling.
2434 - Cut copy and paste: You can cut, copy and paste rectangular
2435   regions.  Artist also interfaces with the rect package (this can be
2436   turned off if it causes you any trouble) so anything you cut in
2437   artist can be yanked with C-x r y and vice versa.
2439 - Drawing with keys: Everything you can do with the mouse, you can
2440   also do without the mouse.
2442 - Aspect-ratio: You can set the variable artist-aspect-ratio to
2443   reflect the height-width ratio for the font you are using. Squares
2444   and circles are then drawn square/round.  Note, that once your
2445   ascii-file is shown with font with a different height-width ratio,
2446   the squares won't be square and the circles won't be round.
2448 - Drawing operations: The following drawing operations are implemented:
2450     lines               straight-lines
2451     rectangles          squares
2452     poly-lines          straight poly-lines
2453     ellipses            circles
2454     text (see-thru)     text (overwrite)
2455     spray-can           setting size for spraying
2456     vaporize line       vaporize lines
2457     erase characters    erase rectangles
2459   Straight lines are lines that go horizontally, vertically or
2460   diagonally.  Plain lines go in any direction.  The operations in
2461   the right column are accessed by holding down the shift key while
2462   drawing.
2464   It is possible to vaporize (erase) entire lines and connected lines
2465   (rectangles for example) as long as the lines being vaporized are
2466   straight and connected at their endpoints.  Vaporizing is inspired
2467   by the drawrect package by Jari Aalto <jari.aalto@poboxes.com>.
2469 - Picture mode compatibility: Artist is picture mode compatible (this
2470   can be turned off).
2472 *** The new package Eshell is an operating system command shell
2473 implemented entirely in Emacs Lisp.  Use `M-x eshell' to invoke it.
2474 It functions similarly to bash and zsh, and allows running of Lisp
2475 functions and external commands using the same syntax.  It supports
2476 history lists, aliases, extended globbing, smart scrolling, etc.  It
2477 will work on any platform Emacs has been ported to.  And since most of
2478 the basic commands -- ls, rm, mv, cp, ln, du, cat, etc. -- have been
2479 rewritten in Lisp, it offers an operating-system independent shell,
2480 all within the scope of your Emacs process.
2482 *** The new package timeclock.el is a mode is for keeping track of time
2483 intervals.  You can use it for whatever purpose you like, but the
2484 typical scenario is to keep track of how much time you spend working
2485 on certain projects.
2487 *** The new package hi-lock.el provides commands to highlight matches
2488 of interactively entered regexps.  For example,
2490   M-x highlight-regexp RET clearly RET RET
2492 will highlight all occurrences of `clearly' using a yellow background
2493 face.  New occurrences of `clearly' will be highlighted as they are
2494 typed.  `M-x unhighlight-regexp RET' will remove the highlighting.
2495 Any existing face can be used for highlighting and a set of
2496 appropriate faces is provided.  The regexps can be written into the
2497 current buffer in a form that will be recognized the next time the
2498 corresponding file is read.  There are commands to highlight matches
2499 to phrases and to highlight entire lines containing a match.
2501 *** The new package zone.el plays games with Emacs' display when
2502 Emacs is idle.
2504 *** The new package tildify.el allows to add hard spaces or other text
2505 fragments in accordance with the current major mode.
2507 *** The new package xml.el provides a simple but generic XML
2508 parser. It doesn't parse the DTDs however.
2510 *** The comment operations are now provided by the newcomment.el
2511 package which allows different styles of comment-region and should
2512 be more robust while offering the same functionality.
2513 `comment-region' now doesn't always comment a-line-at-a-time, but only
2514 comments the region, breaking the line at point if necessary.
2516 *** The Ebrowse package implements a C++ class browser and tags
2517 facilities tailored for use with C++.  It is documented in a
2518 separate Texinfo file.
2520 *** The PCL-CVS package available by either running M-x cvs-examine or
2521 by visiting a CVS administrative directory (with a prefix argument)
2522 provides an alternative interface to VC-dired for CVS.  It comes with
2523 `log-view-mode' to view RCS and SCCS logs and `log-edit-mode' used to
2524 enter check-in log messages.
2526 *** The new package called `woman' allows to browse Unix man pages
2527 without invoking external programs.
2529 The command `M-x woman' formats manual pages entirely in Emacs Lisp
2530 and then displays them, like `M-x manual-entry' does.  Unlike
2531 `manual-entry', `woman' does not invoke any external programs, so it
2532 is useful on systems such as MS-DOS/MS-Windows where the `man' and
2533 Groff or `troff' commands are not readily available.
2535 The command `M-x woman-find-file' asks for the file name of a man
2536 page, then formats and displays it like `M-x woman' does.
2538 *** The new command M-x re-builder offers a convenient interface for
2539 authoring regular expressions with immediate visual feedback.
2541 The buffer from which the command was called becomes the target for
2542 the regexp editor popping up in a separate window.  Matching text in
2543 the target buffer is immediately color marked during the editing.
2544 Each sub-expression of the regexp will show up in a different face so
2545 even complex regexps can be edited and verified on target data in a
2546 single step.
2548 On displays not supporting faces the matches instead blink like
2549 matching parens to make them stand out.  On such a setup you will
2550 probably also want to use the sub-expression mode when the regexp
2551 contains such to get feedback about their respective limits.
2553 *** glasses-mode is a minor mode that makes
2554 unreadableIdentifiersLikeThis readable.  It works as glasses, without
2555 actually modifying content of a buffer.
2557 *** The package ebnf2ps translates an EBNF to a syntactic chart in
2558 PostScript.
2560 Currently accepts ad-hoc EBNF, ISO EBNF and Bison/Yacc.
2562 The ad-hoc default EBNF syntax has the following elements:
2564     ;           comment (until end of line)
2565     A           non-terminal
2566     "C"         terminal
2567     ?C?         special
2568     $A          default non-terminal
2569     $"C"        default terminal
2570     $?C?        default special
2571     A = B.      production (A is the header and B the body)
2572     C D         sequence (C occurs before D)
2573     C | D       alternative (C or D occurs)
2574     A - B       exception (A excluding B, B without any non-terminal)
2575     n * A       repetition (A repeats n (integer) times)
2576     (C)         group (expression C is grouped together)
2577     [C]         optional (C may or not occurs)
2578     C+          one or more occurrences of C
2579     {C}+        one or more occurrences of C
2580     {C}*        zero or more occurrences of C
2581     {C}         zero or more occurrences of C
2582     C / D       equivalent to: C {D C}*
2583     {C || D}+   equivalent to: C {D C}*
2584     {C || D}*   equivalent to: [C {D C}*]
2585     {C || D}    equivalent to: [C {D C}*]
2587 Please, see ebnf2ps documentation for EBNF syntax and how to use it.
2589 *** The package align.el will align columns within a region, using M-x
2590 align.  Its mode-specific rules, based on regular expressions,
2591 determine where the columns should be split.  In C and C++, for
2592 example, it will align variable names in declaration lists, or the
2593 equal signs of assignments.
2595 *** `paragraph-indent-minor-mode' is a new minor mode supporting
2596 paragraphs in the same style as `paragraph-indent-text-mode'.
2598 *** bs.el is a new package for buffer selection similar to
2599 list-buffers or electric-buffer-list.  Use M-x bs-show to display a
2600 buffer menu with this package.  See the Custom group `bs'.
2602 *** find-lisp.el is a package emulating the Unix find command in Lisp.
2604 *** calculator.el is a small calculator package that is intended to
2605 replace desktop calculators such as xcalc and calc.exe.  Actually, it
2606 is not too small - it has more features than most desktop calculators,
2607 and can be customized easily to get many more functions.  It should
2608 not be confused with "calc" which is a much bigger mathematical tool
2609 which answers different needs.
2611 *** The minor modes cwarn-mode and global-cwarn-mode highlights
2612 suspicious C and C++ constructions.  Currently, assignments inside
2613 expressions, semicolon following `if', `for' and `while' (except, of
2614 course, after a `do .. while' statement), and C++ functions with
2615 reference parameters are recognized.  The modes require font-lock mode
2616 to be enabled.
2618 *** smerge-mode.el provides `smerge-mode', a simple minor-mode for files
2619 containing diff3-style conflict markers, such as generated by RCS.
2621 *** 5x5.el is a simple puzzle game.
2623 *** hl-line.el provides `hl-line-mode', a minor mode to highlight the
2624 current line in the current buffer.  It also provides
2625 `global-hl-line-mode' to provide the same behaviour in all buffers.
2627 *** ansi-color.el translates ANSI terminal escapes into text-properties.
2629 Please note: if `ansi-color-for-comint-mode' and
2630 `global-font-lock-mode' are non-nil, loading ansi-color.el will
2631 disable font-lock and add `ansi-color-apply' to
2632 `comint-preoutput-filter-functions' for all shell-mode buffers.  This
2633 displays the output of "ls --color=yes" using the correct foreground
2634 and background colors.
2636 *** delphi.el provides a major mode for editing the Delphi (Object
2637 Pascal) language.
2639 *** quickurl.el provides a simple method of inserting a URL based on
2640 the text at point.
2642 *** sql.el provides an interface to SQL data bases.
2644 *** fortune.el uses the fortune program to create mail/news signatures.
2646 *** whitespace.el is a package for warning about and cleaning bogus
2647 whitespace in a file.
2649 *** PostScript mode (ps-mode) is a new major mode for editing PostScript
2650 files. It offers: interaction with a PostScript interpreter, including
2651 (very basic) error handling; fontification, easily customizable for
2652 interpreter messages; auto-indentation; insertion of EPSF templates and
2653 often used code snippets; viewing of BoundingBox; commenting out /
2654 uncommenting regions; conversion of 8bit characters to PostScript octal
2655 codes. All functionality is accessible through a menu.
2657 *** delim-col helps to prettify columns in a text region or rectangle.
2659 Here is an example of columns:
2661 horse   apple   bus
2662 dog     pineapple       car     EXTRA
2663 porcupine       strawberry      airplane
2665 Doing the following settings:
2667    (setq delimit-columns-str-before "[ ")
2668    (setq delimit-columns-str-after " ]")
2669    (setq delimit-columns-str-separator ", ")
2670    (setq delimit-columns-separator "\t")
2673 Selecting the lines above and typing:
2675    M-x delimit-columns-region
2677 It results:
2679 [ horse    , apple     , bus     ,       ]
2680 [ dog      , pineapple , car     , EXTRA ]
2681 [ porcupine, strawberry, airplane,       ]
2683 delim-col has the following options:
2685    delimit-columns-str-before           Specify a string to be inserted
2686                                         before all columns.
2688    delimit-columns-str-separator        Specify a string to be inserted
2689                                         between each column.
2691    delimit-columns-str-after            Specify a string to be inserted
2692                                         after all columns.
2694    delimit-columns-separator            Specify a regexp which separates
2695                                         each column.
2697 delim-col has the following commands:
2699    delimit-columns-region       Prettify all columns in a text region.
2700    delimit-columns-rectangle    Prettify all columns in a text rectangle.
2702 *** Recentf mode maintains a menu for visiting files that were
2703 operated on recently.  User option recentf-menu-filter specifies a
2704 menu filter function to change the menu appearance. For example, the
2705 recent file list can be displayed:
2707 - organized by major modes, directories or user defined rules.
2708 - sorted by file paths, file names, ascending or descending.
2709 - showing paths relative to the current default-directory
2711 The `recentf-filter-changer' menu filter function allows to
2712 dynamically change the menu appearance.
2714 *** elide-head.el provides a mechanism for eliding boilerplate header
2715 text.
2717 *** footnote.el provides `footnote-mode', a minor mode supporting use
2718 of footnotes.  It is intended for use with Message mode, but isn't
2719 specific to Message mode.
2721 *** diff-mode.el provides `diff-mode', a major mode for
2722 viewing/editing context diffs (patches).  It is selected for files
2723 with extension `.diff', `.diffs', `.patch' and `.rej'.
2725 *** EUDC, the Emacs Unified Directory Client, provides a common user
2726 interface to access directory servers using different directory
2727 protocols.  It has a separate manual.
2729 *** autoconf.el provides a major mode for editing configure.in files
2730 for Autoconf, selected automatically.
2732 *** windmove.el provides moving between windows.
2734 *** crm.el provides a facility to read multiple strings from the
2735 minibuffer with completion.
2737 *** todo-mode.el provides management of TODO lists and integration
2738 with the diary features.
2740 *** autoarg.el provides a feature reported from Twenex Emacs whereby
2741 numeric keys supply prefix args rather than self inserting.
2743 *** The function `turn-off-auto-fill' unconditionally turns off Auto
2744 Fill mode.
2746 *** pcomplete.el is a library that provides programmable completion
2747 facilities for Emacs, similar to what zsh and tcsh offer.  The main
2748 difference is that completion functions are written in Lisp, meaning
2749 they can be profiled, debugged, etc.
2751 *** antlr-mode is a new major mode for editing ANTLR grammar files.
2752 It is automatically turned on for files whose names have the extension
2753 `.g'.
2755 ** Changes in sort.el
2757 The function sort-numeric-fields interprets numbers starting with `0'
2758 as octal and numbers starting with `0x' or `0X' as hexadecimal.  The
2759 new user-option sort-numeric-base can be used to specify a default
2760 numeric base.
2762 ** Changes to Ange-ftp
2764 *** Ange-ftp allows you to specify of a port number in remote file
2765 names cleanly.  It is appended to the host name, separated by a hash
2766 sign, e.g. `/foo@bar.org#666:mumble'.  (This syntax comes from EFS.)
2768 *** If the new user-option `ange-ftp-try-passive-mode' is set, passive
2769 ftp mode will be used if the ftp client supports that.
2771 *** Ange-ftp handles the output of the w32-style clients which
2772 output ^M at the end of lines.
2774 ** The recommended way of using Iswitchb is via the new global minor
2775 mode `iswitchb-mode'.
2777 ** Just loading the msb package doesn't switch on Msb mode anymore.
2778 If you have `(require 'msb)' in your .emacs, please replace it with
2779 `(msb-mode 1)'.
2781 ** Flyspell mode has various new options.  See the `flyspell' Custom
2782 group.
2784 ** The user option `backward-delete-char-untabify-method' controls the
2785 behavior of `backward-delete-char-untabify'.  The following values
2786 are recognized:
2788 `untabify' -- turn a tab to many spaces, then delete one space;
2789 `hungry'   -- delete all whitespace, both tabs and spaces;
2790 `all'      -- delete all whitespace, including tabs, spaces and newlines;
2791 nil        -- just delete one character.
2793 Default value is `untabify'.
2795 [This change was made in Emacs 20.3 but not mentioned then.]
2797 ** In Cperl mode `cperl-invalid-face' should now be a normal face
2798 symbol, not double-quoted.
2800 ** Some packages are declared obsolete, to be removed in a future
2801 version.  They are:  auto-show, c-mode, hilit19, hscroll, ooutline,
2802 profile, rnews, rnewspost, and sc.  Their implementations have been
2803 moved to lisp/obsolete.
2805 ** auto-compression mode is no longer enabled just by loading jka-compr.el.
2806 To control it, set `auto-compression-mode' via Custom or use the
2807 `auto-compression-mode' command.
2809 ** `browse-url-gnome-moz' is a new option for
2810 `browse-url-browser-function', invoking Mozilla in GNOME, and
2811 `browse-url-kde' can be chosen for invoking the KDE browser.
2813 ** The user-option `browse-url-new-window-p' has been renamed to
2814 `browse-url-new-window-flag'.
2816 ** The functions `keep-lines', `flush-lines' and `how-many' now
2817 operate on the active region in Transient Mark mode.
2819 ** `gnus-user-agent' is a new possibility for `mail-user-agent'.  It
2820 is like `message-user-agent', but with all the Gnus paraphernalia.
2822 ** The Strokes package has been updated.  If your Emacs has XPM
2823 support, you can use it for pictographic editing.  In Strokes mode,
2824 use C-mouse-2 to compose a complex stoke and insert it into the
2825 buffer.  You can encode or decode a strokes buffer with new commands
2826 M-x strokes-encode-buffer and M-x strokes-decode-buffer.  There is a
2827 new command M-x strokes-list-strokes.
2829 ** Hexl contains a new command `hexl-insert-hex-string' which inserts
2830 a string of hexadecimal numbers read from the mini-buffer.
2832 ** Hexl mode allows to insert non-ASCII characters.
2834 The non-ASCII characters are encoded using the same encoding as the
2835 file you are visiting in Hexl mode.
2837 ** Shell script mode changes.
2839 Shell script mode (sh-script) can now indent scripts for shells
2840 derived from sh and rc.  The indentation style is customizable, and
2841 sh-script can attempt to "learn" the current buffer's style.
2843 ** Etags changes.
2845 *** In DOS, etags looks for file.cgz if it cannot find file.c.
2847 *** New option --ignore-case-regex is an alternative to --regex.  It is now
2848 possible to bind a regexp to a language, by prepending the regexp with
2849 {lang}, where lang is one of the languages that `etags --help' prints out.
2850 This feature is useful especially for regex files, where each line contains
2851 a regular expression.  The manual contains details.
2853 *** In C and derived languages, etags creates tags for function
2854 declarations when given the --declarations option.
2856 *** In C++, tags are created for "operator".  The tags have the form
2857 "operator+", without spaces between the keyword and the operator.
2859 *** You shouldn't generally need any more the -C or -c++ option: etags
2860 automatically switches to C++ parsing when it meets the `class' or
2861 `template' keywords.
2863 *** Etags now is able to delve at arbitrary deeps into nested structures in
2864 C-like languages.  Previously, it was limited to one or two brace levels.
2866 *** New language Ada: tags are functions, procedures, packages, tasks, and
2867 types.
2869 *** In Fortran, `procedure' is not tagged.
2871 *** In Java, tags are created for "interface".
2873 *** In Lisp, "(defstruct (foo", "(defun (operator" and similar constructs
2874 are now tagged.
2876 *** In makefiles, tags the targets.
2878 *** In Perl, the --globals option tags global variables.  my and local
2879 variables are tagged.
2881 *** New language Python: def and class at the beginning of a line are tags.
2883 *** .ss files are Scheme files, .pdb is Postscript with C syntax, .psw is
2884 for PSWrap.
2886 ** Changes in etags.el
2888 *** The new user-option tags-case-fold-search can be used to make
2889 tags operations case-sensitive or case-insensitive.  The default
2890 is to use the same setting as case-fold-search.
2892 *** You can display additional output with M-x tags-apropos by setting
2893 the new variable tags-apropos-additional-actions.
2895 If non-nil, the variable's value should be a list of triples (TITLE
2896 FUNCTION TO-SEARCH).  For each triple, M-x tags-apropos processes
2897 TO-SEARCH and lists tags from it.  TO-SEARCH should be an alist,
2898 obarray, or symbol.  If it is a symbol, the symbol's value is used.
2900 TITLE is a string to use to label the list of tags from TO-SEARCH.
2902 FUNCTION is a function to call when an entry is selected in the Tags
2903 List buffer.  It is called with one argument, the selected symbol.
2905 A useful example value for this variable might be something like:
2907   '(("Emacs Lisp" Info-goto-emacs-command-node obarray)
2908     ("Common Lisp" common-lisp-hyperspec common-lisp-hyperspec-obarray)
2909     ("SCWM" scwm-documentation scwm-obarray))
2911 *** The face tags-tag-face can be used to customize the appearance
2912 of tags in the output of M-x tags-apropos.
2914 *** Setting tags-apropos-verbose to a non-nil value displays the
2915 names of tags files in the *Tags List* buffer.
2917 *** You can now search for tags that are part of the filename itself.
2918 If you have tagged the files topfile.c subdir/subfile.c
2919 /tmp/tempfile.c, you can now search for tags "topfile.c", "subfile.c",
2920 "dir/sub", "tempfile", "tempfile.c".  If the tag matches the file name,
2921 point will go to the beginning of the file.
2923 *** Compressed files are now transparently supported if
2924 auto-compression-mode is active.  You can tag (with Etags) and search
2925 (with find-tag) both compressed and uncompressed files.
2927 *** Tags commands like M-x tags-search no longer change point
2928 in buffers where no match is found.  In buffers where a match is
2929 found, the original value of point is pushed on the marker ring.
2931 ** Fortran mode has a new command `fortran-strip-sequence-nos' to
2932 remove text past column 72.  The syntax class of `\' in Fortran is now
2933 appropriate for C-style escape sequences in strings.
2935 ** SGML mode's default `sgml-validate-command' is now `nsgmls'.
2937 ** A new command `view-emacs-problems' (C-h P) displays the PROBLEMS file.
2939 ** The Dabbrev package has a new user-option `dabbrev-ignored-regexps'
2940 containing a list of regular expressions.  Buffers matching a regular
2941 expression from that list, are not checked.
2943 ** Emacs can now figure out modification times of remote files.
2944 When you do C-x C-f /user@host:/path/file RET and edit the file,
2945 and someone else modifies the file, you will be prompted to revert
2946 the buffer, just like for the local files.
2948 ** The buffer menu (C-x C-b) no longer lists the *Buffer List* buffer.
2950 ** When invoked with a prefix argument, the command `list-abbrevs' now
2951 displays local abbrevs, only.
2953 ** Refill minor mode provides preliminary support for keeping
2954 paragraphs filled as you modify them.
2956 ** The variable `double-click-fuzz' specifies how much the mouse
2957 may be moved between clicks that are recognized as a pair.  Its value
2958 is measured in pixels.
2960 ** The new global minor mode `auto-image-file-mode' allows image files
2961 to be visited as images.
2963 ** Two new user-options `grep-command' and `grep-find-command'
2964 were added to compile.el.
2966 ** Withdrawn packages
2968 *** mldrag.el has been removed.  mouse.el provides the same
2969 functionality with aliases for the mldrag functions.
2971 *** eval-reg.el has been obsoleted by changes to edebug.el and removed.
2973 *** ph.el has been obsoleted by EUDC and removed.
2976 * Incompatible Lisp changes
2978 There are a few Lisp changes which are not backwards-compatible and
2979 may require changes to existing code. Here is a list for reference.
2980 See the sections below for details.
2982 ** Since `format' preserves text properties, the idiom
2983 `(format "%s" foo)' no longer works to copy and remove properties.
2984 Use `copy-sequence' to copy the string, then use `set-text-properties'
2985 to remove the properties of the copy.
2987 ** Since the `keymap' text property now has significance, some code
2988 which uses both `local-map' and `keymap' properties (for portability)
2989 may, for instance, give rise to duplicate menus when the keymaps from
2990 these properties are active.
2992 ** The change in the treatment of non-ASCII characters in search
2993 ranges may affect some code.
2995 ** A non-nil value for the LOCAL arg of add-hook makes the hook
2996 buffer-local even if `make-local-hook' hasn't been called, which might
2997 make a difference to some code.
2999 ** The new treatment of the minibuffer prompt might affect code which
3000 operates on the minibuffer.
3002 ** The new character sets `eight-bit-control' and `eight-bit-graphic'
3003 cause `no-conversion' and `emacs-mule-unix' coding systems to produce
3004 different results when reading files with non-ASCII characters
3005 (previously, both coding systems would produce the same results).
3006 Specifically, `no-conversion' interprets each 8-bit byte as a separate
3007 character.  This makes `no-conversion' inappropriate for reading
3008 multibyte text, e.g. buffers written to disk in their internal MULE
3009 encoding (auto-saving does that, for example).  If a Lisp program
3010 reads such files with `no-conversion', each byte of the multibyte
3011 sequence, including the MULE leading codes such as \201, is treated as
3012 a separate character, which prevents them from being interpreted in
3013 the buffer as multibyte characters.
3015 Therefore, Lisp programs that read files which contain the internal
3016 MULE encoding should use `emacs-mule-unix'.  `no-conversion' is only
3017 appropriate for reading truly binary files.
3019 ** Code that relies on the obsolete `before-change-function' and
3020 `after-change-function' to detect buffer changes will now fail.  Use
3021 `before-change-functions' and `after-change-functions' instead.
3023 ** Code that uses `concat' with integer args now gets an error, as
3024 long promised.
3026 ** The function base64-decode-string now always returns a unibyte
3027 string.
3029 ** Not a Lisp incompatibility as such but, with the introduction of
3030 extra private charsets, there is now only one slot free for a new
3031 dimension-2 private charset.  User code which tries to add more than
3032 one extra will fail unless you rebuild Emacs with some standard
3033 charset(s) removed; that is probably inadvisable because it changes
3034 the emacs-mule encoding.  Also, files stored in the emacs-mule
3035 encoding using Emacs 20 with additional private charsets defined will
3036 probably not be read correctly by Emacs 21.
3038 ** The variable `directory-sep-char' is slated for removal.
3039 Not really a change (yet), but a projected one that you should be
3040 aware of: The variable `directory-sep-char' is deprecated, and should
3041 not be used.  It was always ignored on GNU/Linux and Unix systems and
3042 on MS-DOS, but the MS-Windows port tried to support it by adapting the
3043 behavior of certain primitives to the value of this variable.  It
3044 turned out that such support cannot be reliable, so it was decided to
3045 remove this variable in the near future.  Lisp programs are well
3046 advised not to set it to anything but '/', because any different value
3047 will not have any effect when support for this variable is removed.
3050 * Lisp changes made after edition 2.6 of the Emacs Lisp Manual,
3051 (Display-related features are described in a page of their own below.)
3053 ** Function assq-delete-all replaces function assoc-delete-all.
3055 ** The new function animate-string, from lisp/play/animate.el
3056 allows the animated display of strings.
3058 ** The new function `interactive-form' can be used to obtain the
3059 interactive form of a function.
3061 ** The keyword :set-after in defcustom allows to specify dependencies
3062 between custom options.  Example:
3064   (defcustom default-input-method nil
3065     "*Default input method for multilingual text (a string).
3066   This is the input method activated automatically by the command
3067   `toggle-input-method' (\\[toggle-input-method])."
3068     :group 'mule
3069     :type '(choice (const nil) string)
3070     :set-after '(current-language-environment))
3072 This specifies that default-input-method should be set after
3073 current-language-environment even if default-input-method appears
3074 first in a custom-set-variables statement.
3076 ** The new hook `kbd-macro-termination-hook' is run at the end of
3077 function execute-kbd-macro.  Functions on this hook are called with no
3078 args.  The hook is run independent of how the macro was terminated
3079 (signal or normal termination).
3081 ** Functions `butlast' and `nbutlast' for removing trailing elements
3082 from a list are now available without requiring the CL package.
3084 ** The new user-option `even-window-heights' can be set to nil
3085 to prevent `display-buffer' from evening out window heights.
3087 ** The user-option `face-font-registry-alternatives' specifies
3088 alternative font registry names to try when looking for a font.
3090 ** Function `md5' calculates the MD5 "message digest"/"checksum".
3092 ** Function `delete-frame' runs `delete-frame-hook' before actually
3093 deleting the frame.  The hook is called with one arg, the frame
3094 being deleted.
3096 ** `add-hook' now makes the hook local if called with a non-nil LOCAL arg.
3098 ** The treatment of non-ASCII characters in search ranges has changed.
3099 If a range in a regular expression or the arg of
3100 skip-chars-forward/backward starts with a unibyte character C and ends
3101 with a multibyte character C2, the range is divided into two: one is
3102 C..?\377, the other is C1..C2, where C1 is the first character of C2's
3103 charset.
3105 ** The new function `display-message-or-buffer' displays a message in
3106 the echo area or pops up a buffer, depending on the length of the
3107 message.
3109 ** The new macro `with-auto-compression-mode' allows evaluating an
3110 expression with auto-compression-mode enabled.
3112 ** In image specifications, `:heuristic-mask' has been replaced
3113 with the more general `:mask' property.
3115 ** Image specifications accept more `:conversion's.
3117 ** A `?' can be used in a symbol name without escaping it with a
3118 backslash.
3120 ** Reading from the mini-buffer now reads from standard input if Emacs
3121 is running in batch mode.  For example,
3123   (message "%s" (read t))
3125 will read a Lisp expression from standard input and print the result
3126 to standard output.
3128 ** The argument of `down-list', `backward-up-list', `up-list',
3129 `kill-sexp', `backward-kill-sexp' and `mark-sexp' is now optional.
3131 ** If `display-buffer-reuse-frames' is set, function `display-buffer'
3132 will raise frames displaying a buffer, instead of creating a new
3133 frame or window.
3135 ** Two new functions for removing elements from lists/sequences
3136 were added
3138 - Function: remove ELT SEQ
3140 Return a copy of SEQ with all occurrences of ELT removed.  SEQ must be
3141 a list, vector, or string.  The comparison is done with `equal'.
3143 - Function: remq ELT LIST
3145 Return a copy of LIST with all occurrences of ELT removed.  The
3146 comparison is done with `eq'.
3148 ** The function `delete' now also works with vectors and strings.
3150 ** The meaning of the `:weakness WEAK' argument of make-hash-table
3151 has been changed: WEAK can now have new values `key-or-value' and
3152 `key-and-value', in addition the `nil', `key', `value', and `t'.
3154 ** Function `aset' stores any multibyte character in any string
3155 without signaling "Attempt to change char length of a string".  It may
3156 convert a unibyte string to multibyte if necessary.
3158 ** The value of the `help-echo' text property is called as a function
3159 or evaluated, if it is not a string already, to obtain a help string.
3161 ** Function `make-obsolete' now has an optional arg to say when the
3162 function was declared obsolete.
3164 ** Function `plist-member' is renamed from `widget-plist-member' (which is
3165 retained as an alias).
3167 ** Easy-menu's :filter now works as in XEmacs.
3168 It takes the unconverted (i.e. XEmacs) form of the menu and the result
3169 is automatically converted to Emacs' form.
3171 ** The new function `window-list' has been defined
3173 - Function: window-list &optional FRAME WINDOW MINIBUF
3175 Return a list of windows on FRAME, starting with WINDOW.  FRAME nil or
3176 omitted means use the selected frame.  WINDOW nil or omitted means use
3177 the selected window.  MINIBUF t means include the minibuffer window,
3178 even if it isn't active.  MINIBUF nil or omitted means include the
3179 minibuffer window only if it's active.  MINIBUF neither nil nor t
3180 means never include the minibuffer window.
3182 ** There's a new function `get-window-with-predicate' defined as follows
3184 - Function: get-window-with-predicate PREDICATE &optional MINIBUF ALL-FRAMES DEFAULT
3186 Return a window satisfying PREDICATE.
3188 This function cycles through all visible windows using `walk-windows',
3189 calling PREDICATE on each one.  PREDICATE is called with a window as
3190 argument.  The first window for which PREDICATE returns a non-nil
3191 value is returned.  If no window satisfies PREDICATE, DEFAULT is
3192 returned.
3194 Optional second arg MINIBUF t means count the minibuffer window even
3195 if not active.  MINIBUF nil or omitted means count the minibuffer iff
3196 it is active.  MINIBUF neither t nor nil means not to count the
3197 minibuffer even if it is active.
3199 Several frames may share a single minibuffer; if the minibuffer
3200 counts, all windows on all frames that share that minibuffer count
3201 too.  Therefore, if you are using a separate minibuffer frame
3202 and the minibuffer is active and MINIBUF says it counts,
3203 `walk-windows' includes the windows in the frame from which you
3204 entered the minibuffer, as well as the minibuffer window.
3206 ALL-FRAMES is the optional third argument.
3207 ALL-FRAMES nil or omitted means cycle within the frames as specified above.
3208 ALL-FRAMES = `visible' means include windows on all visible frames.
3209 ALL-FRAMES = 0 means include windows on all visible and iconified frames.
3210 ALL-FRAMES = t means include windows on all frames including invisible frames.
3211 If ALL-FRAMES is a frame, it means include windows on that frame.
3212 Anything else means restrict to the selected frame.
3214 ** The function `single-key-description' now encloses function key and
3215 event names in angle brackets.  When called with a second optional
3216 argument non-nil, angle brackets won't be printed.
3218 ** If the variable `message-truncate-lines' is bound to t around a
3219 call to `message', the echo area will not be resized to display that
3220 message; it will be truncated instead, as it was done in 20.x.
3221 Default value is nil.
3223 ** The user option `line-number-display-limit' can now be set to nil,
3224 meaning no limit.
3226 ** The new user option `line-number-display-limit-width' controls
3227 the maximum width of lines in a buffer for which Emacs displays line
3228 numbers in the mode line.  The default is 200.
3230 ** `select-safe-coding-system' now also checks the most preferred
3231 coding-system if buffer-file-coding-system is `undecided' and
3232 DEFAULT-CODING-SYSTEM is not specified,
3234 ** The function `subr-arity' provides information about the argument
3235 list of a primitive.
3237 ** `where-is-internal' now also accepts a list of keymaps.
3239 ** The text property `keymap' specifies a key map which overrides the
3240 buffer's local map and the map specified by the `local-map' property.
3241 This is probably what most current uses of `local-map' want, rather
3242 than replacing the local map.
3244 ** The obsolete variables `before-change-function' and
3245 `after-change-function' are no longer acted upon and have been
3246 removed.  Use `before-change-functions' and `after-change-functions'
3247 instead.
3249 ** The function `apropos-mode' runs the hook `apropos-mode-hook'.
3251 ** `concat' no longer accepts individual integer arguments,
3252 as promised long ago.
3254 ** The new function `float-time' returns the current time as a float.
3256 ** The new variable auto-coding-regexp-alist specifies coding systems
3257 for reading specific files, analogous to auto-coding-alist, but
3258 patterns are checked against file contents instead of file names.
3261 * Lisp changes in Emacs 21.1 (see following page for display-related features)
3263 ** The new package rx.el provides an alternative sexp notation for
3264 regular expressions.
3266 - Function: rx-to-string SEXP
3268 Translate SEXP into a regular expression in string notation.
3270 - Macro: rx SEXP
3272 Translate SEXP into a regular expression in string notation.
3274 The following are valid subforms of regular expressions in sexp
3275 notation.
3277 STRING
3278      matches string STRING literally.
3280 CHAR
3281      matches character CHAR literally.
3283 `not-newline'
3284      matches any character except a newline.
3285                         .
3286 `anything'
3287      matches any character
3289 `(any SET)'
3290      matches any character in SET.  SET may be a character or string.
3291      Ranges of characters can be specified as `A-Z' in strings.
3293 '(in SET)'
3294      like `any'.
3296 `(not (any SET))'
3297      matches any character not in SET
3299 `line-start'
3300      matches the empty string, but only at the beginning of a line
3301      in the text being matched
3303 `line-end'
3304      is similar to `line-start' but matches only at the end of a line
3306 `string-start'
3307      matches the empty string, but only at the beginning of the
3308      string being matched against.
3310 `string-end'
3311      matches the empty string, but only at the end of the
3312      string being matched against.
3314 `buffer-start'
3315      matches the empty string, but only at the beginning of the
3316      buffer being matched against.
3318 `buffer-end'
3319      matches the empty string, but only at the end of the
3320      buffer being matched against.
3322 `point'
3323      matches the empty string, but only at point.
3325 `word-start'
3326      matches the empty string, but only at the beginning or end of a
3327      word.
3329 `word-end'
3330      matches the empty string, but only at the end of a word.
3332 `word-boundary'
3333      matches the empty string, but only at the beginning or end of a
3334      word.
3336 `(not word-boundary)'
3337      matches the empty string, but not at the beginning or end of a
3338      word.
3340 `digit'
3341      matches 0 through 9.
3343 `control'
3344      matches ASCII control characters.
3346 `hex-digit'
3347      matches 0 through 9, a through f and A through F.
3349 `blank'
3350      matches space and tab only.
3352 `graphic'
3353      matches graphic characters--everything except ASCII control chars,
3354      space, and DEL.
3356 `printing'
3357      matches printing characters--everything except ASCII control chars
3358      and DEL.
3360 `alphanumeric'
3361      matches letters and digits.  (But at present, for multibyte characters,
3362      it matches anything that has word syntax.)
3364 `letter'
3365      matches letters.  (But at present, for multibyte characters,
3366      it matches anything that has word syntax.)
3368 `ascii'
3369      matches ASCII (unibyte) characters.
3371 `nonascii'
3372      matches non-ASCII (multibyte) characters.
3374 `lower'
3375      matches anything lower-case.
3377 `upper'
3378      matches anything upper-case.
3380 `punctuation'
3381      matches punctuation.  (But at present, for multibyte characters,
3382      it matches anything that has non-word syntax.)
3384 `space'
3385      matches anything that has whitespace syntax.
3387 `word'
3388      matches anything that has word syntax.
3390 `(syntax SYNTAX)'
3391      matches a character with syntax SYNTAX.  SYNTAX must be one
3392      of the following symbols.
3394      `whitespace'               (\\s- in string notation)
3395      `punctuation'              (\\s.)
3396      `word'                     (\\sw)
3397      `symbol'                   (\\s_)
3398      `open-parenthesis'         (\\s()
3399      `close-parenthesis'        (\\s))
3400      `expression-prefix'        (\\s')
3401      `string-quote'             (\\s\")
3402      `paired-delimiter'         (\\s$)
3403      `escape'                   (\\s\\)
3404      `character-quote'          (\\s/)
3405      `comment-start'            (\\s<)
3406      `comment-end'              (\\s>)
3408 `(not (syntax SYNTAX))'
3409      matches a character that has not syntax SYNTAX.
3411 `(category CATEGORY)'
3412      matches a character with category CATEGORY.  CATEGORY must be
3413      either a character to use for C, or one of the following symbols.
3415      `consonant'                        (\\c0 in string notation)
3416      `base-vowel'                       (\\c1)
3417      `upper-diacritical-mark'           (\\c2)
3418      `lower-diacritical-mark'           (\\c3)
3419      `tone-mark'                        (\\c4)
3420      `symbol'                           (\\c5)
3421      `digit'                            (\\c6)
3422      `vowel-modifying-diacritical-mark' (\\c7)
3423      `vowel-sign'                       (\\c8)
3424      `semivowel-lower'                  (\\c9)
3425      `not-at-end-of-line'               (\\c<)
3426      `not-at-beginning-of-line'         (\\c>)
3427      `alpha-numeric-two-byte'           (\\cA)
3428      `chinse-two-byte'                  (\\cC)
3429      `greek-two-byte'                   (\\cG)
3430      `japanese-hiragana-two-byte'       (\\cH)
3431      `indian-tow-byte'                  (\\cI)
3432      `japanese-katakana-two-byte'       (\\cK)
3433      `korean-hangul-two-byte'           (\\cN)
3434      `cyrillic-two-byte'                (\\cY)
3435      `ascii'                            (\\ca)
3436      `arabic'                           (\\cb)
3437      `chinese'                          (\\cc)
3438      `ethiopic'                         (\\ce)
3439      `greek'                            (\\cg)
3440      `korean'                           (\\ch)
3441      `indian'                           (\\ci)
3442      `japanese'                         (\\cj)
3443      `japanese-katakana'                (\\ck)
3444      `latin'                            (\\cl)
3445      `lao'                              (\\co)
3446      `tibetan'                          (\\cq)
3447      `japanese-roman'                   (\\cr)
3448      `thai'                             (\\ct)
3449      `vietnamese'                       (\\cv)
3450      `hebrew'                           (\\cw)
3451      `cyrillic'                         (\\cy)
3452      `can-break'                        (\\c|)
3454 `(not (category CATEGORY))'
3455      matches a character that has not category CATEGORY.
3457 `(and SEXP1 SEXP2 ...)'
3458      matches what SEXP1 matches, followed by what SEXP2 matches, etc.
3460 `(submatch SEXP1 SEXP2 ...)'
3461      like `and', but makes the match accessible with `match-end',
3462      `match-beginning', and `match-string'.
3464 `(group SEXP1 SEXP2 ...)'
3465      another name for `submatch'.
3467 `(or SEXP1 SEXP2 ...)'
3468      matches anything that matches SEXP1 or SEXP2, etc.  If all
3469      args are strings, use `regexp-opt' to optimize the resulting
3470      regular expression.
3472 `(minimal-match SEXP)'
3473      produce a non-greedy regexp for SEXP.  Normally, regexps matching
3474      zero or more occurrances of something are \"greedy\" in that they
3475      match as much as they can, as long as the overall regexp can
3476      still match.  A non-greedy regexp matches as little as possible.
3478 `(maximal-match SEXP)'
3479      produce a greedy regexp for SEXP.   This is the default.
3481 `(zero-or-more SEXP)'
3482      matches zero or more occurrences of what SEXP matches.
3484 `(0+ SEXP)'
3485      like `zero-or-more'.
3487 `(* SEXP)'
3488      like `zero-or-more', but always produces a greedy regexp.
3490 `(*? SEXP)'
3491      like `zero-or-more', but always produces a non-greedy regexp.
3493 `(one-or-more SEXP)'
3494      matches one or more occurrences of A.
3496 `(1+ SEXP)'
3497      like `one-or-more'.
3499 `(+ SEXP)'
3500      like `one-or-more', but always produces a greedy regexp.
3502 `(+? SEXP)'
3503      like `one-or-more', but always produces a non-greedy regexp.
3505 `(zero-or-one SEXP)'
3506      matches zero or one occurrences of A.
3508 `(optional SEXP)'
3509      like `zero-or-one'.
3511 `(? SEXP)'
3512      like `zero-or-one', but always produces a greedy regexp.
3514 `(?? SEXP)'
3515      like `zero-or-one', but always produces a non-greedy regexp.
3517 `(repeat N SEXP)'
3518      matches N occurrences of what SEXP matches.
3520 `(repeat N M SEXP)'
3521      matches N to M occurrences of what SEXP matches.
3523 `(eval FORM)'
3524       evaluate FORM and insert result.   If result is a string,
3525       `regexp-quote' it.
3527 `(regexp REGEXP)'
3528       include REGEXP in string notation in the result.
3530 *** The features `md5' and `overlay' are now provided by default.
3532 *** The special form `save-restriction' now works correctly even if the
3533 buffer is widened inside the save-restriction and changes made outside
3534 the original restriction.  Previously, doing this would cause the saved
3535 restriction to be restored incorrectly.
3537 *** The functions `find-charset-region' and `find-charset-string' include
3538 `eight-bit-control' and/or `eight-bit-graphic' in the returned list
3539 when they find 8-bit characters.  Previously, they included `ascii' in a
3540 multibyte buffer and `unknown' in a unibyte buffer.
3542 *** The functions `set-buffer-multibyte', `string-as-multibyte' and
3543 `string-as-unibyte' change the byte sequence of a buffer or a string
3544 if it contains a character from the `eight-bit-control' character set.
3546 *** The handling of multibyte sequences in a multibyte buffer is
3547 changed.  Previously, a byte sequence matching the pattern
3548 [\200-\237][\240-\377]+ was interpreted as a single character
3549 regardless of the length of the trailing bytes [\240-\377]+.  Thus, if
3550 the sequence was longer than what the leading byte indicated, the
3551 extra trailing bytes were ignored by Lisp functions.  Now such extra
3552 bytes are independent 8-bit characters belonging to the charset
3553 eight-bit-graphic.
3555 ** Fontsets are now implemented using char-tables.
3557 A fontset can now be specified for each independent character, for
3558 a group of characters or for a character set rather than just for a
3559 character set as previously.
3561 *** The arguments of the function `set-fontset-font' are changed.
3562 They are NAME, CHARACTER, FONTNAME, and optional FRAME.  The function
3563 modifies fontset NAME to use FONTNAME for CHARACTER.
3565 CHARACTER may be a cons (FROM . TO), where FROM and TO are non-generic
3566 characters.  In that case FONTNAME is used for all characters in the
3567 range FROM and TO (inclusive).  CHARACTER may be a charset.  In that
3568 case FONTNAME is used for all character in the charset.
3570 FONTNAME may be a cons (FAMILY . REGISTRY), where FAMILY is the family
3571 name of a font and REGISTRY is a registry name of a font.
3573 *** Variable x-charset-registry has been deleted.  The default charset
3574 registries of character sets are set in the default fontset
3575 "fontset-default".
3577 *** The function `create-fontset-from-fontset-spec' ignores the second
3578 argument STYLE-VARIANT.  It never creates style-variant fontsets.
3580 ** The method of composing characters is changed.  Now character
3581 composition is done by a special text property `composition' in
3582 buffers and strings.
3584 *** Charset composition is deleted.  Emacs never creates a `composite
3585 character' which is an independent character with a unique character
3586 code.  Thus the following functions handling `composite characters'
3587 have been deleted: composite-char-component,
3588 composite-char-component-count, composite-char-composition-rule,
3589 composite-char-composition-rule and decompose-composite-char delete.
3590 The variables leading-code-composition and min-composite-char have
3591 also been deleted.
3593 *** Three more glyph reference points are added.  They can be used to
3594 specify a composition rule.  See the documentation of the variable
3595 `reference-point-alist' for more detail.
3597 *** The function `compose-region' takes new arguments COMPONENTS and
3598 MODIFICATION-FUNC.  With COMPONENTS, you can specify not only a
3599 composition rule but also characters to be composed.  Such characters
3600 may differ between buffer and string text.
3602 *** The function `compose-string' takes new arguments START, END,
3603 COMPONENTS, and MODIFICATION-FUNC.
3605 *** The function `compose-string' puts text property `composition'
3606 directly on the argument STRING instead of returning a new string.
3607 Likewise, the function `decompose-string' just removes text property
3608 `composition' from STRING.
3610 *** The new function `find-composition' returns information about
3611 a composition at a specified position in a buffer or a string.
3613 *** The function `decompose-composite-char' is now labeled as
3614 obsolete.
3616 ** The new coding system `mac-roman' is primarily intended for use on
3617 the Macintosh but may be used generally for Macintosh-encoded text.
3619 ** The new character sets `mule-unicode-0100-24ff',
3620 `mule-unicode-2500-33ff', and `mule-unicode-e000-ffff' have been
3621 introduced for Unicode characters in the range U+0100..U+24FF,
3622 U+2500..U+33FF, U+E000..U+FFFF respectively.
3624 Note that the character sets are not yet unified in Emacs, so
3625 characters which belong to charsets such as Latin-2, Greek, Hebrew,
3626 etc. and the same characters in the `mule-unicode-*' charsets are
3627 different characters, as far as Emacs is concerned.  For example, text
3628 which includes Unicode characters from the Latin-2 locale cannot be
3629 encoded by Emacs with ISO 8859-2 coding system.
3631 ** The new coding system `mule-utf-8' has been added.
3632 It provides limited support for decoding/encoding UTF-8 text.  For
3633 details, please see the documentation string of this coding system.
3635 ** The new character sets `japanese-jisx0213-1' and
3636 `japanese-jisx0213-2' have been introduced for the new Japanese
3637 standard JIS X 0213 Plane 1 and Plane 2.
3639 ** The new character sets `latin-iso8859-14' and `latin-iso8859-15'
3640 have been introduced.
3642 ** The new character sets `eight-bit-control' and `eight-bit-graphic'
3643 have been introduced for 8-bit characters in the ranges 0x80..0x9F and
3644 0xA0..0xFF respectively.  Note that the multibyte representation of
3645 eight-bit-control is never exposed; this leads to an exception in the
3646 emacs-mule coding system, which encodes everything else to the
3647 buffer/string internal representation.  Note that to search for
3648 eight-bit-graphic characters in a multibyte buffer, the search string
3649 must be multibyte, otherwise such characters will be converted to
3650 their multibyte equivalent.
3652 ** If the APPEND argument of `write-region' is an integer, it seeks to
3653 that offset in the file before writing.
3655 ** The function `add-minor-mode' has been added for convenience and
3656 compatibility with XEmacs (and is used internally by define-minor-mode).
3658 ** The function `shell-command' now sets the default directory of the
3659 `*Shell Command Output*' buffer to the default directory of the buffer
3660 from which the command was issued.
3662 ** The functions `query-replace', `query-replace-regexp',
3663 `query-replace-regexp-eval' `map-query-replace-regexp',
3664 `replace-string', `replace-regexp', and `perform-replace' take two
3665 additional optional arguments START and END that specify the region to
3666 operate on.
3668 ** The new function `count-screen-lines' is a more flexible alternative
3669 to `window-buffer-height'.
3671 - Function: count-screen-lines &optional BEG END COUNT-FINAL-NEWLINE WINDOW
3673 Return the number of screen lines in the region between BEG and END.
3674 The number of screen lines may be different from the number of actual
3675 lines, due to line breaking, display table, etc.
3677 Optional arguments BEG and END default to `point-min' and `point-max'
3678 respectively.
3680 If region ends with a newline, ignore it unless optional third argument
3681 COUNT-FINAL-NEWLINE is non-nil.
3683 The optional fourth argument WINDOW specifies the window used for
3684 obtaining parameters such as width, horizontal scrolling, and so
3685 on. The default is to use the selected window's parameters.
3687 Like `vertical-motion', `count-screen-lines' always uses the current
3688 buffer, regardless of which buffer is displayed in WINDOW. This makes
3689 possible to use `count-screen-lines' in any buffer, whether or not it
3690 is currently displayed in some window.
3692 ** The new function `mapc' is like `mapcar' but doesn't collect the
3693 argument function's results.
3695 ** The functions base64-decode-region and base64-decode-string now
3696 signal an error instead of returning nil if decoding fails.  Also,
3697 `base64-decode-string' now always returns a unibyte string (in Emacs
3698 20, it returned a multibyte string when the result was a valid multibyte
3699 sequence).
3701 ** The function sendmail-user-agent-compose now recognizes a `body'
3702 header in the list of headers passed to it.
3704 ** The new function member-ignore-case works like `member', but
3705 ignores differences in case and text representation.
3707 ** The buffer-local variable cursor-type can be used to specify the
3708 cursor to use in windows displaying a buffer.  Values are interpreted
3709 as follows:
3711   t             use the cursor specified for the frame (default)
3712   nil           don't display a cursor
3713   `bar'         display a bar cursor with default width
3714   (bar . WIDTH) display a bar cursor with width WIDTH
3715   others        display a box cursor.
3717 ** The variable open-paren-in-column-0-is-defun-start controls whether
3718 an open parenthesis in column 0 is considered to be the start of a
3719 defun.  If set, the default, it is considered a defun start.  If not
3720 set, an open parenthesis in column 0 has no special meaning.
3722 ** The new function `string-to-syntax' can be used to translate syntax
3723 specifications in string form as accepted by `modify-syntax-entry' to
3724 the cons-cell form that is used for the values of the `syntax-table'
3725 text property, and in `font-lock-syntactic-keywords'.
3727 Example:
3729   (string-to-syntax "()")
3730     => (4 . 41)
3732 ** Emacs' reader supports CL read syntax for integers in bases
3733 other than 10.
3735 *** `#BINTEGER' or `#bINTEGER' reads INTEGER in binary (radix 2).
3736 INTEGER optionally contains a sign.
3738   #b1111
3739     => 15
3740   #b-1111
3741     => -15
3743 *** `#OINTEGER' or `#oINTEGER' reads INTEGER in octal (radix 8).
3745   #o666
3746     => 438
3748 *** `#XINTEGER' or `#xINTEGER' reads INTEGER in hexadecimal (radix 16).
3750   #xbeef
3751     => 48815
3753 *** `#RADIXrINTEGER' reads INTEGER in radix RADIX, 2 <= RADIX <= 36.
3755   #2R-111
3756     => -7
3757   #25rah
3758     => 267
3760 ** The function `documentation-property' now evaluates the value of
3761 the given property to obtain a string if it doesn't refer to etc/DOC
3762 and isn't a string.
3764 ** If called for a symbol, the function `documentation' now looks for
3765 a `function-documentation' property of that symbol.  If it has a non-nil
3766 value, the documentation is taken from that value.  If the value is
3767 not a string, it is evaluated to obtain a string.
3769 ** The last argument of `define-key-after' defaults to t for convenience.
3771 ** The new function `replace-regexp-in-string' replaces all matches
3772 for a regexp in a string.
3774 ** `mouse-position' now runs the abnormal hook
3775 `mouse-position-function'.
3777 ** The function string-to-number now returns a float for numbers
3778 that don't fit into a Lisp integer.
3780 ** The variable keyword-symbols-constants-flag has been removed.
3781 Keywords are now always considered constants.
3783 ** The new function `delete-and-extract-region' deletes text and
3784 returns it.
3786 ** The function `clear-this-command-keys' now also clears the vector
3787 returned by function `recent-keys'.
3789 ** Variables `beginning-of-defun-function' and `end-of-defun-function'
3790 can be used to define handlers for the functions that find defuns.
3791 Major modes can define these locally instead of rebinding C-M-a
3792 etc. if the normal conventions for defuns are not appropriate for the
3793 mode.
3795 ** easy-mmode-define-minor-mode now takes an additional BODY argument
3796 and is renamed `define-minor-mode'.
3798 ** If an abbrev has a hook function which is a symbol, and that symbol
3799 has a non-nil `no-self-insert' property, the return value of the hook
3800 function specifies whether an expansion has been done or not.  If it
3801 returns nil, abbrev-expand also returns nil, meaning "no expansion has
3802 been performed."
3804 When abbrev expansion is done by typing a self-inserting character,
3805 and the abbrev has a hook with the `no-self-insert' property, and the
3806 hook function returns non-nil meaning expansion has been done,
3807 then the self-inserting character is not inserted.
3809 ** The function `intern-soft' now accepts a symbol as first argument.
3810 In this case, that exact symbol is looked up in the specified obarray,
3811 and the function's value is nil if it is not found.
3813 ** The new macro `with-syntax-table' can be used to evaluate forms
3814 with the syntax table of the current buffer temporarily set to a
3815 specified table.
3817   (with-syntax-table TABLE &rest BODY)
3819 Evaluate BODY with syntax table of current buffer set to a copy of
3820 TABLE.  The current syntax table is saved, BODY is evaluated, and the
3821 saved table is restored, even in case of an abnormal exit.  Value is
3822 what BODY returns.
3824 ** Regular expressions now support intervals \{n,m\} as well as
3825 Perl's shy-groups \(?:...\) and non-greedy *? +? and ?? operators.
3826 Also back-references like \2 are now considered as an error if the
3827 corresponding subgroup does not exist (or is not closed yet).
3828 Previously it would have been silently turned into `2' (ignoring the `\').
3830 ** The optional argument BUFFER of function file-local-copy has been
3831 removed since it wasn't used by anything.
3833 ** The file name argument of function `file-locked-p' is now required
3834 instead of being optional.
3836 ** The new built-in error `text-read-only' is signaled when trying to
3837 modify read-only text.
3839 ** New functions and variables for locales.
3841 The new variable `locale-coding-system' specifies how to encode and
3842 decode strings passed to low-level message functions like strerror and
3843 time functions like strftime.  The new variables
3844 `system-messages-locale' and `system-time-locale' give the system
3845 locales to be used when invoking these two types of functions.
3847 The new function `set-locale-environment' sets the language
3848 environment, preferred coding system, and locale coding system from
3849 the system locale as specified by the LC_ALL, LC_CTYPE, and LANG
3850 environment variables.  Normally, it is invoked during startup and need
3851 not be invoked thereafter.  It uses the new variables
3852 `locale-language-names', `locale-charset-language-names', and
3853 `locale-preferred-coding-systems' to make its decisions.
3855 ** syntax tables now understand nested comments.
3856 To declare a comment syntax as allowing nesting, just add an `n'
3857 modifier to either of the characters of the comment end and the comment
3858 start sequences.
3860 ** The function `pixmap-spec-p' has been renamed `bitmap-spec-p'
3861 because `bitmap' is more in line with the usual X terminology.
3863 ** New function `propertize'
3865 The new function `propertize' can be used to conveniently construct
3866 strings with text properties.
3868 - Function: propertize STRING &rest PROPERTIES
3870 Value is a copy of STRING with text properties assigned as specified
3871 by PROPERTIES.  PROPERTIES is a sequence of pairs PROPERTY VALUE, with
3872 PROPERTY being the name of a text property and VALUE being the
3873 specified value of that property.  Example:
3875   (propertize "foo" 'face 'bold 'read-only t)
3877 ** push and pop macros.
3879 Simple versions of the push and pop macros of Common Lisp
3880 are now defined in Emacs Lisp.  These macros allow only symbols
3881 as the place that holds the list to be changed.
3883 (push NEWELT LISTNAME)  add NEWELT to the front of LISTNAME's value.
3884 (pop LISTNAME)          return first elt of LISTNAME, and remove it
3885                         (thus altering the value of LISTNAME).
3887 ** New dolist and dotimes macros.
3889 Simple versions of the dolist and dotimes macros of Common Lisp
3890 are now defined in Emacs Lisp.
3892 (dolist (VAR LIST [RESULT]) BODY...)
3893       Execute body once for each element of LIST,
3894       using the variable VAR to hold the current element.
3895       Then return the value of RESULT, or nil if RESULT is omitted.
3897 (dotimes (VAR COUNT [RESULT]) BODY...)
3898       Execute BODY with VAR bound to successive integers running from 0,
3899       inclusive, to COUNT, exclusive.
3900       Then return the value of RESULT, or nil if RESULT is omitted.
3902 ** Regular expressions now support Posix character classes such as
3903 [:alpha:], [:space:] and so on.  These must be used within a character
3904 class--for instance, [-[:digit:].+] matches digits or a period
3905 or a sign.
3907 [:digit:]  matches 0 through 9
3908 [:cntrl:]  matches ASCII control characters
3909 [:xdigit:]  matches 0 through 9, a through f and A through F.
3910 [:blank:]  matches space and tab only
3911 [:graph:]  matches graphic characters--everything except ASCII control chars,
3912            space, and DEL.
3913 [:print:]  matches printing characters--everything except ASCII control chars
3914            and DEL.
3915 [:alnum:]  matches letters and digits.
3916            (But at present, for multibyte characters,
3917             it matches anything that has word syntax.)
3918 [:alpha:]  matches letters.
3919            (But at present, for multibyte characters,
3920             it matches anything that has word syntax.)
3921 [:ascii:]  matches ASCII (unibyte) characters.
3922 [:nonascii:]  matches non-ASCII (multibyte) characters.
3923 [:lower:]  matches anything lower-case.
3924 [:punct:]  matches punctuation.
3925            (But at present, for multibyte characters,
3926             it matches anything that has non-word syntax.)
3927 [:space:]  matches anything that has whitespace syntax.
3928 [:upper:]  matches anything upper-case.
3929 [:word:]   matches anything that has word syntax.
3931 ** Emacs now has built-in hash tables.
3933 The following functions are defined for hash tables:
3935 - Function: make-hash-table ARGS
3937 The argument list ARGS consists of keyword/argument pairs.  All arguments
3938 are optional.  The following arguments are defined:
3940 :test TEST
3942 TEST must be a symbol specifying how to compare keys.  Default is `eql'.
3943 Predefined are `eq', `eql' and `equal'.  If TEST is not predefined,
3944 it must have been defined with `define-hash-table-test'.
3946 :size SIZE
3948 SIZE must be an integer > 0 giving a hint to the implementation how
3949 many elements will be put in the hash table.  Default size is 65.
3951 :rehash-size REHASH-SIZE
3953 REHASH-SIZE specifies by how much to grow a hash table once it becomes
3954 full.  If REHASH-SIZE is an integer, add that to the hash table's old
3955 size to get the new size.  Otherwise, REHASH-SIZE must be a float >
3956 1.0, and the new size is computed by multiplying REHASH-SIZE with the
3957 old size.  Default rehash size is 1.5.
3959 :rehash-threshold THRESHOLD
3961 THRESHOLD must be a float > 0 and <= 1.0 specifying when to resize the
3962 hash table.  It is resized when the ratio of (number of entries) /
3963 (size of hash table) is >= THRESHOLD.  Default threshold is 0.8.
3965 :weakness WEAK
3967 WEAK must be either nil, one of the symbols `key, `value',
3968 `key-or-value', `key-and-value', or t, meaning the same as
3969 `key-and-value'.  Entries are removed from weak tables during garbage
3970 collection if their key and/or value are not referenced elsewhere
3971 outside of the hash table.  Default are non-weak hash tables.
3973 - Function: makehash &optional TEST
3975 Similar to make-hash-table, but only TEST can be specified.
3977 - Function: hash-table-p TABLE
3979 Returns non-nil if TABLE is a hash table object.
3981 - Function: copy-hash-table TABLE
3983 Returns a copy of TABLE.  Only the table itself is copied, keys and
3984 values are shared.
3986 - Function: hash-table-count TABLE
3988 Returns the number of entries in TABLE.
3990 - Function: hash-table-rehash-size TABLE
3992 Returns the rehash size of TABLE.
3994 - Function: hash-table-rehash-threshold TABLE
3996 Returns the rehash threshold of TABLE.
3998 - Function: hash-table-rehash-size TABLE
4000 Returns the size of TABLE.
4002 - Function: hash-table-test TABLE
4004 Returns the test TABLE uses to compare keys.
4006 - Function: hash-table-weakness TABLE
4008 Returns the weakness specified for TABLE.
4010 - Function: clrhash TABLE
4012 Clear TABLE.
4014 - Function: gethash KEY TABLE &optional DEFAULT
4016 Look up KEY in TABLE and return its associated VALUE or DEFAULT if
4017 not found.
4019 - Function: puthash KEY VALUE TABLE
4021 Associate KEY with VALUE in TABLE.  If KEY is already associated with
4022 another value, replace the old value with VALUE.
4024 - Function: remhash KEY TABLE
4026 Remove KEY from TABLE if it is there.
4028 - Function: maphash FUNCTION TABLE
4030 Call FUNCTION for all elements in TABLE.  FUNCTION must take two
4031 arguments KEY and VALUE.
4033 - Function: sxhash OBJ
4035 Return a hash code for Lisp object OBJ.
4037 - Function: define-hash-table-test NAME TEST-FN HASH-FN
4039 Define a new hash table test named NAME.  If NAME is specified as
4040 a test in `make-hash-table', the table created will use TEST-FN for
4041 comparing keys, and HASH-FN to compute hash codes for keys.  Test
4042 and hash function are stored as symbol property `hash-table-test'
4043 of NAME with a value of (TEST-FN HASH-FN).
4045 TEST-FN must take two arguments and return non-nil if they are the same.
4047 HASH-FN must take one argument and return an integer that is the hash
4048 code of the argument.  The function should use the whole range of
4049 integer values for hash code computation, including negative integers.
4051 Example: The following creates a hash table whose keys are supposed to
4052 be strings that are compared case-insensitively.
4054   (defun case-fold-string= (a b)
4055     (compare-strings a nil nil b nil nil t))
4057   (defun case-fold-string-hash (a)
4058     (sxhash (upcase a)))
4060   (define-hash-table-test 'case-fold 'case-fold-string=
4061                           'case-fold-string-hash))
4063   (make-hash-table :test 'case-fold)
4065 ** The Lisp reader handles circular structure.
4067 It now works to use the #N= and #N# constructs to represent
4068 circular structures.  For example, #1=(a . #1#) represents
4069 a cons cell which is its own cdr.
4071 ** The Lisp printer handles circular structure.
4073 If you bind print-circle to a non-nil value, the Lisp printer outputs
4074 #N= and #N# constructs to represent circular and shared structure.
4076 ** If the second argument to `move-to-column' is anything but nil or
4077 t, that means replace a tab with spaces if necessary to reach the
4078 specified column, but do not add spaces at the end of the line if it
4079 is too short to reach that column.
4081 ** perform-replace has a new feature:  the REPLACEMENTS argument may
4082 now be a cons cell (FUNCTION . DATA).  This means to call FUNCTION
4083 after each match to get the replacement text.  FUNCTION is called with
4084 two arguments: DATA, and the number of replacements already made.
4086 If the FROM-STRING contains any upper-case letters,
4087 perform-replace also turns off `case-fold-search' temporarily
4088 and inserts the replacement text without altering case in it.
4090 ** The function buffer-size now accepts an optional argument
4091 to specify which buffer to return the size of.
4093 ** The calendar motion commands now run the normal hook
4094 calendar-move-hook after moving point.
4096 ** The new variable small-temporary-file-directory specifies a
4097 directory to use for creating temporary files that are likely to be
4098 small.  (Certain Emacs features use this directory.)  If
4099 small-temporary-file-directory is nil, they use
4100 temporary-file-directory instead.
4102 ** The variable `inhibit-modification-hooks', if non-nil, inhibits all
4103 the hooks that track changes in the buffer.  This affects
4104 `before-change-functions' and `after-change-functions', as well as
4105 hooks attached to text properties and overlay properties.
4107 ** assq-delete-all is a new function that deletes all the
4108 elements of an alist which have a car `eq' to a particular value.
4110 ** make-temp-file provides a more reliable way to create a temporary file.
4112 make-temp-file is used like make-temp-name, except that it actually
4113 creates the file before it returns.  This prevents a timing error,
4114 ensuring that no other job can use the same name for a temporary file.
4116 ** New exclusive-open feature in `write-region'
4118 The optional seventh arg is now called MUSTBENEW.  If non-nil, it insists
4119 on a check for an existing file with the same name.  If MUSTBENEW
4120 is `excl', that means to get an error if the file already exists;
4121 never overwrite. If MUSTBENEW is neither nil nor `excl', that means
4122 ask for confirmation before overwriting, but do go ahead and
4123 overwrite the file if the user gives confirmation.
4125 If the MUSTBENEW argument in `write-region' is `excl',
4126 that means to use a special feature in the `open' system call
4127 to get an error if the file exists at that time.
4128 The error reported is `file-already-exists'.
4130 ** Function `format' now handles text properties.
4132 Text properties of the format string are applied to the result string.
4133 If the result string is longer than the format string, text properties
4134 ending at the end of the format string are extended to the end of the
4135 result string.
4137 Text properties from string arguments are applied to the result
4138 string where arguments appear in the result string.
4140 Example:
4142   (let ((s1 "hello, %s")
4143         (s2 "world"))
4144      (put-text-property 0 (length s1) 'face 'bold s1)
4145      (put-text-property 0 (length s2) 'face 'italic s2)
4146      (format s1 s2))
4148 results in a bold-face string with an italic `world' at the end.
4150 ** Messages can now be displayed with text properties.
4152 Text properties are handled as described above for function `format'.
4153 The following example displays a bold-face message with an italic
4154 argument in it.
4156   (let ((msg "hello, %s!")
4157         (arg "world"))
4158      (put-text-property 0 (length msg) 'face 'bold msg)
4159      (put-text-property 0 (length arg) 'face 'italic arg)
4160      (message msg arg))
4162 ** Sound support
4164 Emacs supports playing sound files on GNU/Linux and the free BSDs
4165 (Voxware driver and native BSD driver, aka as Luigi's driver).
4167 Currently supported file formats are RIFF-WAVE (*.wav) and Sun Audio
4168 (*.au).  You must configure Emacs with the option `--with-sound=yes'
4169 to enable sound support.
4171 Sound files can be played by calling (play-sound SOUND).  SOUND is a
4172 list of the form `(sound PROPERTY...)'.  The function is only defined
4173 when sound support is present for the system on which Emacs runs.  The
4174 functions runs `play-sound-functions' with one argument which is the
4175 sound to play, before playing the sound.
4177 The following sound properties are supported:
4179 - `:file FILE'
4181 FILE is a file name.  If FILE isn't an absolute name, it will be
4182 searched relative to `data-directory'.
4184 - `:data DATA'
4186 DATA is a string containing sound data.  Either :file or :data
4187 may be present, but not both.
4189 - `:volume VOLUME'
4191 VOLUME must be an integer in the range 0..100 or a float in the range
4192 0..1.  This property is optional.
4194 - `:device DEVICE'
4196 DEVICE is a string specifying the system device on which to play the
4197 sound.  The default device is system-dependent.
4199 Other properties are ignored.
4201 An alternative interface is called as
4202 (play-sound-file FILE &optional VOLUME DEVICE).
4204 ** `multimedia' is a new Finder keyword and Custom group.
4206 ** keywordp is a new predicate to test efficiently for an object being
4207 a keyword symbol.
4209 ** Changes to garbage collection
4211 *** The function garbage-collect now additionally returns the number
4212 of live and free strings.
4214 *** There is a new variable `strings-consed' holding the number of
4215 strings that have been consed so far.
4218 * Lisp-level Display features added after release 2.6 of the Emacs
4219 Lisp Manual
4221 ** The user-option `resize-mini-windows' controls how Emacs resizes
4222 mini-windows.
4224 ** The function `pos-visible-in-window-p' now has a third optional
4225 argument, PARTIALLY.  If a character is only partially visible, nil is
4226 returned, unless PARTIALLY is non-nil.
4228 ** On window systems, `glyph-table' is no longer used.
4230 ** Help strings in menu items are now used to provide `help-echo' text.
4232 ** The function `image-size' can be used to determine the size of an
4233 image.
4235 - Function: image-size SPEC &optional PIXELS FRAME
4237 Return the size of an image as a pair (WIDTH . HEIGHT).
4239 SPEC is an image specification.  PIXELS non-nil means return sizes
4240 measured in pixels, otherwise return sizes measured in canonical
4241 character units (fractions of the width/height of the frame's default
4242 font).  FRAME is the frame on which the image will be displayed.
4243 FRAME nil or omitted means use the selected frame.
4245 ** The function `image-mask-p' can be used to determine if an image
4246 has a mask bitmap.
4248 - Function: image-mask-p SPEC &optional FRAME
4250 Return t if image SPEC has a mask bitmap.
4251 FRAME is the frame on which the image will be displayed.  FRAME nil
4252 or omitted means use the selected frame.
4254 ** The function `find-image' can be used to find a usable image
4255 satisfying one of a list of specifications.
4257 ** The STRING argument of `put-image' and `insert-image' is now
4258 optional.
4260 ** Image specifications may contain the property `:ascent center' (see
4261 below).
4264 * New Lisp-level Display features in Emacs 21.1
4266 ** The function tty-suppress-bold-inverse-default-colors can be used
4267 to make Emacs avoid displaying text with bold black foreground on TTYs.
4269 Some terminals, notably PC consoles, emulate bold text by displaying
4270 text in brighter colors.  On such a console, a bold black foreground
4271 is displayed in a gray color.  If this turns out to be hard to read on
4272 your monitor---the problem occurred with the mode line on
4273 laptops---you can instruct Emacs to ignore the text's boldness, and to
4274 just display it black instead.
4276 This situation can't be detected automatically.  You will have to put
4277 a line like
4279   (tty-suppress-bold-inverse-default-colors t)
4281 in your `.emacs'.
4283 ** New face implementation.
4285 Emacs faces have been reimplemented from scratch.  They don't use XLFD
4286 font names anymore and face merging now works as expected.
4288 *** New faces.
4290 Each face can specify the following display attributes:
4292    1. Font family or fontset alias name.
4294    2. Relative proportionate width, aka character set width or set
4295    width (swidth), e.g. `semi-compressed'.
4297    3. Font height in 1/10pt
4299    4. Font weight, e.g. `bold'.
4301    5. Font slant, e.g. `italic'.
4303    6. Foreground color.
4305    7. Background color.
4307    8. Whether or not characters should be underlined, and in what color.
4309    9. Whether or not characters should be displayed in inverse video.
4311    10. A background stipple, a bitmap.
4313    11. Whether or not characters should be overlined, and in what color.
4315    12. Whether or not characters should be strike-through, and in what
4316    color.
4318    13. Whether or not a box should be drawn around characters, its
4319    color, the width of the box lines, and 3D appearance.
4321 Faces are frame-local by nature because Emacs allows to define the
4322 same named face (face names are symbols) differently for different
4323 frames.  Each frame has an alist of face definitions for all named
4324 faces.  The value of a named face in such an alist is a Lisp vector
4325 with the symbol `face' in slot 0, and a slot for each of the face
4326 attributes mentioned above.
4328 There is also a global face alist `face-new-frame-defaults'.  Face
4329 definitions from this list are used to initialize faces of newly
4330 created frames.
4332 A face doesn't have to specify all attributes.  Those not specified
4333 have a nil value.  Faces specifying all attributes are called
4334 `fully-specified'.
4336 *** Face merging.
4338 The display style of a given character in the text is determined by
4339 combining several faces.  This process is called `face merging'.  Any
4340 aspect of the display style that isn't specified by overlays or text
4341 properties is taken from the `default' face.  Since it is made sure
4342 that the default face is always fully-specified, face merging always
4343 results in a fully-specified face.
4345 *** Face realization.
4347 After all face attributes for a character have been determined by
4348 merging faces of that character, that face is `realized'.  The
4349 realization process maps face attributes to what is physically
4350 available on the system where Emacs runs.  The result is a `realized
4351 face' in form of an internal structure which is stored in the face
4352 cache of the frame on which it was realized.
4354 Face realization is done in the context of the charset of the
4355 character to display because different fonts and encodings are used
4356 for different charsets.  In other words, for characters of different
4357 charsets, different realized faces are needed to display them.
4359 Except for composite characters, faces are always realized for a
4360 specific character set and contain a specific font, even if the face
4361 being realized specifies a fontset.  The reason is that the result of
4362 the new font selection stage is better than what can be done with
4363 statically defined font name patterns in fontsets.
4365 In unibyte text, Emacs' charsets aren't applicable; function
4366 `char-charset' reports ASCII for all characters, including those >
4367 0x7f.  The X registry and encoding of fonts to use is determined from
4368 the variable `face-default-registry' in this case.  The variable is
4369 initialized at Emacs startup time from the font the user specified for
4370 Emacs.
4372 Currently all unibyte text, i.e. all buffers with
4373 `enable-multibyte-characters' nil are displayed with fonts of the same
4374 registry and encoding `face-default-registry'.  This is consistent
4375 with the fact that languages can also be set globally, only.
4377 **** Clearing face caches.
4379 The Lisp function `clear-face-cache' can be called to clear face caches
4380 on all frames.  If called with a non-nil argument, it will also unload
4381 unused fonts.
4383 *** Font selection.
4385 Font selection tries to find the best available matching font for a
4386 given (charset, face) combination.  This is done slightly differently
4387 for faces specifying a fontset, or a font family name.
4389 If the face specifies a fontset name, that fontset determines a
4390 pattern for fonts of the given charset.  If the face specifies a font
4391 family, a font pattern is constructed.  Charset symbols have a
4392 property `x-charset-registry' for that purpose that maps a charset to
4393 an XLFD registry and encoding in the font pattern constructed.
4395 Available fonts on the system on which Emacs runs are then matched
4396 against the font pattern.  The result of font selection is the best
4397 match for the given face attributes in this font list.
4399 Font selection can be influenced by the user.
4401 The user can specify the relative importance he gives the face
4402 attributes width, height, weight, and slant by setting
4403 face-font-selection-order (faces.el) to a list of face attribute
4404 names.  The default is (:width :height :weight :slant), and means
4405 that font selection first tries to find a good match for the font
4406 width specified by a face, then---within fonts with that width---tries
4407 to find a best match for the specified font height, etc.
4409 Setting `face-font-family-alternatives' allows the user to specify
4410 alternative font families to try if a family specified by a face
4411 doesn't exist.
4413 Setting `face-font-registry-alternatives' allows the user to specify
4414 all alternative font registry names to try for a face specifying a
4415 registry.
4417 Please note that the interpretations of the above two variables are
4418 slightly different.
4420 Setting face-ignored-fonts allows the user to ignore specific fonts.
4423 **** Scalable fonts
4425 Emacs can make use of scalable fonts but doesn't do so by default,
4426 since the use of too many or too big scalable fonts may crash XFree86
4427 servers.
4429 To enable scalable font use, set the variable
4430 `scalable-fonts-allowed'.  A value of nil, the default, means never use
4431 scalable fonts.  A value of t means any scalable font may be used.
4432 Otherwise, the value must be a list of regular expressions.  A
4433 scalable font may then be used if it matches a regular expression from
4434 that list.  Example:
4436   (setq scalable-fonts-allowed '("muleindian-2$"))
4438 allows the use of scalable fonts with registry `muleindian-2'.
4440 *** Functions and variables related to font selection.
4442 - Function: x-family-fonts &optional FAMILY FRAME
4444 Return a list of available fonts of family FAMILY on FRAME.  If FAMILY
4445 is omitted or nil, list all families.  Otherwise, FAMILY must be a
4446 string, possibly containing wildcards `?' and `*'.
4448 If FRAME is omitted or nil, use the selected frame.  Each element of
4449 the result is a vector [FAMILY WIDTH POINT-SIZE WEIGHT SLANT FIXED-P
4450 FULL REGISTRY-AND-ENCODING].  FAMILY is the font family name.
4451 POINT-SIZE is the size of the font in 1/10 pt.  WIDTH, WEIGHT, and
4452 SLANT are symbols describing the width, weight and slant of the font.
4453 These symbols are the same as for face attributes.  FIXED-P is non-nil
4454 if the font is fixed-pitch.  FULL is the full name of the font, and
4455 REGISTRY-AND-ENCODING is a string giving the registry and encoding of
4456 the font.  The result list is sorted according to the current setting
4457 of the face font sort order.
4459 - Function: x-font-family-list
4461 Return a list of available font families on FRAME.  If FRAME is
4462 omitted or nil, use the selected frame.  Value is a list of conses
4463 (FAMILY . FIXED-P) where FAMILY is a font family, and FIXED-P is
4464 non-nil if fonts of that family are fixed-pitch.
4466 - Variable: font-list-limit
4468 Limit for font matching.  If an integer > 0, font matching functions
4469 won't load more than that number of fonts when searching for a
4470 matching font.  The default is currently 100.
4472 *** Setting face attributes.
4474 For the most part, the new face implementation is interface-compatible
4475 with the old one.  Old face attribute related functions are now
4476 implemented in terms of the new functions `set-face-attribute' and
4477 `face-attribute'.
4479 Face attributes are identified by their names which are keyword
4480 symbols.  All attributes can be set to `unspecified'.
4482 The following attributes are recognized:
4484 `:family'
4486 VALUE must be a string specifying the font family, e.g. ``courier'',
4487 or a fontset alias name.  If a font family is specified, wild-cards `*'
4488 and `?' are allowed.
4490 `:width'
4492 VALUE specifies the relative proportionate width of the font to use.
4493 It must be one of the symbols `ultra-condensed', `extra-condensed',
4494 `condensed', `semi-condensed', `normal', `semi-expanded', `expanded',
4495 `extra-expanded', or `ultra-expanded'.
4497 `:height'
4499 VALUE must be either an integer specifying the height of the font to use
4500 in 1/10 pt, a floating point number specifying the amount by which to
4501 scale any underlying face, or a function, which is called with the old
4502 height (from the underlying face), and should return the new height.
4504 `:weight'
4506 VALUE specifies the weight of the font to use.  It must be one of the
4507 symbols `ultra-bold', `extra-bold', `bold', `semi-bold', `normal',
4508 `semi-light', `light', `extra-light', `ultra-light'.
4510 `:slant'
4512 VALUE specifies the slant of the font to use.  It must be one of the
4513 symbols `italic', `oblique', `normal', `reverse-italic', or
4514 `reverse-oblique'.
4516 `:foreground', `:background'
4518 VALUE must be a color name, a string.
4520 `:underline'
4522 VALUE specifies whether characters in FACE should be underlined.  If
4523 VALUE is t, underline with foreground color of the face.  If VALUE is
4524 a string, underline with that color.  If VALUE is nil, explicitly
4525 don't underline.
4527 `:overline'
4529 VALUE specifies whether characters in FACE should be overlined.  If
4530 VALUE is t, overline with foreground color of the face.  If VALUE is a
4531 string, overline with that color.  If VALUE is nil, explicitly don't
4532 overline.
4534 `:strike-through'
4536 VALUE specifies whether characters in FACE should be drawn with a line
4537 striking through them.  If VALUE is t, use the foreground color of the
4538 face.  If VALUE is a string, strike-through with that color.  If VALUE
4539 is nil, explicitly don't strike through.
4541 `:box'
4543 VALUE specifies whether characters in FACE should have a box drawn
4544 around them.  If VALUE is nil, explicitly don't draw boxes.  If
4545 VALUE is t, draw a box with lines of width 1 in the foreground color
4546 of the face.  If VALUE is a string, the string must be a color name,
4547 and the box is drawn in that color with a line width of 1.  Otherwise,
4548 VALUE must be a property list of the form `(:line-width WIDTH
4549 :color COLOR :style STYLE)'.  If a keyword/value pair is missing from
4550 the property list, a default value will be used for the value, as
4551 specified below.  WIDTH specifies the width of the lines to draw; it
4552 defaults to 1.  COLOR is the name of the color to draw in, default is
4553 the foreground color of the face for simple boxes, and the background
4554 color of the face for 3D boxes.  STYLE specifies whether a 3D box
4555 should be draw.  If STYLE is `released-button', draw a box looking
4556 like a released 3D button.  If STYLE is `pressed-button' draw a box
4557 that appears like a pressed button.  If STYLE is nil, the default if
4558 the property list doesn't contain a style specification, draw a 2D
4559 box.
4561 `:inverse-video'
4563 VALUE specifies whether characters in FACE should be displayed in
4564 inverse video. VALUE must be one of t or nil.
4566 `:stipple'
4568 If VALUE is a string, it must be the name of a file of pixmap data.
4569 The directories listed in the `x-bitmap-file-path' variable are
4570 searched.  Alternatively, VALUE may be a list of the form (WIDTH
4571 HEIGHT DATA) where WIDTH and HEIGHT are the size in pixels, and DATA
4572 is a string containing the raw bits of the bitmap.  VALUE nil means
4573 explicitly don't use a stipple pattern.
4575 For convenience, attributes `:family', `:width', `:height', `:weight',
4576 and `:slant' may also be set in one step from an X font name:
4578 `:font'
4580 Set font-related face attributes from VALUE.  VALUE must be a valid
4581 XLFD font name.  If it is a font name pattern, the first matching font
4582 is used--this is for compatibility with the behavior of previous
4583 versions of Emacs.
4585 For compatibility with Emacs 20, keywords `:bold' and `:italic' can
4586 be used to specify that a bold or italic font should be used.  VALUE
4587 must be t or nil in that case.  A value of `unspecified' is not allowed."
4589 Please see also the documentation of `set-face-attribute' and
4590 `defface'.
4592 `:inherit'
4594 VALUE is the name of a face from which to inherit attributes, or a list
4595 of face names.  Attributes from inherited faces are merged into the face
4596 like an underlying face would be, with higher priority than underlying faces.
4598 *** Face attributes and X resources
4600 The following X resource names can be used to set face attributes
4601 from X resources:
4603   Face attribute        X resource              class
4604 -----------------------------------------------------------------------
4605   :family               attributeFamily .       Face.AttributeFamily
4606   :width                attributeWidth          Face.AttributeWidth
4607   :height               attributeHeight         Face.AttributeHeight
4608   :weight               attributeWeight         Face.AttributeWeight
4609   :slant                attributeSlant          Face.AttributeSlant
4610    foreground           attributeForeground     Face.AttributeForeground
4611   :background           attributeBackground .   Face.AttributeBackground
4612   :overline             attributeOverline       Face.AttributeOverline
4613   :strike-through       attributeStrikeThrough  Face.AttributeStrikeThrough
4614   :box                  attributeBox            Face.AttributeBox
4615   :underline            attributeUnderline      Face.AttributeUnderline
4616   :inverse-video        attributeInverse        Face.AttributeInverse
4617   :stipple              attributeStipple        Face.AttributeStipple
4618         or              attributeBackgroundPixmap
4619                                                 Face.AttributeBackgroundPixmap
4620   :font                 attributeFont           Face.AttributeFont
4621   :bold                 attributeBold           Face.AttributeBold
4622   :italic               attributeItalic .       Face.AttributeItalic
4623   :font                 attributeFont           Face.AttributeFont
4625 *** Text property `face'.
4627 The value of the `face' text property can now be a single face
4628 specification or a list of such specifications.  Each face
4629 specification can be
4631 1. A symbol or string naming a Lisp face.
4633 2. A property list of the form (KEYWORD VALUE ...) where each
4634    KEYWORD is a face attribute name, and VALUE is an appropriate value
4635    for that attribute.  Please see the doc string of `set-face-attribute'
4636    for face attribute names.
4638 3. Conses of the form (FOREGROUND-COLOR . COLOR) or
4639    (BACKGROUND-COLOR . COLOR) where COLOR is a color name.  This is
4640    for compatibility with previous Emacs versions.
4642 ** Support functions for colors on text-only terminals.
4644 The function `tty-color-define' can be used to define colors for use
4645 on TTY and MSDOS frames.  It maps a color name to a color number on
4646 the terminal.  Emacs defines a couple of common color mappings by
4647 default.  You can get defined colors with a call to
4648 `defined-colors'.  The function `tty-color-clear' can be
4649 used to clear the mapping table.
4651 ** Unified support for colors independent of frame type.
4653 The new functions `defined-colors', `color-defined-p', `color-values',
4654 and `display-color-p' work for any type of frame.  On frames whose
4655 type is neither x nor w32, these functions transparently map X-style
4656 color specifications to the closest colors supported by the frame
4657 display.  Lisp programs should use these new functions instead of the
4658 old `x-defined-colors', `x-color-defined-p', `x-color-values', and
4659 `x-display-color-p'.  (The old function names are still available for
4660 compatibility; they are now aliases of the new names.)  Lisp programs
4661 should no more look at the value of the variable window-system to
4662 modify their color-related behavior.
4664 The primitives `color-gray-p' and `color-supported-p' also work for
4665 any frame type.
4667 ** Platform-independent functions to describe display capabilities.
4669 The new functions `display-mouse-p', `display-popup-menus-p',
4670 `display-graphic-p', `display-selections-p', `display-screens',
4671 `display-pixel-width', `display-pixel-height', `display-mm-width',
4672 `display-mm-height', `display-backing-store', `display-save-under',
4673 `display-planes', `display-color-cells', `display-visual-class', and
4674 `display-grayscale-p' describe the basic capabilities of a particular
4675 display.  Lisp programs should call these functions instead of testing
4676 the value of the variables `window-system' or `system-type', or calling
4677 platform-specific functions such as `x-display-pixel-width'.
4679 The new function `display-images-p' returns non-nil if a particular
4680 display can display image files.
4682 ** The minibuffer prompt is now actually inserted in the minibuffer.
4684 This makes it possible to scroll through the prompt, if you want to.
4685 To disallow this completely (like previous versions of emacs), customize
4686 the variable `minibuffer-prompt-properties', and turn on the
4687 `Inviolable' option.
4689 The function `minibuffer-prompt-end' returns the current position of the
4690 end of the minibuffer prompt, if the minibuffer is current.
4691 Otherwise, it returns `(point-min)'.
4693 ** New `field' abstraction in buffers.
4695 There is now code to support an abstraction called `fields' in emacs
4696 buffers.  A field is a contiguous region of text with the same `field'
4697 property (which can be a text property or an overlay).
4699 Many emacs functions, such as forward-word, forward-sentence,
4700 forward-paragraph, beginning-of-line, etc., stop moving when they come
4701 to the boundary between fields; beginning-of-line and end-of-line will
4702 not let the point move past the field boundary, but other movement
4703 commands continue into the next field if repeated.  Stopping at field
4704 boundaries can be suppressed programmatically by binding
4705 `inhibit-field-text-motion' to a non-nil value around calls to these
4706 functions.
4708 Now that the minibuffer prompt is inserted into the minibuffer, it is in
4709 a separate field from the user-input part of the buffer, so that common
4710 editing commands treat the user's text separately from the prompt.
4712 The following functions are defined for operating on fields:
4714 - Function: constrain-to-field NEW-POS OLD-POS &optional ESCAPE-FROM-EDGE ONLY-IN-LINE INHIBIT-CAPTURE-PROPERTY
4716 Return the position closest to NEW-POS that is in the same field as OLD-POS.
4718 A field is a region of text with the same `field' property.
4719 If NEW-POS is nil, then the current point is used instead, and set to the
4720 constrained position if that is different.
4722 If OLD-POS is at the boundary of two fields, then the allowable
4723 positions for NEW-POS depends on the value of the optional argument
4724 ESCAPE-FROM-EDGE: If ESCAPE-FROM-EDGE is nil, then NEW-POS is
4725 constrained to the field that has the same `field' char-property
4726 as any new characters inserted at OLD-POS, whereas if ESCAPE-FROM-EDGE
4727 is non-nil, NEW-POS is constrained to the union of the two adjacent
4728 fields.  Additionally, if two fields are separated by another field with
4729 the special value `boundary', then any point within this special field is
4730 also considered to be `on the boundary'.
4732 If the optional argument ONLY-IN-LINE is non-nil and constraining
4733 NEW-POS would move it to a different line, NEW-POS is returned
4734 unconstrained.  This useful for commands that move by line, like
4735 C-n or C-a, which should generally respect field boundaries
4736 only in the case where they can still move to the right line.
4738 If the optional argument INHIBIT-CAPTURE-PROPERTY is non-nil, and OLD-POS has
4739 a non-nil property of that name, then any field boundaries are ignored.
4741 Field boundaries are not noticed if `inhibit-field-text-motion' is non-nil.
4743 - Function: delete-field &optional POS
4745 Delete the field surrounding POS.
4746 A field is a region of text with the same `field' property.
4747 If POS is nil, the value of point is used for POS.
4749 - Function: field-beginning &optional POS ESCAPE-FROM-EDGE
4751 Return the beginning of the field surrounding POS.
4752 A field is a region of text with the same `field' property.
4753 If POS is nil, the value of point is used for POS.
4754 If ESCAPE-FROM-EDGE is non-nil and POS is at the beginning of its
4755 field, then the beginning of the *previous* field is returned.
4757 - Function: field-end &optional POS ESCAPE-FROM-EDGE
4759 Return the end of the field surrounding POS.
4760 A field is a region of text with the same `field' property.
4761 If POS is nil, the value of point is used for POS.
4762 If ESCAPE-FROM-EDGE is non-nil and POS is at the end of its field,
4763 then the end of the *following* field is returned.
4765 - Function: field-string &optional POS
4767 Return the contents of the field surrounding POS as a string.
4768 A field is a region of text with the same `field' property.
4769 If POS is nil, the value of point is used for POS.
4771 - Function: field-string-no-properties &optional POS
4773 Return the contents of the field around POS, without text-properties.
4774 A field is a region of text with the same `field' property.
4775 If POS is nil, the value of point is used for POS.
4777 ** Image support.
4779 Emacs can now display images.  Images are inserted into text by giving
4780 strings or buffer text a `display' text property containing one of
4781 (AREA IMAGE) or IMAGE.  The display of the `display' property value
4782 replaces the display of the characters having that property.
4784 If the property value has the form (AREA IMAGE), AREA must be one of
4785 `(margin left-margin)', `(margin right-margin)' or `(margin nil)'.  If
4786 AREA is `(margin nil)', IMAGE will be displayed in the text area of a
4787 window, otherwise it will be displayed in the left or right marginal
4788 area.
4790 IMAGE is an image specification.
4792 *** Image specifications
4794 Image specifications are lists of the form `(image PROPS)' where PROPS
4795 is a property list whose keys are keyword symbols.  Each
4796 specifications must contain a property `:type TYPE' with TYPE being a
4797 symbol specifying the image type, e.g. `xbm'.  Properties not
4798 described below are ignored.
4800 The following is a list of properties all image types share.
4802 `:ascent ASCENT'
4804 ASCENT must be a number in the range 0..100, or the symbol `center'.
4805 If it is a number, it specifies the percentage of the image's height
4806 to use for its ascent.
4808 If not specified, ASCENT defaults to the value 50 which means that the
4809 image will be centered with the base line of the row it appears in.
4811 If ASCENT is `center' the image is vertically centered around a
4812 centerline which is the vertical center of text drawn at the position
4813 of the image, in the manner specified by the text properties and
4814 overlays that apply to the image.
4816 `:margin MARGIN'
4818 MARGIN must be either a number >= 0 specifying how many pixels to put
4819 as margin around the image, or a pair (X . Y) with X specifying the
4820 horizontal margin and Y specifying the vertical margin.  Default is 0.
4822 `:relief RELIEF'
4824 RELIEF is analogous to the `:relief' attribute of faces.  Puts a relief
4825 around an image.
4827 `:conversion ALGO'
4829 Apply an image algorithm to the image before displaying it.
4831 ALGO `laplace' or `emboss' means apply a Laplace or ``emboss''
4832 edge-detection algorithm to the image.
4834 ALGO `(edge-detection :matrix MATRIX :color-adjust ADJUST)' means
4835 apply a general edge-detection algorithm.  MATRIX must be either a
4836 nine-element list or a nine-element vector of numbers.  A pixel at
4837 position x/y in the transformed image is computed from original pixels
4838 around that position.  MATRIX specifies, for each pixel in the
4839 neighborhood of x/y, a factor with which that pixel will influence the
4840 transformed pixel; element 0 specifies the factor for the pixel at
4841 x-1/y-1, element 1 the factor for the pixel at x/y-1 etc. as shown
4842 below.
4844   (x-1/y-1  x/y-1  x+1/y-1
4845    x-1/y    x/y    x+1/y
4846    x-1/y+1  x/y+1  x+1/y+1)
4848 The resulting pixel is computed from the color intensity of the color
4849 resulting from summing up the RGB values of surrounding pixels,
4850 multiplied by the specified factors, and dividing that sum by the sum
4851 of the factors' absolute values.
4853 Laplace edge-detection currently uses a matrix of
4855   (1  0  0
4856    0  0  0
4857    9  9 -1)
4859 Emboss edge-detection uses a matrix of
4861   ( 2 -1  0
4862    -1  0  1
4863     0  1 -2)
4865 ALGO `disabled' means transform the image so that it looks
4866 ``disabled''.
4868 `:mask MASK'
4870 If MASK is `heuristic' or `(heuristic BG)', build a clipping mask for
4871 the image, so that the background of a frame is visible behind the
4872 image.  If BG is not specified, or if BG is t, determine the
4873 background color of the image by looking at the 4 corners of the
4874 image, assuming the most frequently occurring color from the corners is
4875 the background color of the image.  Otherwise, BG must be a list `(RED
4876 GREEN BLUE)' specifying the color to assume for the background of the
4877 image.
4879 If MASK is nil, remove a mask from the image, if it has one.  Images
4880 in some formats include a mask which can be removed by specifying
4881 `:mask nil'.
4883 `:file FILE'
4885 Load image from FILE.  If FILE is not absolute after expanding it,
4886 search for the image in `data-directory'.  Some image types support
4887 building images from data.  When this is done, no `:file' property
4888 may be present in the image specification.
4890 `:data DATA'
4892 Get image data from DATA.  (As of this writing, this is not yet
4893 supported for image type `postscript').  Either :file or :data may be
4894 present in an image specification, but not both.  All image types
4895 support strings as DATA, some types allow additional types of DATA.
4897 *** Supported image types
4899 **** XBM, image type `xbm'.
4901 XBM images don't require an external library.  Additional image
4902 properties supported are
4904 `:foreground FG'
4906 FG must be a string specifying the image foreground color, or nil
4907 meaning to use the default.  Default is the frame's foreground.
4909 `:background BG'
4911 BG must be a string specifying the image foreground color, or nil
4912 meaning to use the default.  Default is the frame's background color.
4914 XBM images can be constructed from data instead of file.  In this
4915 case, the image specification must contain the following properties
4916 instead of a `:file' property.
4918 `:width WIDTH'
4920 WIDTH specifies the width of the image in pixels.
4922 `:height HEIGHT'
4924 HEIGHT specifies the height of the image in pixels.
4926 `:data DATA'
4928 DATA must be either
4930    1. a string large enough to hold the bitmap data, i.e. it must
4931    have a size >= (WIDTH + 7) / 8 * HEIGHT
4933    2. a bool-vector of size >= WIDTH * HEIGHT
4935    3. a vector of strings or bool-vectors, one for each line of the
4936    bitmap.
4938    4. a string that's an in-memory XBM file.  Neither width nor
4939    height may be specified in this case because these are defined
4940    in the file.
4942 **** XPM, image type `xpm'
4944 XPM images require the external library `libXpm', package
4945 `xpm-3.4k.tar.gz', version 3.4k or later.  Make sure the library is
4946 found when Emacs is configured by supplying appropriate paths via
4947 `--x-includes' and `--x-libraries'.
4949 Additional image properties supported are:
4951 `:color-symbols SYMBOLS'
4953 SYMBOLS must be a list of pairs (NAME . COLOR), with NAME being the
4954 name of color as it appears in an XPM file, and COLOR being an X color
4955 name.
4957 XPM images can be built from memory instead of files.  In that case,
4958 add a `:data' property instead of a `:file' property.
4960 The XPM library uses libz in its implementation so that it is able
4961 to display compressed images.
4963 **** PBM, image type `pbm'
4965 PBM images don't require an external library.  Color, gray-scale and
4966 mono images are supported.  Additional image properties supported for
4967 mono images are
4969 `:foreground FG'
4971 FG must be a string specifying the image foreground color, or nil
4972 meaning to use the default.  Default is the frame's foreground.
4974 `:background FG'
4976 BG must be a string specifying the image foreground color, or nil
4977 meaning to use the default.  Default is the frame's background color.
4979 **** JPEG, image type `jpeg'
4981 Support for JPEG images requires the external library `libjpeg',
4982 package `jpegsrc.v6a.tar.gz', or later.  Additional image properties
4983 are:
4985 **** TIFF, image type `tiff'
4987 Support for TIFF images requires the external library `libtiff',
4988 package `tiff-v3.4-tar.gz', or later.  There are no additional image
4989 properties defined.
4991 **** GIF, image type `gif'
4993 Support for GIF images requires the external library `libungif', package
4994 `libungif-4.1.0', or later.
4996 Additional image properties supported are:
4998 `:index INDEX'
5000 INDEX must be an integer >= 0.  Load image number INDEX from a
5001 multi-image GIF file.  An error is signaled if INDEX is too large.
5003 This could be used to implement limited support for animated GIFs.
5004 For example, the following function displays a multi-image GIF file
5005 at point-min in the current buffer, switching between sub-images
5006 every 0.1 seconds.
5008 (defun show-anim (file max)
5009   "Display multi-image GIF file FILE which contains MAX subimages."
5010   (display-anim (current-buffer) file 0 max t))
5012 (defun display-anim (buffer file idx max first-time)
5013   (when (= idx max)
5014     (setq idx 0))
5015   (let ((img (create-image file nil nil :index idx)))
5016     (save-excursion
5017       (set-buffer buffer)
5018       (goto-char (point-min))
5019       (unless first-time (delete-char 1))
5020       (insert-image img "x"))
5021     (run-with-timer 0.1 nil 'display-anim buffer file (1+ idx) max nil)))
5023 **** PNG, image type `png'
5025 Support for PNG images requires the external library `libpng',
5026 package `libpng-1.0.2.tar.gz', or later.  There are no additional image
5027 properties defined.
5029 **** Ghostscript, image type `postscript'.
5031 Additional image properties supported are:
5033 `:pt-width WIDTH'
5035 WIDTH is width of the image in pt (1/72 inch).  WIDTH must be an
5036 integer.  This is a required property.
5038 `:pt-height HEIGHT'
5040 HEIGHT specifies the height of the image in pt (1/72 inch).  HEIGHT
5041 must be a integer.  This is an required property.
5043 `:bounding-box BOX'
5045 BOX must be a list or vector of 4 integers giving the bounding box of
5046 the PS image, analogous to the `BoundingBox' comment found in PS
5047 files.  This is an required property.
5049 Part of the Ghostscript interface is implemented in Lisp.  See
5050 lisp/gs.el.
5052 *** Lisp interface.
5054 The variable `image-types' contains a list of those image types
5055 which are supported in the current configuration.
5057 Images are stored in an image cache and removed from the cache when
5058 they haven't been displayed for `image-cache-eviction-delay seconds.
5059 The function `clear-image-cache' can be used to clear the image cache
5060 manually.  Images in the cache are compared with `equal', i.e. all
5061 images with `equal' specifications share the same image.
5063 *** Simplified image API, image.el
5065 The new Lisp package image.el contains functions that simplify image
5066 creation and putting images into text.  The function `create-image'
5067 can be used to create images.  The macro `defimage' can be used to
5068 define an image based on available image types.  The functions
5069 `put-image' and `insert-image' can be used to insert an image into a
5070 buffer.
5072 ** Display margins.
5074 Windows can now have margins which are used for special text
5075 and images.
5077 To give a window margins, either set the buffer-local variables
5078 `left-margin-width' and `right-margin-width', or call
5079 `set-window-margins'.  The function `window-margins' can be used to
5080 obtain the current settings.  To make `left-margin-width' and
5081 `right-margin-width' take effect, you must set them before displaying
5082 the buffer in a window, or use `set-window-buffer' to force an update
5083 of the display margins.
5085 You can put text in margins by giving it a `display' text property
5086 containing a pair of the form `(LOCATION . VALUE)', where LOCATION is
5087 one of `left-margin' or `right-margin' or nil.  VALUE can be either a
5088 string, an image specification or a stretch specification (see later
5089 in this file).
5091 ** Help display
5093 Emacs displays short help messages in the echo area, when the mouse
5094 moves over a tool-bar item or a piece of text that has a text property
5095 `help-echo'.  This feature also applies to strings in the mode line
5096 that have a `help-echo' property.
5098 If the value of the `help-echo' property is a function, that function
5099 is called with three arguments WINDOW, OBJECT and POSITION.  WINDOW is
5100 the window in which the help was found.
5102 If OBJECT is a buffer, POS is the position in the buffer where the
5103 `help-echo' text property was found.
5105 If OBJECT is an overlay, that overlay has a `help-echo' property, and
5106 POS is the position in the overlay's buffer under the mouse.
5108 If OBJECT is a string (an overlay string or a string displayed with
5109 the `display' property), POS is the position in that string under the
5110 mouse.
5112 If the value of the `help-echo' property is neither a function nor a
5113 string, it is evaluated to obtain a help string.
5115 For tool-bar and menu-bar items, their key definition is used to
5116 determine the help to display.  If their definition contains a
5117 property `:help FORM', FORM is evaluated to determine the help string.
5118 For tool-bar items without a help form, the caption of the item is
5119 used as help string.
5121 The hook `show-help-function' can be set to a function that displays
5122 the help string differently.  For example, enabling a tooltip window
5123 causes the help display to appear there instead of in the echo area.
5125 ** Vertical fractional scrolling.
5127 The display of text in windows can be scrolled smoothly in pixels.
5128 This is useful, for example, for making parts of large images visible.
5130 The function `window-vscroll' returns the current value of vertical
5131 scrolling, a non-negative fraction of the canonical character height.
5132 The function `set-window-vscroll' can be used to set the vertical
5133 scrolling value.  Here is an example of how these function might be
5134 used.
5136   (global-set-key [A-down]
5137     #'(lambda ()
5138         (interactive)
5139         (set-window-vscroll (selected-window)
5140                             (+ 0.5 (window-vscroll)))))
5141   (global-set-key [A-up]
5142     #'(lambda ()
5143         (interactive)
5144         (set-window-vscroll (selected-window)
5145                             (- (window-vscroll) 0.5)))))
5147 ** New hook `fontification-functions'.
5149 Functions from `fontification-functions' are called from redisplay
5150 when it encounters a region of text that is not yet fontified.  This
5151 variable automatically becomes buffer-local when set.  Each function
5152 is called with one argument, POS.
5154 At least one of the hook functions should fontify one or more
5155 characters starting at POS in the current buffer.  It should mark them
5156 as fontified by giving them a non-nil value of the `fontified' text
5157 property.  It may be reasonable for these functions to check for the
5158 `fontified' property and not put it back on, but they do not have to.
5160 ** Tool bar support.
5162 Emacs supports a tool bar at the top of a frame under X.  The frame
5163 parameter `tool-bar-lines' (X resource "toolBar", class "ToolBar")
5164 controls how may lines to reserve for the tool bar.  A zero value
5165 suppresses the tool bar.  If the value is non-zero and
5166 `auto-resize-tool-bars' is non-nil the tool bar's size will be changed
5167 automatically so that all tool bar items are visible.
5169 *** Tool bar item definitions
5171 Tool bar items are defined using `define-key' with a prefix-key
5172 `tool-bar'.  For example `(define-key global-map [tool-bar item1] ITEM)'
5173 where ITEM is a list `(menu-item CAPTION BINDING PROPS...)'.
5175 CAPTION is the caption of the item, If it's not a string, it is
5176 evaluated to get a string.  The caption is currently not displayed in
5177 the tool bar, but it is displayed if the item doesn't have a `:help'
5178 property (see below).
5180 BINDING is the tool bar item's binding.  Tool bar items with keymaps as
5181 binding are currently ignored.
5183 The following properties are recognized:
5185 `:enable FORM'.
5187 FORM is evaluated and specifies whether the tool bar item is enabled
5188 or disabled.
5190 `:visible FORM'
5192 FORM is evaluated and specifies whether the tool bar item is displayed.
5194 `:filter FUNCTION'
5196 FUNCTION is called with one parameter, the same list BINDING in which
5197 FUNCTION is specified as the filter.  The value FUNCTION returns is
5198 used instead of BINDING to display this item.
5200 `:button (TYPE SELECTED)'
5202 TYPE must be one of `:radio' or `:toggle'.  SELECTED is evaluated
5203 and specifies whether the button is selected (pressed) or not.
5205 `:image IMAGES'
5207 IMAGES is either a single image specification or a vector of four
5208 image specifications.  If it is a vector, this table lists the
5209 meaning of each of the four elements:
5211    Index        Use when item is
5212    ----------------------------------------
5213      0          enabled and selected
5214      1          enabled and deselected
5215      2          disabled and selected
5216      3          disabled and deselected
5218 If IMAGE is a single image specification, a Laplace edge-detection
5219 algorithm is used on that image to draw the image in disabled state.
5221 `:help HELP-STRING'.
5223 Gives a help string to display for the tool bar item.  This help
5224 is displayed when the mouse is moved over the item.
5226 The function `toolbar-add-item' is a convenience function for adding
5227 toolbar items generally, and `tool-bar-add-item-from-menu' can be used
5228 to define a toolbar item with a binding copied from an item on the
5229 menu bar.
5231 The default bindings use a menu-item :filter to derive the tool-bar
5232 dynamically from variable `tool-bar-map' which may be set
5233 buffer-locally to override the global map.
5235 *** Tool-bar-related variables.
5237 If `auto-resize-tool-bar' is non-nil, the tool bar will automatically
5238 resize to show all defined tool bar items.  It will never grow larger
5239 than 1/4 of the frame's size.
5241 If `auto-raise-tool-bar-buttons' is non-nil, tool bar buttons will be
5242 raised when the mouse moves over them.
5244 You can add extra space between tool bar items by setting
5245 `tool-bar-button-margin' to a positive integer specifying a number of
5246 pixels, or a pair of integers (X . Y) specifying horizontal and
5247 vertical margins .  Default is 1.
5249 You can change the shadow thickness of tool bar buttons by setting
5250 `tool-bar-button-relief' to an integer.  Default is 3.
5252 *** Tool-bar clicks with modifiers.
5254 You can bind commands to clicks with control, shift, meta etc. on
5255 a tool bar item.  If
5257   (define-key global-map [tool-bar shell]
5258     '(menu-item "Shell" shell
5259                 :image (image :type xpm :file "shell.xpm")))
5261 is the original tool bar item definition, then
5263   (define-key global-map [tool-bar S-shell] 'some-command)
5265 makes a binding to run `some-command' for a shifted click on the same
5266 item.
5268 ** Mode line changes.
5270 *** Mouse-sensitive mode line.
5272 The mode line can be made mouse-sensitive by displaying strings there
5273 that have a `local-map' text property.  There are three ways to display
5274 a string with a `local-map' property in the mode line.
5276 1. The mode line spec contains a variable whose string value has
5277 a `local-map' text property.
5279 2. The mode line spec contains a format specifier (e.g. `%12b'), and
5280 that format specifier has a `local-map' property.
5282 3. The mode line spec contains a list containing `:eval FORM'.  FORM
5283 is evaluated.  If the result is a string, and that string has a
5284 `local-map' property.
5286 The same mechanism is used to determine the `face' and `help-echo'
5287 properties of strings in the mode line.  See `bindings.el' for an
5288 example.
5290 *** If a mode line element has the form `(:eval FORM)', FORM is
5291 evaluated and the result is used as mode line element.
5293 *** You can suppress mode-line display by setting the buffer-local
5294 variable mode-line-format to nil.
5296 *** A headerline can now be displayed at the top of a window.
5298 This mode line's contents are controlled by the new variable
5299 `header-line-format' and `default-header-line-format' which are
5300 completely analogous to `mode-line-format' and
5301 `default-mode-line-format'.  A value of nil means don't display a top
5302 line.
5304 The appearance of top mode lines is controlled by the face
5305 `header-line'.
5307 The function `coordinates-in-window-p' returns `header-line' for a
5308 position in the header-line.
5310 ** Text property `display'
5312 The `display' text property is used to insert images into text,
5313 replace text with other text, display text in marginal area, and it is
5314 also used to control other aspects of how text displays.  The value of
5315 the `display' property should be a display specification, as described
5316 below, or a list or vector containing display specifications.
5318 *** Replacing text, displaying text in marginal areas
5320 To replace the text having the `display' property with some other
5321 text, use a display specification of the form `(LOCATION STRING)'.
5323 If LOCATION is `(margin left-margin)', STRING is displayed in the left
5324 marginal area, if it is `(margin right-margin)', it is displayed in
5325 the right marginal area, and if LOCATION is `(margin nil)' STRING
5326 is displayed in the text.  In the latter case you can also use the
5327 simpler form STRING as property value.
5329 *** Variable width and height spaces
5331 To display a space of fractional width or height, use a display
5332 specification of the form `(LOCATION STRECH)'.  If LOCATION is
5333 `(margin left-margin)', the space is displayed in the left marginal
5334 area, if it is `(margin right-margin)', it is displayed in the right
5335 marginal area, and if LOCATION is `(margin nil)' the space is
5336 displayed in the text.  In the latter case you can also use the
5337 simpler form STRETCH as property value.
5339 The stretch specification STRETCH itself is a list of the form `(space
5340 PROPS)', where PROPS is a property list which can contain the
5341 properties described below.
5343 The display of the fractional space replaces the display of the
5344 characters having the `display' property.
5346 - :width WIDTH
5348 Specifies that the space width should be WIDTH times the normal
5349 character width.  WIDTH can be an integer or floating point number.
5351 - :relative-width FACTOR
5353 Specifies that the width of the stretch should be computed from the
5354 first character in a group of consecutive characters that have the
5355 same `display' property.  The computation is done by multiplying the
5356 width of that character by FACTOR.
5358 - :align-to HPOS
5360 Specifies that the space should be wide enough to reach HPOS.  The
5361 value HPOS is measured in units of the normal character width.
5363 Exactly one of the above properties should be used.
5365 - :height HEIGHT
5367 Specifies the height of the space, as HEIGHT, measured in terms of the
5368 normal line height.
5370 - :relative-height FACTOR
5372 The height of the space is computed as the product of the height
5373 of the text having the `display' property and FACTOR.
5375 - :ascent ASCENT
5377 Specifies that ASCENT percent of the height of the stretch should be
5378 used for the ascent of the stretch, i.e. for the part above the
5379 baseline.  The value of ASCENT must be a non-negative number less or
5380 equal to 100.
5382 You should not use both `:height' and `:relative-height' together.
5384 *** Images
5386 A display specification for an image has the form `(LOCATION
5387 . IMAGE)', where IMAGE is an image specification.  The image replaces,
5388 in the display, the characters having this display specification in
5389 their `display' text property.  If LOCATION is `(margin left-margin)',
5390 the image will be displayed in the left marginal area, if it is
5391 `(margin right-margin)' it will be displayed in the right marginal
5392 area, and if LOCATION is `(margin nil)' the image will be displayed in
5393 the text.  In the latter case you can also use the simpler form IMAGE
5394 as display specification.
5396 *** Other display properties
5398 - (space-width FACTOR)
5400 Specifies that space characters in the text having that property
5401 should be displayed FACTOR times as wide as normal; FACTOR must be an
5402 integer or float.
5404 - (height HEIGHT)
5406 Display text having this property in a font that is smaller or larger.
5408 If HEIGHT is a list of the form `(+ N)', where N is an integer, that
5409 means to use a font that is N steps larger.  If HEIGHT is a list of
5410 the form `(- N)', that means to use a font that is N steps smaller.  A
5411 ``step'' is defined by the set of available fonts; each size for which
5412 a font is available counts as a step.
5414 If HEIGHT is a number, that means to use a font that is HEIGHT times
5415 as tall as the frame's default font.
5417 If HEIGHT is a symbol, it is called as a function with the current
5418 height as argument.  The function should return the new height to use.
5420 Otherwise, HEIGHT is evaluated to get the new height, with the symbol
5421 `height' bound to the current specified font height.
5423 - (raise FACTOR)
5425 FACTOR must be a number, specifying a multiple of the current
5426 font's height.  If it is positive, that means to display the characters
5427 raised.  If it is negative, that means to display them lower down.  The
5428 amount of raising or lowering is computed without taking account of the
5429 `height' subproperty.
5431 *** Conditional display properties
5433 All display specifications can be conditionalized.  If a specification
5434 has the form `(when CONDITION . SPEC)', the specification SPEC applies
5435 only when CONDITION yields a non-nil value when evaluated.  During the
5436 evaluation, `object' is bound to the string or buffer having the
5437 conditional display property; `position' and `buffer-position' are
5438 bound to the position within `object' and the buffer position where
5439 the display property was found, respectively.  Both positions can be
5440 different when object is a string.
5442 The normal specification consisting of SPEC only is equivalent to
5443 `(when t . SPEC)'.
5445 ** New menu separator types.
5447 Emacs now supports more than one menu separator type.  Menu items with
5448 item names consisting of dashes only (including zero dashes) are
5449 treated like before.  In addition, the following item names are used
5450 to specify other menu separator types.
5452 - `--no-line' or `--space', or `--:space', or `--:noLine'
5454 No separator lines are drawn, but a small space is inserted where the
5455 separator occurs.
5457 - `--single-line' or `--:singleLine'
5459 A single line in the menu's foreground color.
5461 - `--double-line' or `--:doubleLine'
5463 A double line in the menu's foreground color.
5465 - `--single-dashed-line' or `--:singleDashedLine'
5467 A single dashed line in the menu's foreground color.
5469 - `--double-dashed-line' or `--:doubleDashedLine'
5471 A double dashed line in the menu's foreground color.
5473 - `--shadow-etched-in' or `--:shadowEtchedIn'
5475 A single line with 3D sunken appearance.  This is the form
5476 displayed for item names consisting of dashes only.
5478 - `--shadow-etched-out' or `--:shadowEtchedOut'
5480 A single line with 3D raised appearance.
5482 - `--shadow-etched-in-dash' or `--:shadowEtchedInDash'
5484 A single dashed line with 3D sunken appearance.
5486 - `--shadow-etched-out-dash' or `--:shadowEtchedOutDash'
5488 A single dashed line with 3D raise appearance.
5490 - `--shadow-double-etched-in' or `--:shadowDoubleEtchedIn'
5492 Two lines with 3D sunken appearance.
5494 - `--shadow-double-etched-out' or `--:shadowDoubleEtchedOut'
5496 Two lines with 3D raised appearance.
5498 - `--shadow-double-etched-in-dash' or `--:shadowDoubleEtchedInDash'
5500 Two dashed lines with 3D sunken appearance.
5502 - `--shadow-double-etched-out-dash' or `--:shadowDoubleEtchedOutDash'
5504 Two dashed lines with 3D raised appearance.
5506 Under LessTif/Motif, the last four separator types are displayed like
5507 the corresponding single-line separators.
5509 ** New frame parameters for scroll bar colors.
5511 The new frame parameters `scroll-bar-foreground' and
5512 `scroll-bar-background' can be used to change scroll bar colors.
5513 Their value must be either a color name, a string, or nil to specify
5514 that scroll bars should use a default color.  For toolkit scroll bars,
5515 default colors are toolkit specific.  For non-toolkit scroll bars, the
5516 default background is the background color of the frame, and the
5517 default foreground is black.
5519 The X resource name of these parameters are `scrollBarForeground'
5520 (class ScrollBarForeground) and `scrollBarBackground' (class
5521 `ScrollBarBackground').
5523 Setting these parameters overrides toolkit specific X resource
5524 settings for scroll bar colors.
5526 ** You can set `redisplay-dont-pause' to a non-nil value to prevent
5527 display updates from being interrupted when input is pending.
5529 ** Changing a window's width may now change its window start if it
5530 starts on a continuation line.  The new window start is computed based
5531 on the window's new width, starting from the start of the continued
5532 line as the start of the screen line with the minimum distance from
5533 the original window start.
5535 ** The variable `hscroll-step' and the functions
5536 `hscroll-point-visible' and `hscroll-window-column' have been removed
5537 now that proper horizontal scrolling is implemented.
5539 ** Windows can now be made fixed-width and/or fixed-height.
5541 A window is fixed-size if its buffer has a buffer-local variable
5542 `window-size-fixed' whose value is not nil.  A value of `height' makes
5543 windows fixed-height, a value of `width' makes them fixed-width, any
5544 other non-nil value makes them both fixed-width and fixed-height.
5546 The following code makes all windows displaying the current buffer
5547 fixed-width and fixed-height.
5549   (set (make-local-variable 'window-size-fixed) t)
5551 A call to enlarge-window on a window gives an error if that window is
5552 fixed-width and it is tried to change the window's width, or if the
5553 window is fixed-height, and it is tried to change its height.  To
5554 change the size of a fixed-size window, bind `window-size-fixed'
5555 temporarily to nil, for example
5557   (let ((window-size-fixed nil))
5558      (enlarge-window 10))
5560 Likewise, an attempt to split a fixed-height window vertically,
5561 or a fixed-width window horizontally results in a error.
5563 ** The cursor-type frame parameter is now supported on MS-DOS
5564 terminals.  When Emacs starts, it by default changes the cursor shape
5565 to a solid box, as it does on Unix.  The `cursor-type' frame parameter
5566 overrides this as it does on Unix, except that the bar cursor is
5567 horizontal rather than vertical (since the MS-DOS display doesn't
5568 support a vertical-bar cursor).
5572 * Emacs 20.7 is a bug-fix release with few user-visible changes
5574 ** It is now possible to use CCL-based coding systems for keyboard
5575 input.
5577 ** ange-ftp now handles FTP security extensions, like Kerberos.
5579 ** Rmail has been extended to recognize more forms of digest messages.
5581 ** Now, most coding systems set in keyboard coding system work not
5582 only for character input, but also in incremental search.  The
5583 exceptions are such coding systems that handle 2-byte character sets
5584 (e.g euc-kr, euc-jp) and that use ISO's escape sequence
5585 (e.g. iso-2022-jp).  They are ignored in incremental search.
5587 ** Support for Macintosh PowerPC-based machines running GNU/Linux has
5588 been added.
5591 * Emacs 20.6 is a bug-fix release with one user-visible change
5593 ** Support for ARM-based non-RISCiX machines has been added.
5597 * Emacs 20.5 is a bug-fix release with no user-visible changes.
5599 ** Not new, but not mentioned before:
5600 M-w when Transient Mark mode is enabled disables the mark.
5602 * Changes in Emacs 20.4
5604 ** Init file may be called .emacs.el.
5606 You can now call the Emacs init file `.emacs.el'.
5607 Formerly the name had to be `.emacs'.  If you use the name
5608 `.emacs.el', you can byte-compile the file in the usual way.
5610 If both `.emacs' and `.emacs.el' exist, the latter file
5611 is the one that is used.
5613 ** shell-command, and shell-command-on-region, now return
5614 the exit code of the command (unless it is asynchronous).
5615 Also, you can specify a place to put the error output,
5616 separate from the command's regular output.
5617 Interactively, the variable shell-command-default-error-buffer
5618 says where to put error output; set it to a buffer name.
5619 In calls from Lisp, an optional argument ERROR-BUFFER specifies
5620 the buffer name.
5622 When you specify a non-nil error buffer (or buffer name), any error
5623 output is inserted before point in that buffer, with \f\n to separate
5624 it from the previous batch of error output.  The error buffer is not
5625 cleared, so error output from successive commands accumulates there.
5627 ** Setting the default value of enable-multibyte-characters to nil in
5628 the .emacs file, either explicitly using setq-default, or via Custom,
5629 is now essentially equivalent to using --unibyte: all buffers
5630 created during startup will be made unibyte after loading .emacs.
5632 ** C-x C-f now handles the wildcards * and ? in file names.  For
5633 example, typing C-x C-f c*.c RET visits all the files whose names
5634 match c*.c.  To visit a file whose name contains * or ?, add the
5635 quoting sequence /: to the beginning of the file name.
5637 ** The M-x commands keep-lines, flush-lines and count-matches
5638 now have the same feature as occur and query-replace:
5639 if the pattern contains any upper case letters, then
5640 they never ignore case.
5642 ** The end-of-line format conversion feature previously mentioned
5643 under `* Emacs 20.1 changes for MS-DOS and MS-Windows' actually
5644 applies to all operating systems.  Emacs recognizes from the contents
5645 of a file what convention it uses to separate lines--newline, CRLF, or
5646 just CR--and automatically converts the contents to the normal Emacs
5647 convention (using newline to separate lines) for editing.  This is a
5648 part of the general feature of coding system conversion.
5650 If you subsequently save the buffer, Emacs converts the text back to
5651 the same format that was used in the file before.
5653 You can turn off end-of-line conversion by setting the variable
5654 `inhibit-eol-conversion' to non-nil, e.g. with Custom in the MULE group.
5656 ** The character set property `prefered-coding-system' has been
5657 renamed to `preferred-coding-system', for the sake of correct spelling.
5658 This is a fairly internal feature, so few programs should be affected.
5660 ** Mode-line display of end-of-line format is changed.
5661 The indication of the end-of-line format of the file visited by a
5662 buffer is now more explicit when that format is not the usual one for
5663 your operating system.  For example, the DOS-style end-of-line format
5664 is displayed as "(DOS)" on Unix and GNU/Linux systems.  The usual
5665 end-of-line format is still displayed as a single character (colon for
5666 Unix, backslash for DOS and Windows, and forward slash for the Mac).
5668 The values of the variables eol-mnemonic-unix, eol-mnemonic-dos,
5669 eol-mnemonic-mac, and eol-mnemonic-undecided, which are strings,
5670 control what is displayed in the mode line for each end-of-line
5671 format.  You can now customize these variables.
5673 ** In the previous version of Emacs, tar-mode didn't work well if a
5674 filename contained non-ASCII characters.  Now this is fixed.  Such a
5675 filename is decoded by file-name-coding-system if the default value of
5676 enable-multibyte-characters is non-nil.
5678 ** The command temp-buffer-resize-mode toggles a minor mode
5679 in which temporary buffers (such as help buffers) are given
5680 windows just big enough to hold the whole contents.
5682 ** If you use completion.el, you must now run the function
5683 dynamic-completion-mode to enable it.  Just loading the file
5684 doesn't have any effect.
5686 ** In Flyspell mode, the default is now to make just one Ispell process,
5687 not one per buffer.
5689 ** If you use iswitchb but do not call (iswitchb-default-keybindings) to
5690 use the default keybindings, you will need to add the following line:
5691   (add-hook 'minibuffer-setup-hook 'iswitchb-minibuffer-setup)
5693 ** Auto-show mode is no longer enabled just by loading auto-show.el.
5694 To control it, set `auto-show-mode' via Custom or use the
5695 `auto-show-mode' command.
5697 ** Handling of X fonts' ascent/descent parameters has been changed to
5698 avoid redisplay problems.  As a consequence, compared with previous
5699 versions the line spacing and frame size now differ with some font
5700 choices, typically increasing by a pixel per line.  This change
5701 occurred in version 20.3 but was not documented then.
5703 ** If you select the bar cursor style, it uses the frame's
5704 cursor-color, rather than the cursor foreground pixel.
5706 ** In multibyte mode, Rmail decodes incoming MIME messages using the
5707 character set specified in the message.  If you want to disable this
5708 feature, set the variable rmail-decode-mime-charset to nil.
5710 ** Not new, but not mentioned previously in NEWS: when you use #! at
5711 the beginning of a file to make it executable and specify an
5712 interpreter program, Emacs looks on the second line for the -*- mode
5713 and variable specification, as well as on the first line.
5715 ** Support for IBM codepage encoding of non-ASCII characters.
5717 The new command M-x codepage-setup creates a special coding system
5718 that can be used to convert text between a specific IBM codepage and
5719 one of the character sets built into Emacs which matches that
5720 codepage.  For example, codepage 850 corresponds to Latin-1 character
5721 set, codepage 855 corresponds to Cyrillic-ISO character set, etc.
5723 Windows codepages 1250, 1251 and some others, where Windows deviates
5724 from the corresponding ISO character set, are also supported.
5726 IBM box-drawing characters and other glyphs which don't have
5727 equivalents in the corresponding ISO character set, are converted to
5728 a character defined by dos-unsupported-char-glyph on MS-DOS, and to
5729 `?' on other systems.
5731 IBM codepages are widely used on MS-DOS and MS-Windows, so this
5732 feature is most useful on those platforms, but it can also be used on
5733 Unix.
5735 Emacs compiled for MS-DOS automatically loads the support for the
5736 current codepage when it starts.
5738 ** Mail changes
5740 *** When mail is sent using compose-mail (C-x m), and if
5741 `mail-send-nonascii' is set to the new default value `mime',
5742 appropriate MIME headers are added.  The headers are added only if
5743 non-ASCII characters are present in the body of the mail, and no other
5744 MIME headers are already present.  For example, the following three
5745 headers are added if the coding system used in the *mail* buffer is
5746 latin-1:
5748   MIME-version: 1.0
5749   Content-type: text/plain; charset=iso-8859-1
5750   Content-Transfer-Encoding: 8bit
5752 *** The new variable default-sendmail-coding-system specifies the
5753 default way to encode outgoing mail.  This has higher priority than
5754 default-buffer-file-coding-system but has lower priority than
5755 sendmail-coding-system and the local value of
5756 buffer-file-coding-system.
5758 You should not set this variable manually.  Instead, set
5759 sendmail-coding-system to specify a fixed encoding for all outgoing
5760 mail.
5762 *** When you try to send a message that contains non-ASCII characters,
5763 if the coding system specified by those variables doesn't handle them,
5764 Emacs will ask you to select a suitable coding system while showing a
5765 list of possible coding systems.
5767 ** CC Mode changes
5769 *** c-default-style can now take an association list that maps major
5770 modes to style names.  When this variable is an alist, Java mode no
5771 longer hardcodes a setting to "java" style.  See the variable's
5772 docstring for details.
5774 *** It's now possible to put a list as the offset on a syntactic
5775 symbol.  The list is evaluated recursively until a non-nil offset is
5776 found.  This is useful to combine several lineup functions to act in a
5777 prioritized order on a single line.  However, none of the supplied
5778 lineup functions use this feature currently.
5780 *** New syntactic symbol catch-clause, which is used on the "catch" and
5781 "finally" lines in try-catch constructs in C++ and Java.
5783 *** New cleanup brace-catch-brace on c-cleanup-list, which does for
5784 "catch" lines what brace-elseif-brace does for "else if" lines.
5786 *** The braces of Java anonymous inner classes are treated separately
5787 from the braces of other classes in auto-newline mode.  Two new
5788 symbols inexpr-class-open and inexpr-class-close may be used on
5789 c-hanging-braces-alist to control the automatic newlines used for
5790 anonymous classes.
5792 *** Support for the Pike language added, along with new Pike specific
5793 syntactic symbols: inlambda, lambda-intro-cont
5795 *** Support for Java anonymous classes via new syntactic symbol
5796 inexpr-class.  New syntactic symbol inexpr-statement for Pike
5797 support and gcc-style statements inside expressions.  New lineup
5798 function c-lineup-inexpr-block.
5800 *** New syntactic symbol brace-entry-open which is used in brace lists
5801 (i.e. static initializers) when a list entry starts with an open
5802 brace.  These used to be recognized as brace-list-entry's.
5803 c-electric-brace also recognizes brace-entry-open braces
5804 (brace-list-entry's can no longer be electrified).
5806 *** New command c-indent-line-or-region, not bound by default.
5808 *** `#' is only electric when typed in the indentation of a line.
5810 *** Parentheses are now electric (via the new command c-electric-paren)
5811 for auto-reindenting lines when parens are typed.
5813 *** In "gnu" style, inline-open offset is now set to zero.
5815 *** Uniform handling of the inclass syntactic symbol.  The indentation
5816 associated with it is now always relative to the class opening brace.
5817 This means that the indentation behavior has changed in some
5818 circumstances, but only if you've put anything besides 0 on the
5819 class-open syntactic symbol (none of the default styles do that).
5821 ** Gnus changes.
5823 *** New functionality for using Gnus as an offline newsreader has been
5824 added.  A plethora of new commands and modes have been added.  See the
5825 Gnus manual for the full story.
5827 *** The nndraft backend has returned, but works differently than
5828 before.  All Message buffers are now also articles in the nndraft
5829 group, which is created automatically.
5831 *** `gnus-alter-header-function' can now be used to alter header
5832 values.
5834 *** `gnus-summary-goto-article' now accept Message-ID's.
5836 *** A new Message command for deleting text in the body of a message
5837 outside the region: `C-c C-v'.
5839 *** You can now post to component group in nnvirtual groups with
5840 `C-u C-c C-c'.
5842 *** `nntp-rlogin-program' -- new variable to ease customization.
5844 *** `C-u C-c C-c' in `gnus-article-edit-mode' will now inhibit
5845 re-highlighting of the article buffer.
5847 *** New element in `gnus-boring-article-headers' -- `long-to'.
5849 *** `M-i' symbolic prefix command.  See the section "Symbolic
5850 Prefixes" in the Gnus manual for details.
5852 *** `L' and `I' in the summary buffer now take the symbolic prefix
5853 `a' to add the score rule to the "all.SCORE" file.
5855 *** `gnus-simplify-subject-functions' variable to allow greater
5856 control over simplification.
5858 *** `A T' -- new command for fetching the current thread.
5860 *** `/ T' -- new command for including the current thread in the
5861 limit.
5863 *** `M-RET' is a new Message command for breaking cited text.
5865 *** \\1-expressions are now valid in `nnmail-split-methods'.
5867 *** The `custom-face-lookup' function has been removed.
5868 If you used this function in your initialization files, you must
5869 rewrite them to use `face-spec-set' instead.
5871 *** Canceling now uses the current select method.  Symbolic prefix
5872 `a' forces normal posting method.
5874 *** New command to translate M******** sm*rtq**t*s into proper text
5875 -- `W d'.
5877 *** For easier debugging of nntp, you can set `nntp-record-commands'
5878 to a non-nil value.
5880 *** nntp now uses ~/.authinfo, a .netrc-like file, for controlling
5881 where and how to send AUTHINFO to NNTP servers.
5883 *** A command for editing group parameters from the summary buffer
5884 has been added.
5886 *** A history of where mails have been split is available.
5888 *** A new article date command has been added -- `article-date-iso8601'.
5890 *** Subjects can be simplified when threading by setting
5891 `gnus-score-thread-simplify'.
5893 *** A new function for citing in Message has been added --
5894 `message-cite-original-without-signature'.
5896 *** `article-strip-all-blank-lines' -- new article command.
5898 *** A new Message command to kill to the end of the article has
5899 been added.
5901 *** A minimum adaptive score can be specified by using the
5902 `gnus-adaptive-word-minimum' variable.
5904 *** The "lapsed date" article header can be kept continually
5905 updated by the `gnus-start-date-timer' command.
5907 *** Web listserv archives can be read with the nnlistserv backend.
5909 *** Old dejanews archives can now be read by nnweb.
5911 *** `gnus-posting-styles' has been re-activated.
5913 ** Changes to TeX and LaTeX mode
5915 *** The new variable `tex-start-options-string' can be used to give
5916 options for the TeX run.  The default value causes TeX to run in
5917 nonstopmode.  For an interactive TeX run set it to nil or "".
5919 *** The command `tex-feed-input' sends input to the Tex Shell.  In a
5920 TeX buffer it is bound to the keys C-RET, C-c RET, and C-c C-m (some
5921 of these keys may not work on all systems).  For instance, if you run
5922 TeX interactively and if the TeX run stops because of an error, you
5923 can continue it without leaving the TeX buffer by typing C-RET.
5925 *** The Tex Shell Buffer is now in `compilation-shell-minor-mode'.
5926 All error-parsing commands of the Compilation major mode are available
5927 but bound to keys that don't collide with the shell.  Thus you can use
5928 the Tex Shell for command line executions like a usual shell.
5930 *** The commands `tex-validate-region' and `tex-validate-buffer' check
5931 the matching of braces and $'s.  The errors are listed in a *Occur*
5932 buffer and you can use C-c C-c or mouse-2 to go to a particular
5933 mismatch.
5935 ** Changes to RefTeX mode
5937 *** The table of contents buffer can now also display labels and
5938 file boundaries in addition to sections. Use `l', `i', and `c' keys.
5940 *** Labels derived from context (the section heading) are now
5941 lowercase by default.  To make the label legal in LaTeX, latin-1
5942 characters will lose their accent.  All Mule characters will be
5943 removed from the label.
5945 *** The automatic display of cross reference information can also use
5946 a window instead of the echo area.  See variable `reftex-auto-view-crossref'.
5948 *** kpsewhich can be used by RefTeX to find TeX and BibTeX files.  See the
5949 customization group `reftex-finding-files'.
5951 *** The option `reftex-bibfile-ignore-list' has been renamed to
5952 `reftex-bibfile-ignore-regexps' and indeed can be fed with regular
5953 expressions.
5955 *** Multiple Selection buffers are now hidden buffers.
5957 ** New/deleted modes and packages
5959 *** The package snmp-mode.el provides major modes for editing SNMP and
5960 SNMPv2 MIBs.  It has entries on `auto-mode-alist'.
5962 *** The package sql.el provides a major mode, M-x sql-mode, for
5963 editing SQL files, and M-x sql-interactive-mode for interacting with
5964 SQL interpreters.  It has an entry on `auto-mode-alist'.
5966 *** M-x highlight-changes-mode provides a minor mode displaying buffer
5967 changes with a special face.
5969 *** ispell4.el has been deleted.  It got in the way of ispell.el and
5970 this was hard to fix reliably.  It has long been obsolete -- use
5971 Ispell 3.1 and ispell.el.
5973 * MS-DOS changes in Emacs 20.4
5975 ** Emacs compiled for MS-DOS now supports MULE features better.
5976 This includes support for display of all ISO 8859-N character sets,
5977 conversion to and from IBM codepage encoding of non-ASCII characters,
5978 and automatic setup of the MULE environment at startup.  For details,
5979 check out the section `MS-DOS and MULE' in the manual.
5981 The MS-DOS installation procedure automatically configures and builds
5982 Emacs with input method support if it finds an unpacked Leim
5983 distribution when the config.bat script is run.
5985 ** Formerly, the value of lpr-command did not affect printing on
5986 MS-DOS unless print-region-function was set to nil, but now it
5987 controls whether an external program is invoked or output is written
5988 directly to a printer port.  Similarly, in the previous version of
5989 Emacs, the value of ps-lpr-command did not affect PostScript printing
5990 on MS-DOS unless ps-printer-name was set to something other than a
5991 string (eg. t or `pipe'), but now it controls whether an external
5992 program is used.  (These changes were made so that configuration of
5993 printing variables would be almost identical across all platforms.)
5995 ** In the previous version of Emacs, PostScript and non-PostScript
5996 output was piped to external programs, but because most print programs
5997 available for MS-DOS and MS-Windows cannot read data from their standard
5998 input, on those systems the data to be output is now written to a
5999 temporary file whose name is passed as the last argument to the external
6000 program.
6002 An exception is made for `print', a standard program on Windows NT,
6003 and `nprint', a standard program on Novell Netware.  For both of these
6004 programs, the command line is constructed in the appropriate syntax
6005 automatically, using only the value of printer-name or ps-printer-name
6006 as appropriate--the value of the relevant `-switches' variable is
6007 ignored, as both programs have no useful switches.
6009 ** The value of the variable dos-printer (cf. dos-ps-printer), if it has
6010 a value, overrides the value of printer-name (cf. ps-printer-name), on
6011 MS-DOS and MS-Windows only.  This has been true since version 20.3, but
6012 was not documented clearly before.
6014 ** All the Emacs games now work on MS-DOS terminals.
6015 This includes Tetris and Snake.
6017 * Lisp changes in Emacs 20.4
6019 ** New functions line-beginning-position and line-end-position
6020 return the position of the beginning or end of the current line.
6021 They both accept an optional argument, which has the same
6022 meaning as the argument to beginning-of-line or end-of-line.
6024 ** find-file and allied functions now have an optional argument
6025 WILDCARD.  If this is non-nil, they do wildcard processing,
6026 and visit all files that match the wildcard pattern.
6028 ** Changes in the file-attributes function.
6030 *** The file size returned by file-attributes may be an integer or a float.
6031 It is an integer if the size fits in a Lisp integer, float otherwise.
6033 *** The inode number returned by file-attributes may be an integer (if
6034 the number fits in a Lisp integer) or a cons cell containing two
6035 integers.
6037 ** The new function directory-files-and-attributes returns a list of
6038 files in a directory and their attributes.  It accepts the same
6039 arguments as directory-files and has similar semantics, except that
6040 file names and attributes are returned.
6042 ** The new function file-attributes-lessp is a helper function for
6043 sorting the list generated by directory-files-and-attributes.  It
6044 accepts two arguments, each a list of a file name and its attributes.
6045 It compares the file names of each according to string-lessp and
6046 returns the result.
6048 ** The new function file-expand-wildcards expands a wildcard-pattern
6049 to produce a list of existing files that match the pattern.
6051 ** New functions for base64 conversion:
6053 The function base64-encode-region converts a part of the buffer
6054 into the base64 code used in MIME.  base64-decode-region
6055 performs the opposite conversion.  Line-breaking is supported
6056 optionally.
6058 Functions base64-encode-string and base64-decode-string do a similar
6059 job on the text in a string.  They return the value as a new string.
6062 The new function process-running-child-p
6063 will tell you if a subprocess has given control of its
6064 terminal to its own child process.
6066 ** interrupt-process and such functions have a new feature:
6067 when the second argument is `lambda', they send a signal
6068 to the running child of the subshell, if any, but if the shell
6069 itself owns its terminal, no signal is sent.
6071 ** There are new widget types `plist' and `alist' which can
6072 be used for customizing variables whose values are plists or alists.
6074 ** easymenu.el now understands `:key-sequence' and `:style button'.
6075 :included is an alias for :visible.
6077 easy-menu-add-item now understands the values returned by
6078 easy-menu-remove-item and easy-menu-item-present-p.  This can be used
6079 to move or copy menu entries.
6081 ** Multibyte editing changes
6083 *** The definitions of sref and char-bytes are changed.  Now, sref is
6084 an alias of aref and char-bytes always returns 1.  This change is to
6085 make some Emacs Lisp code which works on 20.2 and earlier also
6086 work on the latest Emacs.  Such code uses a combination of sref and
6087 char-bytes in a loop typically as below:
6088         (setq char (sref str idx)
6089               idx (+ idx (char-bytes idx)))
6090 The byte-compiler now warns that this is obsolete.
6092 If you want to know how many bytes a specific multibyte character
6093 (say, CH) occupies in a multibyte buffer, use this code:
6094         (charset-bytes (char-charset ch))
6096 *** In multibyte mode, when you narrow a buffer to some region, and the
6097 region is preceded or followed by non-ASCII codes, inserting or
6098 deleting at the head or the end of the region may signal this error:
6100     Byte combining across boundary of accessible buffer text inhibited
6102 This is to avoid some bytes being combined together into a character
6103 across the boundary.
6105 *** The functions find-charset-region and find-charset-string include
6106 `unknown' in the returned list in the following cases:
6107     o The current buffer or the target string is unibyte and
6108       contains 8-bit characters.
6109     o The current buffer or the target string is multibyte and
6110       contains invalid characters.
6112 *** The functions decode-coding-region and encode-coding-region remove
6113 text properties of the target region.  Ideally, they should correctly
6114 preserve text properties, but for the moment, it's hard.  Removing
6115 text properties is better than preserving them in a less-than-correct
6116 way.
6118 *** prefer-coding-system sets EOL conversion of default coding systems.
6119 If the argument to prefer-coding-system specifies a certain type of
6120 end of line conversion, the default coding systems set by
6121 prefer-coding-system will specify that conversion type for end of line.
6123 *** The new function thai-compose-string can be used to properly
6124 compose Thai characters in a string.
6126 ** The primitive `define-prefix-command' now takes an optional third
6127 argument NAME, which should be a string.  It supplies the menu name
6128 for the created keymap.  Keymaps created in order to be displayed as
6129 menus should always use the third argument.
6131 ** The meanings of optional second arguments for read-char,
6132 read-event, and read-char-exclusive are flipped.  Now the second
6133 arguments are INHERIT-INPUT-METHOD.  These functions use the current
6134 input method (if any) if and only if INHERIT-INPUT-METHOD is non-nil.
6136 ** The new function clear-this-command-keys empties out the contents
6137 of the vector that (this-command-keys) returns.  This is useful in
6138 programs that read passwords, to prevent the passwords from echoing
6139 inadvertently as part of the next command in certain cases.
6141 ** The new macro `with-temp-message' displays a temporary message in
6142 the echo area, while executing some Lisp code.  Like `progn', it
6143 returns the value of the last form, but it also restores the previous
6144 echo area contents.
6146    (with-temp-message MESSAGE &rest BODY)
6148 ** The function `require' now takes an optional third argument
6149 NOERROR.  If it is non-nil, then there is no error if the
6150 requested feature cannot be loaded.
6152 ** In the function modify-face, an argument of (nil) for the
6153 foreground color, background color or stipple pattern
6154 means to clear out that attribute.
6156 ** The `outer-window-id' frame property of an X frame
6157 gives the window number of the outermost X window for the frame.
6159 ** Temporary buffers made with with-output-to-temp-buffer are now
6160 read-only by default, and normally use the major mode Help mode
6161 unless you put them in some other non-Fundamental mode before the
6162 end of with-output-to-temp-buffer.
6164 ** The new functions gap-position and gap-size return information on
6165 the gap of the current buffer.
6167 ** The new functions position-bytes and byte-to-position provide a way
6168 to convert between character positions and byte positions in the
6169 current buffer.
6171 ** vc.el defines two new macros, `edit-vc-file' and `with-vc-file', to
6172 facilitate working with version-controlled files from Lisp programs.
6173 These macros check out a given file automatically if needed, and check
6174 it back in after any modifications have been made.
6176 * Installation Changes in Emacs 20.3
6178 ** The default value of load-path now includes most subdirectories of
6179 the site-specific directories /usr/local/share/emacs/site-lisp and
6180 /usr/local/share/emacs/VERSION/site-lisp, in addition to those
6181 directories themselves.  Both immediate subdirectories and
6182 subdirectories multiple levels down are added to load-path.
6184 Not all subdirectories are included, though.  Subdirectories whose
6185 names do not start with a letter or digit are excluded.
6186 Subdirectories named RCS or CVS are excluded.  Also, a subdirectory
6187 which contains a file named `.nosearch' is excluded.  You can use
6188 these methods to prevent certain subdirectories from being searched.
6190 Emacs finds these subdirectories and adds them to load-path when it
6191 starts up.  While it would be cleaner to find the subdirectories each
6192 time Emacs loads a file, that would be much slower.
6194 This feature is an incompatible change.  If you have stored some Emacs
6195 Lisp files in a subdirectory of the site-lisp directory specifically
6196 to prevent them from being used, you will need to rename the
6197 subdirectory to start with a non-alphanumeric character, or create a
6198 `.nosearch' file in it, in order to continue to achieve the desired
6199 results.
6201 ** Emacs no longer includes an old version of the C preprocessor from
6202 GCC.  This was formerly used to help compile Emacs with C compilers
6203 that had limits on the significant length of an identifier, but in
6204 fact we stopped supporting such compilers some time ago.
6206 * Changes in Emacs 20.3
6208 ** The new command C-x z (repeat) repeats the previous command
6209 including its argument.  If you repeat the z afterward,
6210 it repeats the command additional times; thus, you can
6211 perform many repetitions with one keystroke per repetition.
6213 ** Emacs now supports "selective undo" which undoes only within a
6214 specified region.  To do this, set point and mark around the desired
6215 region and type C-u C-x u (or C-u C-_).  You can then continue undoing
6216 further, within the same region, by repeating the ordinary undo
6217 command C-x u or C-_.  This will keep undoing changes that were made
6218 within the region you originally specified, until either all of them
6219 are undone, or it encounters a change which crosses the edge of that
6220 region.
6222 In Transient Mark mode, undoing when a region is active requests
6223 selective undo.
6225 ** If you specify --unibyte when starting Emacs, then all buffers are
6226 unibyte, except when a Lisp program specifically creates a multibyte
6227 buffer.  Setting the environment variable EMACS_UNIBYTE has the same
6228 effect.  The --no-unibyte option overrides EMACS_UNIBYTE and directs
6229 Emacs to run normally in multibyte mode.
6231 The option --unibyte does not affect the reading of Emacs Lisp files,
6232 though.  If you want a Lisp file to be read in unibyte mode, use
6233 -*-unibyte: t;-*- on its first line.  That will force Emacs to
6234 load that file in unibyte mode, regardless of how Emacs was started.
6236 ** toggle-enable-multibyte-characters no longer has a key binding and
6237 no longer appears in the menu bar.  We've realized that changing the
6238 enable-multibyte-characters variable in an existing buffer is
6239 something that most users not do.
6241 ** You can specify a coding system to use for the next cut or paste
6242 operations through the window system with the command C-x RET X.
6243 The coding system can make a difference for communication with other
6244 applications.
6246 C-x RET x specifies a coding system for all subsequent cutting and
6247 pasting operations.
6249 ** You can specify the printer to use for commands that do printing by
6250 setting the variable `printer-name'.  Just what a printer name looks
6251 like depends on your operating system.  You can specify a different
6252 printer for the Postscript printing commands by setting
6253 `ps-printer-name'.
6255 ** Emacs now supports on-the-fly spell checking by the means of a
6256 minor mode.  It is called M-x flyspell-mode.  You don't have to remember
6257 any other special commands to use it, and you will hardly notice it
6258 except when you make a spelling error.  Flyspell works by highlighting
6259 incorrect words as soon as they are completed or as soon as the cursor
6260 hits a new word.
6262 Flyspell mode works with whichever dictionary you have selected for
6263 Ispell in Emacs.  In TeX mode, it understands TeX syntax so as not
6264 to be confused by TeX commands.
6266 You can correct a misspelled word by editing it into something
6267 correct.  You can also correct it, or accept it as correct, by
6268 clicking on the word with Mouse-2; that gives you a pop-up menu
6269 of various alternative replacements and actions.
6271 Flyspell mode also proposes "automatic" corrections.  M-TAB replaces
6272 the current misspelled word with a possible correction.  If several
6273 corrections are made possible, M-TAB cycles through them in
6274 alphabetical order, or in order of decreasing likelihood if
6275 flyspell-sort-corrections is nil.
6277 Flyspell mode also flags an error when a word is repeated, if
6278 flyspell-mark-duplications-flag is non-nil.
6280 ** Changes in input method usage.
6282 Now you can use arrow keys (right, left, down, up) for selecting among
6283 the alternatives just the same way as you do by C-f, C-b, C-n, and C-p
6284 respectively.
6286 You can use the ENTER key to accept the current conversion.
6288 If you type TAB to display a list of alternatives, you can select one
6289 of the alternatives with Mouse-2.
6291 The meaning of the variable `input-method-verbose-flag' is changed so
6292 that you can set it to t, nil, `default', or `complex-only'.
6294   If the value is nil, extra guidance is never given.
6296   If the value is t, extra guidance is always given.
6298   If the value is `complex-only', extra guidance is always given only
6299   when you are using complex input methods such as chinese-py.
6301   If the value is `default' (this is the default), extra guidance is
6302   given in the following case:
6303     o When you are using a complex input method.
6304     o When you are using a simple input method but not in the minibuffer.
6306 If you are using Emacs through a very slow line, setting
6307 input-method-verbose-flag to nil or to complex-only is a good choice,
6308 and if you are using an input method you are not familiar with,
6309 setting it to t is helpful.
6311 The old command select-input-method is now called set-input-method.
6313 In the language environment "Korean", you can use the following
6314 keys:
6315         Shift-SPC       toggle-korean-input-method
6316         C-F9            quail-hangul-switch-symbol-ksc
6317         F9              quail-hangul-switch-hanja
6318 These key bindings are canceled when you switch to another language
6319 environment.
6321 ** The minibuffer history of file names now records the specified file
6322 names, not the entire minibuffer input.  For example, if the
6323 minibuffer starts out with /usr/foo/, you might type in /etc/passwd to
6326      /usr/foo//etc/passwd
6328 which stands for the file /etc/passwd.
6330 Formerly, this used to put /usr/foo//etc/passwd in the history list.
6331 Now this puts just /etc/passwd in the history list.
6333 ** If you are root, Emacs sets backup-by-copying-when-mismatch to t
6334 at startup, so that saving a file will be sure to preserve
6335 its owner and group.
6337 ** find-func.el can now also find the place of definition of Emacs
6338 Lisp variables in user-loaded libraries.
6340 ** C-x r t (string-rectangle) now deletes the existing rectangle
6341 contents before inserting the specified string on each line.
6343 ** There is a new command delete-whitespace-rectangle
6344 which deletes whitespace starting from a particular column
6345 in all the lines on a rectangle.  The column is specified
6346 by the left edge of the rectangle.
6348 ** You can now store a number into a register with C-u NUMBER C-x r n REG,
6349 increment it by INC with C-u INC C-x r + REG (to increment by one, omit
6350 C-u INC), and insert it in the buffer with C-x r g REG.  This is useful
6351 for writing keyboard macros.
6353 ** The new command M-x speedbar displays a frame in which directories,
6354 files, and tags can be displayed, manipulated, and jumped to.  The
6355 frame defaults to 20 characters in width, and is the same height as
6356 the frame that it was started from.  Some major modes define
6357 additional commands for the speedbar, including Rmail, GUD/GDB, and
6358 info.
6360 ** query-replace-regexp is now bound to C-M-%.
6362 ** In Transient Mark mode, when the region is active, M-x
6363 query-replace and the other replace commands now operate on the region
6364 contents only.
6366 ** M-x write-region, when used interactively, now asks for
6367 confirmation before overwriting an existing file.  When you call
6368 the function from a Lisp program, a new optional argument CONFIRM
6369 says whether to ask for confirmation in this case.
6371 ** If you use find-file-literally and the file is already visited
6372 non-literally, the command asks you whether to revisit the file
6373 literally.  If you say no, it signals an error.
6375 ** Major modes defined with the "derived mode" feature
6376 now use the proper name for the mode hook: WHATEVER-mode-hook.
6377 Formerly they used the name WHATEVER-mode-hooks, but that is
6378 inconsistent with Emacs conventions.
6380 ** shell-command-on-region (and shell-command) reports success or
6381 failure if the command produces no output.
6383 ** Set focus-follows-mouse to nil if your window system or window
6384 manager does not transfer focus to another window when you just move
6385 the mouse.
6387 ** mouse-menu-buffer-maxlen has been renamed to
6388 mouse-buffer-menu-maxlen to be consistent with the other related
6389 function and variable names.
6391 ** The new variable auto-coding-alist specifies coding systems for
6392 reading specific files.  This has higher priority than
6393 file-coding-system-alist.
6395 ** If you set the variable unibyte-display-via-language-environment to
6396 t, then Emacs displays non-ASCII characters are displayed by
6397 converting them to the equivalent multibyte characters according to
6398 the current language environment.  As a result, they are displayed
6399 according to the current fontset.
6401 ** C-q's handling of codes in the range 0200 through 0377 is changed.
6403 The codes in the range 0200 through 0237 are inserted as one byte of
6404 that code regardless of the values of nonascii-translation-table and
6405 nonascii-insert-offset.
6407 For the codes in the range 0240 through 0377, if
6408 enable-multibyte-characters is non-nil and nonascii-translation-table
6409 nor nonascii-insert-offset can't convert them to valid multibyte
6410 characters, they are converted to Latin-1 characters.
6412 ** If you try to find a file that is not read-accessible, you now get
6413 an error, rather than an empty buffer and a warning.
6415 ** In the minibuffer history commands M-r and M-s, an upper case
6416 letter in the regular expression forces case-sensitive search.
6418 ** In the *Help* buffer, cross-references to commands and variables
6419 are inferred and hyperlinked.  Use C-h m in Help mode for the relevant
6420 command keys.
6422 ** M-x apropos-command, with a prefix argument, no longer looks for
6423 user option variables--instead it looks for noninteractive functions.
6425 Meanwhile, the command apropos-variable normally searches for
6426 user option variables; with a prefix argument, it looks at
6427 all variables that have documentation.
6429 ** When you type a long line in the minibuffer, and the minibuffer
6430 shows just one line, automatically scrolling works in a special way
6431 that shows you overlap with the previous line of text.  The variable
6432 minibuffer-scroll-overlap controls how many characters of overlap
6433 it should show; the default is 20.
6435 Meanwhile, Resize Minibuffer mode is still available; in that mode,
6436 the minibuffer grows taller (up to a point) as needed to show the whole
6437 of your input.
6439 ** The new command M-x customize-changed-options lets you customize
6440 all the options whose meanings or default values have changed in
6441 recent Emacs versions.  You specify a previous Emacs version number as
6442 argument, and the command creates a customization buffer showing all
6443 the customizable options which were changed since that version.
6444 Newly added options are included as well.
6446 If you don't specify a particular version number argument,
6447 then the customization buffer shows all the customizable options
6448 for which Emacs versions of changes are recorded.
6450 This function is also bound to the Changed Options entry in the
6451 Customize menu.
6453 ** When you run M-x grep with a prefix argument, it figures out
6454 the tag around point and puts that into the default grep command.
6456 ** The new command M-* (pop-tag-mark) pops back through a history of
6457 buffer positions from which M-. or other tag-finding commands were
6458 invoked.
6460 ** The new variable comment-padding specifies the number of spaces
6461 that `comment-region' will insert before the actual text of the comment.
6462 The default is 1.
6464 ** In Fortran mode the characters `.', `_' and `$' now have symbol
6465 syntax, not word syntax.  Fortran mode now supports `imenu' and has
6466 new commands fortran-join-line (M-^) and fortran-narrow-to-subprogram
6467 (C-x n d).  M-q can be used to fill a statement or comment block
6468 sensibly.
6470 ** GUD now supports jdb, the Java debugger, and pdb, the Python debugger.
6472 ** If you set the variable add-log-keep-changes-together to a non-nil
6473 value, the command `C-x 4 a' will automatically notice when you make
6474 two entries in one day for one file, and combine them.
6476 ** You can use the command M-x diary-mail-entries to mail yourself a
6477 reminder about upcoming diary entries.  See the documentation string
6478 for a sample shell script for calling this function automatically
6479 every night.
6481 ** Desktop changes
6483 *** All you need to do to enable use of the Desktop package, is to set
6484 the variable desktop-enable to t with Custom.
6486 *** Minor modes are now restored.  Which minor modes are restored
6487 and how modes are restored is controlled by `desktop-minor-mode-table'.
6489 ** There is no need to do anything special, now, to enable Gnus to
6490 read and post multi-lingual articles.
6492 ** Outline mode has now support for showing hidden outlines when
6493 doing an isearch.  In order for this to happen search-invisible should
6494 be set to open (the default).  If an isearch match is inside a hidden
6495 outline the outline is made visible.  If you continue pressing C-s and
6496 the match moves outside the formerly invisible outline, the outline is
6497 made invisible again.
6499 ** Mail reading and sending changes
6501 *** The Rmail e command now switches to displaying the whole header of
6502 the message before it lets you edit the message.  This is so that any
6503 changes you make in the header will not be lost if you subsequently
6504 toggle.
6506 *** The w command in Rmail, which writes the message body into a file,
6507 now works in the summary buffer as well.  (The command to delete the
6508 summary buffer is now Q.)  The default file name for the w command, if
6509 the message has no subject, is stored in the variable
6510 rmail-default-body-file.
6512 *** Most of the commands and modes that operate on mail and netnews no
6513 longer depend on the value of mail-header-separator.  Instead, they
6514 handle whatever separator the buffer happens to use.
6516 *** If you set mail-signature to a value which is not t, nil, or a string,
6517 it should be an expression.  When you send a message, this expression
6518 is evaluated to insert the signature.
6520 *** The new Lisp library feedmail.el (version 8) enhances processing of
6521 outbound email messages.  It works in coordination with other email
6522 handling packages (e.g., rmail, VM, gnus) and is responsible for
6523 putting final touches on messages and actually submitting them for
6524 transmission.  Users of the emacs program "fakemail" might be
6525 especially interested in trying feedmail.
6527 feedmail is not enabled by default.  See comments at the top of
6528 feedmail.el for set-up instructions.  Among the bigger features
6529 provided by feedmail are:
6531 **** you can park outgoing messages into a disk-based queue and
6532 stimulate sending some or all of them later (handy for laptop users);
6533 there is also a queue for draft messages
6535 **** you can get one last look at the prepped outbound message and
6536 be prompted for confirmation
6538 **** does smart filling of address headers
6540 **** can generate a MESSAGE-ID: line and a DATE: line; the date can be
6541 the time the message was written or the time it is being sent; this
6542 can make FCC copies more closely resemble copies that recipients get
6544 **** you can specify an arbitrary function for actually transmitting
6545 the message; included in feedmail are interfaces for /bin/[r]mail,
6546 /usr/lib/sendmail, and elisp smtpmail; it's easy to write a new
6547 function for something else (10-20 lines of elisp)
6549 ** Dired changes
6551 *** The Dired function dired-do-toggle, which toggles marked and unmarked
6552 files, is now bound to "t" instead of "T".
6554 *** dired-at-point has been added to ffap.el.  It allows one to easily
6555 run Dired on the directory name at point.
6557 *** Dired has a new command: %g.  It searches the contents of
6558 files in the directory and marks each file that contains a match
6559 for a specified regexp.
6561 ** VC Changes
6563 *** New option vc-ignore-vc-files lets you turn off version control
6564 conveniently.
6566 *** VC Dired has been completely rewritten.  It is now much
6567 faster, especially for CVS, and works very similar to ordinary
6568 Dired.
6570 VC Dired is invoked by typing C-x v d and entering the name of the
6571 directory to display.  By default, VC Dired gives you a recursive
6572 listing of all files at or below the given directory which are
6573 currently locked (for CVS, all files not up-to-date are shown).
6575 You can change the listing format by setting vc-dired-recurse to nil,
6576 then it shows only the given directory, and you may also set
6577 vc-dired-terse-display to nil, then it shows all files under version
6578 control plus the names of any subdirectories, so that you can type `i'
6579 on such lines to insert them manually, as in ordinary Dired.
6581 All Dired commands operate normally in VC Dired, except for `v', which
6582 is redefined as the version control prefix.  That means you may type
6583 `v l', `v =' etc. to invoke `vc-print-log', `vc-diff' and the like on
6584 the file named in the current Dired buffer line.  `v v' invokes
6585 `vc-next-action' on this file, or on all files currently marked.
6587 The new command `v t' (vc-dired-toggle-terse-mode) allows you to
6588 toggle between terse display (only locked files) and full display (all
6589 VC files plus subdirectories).  There is also a special command,
6590 `* l', to mark all files currently locked.
6592 Giving a prefix argument to C-x v d now does the same thing as in
6593 ordinary Dired: it allows you to supply additional options for the ls
6594 command in the minibuffer, to fine-tune VC Dired's output.
6596 *** Under CVS, if you merge changes from the repository into a working
6597 file, and CVS detects conflicts, VC now offers to start an ediff
6598 session to resolve them.
6600 Alternatively, you can use the new command `vc-resolve-conflicts' to
6601 resolve conflicts in a file at any time.  It works in any buffer that
6602 contains conflict markers as generated by rcsmerge (which is what CVS
6603 uses as well).
6605 *** You can now transfer changes between branches, using the new
6606 command vc-merge (C-x v m).  It is implemented for RCS and CVS.  When
6607 you invoke it in a buffer under version-control, you can specify
6608 either an entire branch or a pair of versions, and the changes on that
6609 branch or between the two versions are merged into the working file.
6610 If this results in any conflicts, they may be resolved interactively,
6611 using ediff.
6613 ** Changes in Font Lock
6615 *** The face and variable previously known as font-lock-reference-face
6616 are now called font-lock-constant-face to better reflect their typical
6617 use for highlighting constants and labels.  (Its face properties are
6618 unchanged.)  The variable font-lock-reference-face remains for now for
6619 compatibility reasons, but its value is font-lock-constant-face.
6621 ** Frame name display changes
6623 *** The command set-frame-name lets you set the name of the current
6624 frame.  You can use the new command select-frame-by-name to select and
6625 raise a frame; this is mostly useful on character-only terminals, or
6626 when many frames are invisible or iconified.
6628 *** On character-only terminal (not a window system), changing the
6629 frame name is now reflected on the mode line and in the Buffers/Frames
6630 menu.
6632 ** Comint (subshell) changes
6634 *** In Comint modes, the commands to kill, stop or interrupt a
6635 subjob now also kill pending input.  This is for compatibility
6636 with ordinary shells, where the signal characters do this.
6638 *** There are new commands in Comint mode.
6640 C-c C-x fetches the "next" line from the input history;
6641 that is, the line after the last line you got.
6642 You can use this command to fetch successive lines, one by one.
6644 C-c SPC accumulates lines of input.  More precisely, it arranges to
6645 send the current line together with the following line, when you send
6646 the following line.
6648 C-c C-a if repeated twice consecutively now moves to the process mark,
6649 which separates the pending input from the subprocess output and the
6650 previously sent input.
6652 C-c M-r now runs comint-previous-matching-input-from-input;
6653 it searches for a previous command, using the current pending input
6654 as the search string.
6656 *** New option compilation-scroll-output can be set to scroll
6657 automatically in compilation-mode windows.
6659 ** C mode changes
6661 *** Multiline macros are now handled, both as they affect indentation,
6662 and as recognized syntax.  New syntactic symbol cpp-macro-cont is
6663 assigned to second and subsequent lines of a multiline macro
6664 definition.
6666 *** A new style "user" which captures all non-hook-ified
6667 (i.e. top-level) .emacs file variable settings and customizations.
6668 Style "cc-mode" is an alias for "user" and is deprecated.  "gnu"
6669 style is still the default however.
6671 *** "java" style now conforms to Sun's JDK coding style.
6673 *** There are new commands c-beginning-of-defun, c-end-of-defun which
6674 are alternatives which you could bind to C-M-a and C-M-e if you prefer
6675 them.  They do not have key bindings by default.
6677 *** New and improved implementations of M-a (c-beginning-of-statement)
6678 and M-e (c-end-of-statement).
6680 *** C++ namespace blocks are supported, with new syntactic symbols
6681 namespace-open, namespace-close, and innamespace.
6683 *** File local variable settings of c-file-style and c-file-offsets
6684 makes the style variables local to that buffer only.
6686 *** New indentation functions c-lineup-close-paren,
6687 c-indent-one-line-block, c-lineup-dont-change.
6689 *** Improvements (hopefully!) to the way CC Mode is loaded.  You
6690 should now be able to do a (require 'cc-mode) to get the entire
6691 package loaded properly for customization in your .emacs file.  A new
6692 variable c-initialize-on-load controls this and is t by default.
6694 ** Changes to hippie-expand.
6696 *** New customization variable `hippie-expand-dabbrev-skip-space'. If
6697 non-nil, trailing spaces may be included in the abbreviation to search for,
6698 which then gives the same behavior as the original `dabbrev-expand'.
6700 *** New customization variable `hippie-expand-dabbrev-as-symbol'. If
6701 non-nil, characters of syntax '_' is considered part of the word when
6702 expanding dynamically.
6704 *** New customization variable `hippie-expand-no-restriction'. If
6705 non-nil, narrowed buffers are widened before they are searched.
6707 *** New customization variable `hippie-expand-only-buffers'. If
6708 non-empty, buffers searched are restricted to the types specified in
6709 this list. Useful for example when constructing new special-purpose
6710 expansion functions with `make-hippie-expand-function'.
6712 *** Text properties of the expansion are no longer copied.
6714 ** Changes in BibTeX mode.
6716 *** Any titleword matching a regexp in the new variable
6717 bibtex-autokey-titleword-ignore (case sensitive) is ignored during
6718 automatic key generation.  This replaces variable
6719 bibtex-autokey-titleword-first-ignore, which only checked for matches
6720 against the first word in the title.
6722 *** Autokey generation now uses all words from the title, not just
6723 capitalized words.  To avoid conflicts with existing customizations,
6724 bibtex-autokey-titleword-ignore is set up such that words starting with
6725 lowerkey characters will still be ignored.  Thus, if you want to use
6726 lowercase words from the title, you will have to overwrite the
6727 bibtex-autokey-titleword-ignore standard setting.
6729 *** Case conversion of names and title words for automatic key
6730 generation is more flexible.  Variable bibtex-autokey-preserve-case is
6731 replaced by bibtex-autokey-titleword-case-convert and
6732 bibtex-autokey-name-case-convert.
6734 ** Changes in vcursor.el.
6736 *** Support for character terminals is available: there is a new keymap
6737 and the vcursor will appear as an arrow between buffer text.  A
6738 variable `vcursor-interpret-input' allows input from the vcursor to be
6739 entered exactly as if typed.  Numerous functions, including
6740 `vcursor-compare-windows', have been rewritten to improve consistency
6741 in the selection of windows and corresponding keymaps.
6743 *** vcursor options can now be altered with M-x customize under the
6744 Editing group once the package is loaded.
6746 *** Loading vcursor now does not define keys by default, as this is
6747 generally a bad side effect.  Use M-x customize to set
6748 vcursor-key-bindings to t to restore the old behavior.
6750 *** vcursor-auto-disable can be `copy', which turns off copying from the
6751 vcursor, but doesn't disable it, after any non-vcursor command.
6753 ** Ispell changes.
6755 *** You can now spell check comments and strings in the current
6756 buffer with M-x ispell-comments-and-strings.  Comments and strings
6757 are identified by syntax tables in effect.
6759 *** Generic region skipping implemented.
6760 A single buffer can be broken into a number of regions where text will
6761 and will not be checked.  The definitions of the regions can be user
6762 defined.  New applications and improvements made available by this
6763 include:
6765     o URLs are automatically skipped
6766     o EMail message checking is vastly improved.
6768 *** Ispell can highlight the erroneous word even on non-window terminals.
6770 ** Changes to RefTeX mode
6772 RefTeX has been updated in order to make it more usable with very
6773 large projects (like a several volume math book).  The parser has been
6774 re-written from scratch.  To get maximum speed from RefTeX, check the
6775 section `Optimizations' in the manual.
6777 *** New recursive parser.
6779 The old version of RefTeX created a single large buffer containing the
6780 entire multifile document in order to parse the document.  The new
6781 recursive parser scans the individual files.
6783 *** Parsing only part of a document.
6785 Reparsing of changed document parts can now be made faster by enabling
6786 partial scans.  To use this feature, read the documentation string of
6787 the variable `reftex-enable-partial-scans' and set the variable to t.
6789     (setq reftex-enable-partial-scans t)
6791 *** Storing parsing information in a file.
6793 This can improve startup times considerably.  To turn it on, use
6795     (setq reftex-save-parse-info t)
6797 *** Using multiple selection buffers
6799 If the creation of label selection buffers is too slow (this happens
6800 for large documents), you can reuse these buffers by setting
6802     (setq reftex-use-multiple-selection-buffers t)
6804 *** References to external documents.
6806 The LaTeX package `xr' allows to cross-reference labels in external
6807 documents.  RefTeX can provide information about the external
6808 documents as well.  To use this feature, set up the \externaldocument
6809 macros required by the `xr' package and rescan the document with
6810 RefTeX.  The external labels can then be accessed with the `x' key in
6811 the selection buffer provided by `reftex-reference' (bound to `C-c )').
6812 The `x' key also works in the table of contents buffer.
6814 *** Many more labeled LaTeX environments are recognized by default.
6816 The built-in command list now covers all the standard LaTeX commands,
6817 and all of the major packages included in the LaTeX distribution.
6819 Also, RefTeX now understands the \appendix macro and changes
6820 the enumeration of sections in the *toc* buffer accordingly.
6822 *** Mouse support for selection and *toc* buffers
6824 The mouse can now be used to select items in the selection and *toc*
6825 buffers.  See also the new option `reftex-highlight-selection'.
6827 *** New keymaps for selection and table of contents modes.
6829 The selection processes for labels and citation keys, and the table of
6830 contents buffer now have their own keymaps: `reftex-select-label-map',
6831 `reftex-select-bib-map', `reftex-toc-map'.  The selection processes
6832 have a number of new keys predefined.  In particular, TAB lets you
6833 enter a label with completion.  Check the on-the-fly help (press `?'
6834 at the selection prompt) or read the Info documentation to find out
6835 more.
6837 *** Support for the varioref package
6839 The `v' key in the label selection buffer toggles \ref versus \vref.
6841 *** New hooks
6843 Three new hooks can be used to redefine the way labels, references,
6844 and citations are created. These hooks are
6845 `reftex-format-label-function', `reftex-format-ref-function',
6846 `reftex-format-cite-function'.
6848 *** Citations outside LaTeX
6850 The command `reftex-citation' may also be used outside LaTeX (e.g. in
6851 a mail buffer).  See the Info documentation for details.
6853 *** Short context is no longer fontified.
6855 The short context in the label menu no longer copies the
6856 fontification from the text in the buffer.  If you prefer it to be
6857 fontified, use
6859    (setq reftex-refontify-context t)
6861 ** file-cache-minibuffer-complete now accepts a prefix argument.
6862 With a prefix argument, it does not try to do completion of
6863 the file name within its directory; it only checks for other
6864 directories that contain the same file name.
6866 Thus, given the file name Makefile, and assuming that a file
6867 Makefile.in exists in the same directory, ordinary
6868 file-cache-minibuffer-complete will try to complete Makefile to
6869 Makefile.in and will therefore never look for other directories that
6870 have Makefile.  A prefix argument tells it not to look for longer
6871 names such as Makefile.in, so that instead it will look for other
6872 directories--just as if the name were already complete in its present
6873 directory.
6875 ** New modes and packages
6877 *** There is a new alternative major mode for Perl, Cperl mode.
6878 It has many more features than Perl mode, and some people prefer
6879 it, but some do not.
6881 *** There is a new major mode, M-x vhdl-mode, for editing files of VHDL
6882 code.
6884 *** M-x which-function-mode enables a minor mode that displays the
6885 current function name continuously in the mode line, as you move
6886 around in a buffer.
6888 Which Function mode is effective in major modes which support Imenu.
6890 *** Gametree is a major mode for editing game analysis trees.  The author
6891 uses it for keeping notes about his postal Chess games, but it should
6892 be helpful for other two-player games as well, as long as they have an
6893 established system of notation similar to Chess.
6895 *** The new minor mode checkdoc-minor-mode provides Emacs Lisp
6896 documentation string checking for style and spelling.  The style
6897 guidelines are found in the Emacs Lisp programming manual.
6899 *** The net-utils package makes some common networking features
6900 available in Emacs.  Some of these functions are wrappers around
6901 system utilities (ping, nslookup, etc); others are implementations of
6902 simple protocols (finger, whois) in Emacs Lisp.  There are also
6903 functions to make simple connections to TCP/IP ports for debugging and
6904 the like.
6906 *** highlight-changes-mode is a minor mode that uses colors to
6907 identify recently changed parts of the buffer text.
6909 *** The new package `midnight' lets you specify things to be done
6910 within Emacs at midnight--by default, kill buffers that you have not
6911 used in a considerable time.  To use this feature, customize
6912 the user option `midnight-mode' to t.
6914 *** The file generic-x.el defines a number of simple major modes.
6916   apache-generic-mode: For Apache and NCSA httpd configuration files
6917   samba-generic-mode: Samba configuration files
6918   fvwm-generic-mode: For fvwm initialization files
6919   x-resource-generic-mode: For X resource files
6920   hosts-generic-mode: For hosts files (.rhosts, /etc/hosts, etc)
6921   mailagent-rules-generic-mode: For mailagent .rules files
6922   javascript-generic-mode: For JavaScript files
6923   vrml-generic-mode: For VRML files
6924   java-manifest-generic-mode: For Java MANIFEST files
6925   java-properties-generic-mode: For Java property files
6926   mailrc-generic-mode: For .mailrc files
6928   Platform-specific modes:
6930   prototype-generic-mode: For Solaris/Sys V prototype files
6931   pkginfo-generic-mode: For Solaris/Sys V pkginfo files
6932   alias-generic-mode: For C shell alias files
6933   inf-generic-mode: For MS-Windows INF files
6934   ini-generic-mode: For MS-Windows INI files
6935   reg-generic-mode: For MS-Windows Registry files
6936   bat-generic-mode: For MS-Windows BAT scripts
6937   rc-generic-mode: For MS-Windows Resource files
6938   rul-generic-mode: For InstallShield scripts
6940 * Lisp changes in Emacs 20.3 since the Emacs Lisp Manual was published
6942 ** If you want a Lisp file to be read in unibyte mode,
6943 use -*-unibyte: t;-*- on its first line.
6944 That will force Emacs to read that file in unibyte mode.
6945 Otherwise, the file will be loaded and byte-compiled in multibyte mode.
6947 Thus, each lisp file is read in a consistent way regardless of whether
6948 you started Emacs with --unibyte, so that a Lisp program gives
6949 consistent results regardless of how Emacs was started.
6951 ** The new function assoc-default is useful for searching an alist,
6952 and using a default value if the key is not found there.  You can
6953 specify a comparison predicate, so this function is useful for
6954 searching comparing a string against an alist of regular expressions.
6956 ** The functions unibyte-char-to-multibyte and
6957 multibyte-char-to-unibyte convert between unibyte and multibyte
6958 character codes, in a way that is appropriate for the current language
6959 environment.
6961 ** The functions read-event, read-char and read-char-exclusive now
6962 take two optional arguments.  PROMPT, if non-nil, specifies a prompt
6963 string.  SUPPRESS-INPUT-METHOD, if non-nil, says to disable the
6964 current input method for reading this one event.
6966 ** Two new variables print-escape-nonascii and print-escape-multibyte
6967 now control whether to output certain characters as
6968 backslash-sequences.  print-escape-nonascii applies to single-byte
6969 non-ASCII characters; print-escape-multibyte applies to multibyte
6970 characters.  Both of these variables are used only when printing
6971 in readable fashion (prin1 uses them, princ does not).
6973 * Lisp changes in Emacs 20.3 before the Emacs Lisp Manual was published
6975 ** Compiled Emacs Lisp files made with the modified "MBSK" version
6976 of Emacs 20.2 do not work in Emacs 20.3.
6978 ** Buffer positions are now measured in characters, as they were
6979 in Emacs 19 and before.  This means that (forward-char 1)
6980 always increases point by 1.
6982 The function chars-in-region now just subtracts its arguments.  It is
6983 considered obsolete.  The function char-boundary-p has been deleted.
6985 See below for additional changes relating to multibyte characters.
6987 ** defcustom, defface and defgroup now accept the keyword `:version'.
6988 Use this to specify in which version of Emacs a certain variable's
6989 default value changed.  For example,
6991    (defcustom foo-max 34 "*Maximum number of foo's allowed."
6992      :type 'integer
6993      :group 'foo
6994      :version "20.3")
6996    (defgroup foo-group nil "The foo group."
6997      :version "20.3")
6999 If an entire new group is added or the variables in it have the
7000 default values changed, then just add a `:version' to that group. It
7001 is recommended that new packages added to the distribution contain a
7002 `:version' in the top level group.
7004 This information is used to control the customize-changed-options command.
7006 ** It is now an error to change the value of a symbol whose name
7007 starts with a colon--if it is interned in the standard obarray.
7009 However, setting such a symbol to its proper value, which is that
7010 symbol itself, is not an error.  This is for the sake of programs that
7011 support previous Emacs versions by explicitly setting these variables
7012 to themselves.
7014 If you set the variable keyword-symbols-constant-flag to nil,
7015 this error is suppressed, and you can set these symbols to any
7016 values whatever.
7018 ** There is a new debugger command, R.
7019 It evaluates an expression like e, but saves the result
7020 in the buffer *Debugger-record*.
7022 ** Frame-local variables.
7024 You can now make a variable local to various frames.  To do this, call
7025 the function make-variable-frame-local; this enables frames to have
7026 local bindings for that variable.
7028 These frame-local bindings are actually frame parameters: you create a
7029 frame-local binding in a specific frame by calling
7030 modify-frame-parameters and specifying the variable name as the
7031 parameter name.
7033 Buffer-local bindings take precedence over frame-local bindings.
7034 Thus, if the current buffer has a buffer-local binding, that binding is
7035 active; otherwise, if the selected frame has a frame-local binding,
7036 that binding is active; otherwise, the default binding is active.
7038 It would not be hard to implement window-local bindings, but it is not
7039 clear that this would be very useful; windows tend to come and go in a
7040 very transitory fashion, so that trying to produce any specific effect
7041 through a window-local binding would not be very robust.
7043 ** `sregexq' and `sregex' are two new functions for constructing
7044 "symbolic regular expressions."  These are Lisp expressions that, when
7045 evaluated, yield conventional string-based regexps.  The symbolic form
7046 makes it easier to construct, read, and maintain complex patterns.
7047 See the documentation in sregex.el.
7049 ** parse-partial-sexp's return value has an additional element which
7050 is used to pass information along if you pass it to another call to
7051 parse-partial-sexp, starting its scan where the first call ended.
7052 The contents of this field are not yet finalized.
7054 ** eval-region now accepts a fourth optional argument READ-FUNCTION.
7055 If it is non-nil, that function is used instead of `read'.
7057 ** unload-feature by default removes the feature's functions from
7058 known hooks to avoid trouble, but a package providing FEATURE can
7059 define a hook FEATURE-unload-hook to be run by unload-feature instead.
7061 ** read-from-minibuffer no longer returns the argument DEFAULT-VALUE
7062 when the user enters empty input.  It now returns the null string, as
7063 it did in Emacs 19.  The default value is made available in the
7064 history via M-n, but it is not applied here as a default.
7066 The other, more specialized minibuffer-reading functions continue to
7067 return the default value (not the null string) when the user enters
7068 empty input.
7070 ** The new variable read-buffer-function controls which routine to use
7071 for selecting buffers.  For example, if you set this variable to
7072 `iswitchb-read-buffer', iswitchb will be used to read buffer names.
7073 Other functions can also be used if they accept the same arguments as
7074 `read-buffer' and return the selected buffer name as a string.
7076 ** The new function read-passwd reads a password from the terminal,
7077 echoing a period for each character typed.  It takes three arguments:
7078 a prompt string, a flag which says "read it twice to make sure", and a
7079 default password to use if the user enters nothing.
7081 ** The variable fill-nobreak-predicate gives major modes a way to
7082 specify not to break a line at certain places.  Its value is a
7083 function which is called with no arguments, with point located at the
7084 place where a break is being considered.  If the function returns
7085 non-nil, then the line won't be broken there.
7087 ** window-end now takes an optional second argument, UPDATE.
7088 If this is non-nil, then the function always returns an accurate
7089 up-to-date value for the buffer position corresponding to the
7090 end of the window, even if this requires computation.
7092 ** other-buffer now takes an optional argument FRAME
7093 which specifies which frame's buffer list to use.
7094 If it is nil, that means use the selected frame's buffer list.
7096 ** The new variable buffer-display-time, always local in every buffer,
7097 holds the value of (current-time) as of the last time that a window
7098 was directed to display this buffer.
7100 ** It is now meaningful to compare two window-configuration objects
7101 with `equal'.  Two window-configuration objects are equal if they
7102 describe equivalent arrangements of windows, in the same frame--in
7103 other words, if they would give the same results if passed to
7104 set-window-configuration.
7106 ** compare-window-configurations is a new function that compares two
7107 window configurations loosely.  It ignores differences in saved buffer
7108 positions and scrolling, and considers only the structure and sizes of
7109 windows and the choice of buffers to display.
7111 ** The variable minor-mode-overriding-map-alist allows major modes to
7112 override the key bindings of a minor mode.  The elements of this alist
7113 look like the elements of minor-mode-map-alist: (VARIABLE . KEYMAP).
7115 If the VARIABLE in an element of minor-mode-overriding-map-alist has a
7116 non-nil value, the paired KEYMAP is active, and totally overrides the
7117 map (if any) specified for the same variable in minor-mode-map-alist.
7119 minor-mode-overriding-map-alist is automatically local in all buffers,
7120 and it is meant to be set by major modes.
7122 ** The function match-string-no-properties is like match-string
7123 except that it discards all text properties from the result.
7125 ** The function load-average now accepts an optional argument
7126 USE-FLOATS.  If it is non-nil, the load average values are returned as
7127 floating point numbers, rather than as integers to be divided by 100.
7129 ** The new variable temporary-file-directory specifies the directory
7130 to use for creating temporary files.  The default value is determined
7131 in a reasonable way for your operating system; on GNU and Unix systems
7132 it is based on the TMP and TMPDIR environment variables.
7134 ** Menu changes
7136 *** easymenu.el now uses the new menu item format and supports the
7137 keywords :visible and :filter.  The existing keyword :keys is now
7138 better supported.
7140 The variable `easy-menu-precalculate-equivalent-keybindings' controls
7141 a new feature which calculates keyboard equivalents for the menu when
7142 you define the menu.  The default is t.  If you rarely use menus, you
7143 can set the variable to nil to disable this precalculation feature;
7144 then the calculation is done only if you use the menu bar.
7146 *** A new format for menu items is supported.
7148 In a keymap, a key binding that has the format
7149  (STRING . REAL-BINDING) or (STRING HELP-STRING . REAL-BINDING)
7150 defines a menu item. Now a menu item definition may also be a list that
7151 starts with the symbol `menu-item'.
7153 The format is:
7154  (menu-item ITEM-NAME) or
7155  (menu-item ITEM-NAME REAL-BINDING . ITEM-PROPERTY-LIST)
7156 where ITEM-NAME is an expression which evaluates to the menu item
7157 string, and ITEM-PROPERTY-LIST has the form of a property list.
7158 The supported properties include
7160 :enable FORM      Evaluate FORM to determine whether the
7161                   item is enabled.
7162 :visible FORM     Evaluate FORM to determine whether the
7163                   item should appear in the menu.
7164 :filter FILTER-FN
7165                   FILTER-FN is a function of one argument,
7166                   which will be REAL-BINDING.
7167                   It should return a binding to use instead.
7168 :keys DESCRIPTION
7169                   DESCRIPTION is a string that describes an equivalent keyboard
7170                   binding for REAL-BINDING.  DESCRIPTION is expanded with
7171                   `substitute-command-keys' before it is used.
7172 :key-sequence KEY-SEQUENCE
7173                   KEY-SEQUENCE is a key-sequence for an equivalent
7174                   keyboard binding.
7175 :key-sequence nil
7176                   This means that the command normally has no
7177                   keyboard equivalent.
7178 :help HELP        HELP is the extra help string (not currently used).
7179 :button (TYPE . SELECTED)
7180                   TYPE is :toggle or :radio.
7181                   SELECTED is a form, to be evaluated, and its
7182                   value says whether this button is currently selected.
7184 Buttons are at the moment only simulated by prefixes in the menu.
7185 Eventually ordinary X-buttons may be supported.
7187 (menu-item ITEM-NAME) defines unselectable item.
7189 ** New event types
7191 *** The new event type `mouse-wheel' is generated by a wheel on a
7192 mouse (such as the MS Intellimouse).  The event contains a delta that
7193 corresponds to the amount and direction that the wheel is rotated,
7194 which is typically used to implement a scroll or zoom.  The format is:
7196   (mouse-wheel POSITION DELTA)
7198 where POSITION is a list describing the position of the event in the
7199 same format as a mouse-click event, and DELTA is a signed number
7200 indicating the number of increments by which the wheel was rotated.  A
7201 negative DELTA indicates that the wheel was rotated backwards, towards
7202 the user, and a positive DELTA indicates that the wheel was rotated
7203 forward, away from the user.
7205 As of now, this event type is generated only on MS Windows.
7207 *** The new event type `drag-n-drop' is generated when a group of
7208 files is selected in an application outside of Emacs, and then dragged
7209 and dropped onto an Emacs frame.  The event contains a list of
7210 filenames that were dragged and dropped, which are then typically
7211 loaded into Emacs.  The format is:
7213   (drag-n-drop POSITION FILES)
7215 where POSITION is a list describing the position of the event in the
7216 same format as a mouse-click event, and FILES is the list of filenames
7217 that were dragged and dropped.
7219 As of now, this event type is generated only on MS Windows.
7221 ** Changes relating to multibyte characters.
7223 *** The variable enable-multibyte-characters is now read-only;
7224 any attempt to set it directly signals an error.  The only way
7225 to change this value in an existing buffer is with set-buffer-multibyte.
7227 *** In a string constant, `\ ' now stands for "nothing at all".  You
7228 can use it to terminate a hex escape which is followed by a character
7229 that could otherwise be read as part of the hex escape.
7231 *** String indices are now measured in characters, as they were
7232 in Emacs 19 and before.
7234 The function chars-in-string has been deleted.
7235 The function concat-chars has been renamed to `string'.
7237 *** The function set-buffer-multibyte sets the flag in the current
7238 buffer that says whether the buffer uses multibyte representation or
7239 unibyte representation.  If the argument is nil, it selects unibyte
7240 representation.  Otherwise it selects multibyte representation.
7242 This function does not change the contents of the buffer, viewed
7243 as a sequence of bytes.  However, it does change the contents
7244 viewed as characters; a sequence of two bytes which is treated as
7245 one character when the buffer uses multibyte representation
7246 will count as two characters using unibyte representation.
7248 This function sets enable-multibyte-characters to record which
7249 representation is in use.  It also adjusts various data in the buffer
7250 (including its markers, overlays and text properties) so that they are
7251 consistent with the new representation.
7253 *** string-make-multibyte takes a string and converts it to multibyte
7254 representation.  Most of the time, you don't need to care
7255 about the representation, because Emacs converts when necessary;
7256 however, it makes a difference when you compare strings.
7258 The conversion of non-ASCII characters works by adding the value of
7259 nonascii-insert-offset to each character, or by translating them
7260 using the table nonascii-translation-table.
7262 *** string-make-unibyte takes a string and converts it to unibyte
7263 representation.  Most of the time, you don't need to care about the
7264 representation, but it makes a difference when you compare strings.
7266 The conversion from multibyte to unibyte representation
7267 loses information; the only time Emacs performs it automatically
7268 is when inserting a multibyte string into a unibyte buffer.
7270 *** string-as-multibyte takes a string, and returns another string
7271 which contains the same bytes, but treats them as multibyte.
7273 *** string-as-unibyte takes a string, and returns another string
7274 which contains the same bytes, but treats them as unibyte.
7276 *** The new function compare-strings lets you compare
7277 portions of two strings.  Unibyte strings are converted to multibyte,
7278 so that a unibyte string can match a multibyte string.
7279 You can specify whether to ignore case or not.
7281 *** assoc-ignore-case now uses compare-strings so that
7282 it can treat unibyte and multibyte strings as equal.
7284 *** Regular expression operations and buffer string searches now
7285 convert the search pattern to multibyte or unibyte to accord with the
7286 buffer or string being searched.
7288 One consequence is that you cannot always use \200-\377 inside of
7289 [...] to match all non-ASCII characters.  This does still work when
7290 searching or matching a unibyte buffer or string, but not when
7291 searching or matching a multibyte string.  Unfortunately, there is no
7292 obvious choice of syntax to use within [...] for that job.  But, what
7293 you want is just to match all non-ASCII characters, the regular
7294 expression [^\0-\177] works for it.
7296 *** Structure of coding system changed.
7298 All coding systems (including aliases and subsidiaries) are named
7299 by symbols; the symbol's `coding-system' property is a vector
7300 which defines the coding system.  Aliases share the same vector
7301 as the principal name, so that altering the contents of this
7302 vector affects the principal name and its aliases.  You can define
7303 your own alias name of a coding system by the function
7304 define-coding-system-alias.
7306 The coding system definition includes a property list of its own.  Use
7307 the new functions `coding-system-get' and `coding-system-put' to
7308 access such coding system properties as post-read-conversion,
7309 pre-write-conversion, character-translation-table-for-decode,
7310 character-translation-table-for-encode, mime-charset, and
7311 safe-charsets.  For instance, (coding-system-get 'iso-latin-1
7312 'mime-charset) gives the corresponding MIME-charset parameter
7313 `iso-8859-1'.
7315 Among the coding system properties listed above, safe-charsets is new.
7316 The value of this property is a list of character sets which this
7317 coding system can correctly encode and decode.  For instance:
7318 (coding-system-get 'iso-latin-1 'safe-charsets) => (ascii latin-iso8859-1)
7320 Here, "correctly encode" means that the encoded character sets can
7321 also be handled safely by systems other than Emacs as far as they
7322 are capable of that coding system.  Though, Emacs itself can encode
7323 the other character sets and read it back correctly.
7325 *** The new function select-safe-coding-system can be used to find a
7326 proper coding system for encoding the specified region or string.
7327 This function requires a user interaction.
7329 *** The new functions find-coding-systems-region and
7330 find-coding-systems-string are helper functions used by
7331 select-safe-coding-system.  They return a list of all proper coding
7332 systems to encode a text in some region or string.  If you don't want
7333 a user interaction, use one of these functions instead of
7334 select-safe-coding-system.
7336 *** The explicit encoding and decoding functions, such as
7337 decode-coding-region and encode-coding-string, now set
7338 last-coding-system-used to reflect the actual way encoding or decoding
7339 was done.
7341 *** The new function detect-coding-with-language-environment can be
7342 used to detect a coding system of text according to priorities of
7343 coding systems used by some specific language environment.
7345 *** The functions detect-coding-region and detect-coding-string always
7346 return a list if the arg HIGHEST is nil.  Thus, if only ASCII
7347 characters are found, they now return a list of single element
7348 `undecided' or its subsidiaries.
7350 *** The new functions coding-system-change-eol-conversion and
7351 coding-system-change-text-conversion can be used to get a different
7352 coding system than what specified only in how end-of-line or text is
7353 converted.
7355 *** The new function set-selection-coding-system can be used to set a
7356 coding system for communicating with other X clients.
7358 *** The function `map-char-table' now passes as argument only valid
7359 character codes, plus generic characters that stand for entire
7360 character sets or entire subrows of a character set.  In other words,
7361 each time `map-char-table' calls its FUNCTION argument, the key value
7362 either will be a valid individual character code, or will stand for a
7363 range of characters.
7365 *** The new function `char-valid-p' can be used for checking whether a
7366 Lisp object is a valid character code or not.
7368 *** The new function `charset-after' returns a charset of a character
7369 in the current buffer at position POS.
7371 *** Input methods are now implemented using the variable
7372 input-method-function.  If this is non-nil, its value should be a
7373 function; then, whenever Emacs reads an input event that is a printing
7374 character with no modifier bits, it calls that function, passing the
7375 event as an argument.  Often this function will read more input, first
7376 binding input-method-function to nil.
7378 The return value should be a list of the events resulting from input
7379 method processing.  These events will be processed sequentially as
7380 input, before resorting to unread-command-events.  Events returned by
7381 the input method function are not passed to the input method function,
7382 not even if they are printing characters with no modifier bits.
7384 The input method function is not called when reading the second and
7385 subsequent events of a key sequence.
7387 *** You can customize any language environment by using
7388 set-language-environment-hook and exit-language-environment-hook.
7390 The hook `exit-language-environment-hook' should be used to undo
7391 customizations that you made with set-language-environment-hook.  For
7392 instance, if you set up a special key binding for a specific language
7393 environment by set-language-environment-hook, you should set up
7394 exit-language-environment-hook to restore the normal key binding.
7396 * Changes in Emacs 20.1
7398 ** Emacs has a new facility for customization of its many user
7399 options.  It is called M-x customize.  With this facility you can look
7400 at the many user options in an organized way; they are grouped into a
7401 tree structure.
7403 M-x customize also knows what sorts of values are legitimate for each
7404 user option and ensures that you don't use invalid values.
7406 With M-x customize, you can set options either for the present Emacs
7407 session or permanently.  (Permanent settings are stored automatically
7408 in your .emacs file.)
7410 ** Scroll bars are now on the left side of the window.
7411 You can change this with M-x customize-option scroll-bar-mode.
7413 ** The mode line no longer includes the string `Emacs'.
7414 This makes more space in the mode line for other information.
7416 ** When you select a region with the mouse, it is highlighted
7417 immediately afterward.  At that time, if you type the DELETE key, it
7418 kills the region.
7420 The BACKSPACE key, and the ASCII character DEL, do not do this; they
7421 delete the character before point, as usual.
7423 ** In an incremental search the whole current match is highlighted
7424 on terminals which support this.  (You can disable this feature
7425 by setting search-highlight to nil.)
7427 ** In the minibuffer, in some cases, you can now use M-n to
7428 insert the default value into the minibuffer as text.  In effect,
7429 the default value (if the minibuffer routines know it) is tacked
7430 onto the history "in the future".  (The more normal use of the
7431 history list is to use M-p to insert minibuffer input used in the
7432 past.)
7434 ** In Text mode, now only blank lines separate paragraphs.
7435 This makes it possible to get the full benefit of Adaptive Fill mode
7436 in Text mode, and other modes derived from it (such as Mail mode).
7437 TAB in Text mode now runs the command indent-relative; this
7438 makes a practical difference only when you use indented paragraphs.
7440 As a result, the old Indented Text mode is now identical to Text mode,
7441 and is an alias for it.
7443 If you want spaces at the beginning of a line to start a paragraph,
7444 use the new mode, Paragraph Indent Text mode.
7446 ** Scrolling changes
7448 *** Scroll commands to scroll a whole screen now preserve the screen
7449 position of the cursor, if scroll-preserve-screen-position is non-nil.
7451 In this mode, if you scroll several screens back and forth, finishing
7452 on the same screen where you started, the cursor goes back to the line
7453 where it started.
7455 *** If you set scroll-conservatively to a small number, then when you
7456 move point a short distance off the screen, Emacs will scroll the
7457 screen just far enough to bring point back on screen, provided that
7458 does not exceed `scroll-conservatively' lines.
7460 *** The new variable scroll-margin says how close point can come to the
7461 top or bottom of a window.  It is a number of screen lines; if point
7462 comes within that many lines of the top or bottom of the window, Emacs
7463 recenters the window.
7465 ** International character set support (MULE)
7467 Emacs now supports a wide variety of international character sets,
7468 including European variants of the Latin alphabet, as well as Chinese,
7469 Devanagari (Hindi and Marathi), Ethiopian, Greek, IPA, Japanese,
7470 Korean, Lao, Russian, Thai, Tibetan, and Vietnamese scripts.  These
7471 features have been merged from the modified version of Emacs known as
7472 MULE (for "MULti-lingual Enhancement to GNU Emacs")
7474 Users of these scripts have established many more-or-less standard
7475 coding systems for storing files.  Emacs uses a single multibyte
7476 character encoding within Emacs buffers; it can translate from a wide
7477 variety of coding systems when reading a file and can translate back
7478 into any of these coding systems when saving a file.
7480 Keyboards, even in the countries where these character sets are used,
7481 generally don't have keys for all the characters in them.  So Emacs
7482 supports various "input methods", typically one for each script or
7483 language, to make it possible to type them.
7485 The Emacs internal multibyte encoding represents a non-ASCII
7486 character as a sequence of bytes in the range 0200 through 0377.
7488 The new prefix key C-x RET is used for commands that pertain
7489 to multibyte characters, coding systems, and input methods.
7491 You can disable multibyte character support as follows:
7493   (setq-default enable-multibyte-characters nil)
7495 Calling the function standard-display-european turns off multibyte
7496 characters, unless you specify a non-nil value for the second
7497 argument, AUTO.  This provides compatibility for people who are
7498 already using standard-display-european to continue using unibyte
7499 characters for their work until they want to change.
7501 *** Input methods
7503 An input method is a kind of character conversion which is designed
7504 specifically for interactive input.  In Emacs, typically each language
7505 has its own input method (though sometimes several languages which use
7506 the same characters can share one input method).  Some languages
7507 support several input methods.
7509 The simplest kind of input method works by mapping ASCII letters into
7510 another alphabet.  This is how the Greek and Russian input methods
7511 work.
7513 A more powerful technique is composition: converting sequences of
7514 characters into one letter.  Many European input methods use
7515 composition to produce a single non-ASCII letter from a sequence which
7516 consists of a letter followed by diacritics.  For example, a' is one
7517 sequence of two characters that might be converted into a single
7518 letter.
7520 The input methods for syllabic scripts typically use mapping followed
7521 by conversion.  The input methods for Thai and Korean work this way.
7522 First, letters are mapped into symbols for particular sounds or tone
7523 marks; then, sequences of these which make up a whole syllable are
7524 mapped into one syllable sign--most often a "composite character".
7526 None of these methods works very well for Chinese and Japanese, so
7527 they are handled specially.  First you input a whole word using
7528 phonetic spelling; then, after the word is in the buffer, Emacs
7529 converts it into one or more characters using a large dictionary.
7531 Since there is more than one way to represent a phonetically spelled
7532 word using Chinese characters, Emacs can only guess which one to use;
7533 typically these input methods give you a way to say "guess again" if
7534 the first guess is wrong.
7536 *** The command C-x RET m (toggle-enable-multibyte-characters)
7537 turns multibyte character support on or off for the current buffer.
7539 If multibyte character support is turned off in a buffer, then each
7540 byte is a single character, even codes 0200 through 0377--exactly as
7541 they did in Emacs 19.34.  This includes the features for support for
7542 the European characters, ISO Latin-1 and ISO Latin-2.
7544 However, there is no need to turn off multibyte character support to
7545 use ISO Latin-1 or ISO Latin-2; the Emacs multibyte character set
7546 includes all the characters in these character sets, and Emacs can
7547 translate automatically to and from either one.
7549 *** Visiting a file in unibyte mode.
7551 Turning off multibyte character support in the buffer after visiting a
7552 file with multibyte code conversion will display the multibyte
7553 sequences already in the buffer, byte by byte.  This is probably not
7554 what you want.
7556 If you want to edit a file of unibyte characters (Latin-1, for
7557 example), you can do it by specifying `no-conversion' as the coding
7558 system when reading the file.  This coding system also turns off
7559 multibyte characters in that buffer.
7561 If you turn off multibyte character support entirely, this turns off
7562 character conversion as well.
7564 *** Displaying international characters on X Windows.
7566 A font for X typically displays just one alphabet or script.
7567 Therefore, displaying the entire range of characters Emacs supports
7568 requires using many fonts.
7570 Therefore, Emacs now supports "fontsets".  Each fontset is a
7571 collection of fonts, each assigned to a range of character codes.
7573 A fontset has a name, like a font.  Individual fonts are defined by
7574 the X server; fontsets are defined within Emacs itself.  But once you
7575 have defined a fontset, you can use it in a face or a frame just as
7576 you would use a font.
7578 If a fontset specifies no font for a certain character, or if it
7579 specifies a font that does not exist on your system, then it cannot
7580 display that character.  It will display an empty box instead.
7582 The fontset height and width are determined by the ASCII characters
7583 (that is, by the font in the fontset which is used for ASCII
7584 characters).
7586 *** Defining fontsets.
7588 Emacs does not use any fontset by default.  Its default font is still
7589 chosen as in previous versions.  You can tell Emacs to use a fontset
7590 with the `-fn' option or the `Font' X resource.
7592 Emacs creates a standard fontset automatically according to the value
7593 of standard-fontset-spec.  This fontset's short name is
7594 `fontset-standard'.  Bold, italic, and bold-italic variants of the
7595 standard fontset are created automatically.
7597 If you specify a default ASCII font with the `Font' resource or `-fn'
7598 argument, a fontset is generated from it.  This works by replacing the
7599 FOUNDARY, FAMILY, ADD_STYLE, and AVERAGE_WIDTH fields of the font name
7600 with `*' then using this to specify a fontset.  This fontset's short
7601 name is `fontset-startup'.
7603 Emacs checks resources of the form Fontset-N where N is 0, 1, 2...
7604 The resource value should have this form:
7605         FONTSET-NAME, [CHARSET-NAME:FONT-NAME]...
7606 FONTSET-NAME should have the form of a standard X font name, except:
7607         * most fields should be just the wild card "*".
7608         * the CHARSET_REGISTRY field should be "fontset"
7609         * the CHARSET_ENCODING field can be any nickname of the fontset.
7610 The construct CHARSET-NAME:FONT-NAME can be repeated any number
7611 of times; each time specifies the font for one character set.
7612 CHARSET-NAME should be the name of a character set, and FONT-NAME
7613 should specify an actual font to use for that character set.
7615 Each of these fontsets has an alias which is made from the
7616 last two font name fields, CHARSET_REGISTRY and CHARSET_ENCODING.
7617 You can refer to the fontset by that alias or by its full name.
7619 For any character sets that you don't mention, Emacs tries to choose a
7620 font by substituting into FONTSET-NAME.  For instance, with the
7621 following resource,
7622         Emacs*Fontset-0: -*-fixed-medium-r-normal-*-24-*-*-*-*-*-fontset-24
7623 the font for ASCII is generated as below:
7624         -*-fixed-medium-r-normal-*-24-*-ISO8859-1
7625 Here is the substitution rule:
7626     Change CHARSET_REGISTRY and CHARSET_ENCODING to that of the charset
7627     defined in the variable x-charset-registries.  For instance, ASCII has
7628     the entry (ascii . "ISO8859-1") in this variable.  Then, reduce
7629     sequences of wild cards -*-...-*- with a single wildcard -*-.
7630     (This is to prevent use of auto-scaled fonts.)
7632 The function which processes the fontset resource value to create the
7633 fontset is called create-fontset-from-fontset-spec.  You can also call
7634 that function explicitly to create a fontset.
7636 With the X resource Emacs.Font, you can specify a fontset name just
7637 like an actual font name.  But be careful not to specify a fontset
7638 name in a wildcard resource like Emacs*Font--that tries to specify the
7639 fontset for other purposes including menus, and they cannot handle
7640 fontsets.
7642 *** The command M-x set-language-environment sets certain global Emacs
7643 defaults for a particular choice of language.
7645 Selecting a language environment typically specifies a default input
7646 method and which coding systems to recognize automatically when
7647 visiting files.  However, it does not try to reread files you have
7648 already visited; the text in those buffers is not affected.  The
7649 language environment may also specify a default choice of coding
7650 system for new files that you create.
7652 It makes no difference which buffer is current when you use
7653 set-language-environment, because these defaults apply globally to the
7654 whole Emacs session.
7656 For example, M-x set-language-environment RET Latin-1 RET
7657 chooses the Latin-1 character set.  In the .emacs file, you can do this
7658 with (set-language-environment "Latin-1").
7660 *** The command C-x RET f (set-buffer-file-coding-system)
7661 specifies the file coding system for the current buffer.  This
7662 specifies what sort of character code translation to do when saving
7663 the file.  As an argument, you must specify the name of one of the
7664 coding systems that Emacs supports.
7666 *** The command C-x RET c (universal-coding-system-argument)
7667 lets you specify a coding system when you read or write a file.
7668 This command uses the minibuffer to read a coding system name.
7669 After you exit the minibuffer, the specified coding system
7670 is used for *the immediately following command*.
7672 So if the immediately following command is a command to read or
7673 write a file, it uses the specified coding system for that file.
7675 If the immediately following command does not use the coding system,
7676 then C-x RET c ultimately has no effect.
7678 For example,  C-x RET c iso-8859-1 RET C-x C-f temp RET
7679 visits the file `temp' treating it as ISO Latin-1.
7681 *** You can specify the coding system for a file using the -*-
7682 construct.  Include `coding: CODINGSYSTEM;' inside the -*-...-*-
7683 to specify use of coding system CODINGSYSTEM.  You can also
7684 specify the coding system in a local variable list at the end
7685 of the file.
7687 *** The command C-x RET t (set-terminal-coding-system) specifies
7688 the coding system for terminal output.  If you specify a character
7689 code for terminal output, all characters output to the terminal are
7690 translated into that character code.
7692 This feature is useful for certain character-only terminals built in
7693 various countries to support the languages of those countries.
7695 By default, output to the terminal is not translated at all.
7697 *** The command C-x RET k (set-keyboard-coding-system) specifies
7698 the coding system for keyboard input.
7700 Character code translation of keyboard input is useful for terminals
7701 with keys that send non-ASCII graphic characters--for example,
7702 some terminals designed for ISO Latin-1 or subsets of it.
7704 By default, keyboard input is not translated at all.
7706 Character code translation of keyboard input is similar to using an
7707 input method, in that both define sequences of keyboard input that
7708 translate into single characters.  However, input methods are designed
7709 to be convenient for interactive use, while the code translations are
7710 designed to work with terminals.
7712 *** The command C-x RET p (set-buffer-process-coding-system)
7713 specifies the coding system for input and output to a subprocess.
7714 This command applies to the current buffer; normally, each subprocess
7715 has its own buffer, and thus you can use this command to specify
7716 translation to and from a particular subprocess by giving the command
7717 in the corresponding buffer.
7719 By default, process input and output are not translated at all.
7721 *** The variable file-name-coding-system specifies the coding system
7722 to use for encoding file names before operating on them.
7723 It is also used for decoding file names obtained from the system.
7725 *** The command C-\ (toggle-input-method) activates or deactivates
7726 an input method.  If no input method has been selected before, the
7727 command prompts for you to specify the language and input method you
7728 want to use.
7730 C-u C-\ (select-input-method) lets you switch to a different input
7731 method.  C-h C-\ (or C-h I) describes the current input method.
7733 *** Some input methods remap the keyboard to emulate various keyboard
7734 layouts commonly used for particular scripts.  How to do this
7735 remapping properly depends on your actual keyboard layout.  To specify
7736 which layout your keyboard has, use M-x quail-set-keyboard-layout.
7738 *** The command C-h C (describe-coding-system) displays
7739 the coding systems currently selected for various purposes, plus
7740 related information.
7742 *** The command C-h h (view-hello-file) displays a file called
7743 HELLO, which has examples of text in many languages, using various
7744 scripts.
7746 *** The command C-h L (describe-language-support) displays
7747 information about the support for a particular language.
7748 You specify the language as an argument.
7750 *** The mode line now contains a letter or character that identifies
7751 the coding system used in the visited file.  It normally follows the
7752 first dash.
7754 A dash indicates the default state of affairs: no code conversion
7755 (except CRLF => newline if appropriate).  `=' means no conversion
7756 whatsoever.  The ISO 8859 coding systems are represented by digits
7757 1 through 9.  Other coding systems are represented by letters:
7759     A alternativnyj (Russian)
7760     B big5 (Chinese)
7761     C cn-gb-2312 (Chinese)
7762     C iso-2022-cn (Chinese)
7763     D in-is13194-devanagari (Indian languages)
7764     E euc-japan (Japanese)
7765     I iso-2022-cjk or iso-2022-ss2 (Chinese, Japanese, Korean)
7766     J junet (iso-2022-7) or old-jis (iso-2022-jp-1978-irv)  (Japanese)
7767     K euc-korea (Korean)
7768     R koi8 (Russian)
7769     Q tibetan
7770     S shift_jis (Japanese)
7771     T lao
7772     T tis620 (Thai)
7773     V viscii or vscii (Vietnamese)
7774     i iso-2022-lock (Chinese, Japanese, Korean)
7775     k iso-2022-kr (Korean)
7776     v viqr (Vietnamese)
7777     z hz (Chinese)
7779 When you are using a character-only terminal (not a window system),
7780 two additional characters appear in between the dash and the file
7781 coding system.  These two characters describe the coding system for
7782 keyboard input, and the coding system for terminal output.
7784 *** The new variable rmail-file-coding-system specifies the code
7785 conversion to use for RMAIL files.  The default value is nil.
7787 When you read mail with Rmail, each message is decoded automatically
7788 into Emacs' internal format.  This has nothing to do with
7789 rmail-file-coding-system.  That variable controls reading and writing
7790 Rmail files themselves.
7792 *** The new variable sendmail-coding-system specifies the code
7793 conversion for outgoing mail.  The default value is nil.
7795 Actually, there are three different ways of specifying the coding system
7796 for sending mail:
7798 - If you use C-x RET f in the mail buffer, that takes priority.
7799 - Otherwise, if you set sendmail-coding-system non-nil, that specifies it.
7800 - Otherwise, the default coding system for new files is used,
7801   if that is non-nil.  That comes from your language environment.
7802 - Otherwise, Latin-1 is used.
7804 *** The command C-h t (help-with-tutorial) accepts a prefix argument
7805 to specify the language for the tutorial file.  Currently, English,
7806 Japanese, Korean and Thai are supported.  We welcome additional
7807 translations.
7809 ** An easy new way to visit a file with no code or format conversion
7810 of any kind: Use M-x find-file-literally.  There is also a command
7811 insert-file-literally which inserts a file into the current buffer
7812 without any conversion.
7814 ** C-q's handling of octal character codes is changed.
7815 You can now specify any number of octal digits.
7816 RET terminates the digits and is discarded;
7817 any other non-digit terminates the digits and is then used as input.
7819 ** There are new commands for looking up Info documentation for
7820 functions, variables and file names used in your programs.
7822 Type M-x info-lookup-symbol to look up a symbol in the buffer at point.
7823 Type M-x info-lookup-file to look up a file in the buffer at point.
7825 Precisely which Info files are used to look it up depends on the major
7826 mode.  For example, in C mode, the GNU libc manual is used.
7828 ** M-TAB in most programming language modes now runs the command
7829 complete-symbol.  This command performs completion on the symbol name
7830 in the buffer before point.
7832 With a numeric argument, it performs completion based on the set of
7833 symbols documented in the Info files for the programming language that
7834 you are using.
7836 With no argument, it does completion based on the current tags tables,
7837 just like the old binding of M-TAB (complete-tag).
7839 ** File locking works with NFS now.
7841 The lock file for FILENAME is now a symbolic link named .#FILENAME,
7842 in the same directory as FILENAME.
7844 This means that collision detection between two different machines now
7845 works reasonably well; it also means that no file server or directory
7846 can become a bottleneck.
7848 The new method does have drawbacks.  It means that collision detection
7849 does not operate when you edit a file in a directory where you cannot
7850 create new files.  Collision detection also doesn't operate when the
7851 file server does not support symbolic links.  But these conditions are
7852 rare, and the ability to have collision detection while using NFS is
7853 so useful that the change is worth while.
7855 When Emacs or a system crashes, this may leave behind lock files which
7856 are stale.  So you may occasionally get warnings about spurious
7857 collisions.  When you determine that the collision is spurious, just
7858 tell Emacs to go ahead anyway.
7860 ** If you wish to use Show Paren mode to display matching parentheses,
7861 it is no longer sufficient to load paren.el.  Instead you must call
7862 show-paren-mode.
7864 ** If you wish to use Delete Selection mode to replace a highlighted
7865 selection when you insert new text, it is no longer sufficient to load
7866 delsel.el.  Instead you must call the function delete-selection-mode.
7868 ** If you wish to use Partial Completion mode to complete partial words
7869 within symbols or filenames, it is no longer sufficient to load
7870 complete.el.  Instead you must call the function partial-completion-mode.
7872 ** If you wish to use uniquify to rename buffers for you,
7873 it is no longer sufficient to load uniquify.el.  You must also
7874 set uniquify-buffer-name-style to one of the non-nil legitimate values.
7876 ** Changes in View mode.
7878 *** Several new commands are available in View mode.
7879 Do H in view mode for a list of commands.
7881 *** There are two new commands for entering View mode:
7882 view-file-other-frame and view-buffer-other-frame.
7884 *** Exiting View mode does a better job of restoring windows to their
7885 previous state.
7887 *** New customization variable view-scroll-auto-exit. If non-nil,
7888 scrolling past end of buffer makes view mode exit.
7890 *** New customization variable view-exits-all-viewing-windows.  If
7891 non-nil, view-mode will at exit restore all windows viewing buffer,
7892 not just the selected window.
7894 *** New customization variable view-read-only.  If non-nil, visiting a
7895 read-only file automatically enters View mode, and toggle-read-only
7896 turns View mode on or off.
7898 *** New customization variable view-remove-frame-by-deleting controls
7899 how to remove a not needed frame at view mode exit. If non-nil,
7900 delete the frame, if nil make an icon of it.
7902 ** C-x v l, the command to print a file's version control log,
7903 now positions point at the entry for the file's current branch version.
7905 ** C-x v =, the command to compare a file with the last checked-in version,
7906 has a new feature.  If the file is currently not locked, so that it is
7907 presumably identical to the last checked-in version, the command now asks
7908 which version to compare with.
7910 ** When using hideshow.el, incremental search can temporarily show hidden
7911 blocks if a match is inside the block.
7913 The block is hidden again if the search is continued and the next match
7914 is outside the block.  By customizing the variable
7915 isearch-hide-immediately you can choose to hide all the temporarily
7916 shown blocks only when exiting from incremental search.
7918 By customizing the variable hs-isearch-open you can choose what kind
7919 of blocks to temporarily show during isearch: comment blocks, code
7920 blocks, all of them or none.
7922 ** The new command C-x 4 0 (kill-buffer-and-window) kills the
7923 current buffer and deletes the selected window.  It asks for
7924 confirmation first.
7926 ** C-x C-w, which saves the buffer into a specified file name,
7927 now changes the major mode according to that file name.
7928 However, the mode will not be changed if
7929 (1) a local variables list or the `-*-' line specifies a major mode, or
7930 (2) the current major mode is a "special" mode,
7931     not suitable for ordinary files, or
7932 (3) the new file name does not particularly specify any mode.
7934 This applies to M-x set-visited-file-name as well.
7936 However, if you set change-major-mode-with-file-name to nil, then
7937 these commands do not change the major mode.
7939 ** M-x occur changes.
7941 *** If the argument to M-x occur contains upper case letters,
7942 it performs a case-sensitive search.
7944 *** In the *Occur* buffer made by M-x occur,
7945 if you type g or M-x revert-buffer, this repeats the search
7946 using the same regular expression and the same buffer as before.
7948 ** In Transient Mark mode, the region in any one buffer is highlighted
7949 in just one window at a time.  At first, it is highlighted in the
7950 window where you set the mark.  The buffer's highlighting remains in
7951 that window unless you select to another window which shows the same
7952 buffer--then the highlighting moves to that window.
7954 ** The feature to suggest key bindings when you use M-x now operates
7955 after the command finishes.  The message suggesting key bindings
7956 appears temporarily in the echo area.  The previous echo area contents
7957 come back after a few seconds, in case they contain useful information.
7959 ** Each frame now independently records the order for recently
7960 selected buffers, so that the default for C-x b is now based on the
7961 buffers recently selected in the selected frame.
7963 ** Outline mode changes.
7965 *** Outline mode now uses overlays (this is the former noutline.el).
7967 *** Incremental searches skip over invisible text in Outline mode.
7969 ** When a minibuffer window is active but not the selected window, if
7970 you try to use the minibuffer, you used to get a nested minibuffer.
7971 Now, this not only gives an error, it also cancels the minibuffer that
7972 was already active.
7974 The motive for this change is so that beginning users do not
7975 unknowingly move away from minibuffers, leaving them active, and then
7976 get confused by it.
7978 If you want to be able to have recursive minibuffers, you must
7979 set enable-recursive-minibuffers to non-nil.
7981 ** Changes in dynamic abbrevs.
7983 *** Expanding dynamic abbrevs with M-/ is now smarter about case
7984 conversion.  If the expansion has mixed case not counting the first
7985 character, and the abbreviation matches the beginning of the expansion
7986 including case, then the expansion is copied verbatim.
7988 The expansion is also copied verbatim if the abbreviation itself has
7989 mixed case.  And using SPC M-/ to copy an additional word always
7990 copies it verbatim except when the previous copied word is all caps.
7992 *** The values of `dabbrev-case-replace' and `dabbrev-case-fold-search'
7993 are no longer Lisp expressions.  They have simply three possible
7994 values.
7996 `dabbrev-case-replace' has these three values: nil (don't preserve
7997 case), t (do), or `case-replace' (do like M-x query-replace).
7998 `dabbrev-case-fold-search' has these three values: nil (don't ignore
7999 case), t (do), or `case-fold-search' (do like search).
8001 ** Minibuffer history lists are truncated automatically now to a
8002 certain length.  The variable history-length specifies how long they
8003 can be.  The default value is 30.
8005 ** Changes in Mail mode.
8007 *** The key C-x m no longer runs the `mail' command directly.
8008 Instead, it runs the command `compose-mail', which invokes the mail
8009 composition mechanism you have selected with the variable
8010 `mail-user-agent'.  The default choice of user agent is
8011 `sendmail-user-agent', which gives behavior compatible with the old
8012 behavior.
8014 C-x 4 m now runs compose-mail-other-window, and C-x 5 m runs
8015 compose-mail-other-frame.
8017 *** While composing a reply to a mail message, from Rmail, you can use
8018 the command C-c C-r to cite just the region from the message you are
8019 replying to.  This copies the text which is the selected region in the
8020 buffer that shows the original message.
8022 *** The command C-c C-i inserts a file at the end of the message,
8023 with separator lines around the contents.
8025 *** The command M-x expand-mail-aliases expands all mail aliases
8026 in suitable mail headers.  Emacs automatically extracts mail alias
8027 definitions from your mail alias file (e.g., ~/.mailrc).  You do not
8028 need to expand mail aliases yourself before sending mail.
8030 *** New features in the mail-complete command.
8032 **** The mail-complete command now inserts the user's full name,
8033 for local users or if that is known.  The variable mail-complete-style
8034 controls the style to use, and whether to do this at all.
8035 Its values are like those of mail-from-style.
8037 **** The variable mail-passwd-command lets you specify a shell command
8038 to run to fetch a set of password-entries that add to the ones in
8039 /etc/passwd.
8041 **** The variable mail-passwd-file now specifies a list of files to read
8042 to get the list of user ids.  By default, one file is used:
8043 /etc/passwd.
8045 ** You can "quote" a file name to inhibit special significance of
8046 special syntax, by adding `/:' to the beginning.  Thus, if you have a
8047 directory named `/foo:', you can prevent it from being treated as a
8048 reference to a remote host named `foo' by writing it as `/:/foo:'.
8050 Emacs uses this new construct automatically when necessary, such as
8051 when you start it with a working directory whose name might otherwise
8052 be taken to be magic.
8054 ** There is a new command M-x grep-find which uses find to select
8055 files to search through, and grep to scan them.  The output is
8056 available in a Compile mode buffer, as with M-x grep.
8058 M-x grep now uses the -e option if the grep program supports that.
8059 (-e prevents problems if the search pattern starts with a dash.)
8061 ** In Dired, the & command now flags for deletion the files whose names
8062 suggest they are probably not needed in the long run.
8064 In Dired, * is now a prefix key for mark-related commands.
8066 new key         dired.el binding                old key
8067 -------         ----------------                -------
8068   * c           dired-change-marks              c
8069   * m           dired-mark                      m
8070   * *           dired-mark-executables          *  (binding deleted)
8071   * /           dired-mark-directories          /  (binding deleted)
8072   * @           dired-mark-symlinks             @  (binding deleted)
8073   * u           dired-unmark                    u
8074   * DEL         dired-unmark-backward           DEL
8075   * ?           dired-unmark-all-files          C-M-?
8076   * !           dired-unmark-all-marks
8077   * %           dired-mark-files-regexp         % m
8078   * C-n         dired-next-marked-file          M-}
8079   * C-p         dired-prev-marked-file          M-{
8081 ** Rmail changes.
8083 *** When Rmail cannot convert your incoming mail into Babyl format, it
8084 saves the new mail in the file RMAILOSE.n, where n is an integer
8085 chosen to make a unique name.  This way, Rmail will not keep crashing
8086 each time you run it.
8088 *** In Rmail, the variable rmail-summary-line-count-flag now controls
8089 whether to include the line count in the summary.  Non-nil means yes.
8091 *** In Rmail summary buffers, d and C-d (the commands to delete
8092 messages) now take repeat counts as arguments.  A negative argument
8093 means to move in the opposite direction.
8095 *** In Rmail, the t command now takes an optional argument which lets
8096 you specify whether to show the message headers in full or pruned.
8098 *** In Rmail, the new command w (rmail-output-body-to-file) writes
8099 just the body of the current message into a file, without the headers.
8100 It takes the file name from the message subject, by default, but you
8101 can edit that file name in the minibuffer before it is actually used
8102 for output.
8104 ** Gnus changes.
8106 *** nntp.el has been totally rewritten in an asynchronous fashion.
8108 *** Article prefetching functionality has been moved up into
8109 Gnus.
8111 *** Scoring can now be performed with logical operators like
8112 `and', `or', `not', and parent redirection.
8114 *** Article washing status can be displayed in the
8115 article mode line.
8117 *** gnus.el has been split into many smaller files.
8119 *** Suppression of duplicate articles based on Message-ID.
8121 (setq gnus-suppress-duplicates t)
8123 *** New variables for specifying what score and adapt files
8124 are to be considered home score and adapt files.  See
8125 `gnus-home-score-file' and `gnus-home-adapt-files'.
8127 *** Groups can inherit group parameters from parent topics.
8129 *** Article editing has been revamped and is now usable.
8131 *** Signatures can be recognized in more intelligent fashions.
8132 See `gnus-signature-separator' and `gnus-signature-limit'.
8134 *** Summary pick mode has been made to look more nn-like.
8135 Line numbers are displayed and the `.' command can be
8136 used to pick articles.
8138 *** Commands for moving the .newsrc.eld from one server to
8139 another have been added.
8141     `M-x gnus-change-server'
8143 *** A way to specify that "uninteresting" fields be suppressed when
8144 generating lines in buffers.
8146 *** Several commands in the group buffer can be undone with
8147 `C-M-_'.
8149 *** Scoring can be done on words using the new score type `w'.
8151 *** Adaptive scoring can be done on a Subject word-by-word basis:
8153     (setq gnus-use-adaptive-scoring '(word))
8155 *** Scores can be decayed.
8157     (setq gnus-decay-scores t)
8159 *** Scoring can be performed using a regexp on the Date header.  The
8160 Date is normalized to compact ISO 8601 format first.
8162 *** A new command has been added to remove all data on articles from
8163 the native server.
8165    `M-x gnus-group-clear-data-on-native-groups'
8167 *** A new command for reading collections of documents
8168 (nndoc with nnvirtual on top) has been added -- `C-M-d'.
8170 *** Process mark sets can be pushed and popped.
8172 *** A new mail-to-news backend makes it possible to post
8173 even when the NNTP server doesn't allow posting.
8175 *** A new backend for reading searches from Web search engines
8176 (DejaNews, Alta Vista, InReference) has been added.
8178     Use the `G w' command in the group buffer to create such
8179     a group.
8181 *** Groups inside topics can now be sorted using the standard
8182 sorting functions, and each topic can be sorted independently.
8184     See the commands under the `T S' submap.
8186 *** Subsets of the groups can be sorted independently.
8188     See the commands under the `G P' submap.
8190 *** Cached articles can be pulled into the groups.
8192     Use the `Y c' command.
8194 *** Score files are now applied in a more reliable order.
8196 *** Reports on where mail messages end up can be generated.
8198     `M-x nnmail-split-history'
8200 *** More hooks and functions have been added to remove junk
8201 from incoming mail before saving the mail.
8203     See `nnmail-prepare-incoming-header-hook'.
8205 *** The nnml mail backend now understands compressed article files.
8207 *** To enable Gnus to read/post multi-lingual articles, you must execute
8208 the following code, for instance, in your .emacs.
8210         (add-hook 'gnus-startup-hook 'gnus-mule-initialize)
8212 Then, when you start Gnus, it will decode non-ASCII text automatically
8213 and show appropriate characters.  (Note: if you are using gnus-mime
8214 from the SEMI package, formerly known as TM, you should NOT add this
8215 hook to gnus-startup-hook; gnus-mime has its own method of handling
8216 this issue.)
8218 Since it is impossible to distinguish all coding systems
8219 automatically, you may need to specify a choice of coding system for a
8220 particular news group.  This can be done by:
8222         (gnus-mule-add-group NEWSGROUP 'CODING-SYSTEM)
8224 Here NEWSGROUP should be a string which names a newsgroup or a tree
8225 of newsgroups.  If NEWSGROUP is "XXX.YYY", all news groups under
8226 "XXX.YYY" (including "XXX.YYY.ZZZ") will use the specified coding
8227 system.  CODING-SYSTEM specifies which coding system to use (for both
8228 for reading and posting).
8230 CODING-SYSTEM can also be a cons cell of the form
8231   (READ-CODING-SYSTEM . POST-CODING-SYSTEM)
8232 Then READ-CODING-SYSTEM is used when you read messages from the
8233 newsgroups, while POST-CODING-SYSTEM is used when you post messages
8234 there.
8236 Emacs knows the right coding systems for certain newsgroups by
8237 default.  Here are some of these default settings:
8239         (gnus-mule-add-group "fj" 'iso-2022-7)
8240         (gnus-mule-add-group "alt.chinese.text" 'hz-gb-2312)
8241         (gnus-mule-add-group "alt.hk" 'hz-gb-2312)
8242         (gnus-mule-add-group "alt.chinese.text.big5" 'cn-big5)
8243         (gnus-mule-add-group "soc.culture.vietnamese" '(nil . viqr))
8245 When you reply by mail to an article, these settings are ignored;
8246 the mail is encoded according to sendmail-coding-system, as usual.
8248 ** CC mode changes.
8250 *** If you edit primarily one style of C (or C++, Objective-C, Java)
8251 code, you may want to make the CC Mode style variables have global
8252 values so that you can set them directly in your .emacs file.  To do
8253 this, set c-style-variables-are-local-p to nil in your .emacs file.
8254 Note that this only takes effect if you do it *before* cc-mode.el is
8255 loaded.
8257 If you typically edit more than one style of C (or C++, Objective-C,
8258 Java) code in a single Emacs session, you may want to make the CC Mode
8259 style variables have buffer local values.  By default, all buffers
8260 share the same style variable settings; to make them buffer local, set
8261 c-style-variables-are-local-p to t in your .emacs file.  Note that you
8262 must do this *before* CC Mode is loaded.
8264 *** The new variable c-indentation-style holds the C style name
8265 of the current buffer.
8267 *** The variable c-block-comments-indent-p has been deleted, because
8268 it is no longer necessary.  C mode now handles all the supported styles
8269 of block comments, with no need to say which one you will use.
8271 *** There is a new indentation style "python", which specifies the C
8272 style that the Python developers like.
8274 *** There is a new c-cleanup-list option: brace-elseif-brace.
8275 This says to put ...} else if (...) {... on one line,
8276 just as brace-else-brace says to put ...} else {... on one line.
8278 ** VC Changes [new]
8280 *** In vc-retrieve-snapshot (C-x v r), if you don't specify a snapshot
8281 name, it retrieves the *latest* versions of all files in the current
8282 directory and its subdirectories (aside from files already locked).
8284 This feature is useful if your RCS directory is a link to a common
8285 master directory, and you want to pick up changes made by other
8286 developers.
8288 You can do the same thing for an individual file by typing C-u C-x C-q
8289 RET in a buffer visiting that file.
8291 *** VC can now handle files under CVS that are being "watched" by
8292 other developers.  Such files are made read-only by CVS.  To get a
8293 writable copy, type C-x C-q in a buffer visiting such a file.  VC then
8294 calls "cvs edit", which notifies the other developers of it.
8296 *** vc-version-diff (C-u C-x v =) now suggests reasonable defaults for
8297 version numbers, based on the current state of the file.
8299 ** Calendar changes.
8301 *** A new function, list-holidays, allows you list holidays or
8302 subclasses of holidays for ranges of years.  Related menu items allow
8303 you do this for the year of the selected date, or the
8304 following/previous years.
8306 *** There is now support for the Baha'i calendar system.  Use `pb' in
8307 the *Calendar* buffer to display the current Baha'i date.  The Baha'i
8308 calendar, or "Badi calendar" is a system of 19 months with 19 days
8309 each, and 4 intercalary days (5 during a Gregorian leap year).  The
8310 calendar begins May 23, 1844, with each of the months named after a
8311 supposed attribute of God.
8313 ** ps-print changes
8315 There are some new user variables and subgroups for customizing the page
8316 layout.
8318 *** Headers & Footers (subgroup)
8320 Some printer systems print a header page and force the first page to
8321 be printed on the back of the header page when using duplex.  If your
8322 printer system has this behavior, set variable
8323 `ps-banner-page-when-duplexing' to t.
8325 If variable `ps-banner-page-when-duplexing' is non-nil, it prints a
8326 blank page as the very first printed page.  So, it behaves as if the
8327 very first character of buffer (or region) were a form feed ^L (\014).
8329 The variable `ps-spool-config' specifies who is responsible for
8330 setting duplex mode and page size.  Valid values are:
8332  lpr-switches    duplex and page size are configured by `ps-lpr-switches'.
8333                  Don't forget to set `ps-lpr-switches' to select duplex
8334                  printing for your printer.
8336  setpagedevice   duplex and page size are configured by ps-print using the
8337                  setpagedevice PostScript operator.
8339  nil             duplex and page size are configured by ps-print *not* using
8340                  the setpagedevice PostScript operator.
8342 The variable `ps-spool-tumble' specifies how the page images on
8343 opposite sides of a sheet are oriented with respect to each other.  If
8344 `ps-spool-tumble' is nil, ps-print produces output suitable for
8345 bindings on the left or right.  If `ps-spool-tumble' is non-nil,
8346 ps-print produces output suitable for bindings at the top or bottom.
8347 This variable takes effect only if `ps-spool-duplex' is non-nil.
8348 The default value is nil.
8350 The variable `ps-header-frame-alist' specifies a header frame
8351 properties alist.  Valid frame properties are:
8353   fore-color    Specify the foreground frame color.
8354                 Value should be a float number between 0.0 (black
8355                 color) and 1.0 (white color), or a string which is a
8356                 color name, or a list of 3 float numbers which
8357                 correspond to the Red Green Blue color scale, each
8358                 float number between 0.0 (dark color) and 1.0 (bright
8359                 color).  The default is 0 ("black").
8361   back-color    Specify the background frame color (similar to fore-color).
8362                 The default is 0.9 ("gray90").
8364   shadow-color  Specify the shadow color (similar to fore-color).
8365                 The default is 0 ("black").
8367   border-color  Specify the border color (similar to fore-color).
8368                 The default is 0 ("black").
8370   border-width  Specify the border width.
8371                 The default is 0.4.
8373 Any other property is ignored.
8375 Don't change this alist directly; instead use Custom, or the
8376 `ps-value', `ps-get', `ps-put' and `ps-del' functions (see there for
8377 documentation).
8379 Ps-print can also print footers.  The footer variables are:
8380 `ps-print-footer', `ps-footer-offset', `ps-print-footer-frame',
8381 `ps-footer-font-family', `ps-footer-font-size', `ps-footer-line-pad',
8382 `ps-footer-lines', `ps-left-footer', `ps-right-footer' and
8383 `ps-footer-frame-alist'.  These variables are similar to those
8384 controlling headers.
8386 *** Color management (subgroup)
8388 If `ps-print-color-p' is non-nil, the buffer's text will be printed in
8389 color.
8391 *** Face Management (subgroup)
8393 If you need to print without worrying about face background colors,
8394 set the variable `ps-use-face-background' which specifies if face
8395 background should be used.  Valid values are:
8397  t              always use face background color.
8398  nil            never use face background color.
8399  (face...)      list of faces whose background color will be used.
8401 *** N-up printing (subgroup)
8403 The variable `ps-n-up-printing' specifies the number of pages per
8404 sheet of paper.
8406 The variable `ps-n-up-margin' specifies the margin in points (pt)
8407 between the sheet border and the n-up printing.
8409 If variable `ps-n-up-border-p' is non-nil, a border is drawn around
8410 each page.
8412 The variable `ps-n-up-filling' specifies how the page matrix is filled
8413 on each sheet of paper.  Following are the valid values for
8414 `ps-n-up-filling' with a filling example using a 3x4 page matrix:
8416    `left-top'   1  2  3  4         `left-bottom'    9  10 11 12
8417                 5  6  7  8                          5  6  7  8
8418                 9  10 11 12                         1  2  3  4
8420    `right-top'  4  3  2  1         `right-bottom'   12 11 10 9
8421                 8  7  6  5                          8  7  6  5
8422                 12 11 10 9                          4  3  2  1
8424    `top-left'   1  4  7  10        `bottom-left'    3  6  9  12
8425                 2  5  8  11                         2  5  8  11
8426                 3  6  9  12                         1  4  7  10
8428    `top-right'  10 7  4  1         `bottom-right'   12 9  6  3
8429                 11 8  5  2                          11 8  5  2
8430                 12 9  6  3                          10 7  4  1
8432 Any other value is treated as `left-top'.
8434 *** Zebra stripes (subgroup)
8436 The variable `ps-zebra-color' controls the zebra stripes grayscale or
8437 RGB color.
8439 The variable `ps-zebra-stripe-follow' specifies how zebra stripes
8440 continue on next page.  Visually, valid values are (the character `+'
8441 to the right of each column indicates that a line is printed):
8443                    `nil'        `follow'        `full'        `full-follow'
8444    Current Page --------     -----------     ---------     ----------------
8445                 1  XXXXX +   1  XXXXXXXX +   1  XXXXXX +   1  XXXXXXXXXXXXX +
8446                 2  XXXXX +   2  XXXXXXXX +   2  XXXXXX +   2  XXXXXXXXXXXXX +
8447                 3  XXXXX +   3  XXXXXXXX +   3  XXXXXX +   3  XXXXXXXXXXXXX +
8448                 4        +   4           +   4         +   4                +
8449                 5        +   5           +   5         +   5                +
8450                 6        +   6           +   6         +   6                +
8451                 7  XXXXX +   7  XXXXXXXX +   7  XXXXXX +   7  XXXXXXXXXXXXX +
8452                 8  XXXXX +   8  XXXXXXXX +   8  XXXXXX +   8  XXXXXXXXXXXXX +
8453                 9  XXXXX +   9  XXXXXXXX +   9  XXXXXX +   9  XXXXXXXXXXXXX +
8454                 10       +   10          +
8455                 11       +   11          +
8456                 --------     -----------     ---------     ----------------
8457       Next Page --------     -----------     ---------     ----------------
8458                 12 XXXXX +   12          +   10 XXXXXX +   10               +
8459                 13 XXXXX +   13 XXXXXXXX +   11 XXXXXX +   11               +
8460                 14 XXXXX +   14 XXXXXXXX +   12 XXXXXX +   12               +
8461                 15       +   15 XXXXXXXX +   13        +   13 XXXXXXXXXXXXX +
8462                 16       +   16          +   14        +   14 XXXXXXXXXXXXX +
8463                 17       +   17          +   15        +   15 XXXXXXXXXXXXX +
8464                 18 XXXXX +   18          +   16 XXXXXX +   16               +
8465                 19 XXXXX +   19 XXXXXXXX +   17 XXXXXX +   17               +
8466                 20 XXXXX +   20 XXXXXXXX +   18 XXXXXX +   18               +
8467                 21       +   21 XXXXXXXX +
8468                 22       +   22          +
8469                 --------     -----------     ---------     ----------------
8471 Any other value is treated as `nil'.
8474 *** Printer management (subgroup)
8476 The variable `ps-printer-name-option' determines the option used by
8477 some utilities to indicate the printer name; it's used only when
8478 `ps-printer-name' is a non-empty string.  If you're using the lpr
8479 utility to print, for example, `ps-printer-name-option' should be set
8480 to "-P".
8482 The variable `ps-manual-feed' indicates if the printer requires manual
8483 paper feeding.  If it's nil, automatic feeding takes place.  If it's
8484 non-nil, manual feeding takes place.
8486 The variable `ps-end-with-control-d' specifies whether C-d (\x04)
8487 should be inserted at end of the generated PostScript.  Non-nil means
8488 do so.
8490 *** Page settings (subgroup)
8492 If variable `ps-warn-paper-type' is nil, it's *not* treated as an
8493 error if the PostScript printer doesn't have a paper with the size
8494 indicated by `ps-paper-type'; the default paper size will be used
8495 instead.  If `ps-warn-paper-type' is non-nil, an error is signaled if
8496 the PostScript printer doesn't support a paper with the size indicated
8497 by `ps-paper-type'.  This is used when `ps-spool-config' is set to
8498 `setpagedevice'.
8500 The variable `ps-print-upside-down' determines the orientation for
8501 printing pages: nil means `normal' printing, non-nil means
8502 `upside-down' printing (that is, the page is rotated by 180 degrees).
8504 The variable `ps-selected-pages' specifies which pages to print.  If
8505 it's nil, all pages are printed.  If it's a list, list elements may be
8506 integers specifying a single page to print, or cons cells (FROM . TO)
8507 specifying to print from page FROM to TO.  Invalid list elements, that
8508 is integers smaller than one, or elements whose FROM is greater than
8509 its TO, are ignored.
8511 The variable `ps-even-or-odd-pages' specifies how to print even/odd
8512 pages.  Valid values are:
8514    nil          print all pages.
8516    `even-page'  print only even pages.
8518    `odd-page'   print only odd pages.
8520    `even-sheet' print only even sheets.
8521                 That is, if `ps-n-up-printing' is 1, it behaves like
8522                 `even-page', but for values greater than 1, it'll
8523                 print only the even sheet of paper.
8525    `odd-sheet'  print only odd sheets.
8526                 That is, if `ps-n-up-printing' is 1, it behaves like
8527                 `odd-page'; but for values greater than 1, it'll print
8528                 only the odd sheet of paper.
8530 Any other value is treated as nil.
8532 If you set `ps-selected-pages' (see there for documentation), pages
8533 are filtered by `ps-selected-pages', and then by
8534 `ps-even-or-odd-pages'.  For example, if we have:
8536    (setq ps-selected-pages '(1 4 (6 . 10) (12 . 16) 20))
8538 and we combine this with `ps-even-or-odd-pages' and
8539 `ps-n-up-printing', we get:
8541 `ps-n-up-printing' = 1:
8542    `ps-even-or-odd-pages'       PAGES PRINTED
8543         nil                     1, 4, 6, 7, 8, 9, 10, 12, 13, 14, 15, 16, 20
8544         even-page               4, 6, 8, 10, 12, 14, 16, 20
8545         odd-page                1, 7, 9, 13, 15
8546         even-sheet              4, 6, 8, 10, 12, 14, 16, 20
8547         odd-sheet               1, 7, 9, 13, 15
8549 `ps-n-up-printing' = 2:
8550    `ps-even-or-odd-pages'       PAGES PRINTED
8551         nil                     1/4, 6/7, 8/9, 10/12, 13/14, 15/16, 20
8552         even-page               4/6, 8/10, 12/14, 16/20
8553         odd-page                1/7, 9/13, 15
8554         even-sheet              6/7, 10/12, 15/16
8555         odd-sheet               1/4, 8/9, 13/14, 20
8557 *** Miscellany (subgroup)
8559 The variable `ps-error-handler-message' specifies where error handler
8560 messages should be sent.
8562 It is also possible to add a user-defined PostScript prologue code in
8563 front of all generated prologue code by setting the variable
8564 `ps-user-defined-prologue'.
8566 The variable `ps-line-number-font' specifies the font for line numbers.
8568 The variable `ps-line-number-font-size' specifies the font size in
8569 points for line numbers.
8571 The variable `ps-line-number-color' specifies the color for line
8572 numbers.  See `ps-zebra-color' for documentation.
8574 The variable `ps-line-number-step' specifies the interval in which
8575 line numbers are printed.  For example, if `ps-line-number-step' is set
8576 to 2, the printing will look like:
8578    1 one line
8579      one line
8580    3 one line
8581      one line
8582    5 one line
8583      one line
8584      ...
8586 Valid values are:
8588 integer         an integer specifying the interval in which line numbers are
8589                 printed.  If it's smaller than or equal to zero, 1
8590                 is used.
8592 `zebra'         specifies that only the line number of the first line in a
8593                 zebra stripe is to be printed.
8595 Any other value is treated as `zebra'.
8597 The variable `ps-line-number-start' specifies the starting point in
8598 the interval given by `ps-line-number-step'.  For example, if
8599 `ps-line-number-step' is set to 3, and `ps-line-number-start' is set to
8600 3, the output will look like:
8602      one line
8603      one line
8604    3 one line
8605      one line
8606      one line
8607    6 one line
8608      one line
8609      one line
8610    9 one line
8611      one line
8612      ...
8614 The variable `ps-postscript-code-directory' specifies the directory
8615 where the PostScript prologue file used by ps-print is found.
8617 The variable `ps-line-spacing' determines the line spacing in points,
8618 for ordinary text, when generating PostScript (similar to
8619 `ps-font-size').
8621 The variable `ps-paragraph-spacing' determines the paragraph spacing,
8622 in points, for ordinary text, when generating PostScript (similar to
8623 `ps-font-size').
8625 The variable `ps-paragraph-regexp' specifies the paragraph delimiter.
8627 The variable `ps-begin-cut-regexp' and `ps-end-cut-regexp' specify the
8628 start and end of a region to cut out when printing.
8630 ** hideshow changes.
8632 *** now supports hiding of blocks of single line comments (like // for
8633 C++, ; for lisp).
8635 *** Support for java-mode added.
8637 *** When doing `hs-hide-all' it is now possible to also hide the comments
8638 in the file if `hs-hide-comments-when-hiding-all' is set.
8640 *** The new function `hs-hide-initial-comment' hides the comments at
8641 the beginning of the files.  Finally those huge RCS logs don't stay in your
8642 way!  This is run by default when entering the `hs-minor-mode'.
8644 *** Now uses overlays instead of `selective-display', so is more
8645 robust and a lot faster.
8647 *** A block beginning can span multiple lines.
8649 *** The new variable `hs-show-hidden-short-form' if t, directs hideshow
8650 to show only the beginning of a block when it is hidden.  See the
8651 documentation for more details.
8653 ** Changes in Enriched mode.
8655 *** When you visit a file in enriched-mode, Emacs will make sure it is
8656 filled to the current fill-column.  This behavior is now independent
8657 of the size of the window.  When you save the file, the fill-column in
8658 use is stored as well, so that the whole buffer need not be refilled
8659 the next time unless the fill-column is different.
8661 *** use-hard-newlines is now a minor mode.  When it is enabled, Emacs
8662 distinguishes between hard and soft newlines, and treats hard newlines
8663 as paragraph boundaries.  Otherwise all newlines inserted are marked
8664 as soft, and paragraph boundaries are determined solely from the text.
8666 ** Font Lock mode
8668 *** Custom support
8670 The variables font-lock-face-attributes, font-lock-display-type and
8671 font-lock-background-mode are now obsolete; the recommended way to specify the
8672 faces to use for Font Lock mode is with M-x customize-group on the new custom
8673 group font-lock-highlighting-faces.  If you set font-lock-face-attributes in
8674 your ~/.emacs file, Font Lock mode will respect its value.  However, you should
8675 consider converting from setting that variable to using M-x customize.
8677 You can still use X resources to specify Font Lock face appearances.
8679 *** Maximum decoration
8681 Fontification now uses the maximum level of decoration supported by
8682 default.  Previously, fontification used a mode-specific default level
8683 of decoration, which is typically the minimum level of decoration
8684 supported.  You can set font-lock-maximum-decoration to nil
8685 to get the old behavior.
8687 *** New support
8689 Support is now provided for Java, Objective-C, AWK and SIMULA modes.
8691 Note that Font Lock mode can be turned on without knowing exactly what modes
8692 support Font Lock mode, via the command global-font-lock-mode.
8694 *** Configurable support
8696 Support for C, C++, Objective-C and Java can be more easily configured for
8697 additional types and classes via the new variables c-font-lock-extra-types,
8698 c++-font-lock-extra-types, objc-font-lock-extra-types and, you guessed it,
8699 java-font-lock-extra-types.  These value of each of these variables should be a
8700 list of regexps matching the extra type names.  For example, the default value
8701 of c-font-lock-extra-types is ("\\sw+_t") which means fontification follows the
8702 convention that C type names end in _t.  This results in slower fontification.
8704 Of course, you can change the variables that specify fontification in whatever
8705 way you wish, typically by adding regexps.  However, these new variables make
8706 it easier to make specific and common changes for the fontification of types.
8708 *** Adding highlighting patterns to existing support
8710 You can use the new function font-lock-add-keywords to add your own
8711 highlighting patterns, such as for project-local or user-specific constructs,
8712 for any mode.
8714 For example, to highlight `FIXME:' words in C comments, put:
8716  (font-lock-add-keywords 'c-mode '(("\\<FIXME:" 0 font-lock-warning-face t)))
8718 in your ~/.emacs.
8720 *** New faces
8722 Font Lock now defines two new faces, font-lock-builtin-face and
8723 font-lock-warning-face.  These are intended to highlight builtin keywords,
8724 distinct from a language's normal keywords, and objects that should be brought
8725 to user attention, respectively.  Various modes now use these new faces.
8727 *** Changes to fast-lock support mode
8729 The fast-lock package, one of the two Font Lock support modes, can now process
8730 cache files silently.  You can use the new variable fast-lock-verbose, in the
8731 same way as font-lock-verbose, to control this feature.
8733 *** Changes to lazy-lock support mode
8735 The lazy-lock package, one of the two Font Lock support modes, can now fontify
8736 according to the true syntactic context relative to other lines.  You can use
8737 the new variable lazy-lock-defer-contextually to control this feature.  If
8738 non-nil, changes to the buffer will cause subsequent lines in the buffer to be
8739 refontified after lazy-lock-defer-time seconds of idle time.  If nil, then only
8740 the modified lines will be refontified; this is the same as the previous Lazy
8741 Lock mode behaviour and the behaviour of Font Lock mode.
8743 This feature is useful in modes where strings or comments can span lines.
8744 For example, if a string or comment terminating character is deleted, then if
8745 this feature is enabled subsequent lines in the buffer will be correctly
8746 refontified to reflect their new syntactic context.  Previously, only the line
8747 containing the deleted character would be refontified and you would have to use
8748 the command M-g M-g (font-lock-fontify-block) to refontify some lines.
8750 As a consequence of this new feature, two other variables have changed:
8752 Variable `lazy-lock-defer-driven' is renamed `lazy-lock-defer-on-scrolling'.
8753 Variable `lazy-lock-defer-time' can now only be a time, i.e., a number.
8754 Buffer modes for which on-the-fly deferral applies can be specified via the
8755 new variable `lazy-lock-defer-on-the-fly'.
8757 If you set these variables in your ~/.emacs, then you may have to change those
8758 settings.
8760 ** Ada mode changes.
8762 *** There is now better support for using find-file.el with Ada mode.
8763 If you switch between spec and body, the cursor stays in the same
8764 procedure (modulo overloading).  If a spec has no body file yet, but
8765 you try to switch to its body file, Ada mode now generates procedure
8766 stubs.
8768 *** There are two new commands:
8769  - `ada-make-local'   : invokes gnatmake on the current buffer
8770  - `ada-check-syntax' : check syntax of current buffer.
8772 The user options `ada-compiler-make', `ada-make-options',
8773 `ada-language-version', `ada-compiler-syntax-check', and
8774 `ada-compile-options' are used within these commands.
8776 *** Ada mode can now work with Outline minor mode.  The outline level
8777 is calculated from the indenting, not from syntactic constructs.
8778 Outlining does not work if your code is not correctly indented.
8780 *** The new function `ada-gnat-style' converts the buffer to the style of
8781 formatting used in GNAT.  It places two blanks after a comment start,
8782 places one blank between a word end and an opening '(', and puts one
8783 space between a comma and the beginning of a word.
8785 ** Scheme mode changes.
8787 *** Scheme mode indentation now uses many of the facilities of Lisp
8788 mode; therefore, the variables to customize it are the variables used
8789 for Lisp mode which have names starting with `lisp-'.  The variables
8790 with names starting with `scheme-' which used to do this no longer
8791 have any effect.
8793 If you want to use different indentation for Scheme and Lisp, this is
8794 still possible, but now you must do it by adding a hook to
8795 scheme-mode-hook, which could work by setting the `lisp-' indentation
8796 variables as buffer-local variables.
8798 *** DSSSL mode is a variant of Scheme mode, for editing DSSSL scripts.
8799 Use M-x dsssl-mode.
8801 ** Changes to the emacsclient program
8803 *** If a socket can't be found, and environment variables LOGNAME or
8804 USER are set, emacsclient now looks for a socket based on the UID
8805 associated with the name.  That is an emacsclient running as root
8806 can connect to an Emacs server started by a non-root user.
8808 *** The emacsclient program now accepts an option --no-wait which tells
8809 it to return immediately without waiting for you to "finish" the
8810 buffer in Emacs.
8812 *** The new option --alternate-editor allows to specify an editor to
8813 use if Emacs is not running.  The environment variable
8814 ALTERNATE_EDITOR can be used for the same effect; the command line
8815 option takes precedence.
8817 ** M-x eldoc-mode enables a minor mode in which the echo area
8818 constantly shows the parameter list for function being called at point
8819 (in Emacs Lisp and Lisp Interaction modes only).
8821 ** C-x n d now runs the new command narrow-to-defun,
8822 which narrows the accessible parts of the buffer to just
8823 the current defun.
8825 ** Emacs now handles the `--' argument in the standard way; all
8826 following arguments are treated as ordinary file names.
8828 ** On MSDOS and Windows, the bookmark file is now called _emacs.bmk,
8829 and the saved desktop file is now called _emacs.desktop (truncated if
8830 necessary).
8832 ** When you kill a buffer that visits a file,
8833 if there are any registers that save positions in the file,
8834 these register values no longer become completely useless.
8835 If you try to go to such a register with C-x j, then you are
8836 asked whether to visit the file again.  If you say yes,
8837 it visits the file and then goes to the same position.
8839 ** When you visit a file that changes frequently outside Emacs--for
8840 example, a log of output from a process that continues to run--it may
8841 be useful for Emacs to revert the file without querying you whenever
8842 you visit the file afresh with C-x C-f.
8844 You can request this behavior for certain files by setting the
8845 variable revert-without-query to a list of regular expressions.  If a
8846 file's name matches any of these regular expressions, find-file and
8847 revert-buffer revert the buffer without asking for permission--but
8848 only if you have not edited the buffer text yourself.
8850 ** set-default-font has been renamed to set-frame-font
8851 since it applies only to the current frame.
8853 ** In TeX mode, you can use the variable tex-main-file to specify the
8854 file for tex-file to run TeX on.  (By default, tex-main-file is nil,
8855 and tex-file runs TeX on the current visited file.)
8857 This is useful when you are editing a document that consists of
8858 multiple files.  In each of the included files, you can set up a local
8859 variable list which specifies the top-level file of your document for
8860 tex-main-file.  Then tex-file will run TeX on the whole document
8861 instead of just the file you are editing.
8863 ** RefTeX mode
8865 RefTeX mode is a new minor mode with special support for \label, \ref
8866 and \cite macros in LaTeX documents.  RefTeX distinguishes labels of
8867 different environments (equation, figure, ...) and has full support for
8868 multifile documents.  To use it, select a buffer with a LaTeX document and
8869 turn the mode on with M-x reftex-mode.  Here are the main user commands:
8871 C-c (    reftex-label
8872    Creates a label semi-automatically.  RefTeX is context sensitive and
8873    knows which kind of label is needed.
8875 C-c )    reftex-reference
8876    Offers in a menu all labels in the document, along with context of the
8877    label definition.  The selected label is referenced as \ref{LABEL}.
8879 C-c [    reftex-citation
8880    Prompts for a regular expression and displays a list of matching BibTeX
8881    database entries.  The selected entry is cited with a \cite{KEY} macro.
8883 C-c &    reftex-view-crossref
8884    Views the cross reference of a \ref or \cite command near point.
8886 C-c =    reftex-toc
8887    Shows a table of contents of the (multifile) document.  From there you
8888    can quickly jump to every section.
8890 Under X, RefTeX installs a "Ref" menu in the menu bar, with additional
8891 commands.  Press `?' to get help when a prompt mentions this feature.
8892 Full documentation and customization examples are in the file
8893 reftex.el.  You can use the finder to view the file documentation:
8894 C-h p --> tex --> reftex.el
8896 ** Changes in BibTeX mode.
8898 *** Info documentation is now available.
8900 *** Don't allow parentheses in string constants anymore.  This confused
8901 both the BibTeX program and Emacs BibTeX mode.
8903 *** Renamed variable bibtex-mode-user-optional-fields to
8904 bibtex-user-optional-fields.
8906 *** Removed variable bibtex-include-OPTannote
8907 (use bibtex-user-optional-fields instead).
8909 *** New interactive functions to copy and kill fields and complete
8910 entries to the BibTeX kill ring, from where they can be yanked back by
8911 appropriate functions.
8913 *** New interactive functions for repositioning and marking of
8914 entries. They are bound by default to C-M-l and C-M-h.
8916 *** New hook bibtex-clean-entry-hook. It is called after entry has
8917 been cleaned.
8919 *** New variable bibtex-field-delimiters, which replaces variables
8920 bibtex-field-{left|right}-delimiter.
8922 *** New variable bibtex-entry-delimiters to determine how entries
8923 shall be delimited.
8925 *** Allow preinitialization of fields. See documentation of
8926 bibtex-user-optional-fields, bibtex-entry-field-alist, and
8927 bibtex-include-OPTkey for details.
8929 *** Book and InBook entries require either an author or an editor
8930 field. This is now supported by bibtex.el. Alternative fields are
8931 prefixed with `ALT'.
8933 *** New variable bibtex-entry-format, which replaces variable
8934 bibtex-clean-entry-zap-empty-opts and allows specification of many
8935 formatting options performed on cleaning an entry (see variable
8936 documentation).
8938 *** Even more control on how automatic keys are generated. See
8939 documentation of bibtex-generate-autokey for details. Transcriptions
8940 for foreign languages other than German are now handled, too.
8942 *** New boolean user option bibtex-comma-after-last-field to decide if
8943 comma should be inserted at end of last field.
8945 *** New boolean user option bibtex-align-at-equal-sign to determine if
8946 alignment should be made at left side of field contents or at equal
8947 signs. New user options to control entry layout (e.g. indentation).
8949 *** New function bibtex-fill-entry to realign entries.
8951 *** New function bibtex-reformat to reformat region or buffer.
8953 *** New function bibtex-convert-alien to convert a BibTeX database
8954 from alien sources.
8956 *** New function bibtex-complete-key (similar to bibtex-complete-string)
8957 to complete prefix to a key defined in buffer. Mainly useful in
8958 crossref entries.
8960 *** New function bibtex-count-entries to count entries in buffer or
8961 region.
8963 *** Added support for imenu.
8965 *** The function `bibtex-validate' now checks current region instead
8966 of buffer if mark is active. Now it shows all errors of buffer in a
8967 `compilation mode' buffer. You can use the normal commands (e.g.
8968 `next-error') for compilation modes to jump to errors.
8970 *** New variable `bibtex-string-file-path' to determine where the files
8971 from `bibtex-string-files' are searched.
8973 ** Iso Accents mode now supports Latin-3 as an alternative.
8975 ** The command next-error now opens blocks hidden by hideshow.
8977 ** The function using-unix-filesystems has been replaced by the
8978 functions add-untranslated-filesystem and remove-untranslated-filesystem.
8979 Each of these functions takes the name of a drive letter or directory
8980 as an argument.
8982 When a filesystem is added as untranslated, all files on it are read
8983 and written in binary mode (no cr/lf translation is performed).
8985 ** browse-url changes
8987 *** New methods for: Grail (browse-url-generic), MMM (browse-url-mmm),
8988 Lynx in a separate xterm (browse-url-lynx-xterm) or in an Emacs window
8989 (browse-url-lynx-emacs), remote W3 (browse-url-w3-gnudoit), generic
8990 non-remote-controlled browsers (browse-url-generic) and associated
8991 customization variables.
8993 *** New commands `browse-url-of-region' and `browse-url'.
8995 *** URLs marked up with <URL:...> (RFC1738) work if broken across
8996 lines.  Browsing methods can be associated with URL regexps
8997 (e.g. mailto: URLs) via `browse-url-browser-function'.
8999 ** Changes in Ediff
9001 *** Clicking Mouse-2 on a brief command description in Ediff control panel
9002 pops up the Info file for this command.
9004 *** There is now a variable, ediff-autostore-merges, which controls whether
9005 the result of a merge is saved in a file. By default, this is done only when
9006 merge is done from a session group (eg, when merging files in two different
9007 directories).
9009 *** Since Emacs 19.31 (this hasn't been announced before), Ediff can compare
9010 and merge groups of files residing in different directories, or revisions of
9011 files in the same directory.
9013 *** Since Emacs 19.31, Ediff can apply multi-file patches interactively.
9014 The patches must be in the context format or GNU unified format.  (The bug
9015 related to the GNU format has now been fixed.)
9017 ** Changes in Viper
9019 *** The startup file is now .viper instead of .vip
9020 *** All variable/function names have been changed to start with viper-
9021     instead of vip-.
9022 *** C-\ now simulates the meta-key in all Viper states.
9023 *** C-z in Insert state now escapes to Vi for the duration of the next
9024 Viper command. In Vi and Insert states, C-z behaves as before.
9025 *** C-c \ escapes to Vi for one command if Viper is in Insert or Emacs states.
9026 *** _ is no longer the meta-key in Vi state.
9027 *** The variable viper-insert-state-cursor-color can be used to change cursor
9028 color when Viper is in insert state.
9029 *** If search lands the cursor near the top or the bottom of the window,
9030 Viper pulls the window up or down to expose more context. The variable
9031 viper-adjust-window-after-search controls this behavior.
9033 ** Etags changes.
9035 *** In C, C++, Objective C and Java, Etags tags global variables by
9036 default.  The resulting tags files are inflated by 30% on average.
9037 Use --no-globals to turn this feature off.  Etags can also tag
9038 variables which are members of structure-like constructs, but it does
9039 not by default.  Use --members to turn this feature on.
9041 *** C++ member functions are now recognized as tags.
9043 *** Java is tagged like C++.  In addition, "extends" and "implements"
9044 constructs are tagged.  Files are recognised by the extension .java.
9046 *** Etags can now handle programs written in Postscript.  Files are
9047 recognised by the extensions .ps and .pdb (Postscript with C syntax).
9048 In Postscript, tags are lines that start with a slash.
9050 *** Etags now handles Objective C and Objective C++ code.  The usual C and
9051 C++ tags are recognized in these languages; in addition, etags
9052 recognizes special Objective C syntax for classes, class categories,
9053 methods and protocols.
9055 *** Etags also handles Cobol.  Files are recognised by the extension
9056 .cobol.  The tagged lines are those containing a word that begins in
9057 column 8 and ends in a full stop, i.e. anything that could be a
9058 paragraph name.
9060 *** Regexps in Etags now support intervals, as in ed or grep.  The syntax of
9061 an interval is \{M,N\}, and it means to match the preceding expression
9062 at least M times and as many as N times.
9064 ** The format for specifying a custom format for time-stamp to insert
9065 in files has changed slightly.
9067 With the new enhancements to the functionality of format-time-string,
9068 time-stamp-format will change to be eventually compatible with it.
9069 This conversion is being done in two steps to maintain compatibility
9070 with old time-stamp-format values.
9072 In the new scheme, alternate case is signified by the number-sign
9073 (`#') modifier, rather than changing the case of the format character.
9074 This feature is as yet incompletely implemented for compatibility
9075 reasons.
9077 In the old time-stamp-format, all numeric fields defaulted to their
9078 natural width.  (With format-time-string, each format has a
9079 fixed-width default.)  In this version, you can specify the colon
9080 (`:') modifier to a numeric conversion to mean "give me the historical
9081 time-stamp-format width default."  Do not use colon if you are
9082 specifying an explicit width, as in "%02d".
9084 Numbers are no longer truncated to the requested width, except in the
9085 case of "%02y", which continues to give a two-digit year.  Digit
9086 truncation probably wasn't being used for anything else anyway.
9088 The new formats will work with old versions of Emacs.  New formats are
9089 being recommended now to allow time-stamp-format to change in the
9090 future to be compatible with format-time-string.  The new forms being
9091 recommended now will continue to work then.
9093 See the documentation string for the variable time-stamp-format for
9094 details.
9096 ** There are some additional major modes:
9098 dcl-mode, for editing VMS DCL files.
9099 m4-mode, for editing files of m4 input.
9100 meta-mode, for editing MetaFont and MetaPost source files.
9102 ** In Shell mode, the command shell-copy-environment-variable lets you
9103 copy the value of a specified environment variable from the subshell
9104 into Emacs.
9106 ** New Lisp packages include:
9108 *** battery.el displays battery status for laptops.
9110 *** M-x bruce (named after Lenny Bruce) is a program that might
9111 be used for adding some indecent words to your email.
9113 *** M-x crisp-mode enables an emulation for the CRiSP editor.
9115 *** M-x dirtrack arranges for better tracking of directory changes
9116 in shell buffers.
9118 *** The new library elint.el provides for linting of Emacs Lisp code.
9119 See the documentation for `elint-initialize', `elint-current-buffer'
9120 and `elint-defun'.
9122 *** M-x expand-add-abbrevs defines a special kind of abbrev which is
9123 meant for programming constructs.  These abbrevs expand like ordinary
9124 ones, when you type SPC, but only at the end of a line and not within
9125 strings or comments.
9127 These abbrevs can act as templates: you can define places within an
9128 abbrev for insertion of additional text.  Once you expand the abbrev,
9129 you can then use C-x a p and C-x a n to move back and forth to these
9130 insertion points.  Thus you can conveniently insert additional text
9131 at these points.
9133 *** filecache.el remembers the location of files so that you
9134 can visit them by short forms of their names.
9136 *** find-func.el lets you find the definition of the user-loaded
9137 Emacs Lisp function at point.
9139 *** M-x handwrite converts text to a "handwritten" picture.
9141 *** M-x iswitchb-buffer is a command for switching to a buffer, much like
9142 switch-buffer, but it reads the argument in a more helpful way.
9144 *** M-x landmark implements a neural network for landmark learning.
9146 *** M-x locate provides a convenient interface to the `locate' program.
9148 *** M4 mode is a new mode for editing files of m4 input.
9150 *** mantemp.el creates C++ manual template instantiations
9151 from the GCC error messages which indicate which instantiations are needed.
9153 *** mouse-copy.el provides a one-click copy and move feature.
9154 You can drag a region with M-mouse-1, and it is automatically
9155 inserted at point.  M-Shift-mouse-1 deletes the text from its
9156 original place after inserting the copy.
9158 *** mouse-drag.el lets you do scrolling by dragging Mouse-2
9159 on the buffer.
9161 You click the mouse and move; that distance either translates into the
9162 velocity to scroll (with mouse-drag-throw) or the distance to scroll
9163 (with mouse-drag-drag).  Horizontal scrolling is enabled when needed.
9165 Enable mouse-drag with:
9166     (global-set-key [down-mouse-2] 'mouse-drag-throw)
9167 -or-
9168     (global-set-key [down-mouse-2] 'mouse-drag-drag)
9170 *** mspools.el is useful for determining which mail folders have
9171 mail waiting to be read in them.  It works with procmail.
9173 *** Octave mode is a major mode for editing files of input for Octave.
9174 It comes with a facility for communicating with an Octave subprocess.
9176 *** ogonek
9178 The ogonek package provides functions for changing the coding of
9179 Polish diacritic characters in buffers.  Codings known from various
9180 platforms are supported such as ISO8859-2, Mazovia, IBM Latin2, and
9181 TeX.  For example, you can change the coding from Mazovia to
9182 ISO8859-2.  Another example is a change of coding from ISO8859-2 to
9183 prefix notation (in which `/a' stands for the aogonek character, for
9184 instance) and vice versa.
9186 To use this package load it using
9187     M-x load-library [enter] ogonek
9188 Then, you may get an explanation by calling one of
9189     M-x ogonek-jak        -- in Polish
9190     M-x ogonek-how        -- in English
9191 The info specifies the commands and variables provided as well as the
9192 ways of customization in `.emacs'.
9194 *** Interface to ph.
9196 Emacs provides a client interface to CCSO Nameservers (ph/qi)
9198 The CCSO nameserver is used in many universities to provide directory
9199 services about people.  ph.el provides a convenient Emacs interface to
9200 these servers.
9202 *** uce.el is useful for replying to unsolicited commercial email.
9204 *** vcursor.el implements a "virtual cursor" feature.
9205 You can move the virtual cursor with special commands
9206 while the real cursor does not move.
9208 *** webjump.el is a "hot list" package which you can set up
9209 for visiting your favorite web sites.
9211 *** M-x winner-mode is a minor mode which saves window configurations,
9212 so you can move back to other configurations that you have recently used.
9214 ** movemail change
9216 Movemail no longer needs to be installed setuid root in order for POP
9217 mail retrieval to function properly.  This is because it no longer
9218 supports the RPOP (reserved-port POP) protocol; instead, it uses the
9219 user's POP password to authenticate to the mail server.
9221 This change was made earlier, but not reported in NEWS before.
9223 * Emacs 20.1 changes for MS-DOS and MS-Windows.
9225 ** Changes in handling MS-DOS/MS-Windows text files.
9227 Emacs handles three different conventions for representing
9228 end-of-line: CRLF for MSDOS, LF for Unix and GNU, and CR (used on the
9229 Macintosh).  Emacs determines which convention is used in a specific
9230 file based on the contents of that file (except for certain special
9231 file names), and when it saves the file, it uses the same convention.
9233 To save the file and change the end-of-line convention, you can use
9234 C-x RET f (set-buffer-file-coding-system) to specify a different
9235 coding system for the buffer.  Then, when you save the file, the newly
9236 specified coding system will take effect.  For example, to save with
9237 LF, specify undecided-unix (or some other ...-unix coding system); to
9238 save with CRLF, specify undecided-dos.
9240 * Lisp Changes in Emacs 20.1
9242 ** Byte-compiled files made with Emacs 20 will, in general, work in
9243 Emacs 19 as well, as long as the source code runs in Emacs 19.  And
9244 vice versa: byte-compiled files made with Emacs 19 should also run in
9245 Emacs 20, as long as the program itself works in Emacs 20.
9247 ** Windows-specific functions and variables have been renamed
9248 to start with w32- instead of win32-.
9250 In hacker language, calling something a "win" is a form of praise.  We
9251 don't want to praise a non-free Microsoft system, so we don't call it
9252 "win".
9254 ** Basic Lisp changes
9256 *** A symbol whose name starts with a colon now automatically
9257 evaluates to itself.  Therefore such a symbol can be used as a constant.
9259 *** The defined purpose of `defconst' has been changed.  It should now
9260 be used only for values that should not be changed whether by a program
9261 or by the user.
9263 The actual behavior of defconst has not been changed.
9265 *** There are new macros `when' and `unless'
9267 (when CONDITION BODY...)  is short for  (if CONDITION (progn BODY...))
9268 (unless CONDITION BODY...)  is short for  (if CONDITION nil BODY...)
9270 *** Emacs now defines functions caar, cadr, cdar and cddr with their
9271 usual Lisp meanings.  For example, caar returns the car of the car of
9272 its argument.
9274 *** equal, when comparing strings, now ignores their text properties.
9276 *** The new function `functionp' tests whether an object is a function.
9278 *** arrayp now returns t for char-tables and bool-vectors.
9280 *** Certain primitives which use characters (as integers) now get an
9281 error if the integer is not a valid character code.  These primitives
9282 include insert-char, char-to-string, and the %c construct in the
9283 `format' function.
9285 *** The `require' function now insists on adding a suffix, either .el
9286 or .elc, to the file name.  Thus, (require 'foo) will not use a file
9287 whose name is just foo.  It insists on foo.el or foo.elc.
9289 *** The `autoload' function, when the file name does not contain
9290 either a directory name or the suffix .el or .elc, insists on
9291 adding one of these suffixes.
9293 *** string-to-number now takes an optional second argument BASE
9294 which specifies the base to use when converting an integer.
9295 If BASE is omitted, base 10 is used.
9297 We have not implemented other radices for floating point numbers,
9298 because that would be much more work and does not seem useful.
9300 *** substring now handles vectors as well as strings.
9302 *** The Common Lisp function eql is no longer defined normally.
9303 You must load the `cl' library to define it.
9305 *** The new macro `with-current-buffer' lets you evaluate an expression
9306 conveniently with a different current buffer.  It looks like this:
9308   (with-current-buffer BUFFER BODY-FORMS...)
9310 BUFFER is the expression that says which buffer to use.
9311 BODY-FORMS say what to do in that buffer.
9313 *** The new primitive `save-current-buffer' saves and restores the
9314 choice of current buffer, like `save-excursion', but without saving or
9315 restoring the value of point or the mark.  `with-current-buffer'
9316 works using `save-current-buffer'.
9318 *** The new macro `with-temp-file' lets you do some work in a new buffer and
9319 write the output to a specified file.  Like `progn', it returns the value
9320 of the last form.
9322 *** The new macro `with-temp-buffer' lets you do some work in a new buffer,
9323 which is discarded after use.  Like `progn', it returns the value of the
9324 last form.  If you wish to return the buffer contents, use (buffer-string)
9325 as the last form.
9327 *** The new function split-string takes a string, splits it at certain
9328 characters, and returns a list of the substrings in between the
9329 matches.
9331 For example, (split-string "foo bar lose" " +") returns ("foo" "bar" "lose").
9333 *** The new macro with-output-to-string executes some Lisp expressions
9334 with standard-output set up so that all output feeds into a string.
9335 Then it returns that string.
9337 For example, if the current buffer name is `foo',
9339 (with-output-to-string
9340   (princ "The buffer is ")
9341   (princ (buffer-name)))
9343 returns "The buffer is foo".
9345 ** Non-ASCII characters are now supported, if enable-multibyte-characters
9346 is non-nil.
9348 These characters have character codes above 256.  When inserted in the
9349 buffer or stored in a string, they are represented as multibyte
9350 characters that occupy several buffer positions each.
9352 *** When enable-multibyte-characters is non-nil, a single character in
9353 a buffer or string can be two or more bytes (as many as four).
9355 Buffers and strings are still made up of unibyte elements;
9356 character positions and string indices are always measured in bytes.
9357 Therefore, moving forward one character can increase the buffer
9358 position by 2, 3 or 4.  The function forward-char moves by whole
9359 characters, and therefore is no longer equivalent to
9360   (lambda (n) (goto-char (+ (point) n))).
9362 ASCII characters (codes 0 through 127) are still single bytes, always.
9363 Sequences of byte values 128 through 255 are used to represent
9364 non-ASCII characters.  These sequences are called "multibyte
9365 characters".
9367 The first byte of a multibyte character is always in the range 128
9368 through 159 (octal 0200 through 0237).  These values are called
9369 "leading codes".  The second and subsequent bytes are always in the
9370 range 160 through 255 (octal 0240 through 0377).  The first byte, the
9371 leading code, determines how many bytes long the sequence is.
9373 *** The function forward-char moves over characters, and therefore
9374 (forward-char 1) may increase point by more than 1 if it moves over a
9375 multibyte character.  Likewise, delete-char always deletes a
9376 character, which may be more than one buffer position.
9378 This means that some Lisp programs, which assume that a character is
9379 always one buffer position, need to be changed.
9381 However, all ASCII characters are always one buffer position.
9383 *** The regexp [\200-\377] no longer matches all non-ASCII characters,
9384 because when enable-multibyte-characters is non-nil, these characters
9385 have codes that are not in the range octal 200 to octal 377.  However,
9386 the regexp [^\000-\177] does match all non-ASCII characters,
9387 guaranteed.
9389 *** The function char-boundary-p returns non-nil if position POS is
9390 between two characters in the buffer (not in the middle of a
9391 character).
9393 When the value is non-nil, it says what kind of character follows POS:
9395  0 if POS is at an ASCII character or at the end of range,
9396  1 if POS is before a 2-byte length multi-byte form,
9397  2 if POS is at a head of 3-byte length multi-byte form,
9398  3 if POS is at a head of 4-byte length multi-byte form,
9399  4 if POS is at a head of multi-byte form of a composite character.
9401 *** The function char-bytes returns how many bytes the character CHAR uses.
9403 *** Strings can contain multibyte characters.  The function
9404 `length' returns the string length counting bytes, which may be
9405 more than the number of characters.
9407 You can include a multibyte character in a string constant by writing
9408 it literally.  You can also represent it with a hex escape,
9409 \xNNNNNNN..., using as many digits as necessary.  Any character which
9410 is not a valid hex digit terminates this construct.  If you want to
9411 follow it with a character that is a hex digit, write backslash and
9412 newline in between; that will terminate the hex escape.
9414 *** The function concat-chars takes arguments which are characters
9415 and returns a string containing those characters.
9417 *** The function sref access a multibyte character in a string.
9418 (sref STRING INDX) returns the character in STRING at INDEX.  INDEX
9419 counts from zero.  If INDEX is at a position in the middle of a
9420 character, sref signals an error.
9422 *** The function chars-in-string returns the number of characters
9423 in a string.  This is less than the length of the string, if the
9424 string contains multibyte characters (the length counts bytes).
9426 *** The function chars-in-region returns the number of characters
9427 in a region from BEG to END.  This is less than (- END BEG) if the
9428 region contains multibyte characters (the length counts bytes).
9430 *** The function string-to-list converts a string to a list of
9431 the characters in it.  string-to-vector converts a string
9432 to a vector of the characters in it.
9434 *** The function store-substring alters part of the contents
9435 of a string.  You call it as follows:
9437    (store-substring STRING IDX OBJ)
9439 This says to alter STRING, by storing OBJ starting at index IDX in
9440 STRING.  OBJ may be either a character or a (smaller) string.
9441 This function really does alter the contents of STRING.
9442 Since it is impossible to change the length of an existing string,
9443 it is an error if OBJ doesn't fit within STRING's actual length.
9445 *** char-width returns the width (in columns) of the character CHAR,
9446 if it were displayed in the current buffer and the selected window.
9448 *** string-width returns the width (in columns) of the text in STRING,
9449 if it were displayed in the current buffer and the selected window.
9451 *** truncate-string-to-width shortens a string, if necessary,
9452 to fit within a certain number of columns.  (Of course, it does
9453 not alter the string that you give it; it returns a new string
9454 which contains all or just part of the existing string.)
9456 (truncate-string-to-width STR END-COLUMN &optional START-COLUMN PADDING)
9458 This returns the part of STR up to column END-COLUMN.
9460 The optional argument START-COLUMN specifies the starting column.
9461 If this is non-nil, then the first START-COLUMN columns of the string
9462 are not included in the resulting value.
9464 The optional argument PADDING, if non-nil, is a padding character to be added
9465 at the beginning and end the resulting string, to extend it to exactly
9466 WIDTH columns.  If PADDING is nil, that means do not pad; then, if STRING
9467 is narrower than WIDTH, the value is equal to STRING.
9469 If PADDING and START-COLUMN are both non-nil, and if there is no clean
9470 place in STRING that corresponds to START-COLUMN (because one
9471 character extends across that column), then the padding character
9472 PADDING is added one or more times at the beginning of the result
9473 string, so that its columns line up as if it really did start at
9474 column START-COLUMN.
9476 *** When the functions in the list after-change-functions are called,
9477 the third argument is the number of bytes in the pre-change text, not
9478 necessarily the number of characters.  It is, in effect, the
9479 difference in buffer position between the beginning and the end of the
9480 changed text, before the change.
9482 *** The characters Emacs uses are classified in various character
9483 sets, each of which has a name which is a symbol.  In general there is
9484 one character set for each script, not for each language.
9486 **** The function charsetp tests whether an object is a character set name.
9488 **** The variable charset-list holds a list of character set names.
9490 **** char-charset, given a character code, returns the name of the character
9491 set that the character belongs to.  (The value is a symbol.)
9493 **** split-char, given a character code, returns a list containing the
9494 name of the character set, followed by one or two byte-values
9495 which identify the character within that character set.
9497 **** make-char, given a character set name and one or two subsequent
9498 byte-values, constructs a character code.  This is roughly the
9499 opposite of split-char.
9501 **** find-charset-region returns a list of the character sets
9502 of all the characters between BEG and END.
9504 **** find-charset-string returns a list of the character sets
9505 of all the characters in a string.
9507 *** Here are the Lisp facilities for working with coding systems
9508 and specifying coding systems.
9510 **** The function coding-system-list returns a list of all coding
9511 system names (symbols).  With optional argument t, it returns a list
9512 of all distinct base coding systems, not including variants.
9513 (Variant coding systems are those like latin-1-dos, latin-1-unix
9514 and latin-1-mac which specify the end-of-line conversion as well
9515 as what to do about code conversion.)
9517 **** coding-system-p tests a symbol to see if it is a coding system
9518 name.  It returns t if so, nil if not.
9520 **** file-coding-system-alist specifies which coding systems to use
9521 for certain file names.  It works like network-coding-system-alist,
9522 except that the PATTERN is matched against the file name.
9524 Each element has the format (PATTERN . VAL), where PATTERN determines
9525 which file names the element applies to.  PATTERN should be a regexp
9526 to match against a file name.
9528 VAL is a coding system, a cons cell containing two coding systems, or
9529 a function symbol.  If VAL is a coding system, it is used for both
9530 decoding what received from the network stream and encoding what sent
9531 to the network stream.  If VAL is a cons cell containing two coding
9532 systems, the car specifies the coding system for decoding, and the cdr
9533 specifies the coding system for encoding.
9535 If VAL is a function symbol, the function must return a coding system
9536 or a cons cell containing two coding systems, which is used as above.
9538 **** The variable network-coding-system-alist specifies
9539 the coding system to use for network sockets.
9541 Each element has the format (PATTERN . VAL), where PATTERN determines
9542 which network sockets the element applies to.  PATTERN should be
9543 either a port number or a regular expression matching some network
9544 service names.
9546 VAL is a coding system, a cons cell containing two coding systems, or
9547 a function symbol.  If VAL is a coding system, it is used for both
9548 decoding what received from the network stream and encoding what sent
9549 to the network stream.  If VAL is a cons cell containing two coding
9550 systems, the car specifies the coding system for decoding, and the cdr
9551 specifies the coding system for encoding.
9553 If VAL is a function symbol, the function must return a coding system
9554 or a cons cell containing two coding systems, which is used as above.
9556 **** process-coding-system-alist specifies which coding systems to use
9557 for certain subprocess.  It works like network-coding-system-alist,
9558 except that the PATTERN is matched against the program name used to
9559 start the subprocess.
9561 **** The variable default-process-coding-system specifies the coding
9562 systems to use for subprocess (and net connection) input and output,
9563 when nothing else specifies what to do.  The value is a cons cell
9564 (OUTPUT-CODING . INPUT-CODING).  OUTPUT-CODING applies to output
9565 to the subprocess, and INPUT-CODING applies to input from it.
9567 **** The variable coding-system-for-write, if non-nil, specifies the
9568 coding system to use for writing a file, or for output to a synchronous
9569 subprocess.
9571 It also applies to any asynchronous subprocess or network connection,
9572 but in a different way: the value of coding-system-for-write when you
9573 start the subprocess or connection affects that subprocess or
9574 connection permanently or until overridden.
9576 The variable coding-system-for-write takes precedence over
9577 file-coding-system-alist, process-coding-system-alist and
9578 network-coding-system-alist, and all other methods of specifying a
9579 coding system for output.  But most of the time this variable is nil.
9580 It exists so that Lisp programs can bind it to a specific coding
9581 system for one operation at a time.
9583 **** coding-system-for-read applies similarly to input from
9584 files, subprocesses or network connections.
9586 **** The function process-coding-system tells you what
9587 coding systems(s) an existing subprocess is using.
9588 The value is a cons cell,
9589  (DECODING-CODING-SYSTEM . ENCODING-CODING-SYSTEM)
9590 where DECODING-CODING-SYSTEM is used for decoding output from
9591 the subprocess, and ENCODING-CODING-SYSTEM is used for encoding
9592 input to the subprocess.
9594 **** The function set-process-coding-system can be used to
9595 change the coding systems in use for an existing subprocess.
9597 ** Emacs has a new facility to help users manage the many
9598 customization options.  To make a Lisp program work with this facility,
9599 you need to use the new macros defgroup and defcustom.
9601 You use defcustom instead of defvar, for defining a user option
9602 variable.  The difference is that you specify two additional pieces of
9603 information (usually): the "type" which says what values are
9604 legitimate, and the "group" which specifies the hierarchy for
9605 customization.
9607 Thus, instead of writing
9609     (defvar foo-blurgoze nil
9610       "*Non-nil means that foo will act very blurgozely.")
9612 you would now write this:
9614     (defcustom foo-blurgoze nil
9615       "*Non-nil means that foo will act very blurgozely."
9616       :type 'boolean
9617       :group foo)
9619 The type `boolean' means that this variable has only
9620 two meaningful states: nil and non-nil.  Other type values
9621 describe other possibilities; see the manual for Custom
9622 for a description of them.
9624 The "group" argument is used to specify a group which the option
9625 should belong to.  You define a new group like this:
9627     (defgroup ispell nil
9628       "Spell checking using Ispell."
9629       :group 'processes)
9631 The "group" argument in defgroup specifies the parent group.  The root
9632 group is called `emacs'; it should not contain any variables itself,
9633 but only other groups.  The immediate subgroups of `emacs' correspond
9634 to the keywords used by C-h p.  Under these subgroups come
9635 second-level subgroups that belong to individual packages.
9637 Each Emacs package should have its own set of groups.  A simple
9638 package should have just one group; a more complex package should
9639 have a hierarchy of its own groups.  The sole or root group of a
9640 package should be a subgroup of one or more of the "keyword"
9641 first-level subgroups.
9643 ** New `widget' library for inserting UI components in buffers.
9645 This library, used by the new custom library, is documented in a
9646 separate manual that accompanies Emacs.
9648 ** easy-mmode
9650 The easy-mmode package provides macros and functions that make
9651 developing minor modes easier.  Roughly, the programmer has to code
9652 only the functionality of the minor mode.  All the rest--toggles,
9653 predicate, and documentation--can be done in one call to the macro
9654 `easy-mmode-define-minor-mode' (see the documentation).  See also
9655 `easy-mmode-define-keymap'.
9657 ** Text property changes
9659 *** The `intangible' property now works on overlays as well as on a
9660 text property.
9662 *** The new functions next-char-property-change and
9663 previous-char-property-change scan through the buffer looking for a
9664 place where either a text property or an overlay might change.  The
9665 functions take two arguments, POSITION and LIMIT.  POSITION is the
9666 starting position for the scan.  LIMIT says where to stop the scan.
9668 If no property change is found before LIMIT, the value is LIMIT.  If
9669 LIMIT is nil, scan goes to the beginning or end of the accessible part
9670 of the buffer.  If no property change is found, the value is the
9671 position of the beginning or end of the buffer.
9673 *** In the `local-map' text property or overlay property, the property
9674 value can now be a symbol whose function definition is a keymap.  This
9675 is an alternative to using the keymap itself.
9677 ** Changes in invisibility features
9679 *** Isearch can now temporarily show parts of the buffer which are
9680 hidden by an overlay with a invisible property, when the search match
9681 is inside that portion of the buffer.  To enable this the overlay
9682 should have a isearch-open-invisible property which is a function that
9683 would be called having the overlay as an argument, the function should
9684 make the overlay visible.
9686 During incremental search the overlays are shown by modifying the
9687 invisible and intangible properties, if beside this more actions are
9688 needed the overlay should have a isearch-open-invisible-temporary
9689 which is a function. The function is called with 2 arguments: one is
9690 the overlay and the second is nil when it should show the overlay and
9691 t when it should hide it.
9693 *** add-to-invisibility-spec, remove-from-invisibility-spec
9695 Modes that use overlays to hide portions of a buffer should set the
9696 invisible property of the overlay to the mode's name (or another symbol)
9697 and modify the `buffer-invisibility-spec' to include that symbol.
9698 Use  `add-to-invisibility-spec' and `remove-from-invisibility-spec' to
9699 manipulate the `buffer-invisibility-spec'.
9700 Here is an example of how to do this:
9702  ;; If we want to display an ellipsis:
9703  (add-to-invisibility-spec '(my-symbol . t))
9704  ;; If you don't want ellipsis:
9705  (add-to-invisibility-spec 'my-symbol)
9707   ...
9708  (overlay-put  (make-overlay beginning end)  'invisible 'my-symbol)
9710  ...
9711  ;; When done with the overlays:
9712  (remove-from-invisibility-spec '(my-symbol . t))
9713  ;; Or respectively:
9714  (remove-from-invisibility-spec 'my-symbol)
9716 ** Changes in syntax parsing.
9718 *** The syntax-directed buffer-scan functions (such as
9719 `parse-partial-sexp', `forward-word' and similar functions) can now
9720 obey syntax information specified by text properties, if the variable
9721 `parse-sexp-lookup-properties' is non-nil.
9723 If the value of `parse-sexp-lookup-properties' is nil, the behavior
9724 is as before: the syntax-table of the current buffer is always
9725 used to determine the syntax of the character at the position.
9727 When `parse-sexp-lookup-properties' is non-nil, the syntax of a
9728 character in the buffer is calculated thus:
9730         a) if the `syntax-table' text-property of that character
9731            is a cons, this cons becomes the syntax-type;
9733            Valid values of `syntax-table' text-property are: nil, a valid
9734            syntax-table, and a valid syntax-table element, i.e.,
9735            a cons cell of the form (SYNTAX-CODE . MATCHING-CHAR).
9737         b) if the character's `syntax-table' text-property
9738            is a syntax table, this syntax table is used
9739            (instead of the syntax-table of the current buffer) to
9740            determine the syntax type of the character.
9742         c) otherwise the syntax-type is determined by the syntax-table
9743            of the current buffer.
9745 *** The meaning of \s in regular expressions is also affected by the
9746 value of `parse-sexp-lookup-properties'.  The details are the same as
9747 for the syntax-directed buffer-scan functions.
9749 *** There are two new syntax-codes, `!' and `|' (numeric values 14
9750 and 15).  A character with a code `!' starts a comment which is ended
9751 only by another character with the same code (unless quoted).  A
9752 character with a code `|' starts a string which is ended only by
9753 another character with the same code (unless quoted).
9755 These codes are mainly meant for use as values of the `syntax-table'
9756 text property.
9758 *** The function `parse-partial-sexp' has new semantics for the sixth
9759 arg COMMENTSTOP.  If it is `syntax-table', parse stops after the start
9760 of a comment or a string, or after end of a comment or a string.
9762 *** The state-list which the return value from `parse-partial-sexp'
9763 (and can also be used as an argument) now has an optional ninth
9764 element: the character address of the start of last comment or string;
9765 nil if none.  The fourth and eighth elements have special values if the
9766 string/comment is started by a "!"  or "|" syntax-code.
9768 *** Since new features of `parse-partial-sexp' allow a complete
9769 syntactic parsing, `font-lock' no longer supports
9770 `font-lock-comment-start-regexp'.
9772 ** Changes in face features
9774 *** The face functions are now unconditionally defined in Emacs, even
9775 if it does not support displaying on a device that supports faces.
9777 *** The function face-documentation returns the documentation string
9778 of a face (or nil if it doesn't have one).
9780 *** The function face-bold-p returns t if a face should be bold.
9781 set-face-bold-p sets that flag.
9783 *** The function face-italic-p returns t if a face should be italic.
9784 set-face-italic-p sets that flag.
9786 *** You can now specify foreground and background colors for text
9787 by adding elements of the form (foreground-color . COLOR-NAME)
9788 and (background-color . COLOR-NAME) to the list of faces in
9789 the `face' property (either the character's text property or an
9790 overlay property).
9792 This means that you no longer need to create named faces to use
9793 arbitrary colors in a Lisp package.
9795 ** Changes in file-handling functions
9797 *** File-access primitive functions no longer discard an extra redundant
9798 directory name from the beginning of the file name.  In other words,
9799 they no longer do anything special with // or /~.  That conversion
9800 is now done only in substitute-in-file-name.
9802 This makes it possible for a Lisp program to open a file whose name
9803 begins with ~.
9805 *** If copy-file is unable to set the date of the output file,
9806 it now signals an error with the condition file-date-error.
9808 *** The inode number returned by file-attributes may be an integer (if
9809 the number fits in a Lisp integer) or a list of integers.
9811 *** insert-file-contents can now read from a special file,
9812 as long as the arguments VISIT and REPLACE are nil.
9814 *** The RAWFILE arg to find-file-noselect, if non-nil, now suppresses
9815 character code conversion as well as other things.
9817 Meanwhile, this feature does work with remote file names
9818 (formerly it did not).
9820 *** Lisp packages which create temporary files should use the TMPDIR
9821 environment variable to decide which directory to put them in.
9823 *** interpreter-mode-alist elements now specify regexps
9824 instead of constant strings.
9826 *** expand-file-name no longer treats `//' or `/~' specially.  It used
9827 to delete all the text of a file name up through the first slash of
9828 any `//' or `/~' sequence.  Now it passes them straight through.
9830 substitute-in-file-name continues to treat those sequences specially,
9831 in the same way as before.
9833 *** The variable `format-alist' is more general now.
9834 The FROM-FN and TO-FN in a format definition can now be strings
9835 which specify shell commands to use as filters to perform conversion.
9837 *** The new function access-file tries to open a file, and signals an
9838 error if that fails.  If the open succeeds, access-file does nothing
9839 else, and returns nil.
9841 *** The function insert-directory now signals an error if the specified
9842 directory cannot be listed.
9844 ** Changes in minibuffer input
9846 *** The functions read-buffer, read-variable, read-command, read-string
9847 read-file-name, read-from-minibuffer and completing-read now take an
9848 additional argument which specifies the default value.  If this
9849 argument is non-nil, it should be a string; that string is used in two
9850 ways:
9852   It is returned if the user enters empty input.
9853   It is available through the history command M-n.
9855 *** The functions read-string, read-from-minibuffer,
9856 read-no-blanks-input and completing-read now take an additional
9857 argument INHERIT-INPUT-METHOD.  If this is non-nil, then the
9858 minibuffer inherits the current input method and the setting of
9859 enable-multibyte-characters from the previously current buffer.
9861 In an interactive spec, you can use M instead of s to read an
9862 argument in this way.
9864 *** All minibuffer input functions discard text properties
9865 from the text you enter in the minibuffer, unless the variable
9866 minibuffer-allow-text-properties is non-nil.
9868 ** Echo area features
9870 *** Clearing the echo area now runs the normal hook
9871 echo-area-clear-hook.  Note that the echo area can be used while the
9872 minibuffer is active; in that case, the minibuffer is still active
9873 after the echo area is cleared.
9875 *** The function current-message returns the message currently displayed
9876 in the echo area, or nil if there is none.
9878 ** Keyboard input features
9880 *** tty-erase-char is a new variable that reports which character was
9881 set up as the terminal's erase character when time Emacs was started.
9883 *** num-nonmacro-input-events is the total number of input events
9884 received so far from the terminal.  It does not count those generated
9885 by keyboard macros.
9887 ** Frame-related changes
9889 *** make-frame runs the normal hook before-make-frame-hook just before
9890 creating a frame, and just after creating a frame it runs the abnormal
9891 hook after-make-frame-functions with the new frame as arg.
9893 *** The new hook window-configuration-change-hook is now run every time
9894 the window configuration has changed.  The frame whose configuration
9895 has changed is the selected frame when the hook is run.
9897 *** Each frame now independently records the order for recently
9898 selected buffers, in its buffer-list frame parameter, so that the
9899 value of other-buffer is now based on the buffers recently displayed
9900 in the selected frame.
9902 *** The value of the frame parameter vertical-scroll-bars
9903 is now `left', `right' or nil.  A non-nil value specifies
9904 which side of the window to put the scroll bars on.
9906 ** X Windows features
9908 *** You can examine X resources for other applications by binding
9909 x-resource-class around a call to x-get-resource.  The usual value of
9910 x-resource-class is "Emacs", which is the correct value for Emacs.
9912 *** In menus, checkboxes and radio buttons now actually work.
9913 The menu displays the current status of the box or button.
9915 *** The function x-list-fonts now takes an optional fourth argument
9916 MAXIMUM which sets a limit on how many matching fonts to return.
9917 A smaller value of MAXIMUM makes the function faster.
9919 If the only question is whether *any* font matches the pattern,
9920 it is good to supply 1 for this argument.
9922 ** Subprocess features
9924 *** A reminder: it is no longer necessary for subprocess filter
9925 functions and sentinels to do save-match-data, because Emacs does this
9926 automatically.
9928 *** The new function shell-command-to-string executes a shell command
9929 and returns the output from the command as a string.
9931 *** The new function process-contact returns t for a child process,
9932 and (HOSTNAME SERVICE) for a net connection.
9934 ** An error in running pre-command-hook or post-command-hook
9935 does clear the variable to nil.  The documentation was wrong before.
9937 ** In define-key-after, if AFTER is t, the new binding now always goes
9938 at the end of the keymap.  If the keymap is a menu, this means it
9939 goes after the other menu items.
9941 ** If you have a program that makes several changes in the same area
9942 of the buffer, you can use the macro combine-after-change-calls
9943 around that Lisp code to make it faster when after-change hooks
9944 are in use.
9946 The macro arranges to call the after-change functions just once for a
9947 series of several changes--if that seems safe.
9949 Don't alter the variables after-change-functions and
9950 after-change-function within the body of a combine-after-change-calls
9951 form.
9953 ** If you define an abbrev (with define-abbrev) whose EXPANSION
9954 is not a string, then the abbrev does not expand in the usual sense,
9955 but its hook is still run.
9957 ** Normally, the Lisp debugger is not used (even if you have enabled it)
9958 for errors that are handled by condition-case.
9960 If you set debug-on-signal to a non-nil value, then the debugger is called
9961 regardless of whether there is a handler for the condition.  This is
9962 useful for debugging problems that happen inside of a condition-case.
9964 This mode of operation seems to be unreliable in other ways.  Errors that
9965 are normal and ought to be handled, perhaps in timers or process
9966 filters, will instead invoke the debugger.  So don't say you weren't
9967 warned.
9969 ** The new variable ring-bell-function lets you specify your own
9970 way for Emacs to "ring the bell".
9972 ** If run-at-time's TIME argument is t, the action is repeated at
9973 integral multiples of REPEAT from the epoch; this is useful for
9974 functions like display-time.
9976 ** You can use the function locate-library to find the precise file
9977 name of a Lisp library.  This isn't new, but wasn't documented before.
9979 ** Commands for entering view mode have new optional arguments that
9980 can be used from Lisp.  Low-level entrance to and exit from view mode
9981 is done by functions view-mode-enter and view-mode-exit.
9983 ** batch-byte-compile-file now makes Emacs return a nonzero status code
9984 if there is an error in compilation.
9986 ** pop-to-buffer, switch-to-buffer-other-window and
9987 switch-to-buffer-other-frame now accept an additional optional
9988 argument NORECORD, much like switch-to-buffer.  If it is non-nil,
9989 they don't put the buffer at the front of the buffer list.
9991 ** If your .emacs file leaves the *scratch* buffer non-empty,
9992 Emacs does not display the startup message, so as to avoid changing
9993 the *scratch* buffer.
9995 ** The new function regexp-opt returns an efficient regexp to match a string.
9996 The arguments are STRINGS and (optionally) PAREN.  This function can be used
9997 where regexp matching or searching is intensively used and speed is important,
9998 e.g., in Font Lock mode.
10000 ** The variable buffer-display-count is local to each buffer,
10001 and is incremented each time the buffer is displayed in a window.
10002 It starts at 0 when the buffer is created.
10004 ** The new function compose-mail starts composing a mail message
10005 using the user's chosen mail composition agent (specified with the
10006 variable mail-user-agent).  It has variants compose-mail-other-window
10007 and compose-mail-other-frame.
10009 ** The `user-full-name' function now takes an optional parameter which
10010 can either be a number (the UID) or a string (the login name).  The
10011 full name of the specified user will be returned.
10013 ** Lisp packages that load files of customizations, or any other sort
10014 of user profile, should obey the variable init-file-user in deciding
10015 where to find it.  They should load the profile of the user name found
10016 in that variable.  If init-file-user is nil, meaning that the -q
10017 option was used, then Lisp packages should not load the customization
10018 files at all.
10020 ** format-time-string now allows you to specify the field width
10021 and type of padding.  This works as in printf: you write the field
10022 width as digits in the middle of a %-construct.  If you start
10023 the field width with 0, it means to pad with zeros.
10025 For example, %S normally specifies the number of seconds since the
10026 minute; %03S means to pad this with zeros to 3 positions, %_3S to pad
10027 with spaces to 3 positions.  Plain %3S pads with zeros, because that
10028 is how %S normally pads to two positions.
10030 ** thing-at-point now supports a new kind of "thing": url.
10032 ** imenu.el changes.
10034 You can now specify a function to be run when selecting an
10035 item from menu created by imenu.
10037 An example of using this feature: if we define imenu items for the
10038 #include directives in a C file, we can open the included file when we
10039 select one of those items.
10041 * For older news, see the file ONEWS
10043 ----------------------------------------------------------------------
10044 Copyright information:
10046 Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc.
10048    Permission is granted to anyone to make or distribute verbatim copies
10049    of this document as received, in any medium, provided that the
10050    copyright notice and this permission notice are preserved,
10051    thus giving the recipient permission to redistribute in turn.
10053    Permission is granted to distribute modified versions
10054    of this document, or of portions of it,
10055    under the above conditions, provided also that they
10056    carry prominent notices stating who last changed them.
10058 Local variables:
10059 mode: outline
10060 paragraph-separate: "[  \f]*$"
10061 end: