*** empty log message ***
[emacs.git] / etc / NEWS
blob010a6c43abfb6d7a23ed86e2baf1e19ce96a70de
1 GNU Emacs NEWS -- history of user-visible changes.  2003-05-21
2 Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
3           Free Software Foundation, Inc.
4 See the end for copying conditions.
6 Please send Emacs bug reports to bug-gnu-emacs@gnu.org.
7 For older news, see the file ONEWS
8 You can narrow news to the specific version by calling
9 `view-emacs-news' with a prefix argument or by typing C-u C-h C-n.
11 Temporary note:
12  +++ indicates that the appropriate manual has already been updated.
13  --- means no change in the manuals is called for.
14 When you add a new item, please add it without either +++ or ---
15 so we will look at it and add it to the manual.
18 * Installation Changes in Emacs 22.1
20 ---
21 ** Emacs now supports new configure options `--program-prefix',
22 `--program-suffix' and `--program-transform-name' that affect the names of
23 installed programs.
25 ---
26 ** Emacs can now be built without sound support.
28 ---
29 ** You can build Emacs with Gtk+ widgets by specifying `--with-x-toolkit=gtk'
30 when you run configure.  This requires Gtk+ 2.0 or newer.  This port
31 provides a way to display multilingual text in menus (with some caveats).
33 ---
34 ** The `emacsserver' program has been removed, replaced with Lisp code.
36 ---
37 ** By default, Emacs now uses a setgid helper program to update game
38 scores.  The directory ${localstatedir}/games/emacs is the normal
39 place for game scores to be stored.  You can control this with the
40 configure option `--with-game-dir'.  The specific user that Emacs uses
41 to own the game scores is controlled by `--with-game-user'.  If access
42 to a game user is not available, then scores will be stored separately
43 in each user's home directory.
45 ---
46 ** Leim is now part of the Emacs distribution.
47 You no longer need to download a separate tarball in order to build
48 Emacs with Leim.
50 +++
51 ** The Emacs Lisp Reference Manual is now part of the distribution.
53 The Emacs Lisp Reference Manual in Info format is built as part of the
54 Emacs build procedure and installed together with the Emacs User
55 Manual.  A menu item was added to the menu bar that makes it easy
56 accessible (Help->More Manuals->Emacs Lisp Reference).
58 ---
59 ** The Introduction to Programming in Emacs Lisp manual is now part of
60 the distribution.
62 This manual is now part of the standard distribution and is installed,
63 together with the Emacs User Manual, into the Info directory.  A menu
64 item was added to the menu bar that makes it easy accessible
65 (Help->More Manuals->Introduction to Emacs Lisp).
67 ---
68 ** New translations of the Emacs Tutorial are available in the
69 following languages: Brasilian Portuguese, Bulgarian, Chinese (both
70 with simplified and traditional characters), French, and Italian.
71 Type `C-u C-h t' to choose one of them in case your language setup
72 doesn't automatically select the right one.
74 ---
75 ** A French translation of the `Emacs Survival Guide' is available.
77 ---
78 ** Emacs now includes support for loading image libraries on demand.
79 (Currently this feature is only used on MS Windows.)  You can configure
80 the supported image types and their associated dynamic libraries by
81 setting the variable `image-library-alist'.
83 ---
84 ** Support for Cygwin was added.
86 ---
87 ** Support for FreeBSD/Alpha has been added.
89 ---
90 ** Support for GNU/Linux systems on S390 machines was added.
92 ---
93 ** Support for MacOS X was added.
94 See the files mac/README and mac/INSTALL for build instructions.
96 ---
97 ** Support for GNU/Linux systems on X86-64 machines was added.
99 ---
100 ** Mac OS 9 port now uses the Carbon API by default.  You can also
101 create non-Carbon build by specifying `NonCarbon' as a target.  See
102 the files mac/README and mac/INSTALL for build instructions.
105 ** Building with -DENABLE_CHECKING does not automatically build with union
106 types any more.  Add -DUSE_LISP_UNION_TYPE if you want union types.
109 ** When pure storage overflows while dumping, Emacs now prints how
110 much pure storage it will approximately need.
112 ** The script etc/emacs-buffer.gdb can be used with gdb to retrieve the
113 contents of buffers from a core dump and save them to files easily, should
114 emacs crash.
117 ** The Emacs terminal emulation in term.el uses a different terminfo name.
118 The Emacs terminal emulation in term.el now uses "eterm-color" as its
119 terminfo name, since term.el now supports color.
122 ** Emacs Lisp source files are compressed by default if `gzip' is available.
125 * Startup Changes in Emacs 22.1
128 ** New command line option -Q or --quick.
129 This is like using -q --no-site-file, but in addition it also disables
130 the fancy startup screen.
133 ** New command line option -D or --basic-display.
134 Disables the menu-bar, the tool-bar, the scroll-bars, tool tips, and
135 the blinking cursor.
138 ** New command line option -nbc or --no-blinking-cursor disables
139 the blinking cursor on graphical terminals.
142 ** The option --script FILE runs Emacs in batch mode and loads FILE.
143 It is useful for writing Emacs Lisp shell script files, because they
144 can start with this line:
146    #!/usr/bin/emacs --script
149 ** The option --directory DIR now modifies `load-path' immediately.
150 Directories are added to the front of `load-path' in the order they
151 appear on the command line.  For example, with this command line:
153   emacs -batch -L .. -L /tmp --eval "(require 'foo)"
155 Emacs looks for library `foo' in the parent directory, then in /tmp, then
156 in the other directories in `load-path'.  (-L is short for --directory.)
159 ** The command line option --no-windows has been changed to
160 --no-window-system.  The old one still works, but is deprecated.
163 ** The -f option, used from the command line to call a function,
164 now reads arguments for the function interactively if it is
165 an interactively callable function.
168 ** When you specify a frame size with --geometry, the size applies to
169 all frames you create.  A position specified with --geometry only
170 affects the initial frame.
173 ** Emacs can now be invoked in full-screen mode on a windowed display.
174 When Emacs is invoked on a window system, the new command-line options
175 `--fullwidth', `--fullheight', and `--fullscreen' produce a frame
176 whose width, height, or both width and height take up the entire
177 screen size.  (For now, this does not work with some window managers.)
180 ** Emacs now displays a splash screen by default even if command-line
181 arguments were given.  The new command-line option --no-splash
182 disables the splash screen; see also the variable
183 `inhibit-startup-message' (which is also aliased as
184 `inhibit-splash-screen').
187 ** The default is now to use an bitmap as the icon, so the command-line options
188 --icon-type, -i has been replaced with options --no-bitmap-icon, -nbi to turn
189 the bitmap icon off.
192 ** New user option `inhibit-startup-buffer-menu'.
193 When loading many files, for instance with `emacs *', Emacs normally
194 displays a buffer menu.  This option turns the buffer menu off.
197 ** Init file changes
198 If the init file ~/.emacs does not exist, Emacs will try
199 ~/.emacs.d/init.el or ~/.emacs.d/init.elc.  You can also put the shell
200 init file .emacs_SHELL under ~/.emacs.d.
203 ** Emacs now reads the standard abbrevs file ~/.abbrev_defs
204 automatically at startup, if it exists.  When Emacs offers to save
205 modified buffers, it saves the abbrevs too if they have changed.  It
206 can do this either silently or asking for confirmation first,
207 according to the value of `save-abbrevs'.
209 * Incompatible Editing Changes in Emacs 22.1
212 ** M-g is now a prefix key.
213 M-g g and M-g M-g run goto-line.
214 M-g n and M-g M-n run next-error (like C-x `).
215 M-g p and M-g M-p run previous-error.
218 ** C-u M-g M-g switches to the most recent previous buffer,
219 and goes to the specified line in that buffer.
221 When goto-line starts to execute, if there's a number in the buffer at
222 point then it acts as the default argument for the minibuffer.
225 ** The old bindings C-M-delete and C-M-backspace have been deleted,
226 since there are situations where one or the other will shut down
227 the operating system or your X server.
230 ** line-move-ignore-invisible now defaults to t.
233 ** When the undo information of the current command gets really large
234 (beyond the value of `undo-outer-limit'), Emacs discards it and warns
235 you about it.
238 ** `apply-macro-to-region-lines' now operates on all lines that begin
239 in the region, rather than on all complete lines in the region.
242 ** A prefix argument is no longer required to repeat a jump to a
243 previous mark if you set `set-mark-command-repeat-pop' to t.  I.e. C-u
244 C-SPC C-SPC C-SPC ... cycles through the mark ring.  Use C-u C-u C-SPC
245 to set the mark immediately after a jump.
248 ** The info-search bindings on C-h C-f, C-h C-k and C-h C-i
249 have been moved to C-h F, C-h K and C-h S.
252 ** In incremental search, C-w is changed.  M-%, C-M-w and C-M-y are special.
254 See below under "incremental search changes".
257 ** C-x C-f RET, typing nothing in the minibuffer, is no longer a special case.
259 Since the default input is the current directory, this has the effect
260 of specifying the current directory.  Normally that means to visit the
261 directory with Dired.
263 You can get the old behavior by typing C-x C-f M-n RET, which fetches
264 the actual file name into the minibuffer.
267 ** The completion commands TAB, SPC and ? in the minibuffer apply only
268 to the text before point.  If there is text in the buffer after point,
269 it remains unchanged.
272 ** When Emacs prompts for file names, SPC no longer completes the file name.
273 This is so filenames with embedded spaces could be input without the
274 need to quote the space with a C-q.  The underlying changes in the
275 keymaps that are active in the minibuffer are described below under
276 "New keymaps for typing file names".
279 ** M-o now is the prefix key for setting text properties;
280 M-o M-o requests refontification.
283 ** You can now follow links by clicking Mouse-1 on the link.
285 See below for more details.
288 ** In Dired's ! command (dired-do-shell-command), `*' and `?' now
289 control substitution of the file names only when they are surrounded
290 by whitespace.  This means you can now use them as shell wildcards
291 too.  If you want to use just plain `*' as a wildcard, type `*""'; the
292 doublequotes make no difference in the shell, but they prevent
293 special treatment in `dired-do-shell-command'.
295 * Editing Changes in Emacs 22.1
298 ** !MEM FULL! at the start of the mode line indicates that Emacs
299 cannot get any more memory for Lisp data.  This often means it could
300 crash soon if you do things that use more memory.  On most systems,
301 killing buffers will get out of this state.  If killing buffers does
302 not make !MEM FULL! disappear, you should save your work and start
303 a new Emacs.
306 ** The max size of buffers and integers has been doubled.
307 On 32bit machines, it is now 256M (i.e. 268435455).
310 ** You can now switch buffers in a cyclic order with C-x C-left and
311 (prev-buffer) and C-x C-right (next-buffer).  C-x left and C-x right
312 can be used as well.
315 ** `undo-only' does an undo which does not redo any previous undo.
318 ** M-SPC (just-one-space) when given a numeric argument N
319 converts whitespace around point to N spaces.
322 ** New commands to operate on pairs of open and close characters:
323 `insert-pair', `delete-pair', `raise-sexp'.
326 ** New command `kill-whole-line' kills an entire line at once.
327 By default, it is bound to C-S-<backspace>.
330 ** Yanking text now discards certain text properties that can
331 be inconvenient when you did not expect them.  The variable
332 `yank-excluded-properties' specifies which ones.  Insertion
333 of register contents and rectangles also discards these properties.
336 ** The default values of paragraph-start and indent-line-function have
337 been changed to reflect those used in Text mode rather than those used
338 in Indented-Text mode.
341 ** M-x setenv now expands environment variable references.
343 Substrings of the form `$foo' and `${foo}' in the specified new value
344 now refer to the value of environment variable foo.  To include a `$'
345 in the value, use `$$'.
348 ** `special-display-buffer-names' and `special-display-regexps' now
349 understand two new boolean pseudo-frame-parameters `same-frame' and
350 `same-window'.
353 ** The default for the paper size (variable ps-paper-type) is taken
354 from the locale.
356 ** The command `list-faces-display' now accepts a prefix arg.
357 When passed, the function prompts for a regular expression and lists
358 only faces matching this regexp.
360 ** Mark command changes:
363 *** A prefix argument is no longer required to repeat a jump to a
364 previous mark, i.e. C-u C-SPC C-SPC C-SPC ... cycles through the
365 mark ring.  Use C-u C-u C-SPC to set the mark immediately after a jump.
368 *** Marking commands extend the region when invoked multiple times.
370 If you type C-M-SPC (mark-sexp), M-@ (mark-word), M-h
371 (mark-paragraph), or C-M-h (mark-defun) repeatedly, the marked region
372 extends each time, so you can mark the next two sexps with M-C-SPC
373 M-C-SPC, for example.  This feature also works for
374 mark-end-of-sentence, if you bind that to a key.  It also extends the
375 region when the mark is active in Transient Mark mode, regardless of
376 the last command.  To start a new region with one of marking commands
377 in Transient Mark mode, you can deactivate the active region with C-g,
378 or set the new mark with C-SPC.
381 *** M-h (mark-paragraph) now accepts a prefix arg.
383 With positive arg, M-h marks the current and the following paragraphs;
384 if the arg is negative, it marks the current and the preceding
385 paragraphs.
388 *** Some commands do something special in Transient Mark mode when the
389 mark is active--for instance, they limit their operation to the
390 region.  Even if you don't normally use Transient Mark mode, you might
391 want to get this behavior from a particular command.  There are two
392 ways you can enable Transient Mark mode and activate the mark, for one
393 command only.
395 One method is to type C-SPC C-SPC; this enables Transient Mark mode
396 and sets the mark at point.  The other method is to type C-u C-x C-x.
397 This enables Transient Mark mode temporarily but does not alter the
398 mark or the region.
400 After these commands, Transient Mark mode remains enabled until you
401 deactivate the mark.  That typically happens when you type a command
402 that alters the buffer, but you can also deactivate the mark by typing
403 C-g.
406 *** Movement commands `beginning-of-buffer', `end-of-buffer',
407 `beginning-of-defun', `end-of-defun' do not set the mark if the mark
408 is already active in Transient Mark mode.
410 ** Help command changes:
413 *** Changes in C-h bindings:
415 C-h e displays the *Messages* buffer.
417 C-h d runs apropos-documentation.
419 C-h followed by a control character is used for displaying files
420     that do not change:
422 C-h C-f displays the FAQ.
423 C-h C-e displays the PROBLEMS file.
425 The info-search bindings on C-h C-f, C-h C-k and C-h C-i
426 have been moved to C-h F, C-h K and C-h S.
428 C-h c, C-h k, C-h w, and C-h f now handle remapped interactive commands.
429 - C-h c and C-h k report the actual command (after possible remapping)
430   run by the key sequence.
431 - C-h w and C-h f on a command which has been remapped now report the
432   command it is remapped to, and the keys which can be used to run
433   that command.
435 For example, if C-k is bound to kill-line, and kill-line is remapped
436 to new-kill-line, these commands now report:
437 - C-h c and C-h k C-k reports:
438   C-k runs the command new-kill-line
439 - C-h w and C-h f kill-line reports:
440   kill-line is remapped to new-kill-line which is on C-k, <deleteline>
441 - C-h w and C-h f new-kill-line reports:
442   new-kill-line is on C-k
445 *** Help commands `describe-function' and `describe-key' now show function
446 arguments in lowercase italics on displays that support it.  To change the
447 default, customize face `help-argument-name' or redefine the function
448 `help-default-arg-highlight'.
451 *** C-h v and C-h f commands now include a hyperlink to the C source for
452 variables and functions defined in C (if the C source is available).
455 *** Help mode now only makes hyperlinks for faces when the face name is
456 preceded or followed by the word `face'.  It no longer makes
457 hyperlinks for variables without variable documentation, unless
458 preceded by one of the words `variable' or `option'.  It now makes
459 hyperlinks to Info anchors (or nodes) if the anchor (or node) name is
460 enclosed in single quotes and preceded by `info anchor' or `Info
461 anchor' (in addition to earlier `info node' and `Info node'). In
462 addition, it now makes hyperlinks to URLs as well if the URL is
463 enclosed in single quotes and preceded by `URL'.
466 *** The new command `describe-char' (C-u C-x =) pops up a buffer with
467 description various information about a character, including its
468 encodings and syntax, its text properties, how to input, overlays, and
469 widgets at point.  You can get more information about some of them, by
470 clicking on mouse-sensitive areas or moving there and pressing RET.
473 *** The command `list-text-properties-at' has been deleted because
474 C-u C-x = gives the same information and more.
477 *** New command `display-local-help' displays any local help at point
478 in the echo area.  It is bound to `C-h .'.  It normally displays the
479 same string that would be displayed on mouse-over using the
480 `help-echo' property, but, in certain cases, it can display a more
481 keyboard oriented alternative.
484 *** New user option `help-at-pt-display-when-idle' allows to
485 automatically show the help provided by `display-local-help' on
486 point-over, after suitable idle time.  The amount of idle time is
487 determined by the user option `help-at-pt-timer-delay' and defaults
488 to one second.  This feature is turned off by default.
491 *** The apropos commands now accept a list of words to match.
492 When more than one word is specified, at least two of those words must
493 be present for an item to match.  Regular expression matching is still
494 available.
497 *** The new option `apropos-sort-by-scores' causes the matching items
498 to be sorted according to their score.  The score for an item is a
499 number calculated to indicate how well the item matches the words or
500 regular expression that you entered to the apropos command.  The best
501 match is listed first, and the calculated score is shown for each
502 matching item.
504 ** Incremental Search changes:
507 *** Vertical scrolling is now possible within incremental search.
508 To enable this feature, customize the new user option
509 `isearch-allow-scroll'.  User written commands which satisfy stringent
510 constraints can be marked as "scrolling commands".  See the Emacs manual
511 for details.
514 *** C-w in incremental search now grabs either a character or a word,
515 making the decision in a heuristic way.  This new job is done by the
516 command `isearch-yank-word-or-char'.  To restore the old behavior,
517 bind C-w to `isearch-yank-word' in `isearch-mode-map'.
520 *** C-y in incremental search now grabs the next line if point is already
521 at the end of a line.
524 *** C-M-w deletes and C-M-y grabs a character in isearch mode.
525 Another method to grab a character is to enter the minibuffer by `M-e'
526 and to type `C-f' at the end of the search string in the minibuffer.
529 *** M-% typed in isearch mode invokes `query-replace' or
530 `query-replace-regexp' (depending on search mode) with the current
531 search string used as the string to replace.
534 *** Isearch no longer adds `isearch-resume' commands to the command
535 history by default.  To enable this feature, customize the new
536 user option `isearch-resume-in-command-history'.
538 ** Replace command changes:
541 *** New user option `query-replace-skip-read-only': when non-nil,
542 `query-replace' and related functions simply ignore
543 a match if part of it has a read-only property.
546 *** When used interactively, the commands `query-replace-regexp' and
547 `replace-regexp' allow \,expr to be used in a replacement string,
548 where expr is an arbitrary Lisp expression evaluated at replacement
549 time.  In many cases, this will be more convenient than using
550 `query-replace-regexp-eval'.  `\#' in a replacement string now refers
551 to the count of replacements already made by the replacement command.
552 All regular expression replacement commands now allow `\?' in the
553 replacement string to specify a position where the replacement string
554 can be edited for each replacement.
557 *** query-replace uses isearch lazy highlighting when the new user option
558 `query-replace-lazy-highlight' is non-nil.
561 *** The current match in query-replace is highlighted in new face
562 `query-replace' which by default inherits from isearch face.
564 ** File operation changes:
567 *** Unquoted `$' in file names do not signal an error any more when
568 the corresponding environment variable does not exist.
569 Instead, the `$ENVVAR' text is left as is, so that `$$' quoting
570 is only rarely needed.
573 *** In processing a local variables list, Emacs strips the prefix and
574 suffix are from every line before processing all the lines.
577 *** find-file-read-only visits multiple files in read-only mode,
578 when the file name contains wildcard characters.
581 *** find-alternate-file replaces the current file with multiple files,
582 when the file name contains wildcard characters.
585 *** Auto Compression mode is now enabled by default.
588 *** C-x C-f RET, typing nothing in the minibuffer, is no longer a special case.
590 Since the default input is the current directory, this has the effect
591 of specifying the current directory.  Normally that means to visit the
592 directory with Dired.
595 *** When you are root, and you visit a file whose modes specify
596 read-only, the Emacs buffer is now read-only too.  Type C-x C-q if you
597 want to make the buffer writable.  (As root, you can in fact alter the
598 file.)
601 *** C-x s (save-some-buffers) now offers an option `d' to diff a buffer
602 against its file, so you can see what changes you would be saving.
605 *** The commands copy-file, rename-file, make-symbolic-link and
606 add-name-to-file, when given a directory as the "new name" argument,
607 convert it to a file name by merging in the within-directory part of
608 the existing file's name.  (This is the same convention that shell
609 commands cp, mv, and ln follow.)  Thus, M-x copy-file RET ~/foo RET
610 /tmp RET copies ~/foo to /tmp/foo.
613 *** When used interactively, `format-write-file' now asks for confirmation
614 before overwriting an existing file, unless a prefix argument is
615 supplied.  This behavior is analogous to `write-file'.
618 *** The variable `auto-save-file-name-transforms' now has a third element that
619 controls whether or not the function `make-auto-save-file-name' will
620 attempt to construct a unique auto-save name (e.g. for remote files).
623 *** The new option `write-region-inhibit-fsync' disables calls to fsync
624 in `write-region'.  This can be useful on laptops to avoid spinning up
625 the hard drive upon each file save.  Enabling this variable may result
626 in data loss, use with care.
629 *** If the user visits a file larger than `large-file-warning-threshold',
630 Emacs asks for confirmation.
633 *** require-final-newline now has two new possible values:
635 `visit' means add a newline (as an undoable change) if it's needed
636 when visiting the file.
638 `visit-save' means add a newline (as an undoable change) if it's
639 needed when visiting the file, and also add a newline if it's needed
640 when saving the file.
643 *** The new option mode-require-final-newline controls how certain
644 major modes enable require-final-newline.  Any major mode that's
645 designed for a kind of file that should normally end in a newline
646 sets require-final-newline based on mode-require-final-newline.
647 So you can customize mode-require-final-newline to control what these
648 modes do.
650 ** Minibuffer changes:
653 *** The new file-name-shadow-mode is turned ON by default, so that when
654 entering a file name, any prefix which Emacs will ignore is dimmed.
657 *** There's a new face `minibuffer-prompt'.
658 Emacs adds this face to the list of text properties stored in the
659 variable `minibuffer-prompt-properties', which is used to display the
660 prompt string.
663 *** Enhanced visual feedback in `*Completions*' buffer.
665 Completions lists use faces to highlight what all completions
666 have in common and where they begin to differ.
668 The common prefix shared by all possible completions uses the face
669 `completions-common-part', while the first character that isn't the
670 same uses the face `completions-first-difference'.  By default,
671 `completions-common-part' inherits from `default', and
672 `completions-first-difference' inherits from `bold'.  The idea of
673 `completions-common-part' is that you can use it to make the common
674 parts less visible than normal, so that the rest of the differing
675 parts is, by contrast, slightly highlighted.
677 Above fontification is always done when listing completions is
678 triggered at minibuffer. If you want to fontify completions whose
679 listing is triggered at the other normal buffer, you have to pass
680 the common prefix of completions to `display-completion-list' as
681 its second argument.
684 *** File-name completion can now ignore specified directories.
685 If an element of the list in `completion-ignored-extensions' ends in a
686 slash `/', it indicates a subdirectory that should be ignored when
687 completing file names.  Elements of `completion-ignored-extensions'
688 which do not end in a slash are never considered when a completion
689 candidate is a directory.
692 *** The completion commands TAB, SPC and ? in the minibuffer apply only
693 to the text before point.  If there is text in the buffer after point,
694 it remains unchanged.
697 *** New user option `history-delete-duplicates'.
698 If set to t when adding a new history element, all previous identical
699 elements are deleted.
701 ** Redisplay changes:
704 *** The mode line position information now comes before the major mode.
705 When the file is maintained under version control, that information
706 appears between the position information and the major mode.
709 *** New face `escape-glyph' highlights control characters and escape glyphs.
712 *** Non-breaking space and hyphens are now displayed with a special
713 face, either nobreak-space or escape-glyph.  You can turn this off or
714 specify a different mode by setting the variable `nobreak-char-display'.
717 *** The parameters of automatic hscrolling can now be customized.
718 The variable `hscroll-margin' determines how many columns away from
719 the window edge point is allowed to get before automatic hscrolling
720 will horizontally scroll the window.  The default value is 5.
722 The variable `hscroll-step' determines how many columns automatic
723 hscrolling scrolls the window when point gets too close to the
724 window edge.  If its value is zero, the default, Emacs scrolls the
725 window so as to center point.  If its value is an integer, it says how
726 many columns to scroll.  If the value is a floating-point number, it
727 gives the fraction of the window's width to scroll the window.
729 The variable `automatic-hscrolling' was renamed to
730 `auto-hscroll-mode'.  The old name is still available as an alias.
733 *** Moving or scrolling through images (and other lines) taller that
734 the window now works sensibly, by automatically adjusting the window's
735 vscroll property.
738 *** The new face `mode-line-inactive' is used to display the mode line
739 of non-selected windows.  The `mode-line' face is now used to display
740 the mode line of the currently selected window.
742 The new variable `mode-line-in-non-selected-windows' controls whether
743 the `mode-line-inactive' face is used.
746 *** You can now customize the use of window fringes.  To control this
747 for all frames, use M-x fringe-mode or the Show/Hide submenu of the
748 top-level Options menu, or customize the `fringe-mode' variable.  To
749 control this for a specific frame, use the command M-x
750 set-fringe-style.
753 *** Angle icons in the fringes can indicate the buffer boundaries.  In
754 addition, up and down arrow bitmaps in the fringe indicate which ways
755 the window can be scrolled.
757 This behavior is activated by setting the buffer-local variable
758 `indicate-buffer-boundaries' to a non-nil value.  The default value of
759 this variable is found in `default-indicate-buffer-boundaries'.
761 If value is `left' or `right', both angle and arrow bitmaps are
762 displayed in the left or right fringe, resp.
764 The value can also be an alist which specifies the presence and
765 position of each bitmap individually.
767 For example, ((top . left) (t .  right)) places the top angle bitmap
768 in left fringe, the bottom angle bitmap in right fringe, and both
769 arrow bitmaps in right fringe.  To show just the angle bitmaps in the
770 left fringe, but no arrow bitmaps, use ((top . left) (bottom . left)).
773 *** On window systems, lines which are exactly as wide as the window
774 (not counting the final newline character) are no longer broken into
775 two lines on the display (with just the newline on the second line).
776 Instead, the newline now "overflows" into the right fringe, and the
777 cursor will be displayed in the fringe when positioned on that newline.
779 The new user option 'overflow-newline-into-fringe' can be set to nil to
780 revert to the old behavior of continuing such lines.
783 *** When a window has display margin areas, the fringes are now
784 displayed between the margins and the buffer's text area, rather than
785 outside those margins.
788 *** A window can now have individual fringe and scroll-bar settings,
789 in addition to the individual display margin settings.
791 Such individual settings are now preserved when windows are split
792 horizontally or vertically, a saved window configuration is restored,
793 or when the frame is resized.
795 ** Cursor display changes:
798 *** On X, MS Windows, and Mac OS, the blinking cursor's "off" state is
799 now controlled by the variable `blink-cursor-alist'.
802 *** The X resource cursorBlink can be used to turn off cursor blinking.
805 *** Emacs can produce an underscore-like (horizontal bar) cursor.
806 The underscore cursor is set by putting `(cursor-type . hbar)' in
807 default-frame-alist.  It supports variable heights, like the `bar'
808 cursor does.
811 *** Display of hollow cursors now obeys the buffer-local value (if any)
812 of `cursor-in-non-selected-windows' in the buffer that the cursor
813 appears in.
816 *** The variable `cursor-in-non-selected-windows' can now be set to any
817 of the recognized cursor types.
819 ** New faces:
822 *** `mode-line-highlight' is the standard face indicating mouse sensitive
823 elements on mode-line (and header-line) like `highlight' face on text
824 areas.
827 *** `shadow' face defines the appearance of the "shadowed" text, i.e.
828 the text which should be less noticeable than the surrounding text.
829 This can be achieved by using shades of grey in contrast with either
830 black or white default foreground color.  This generic shadow face
831 allows customization of the appearance of shadowed text in one place,
832 so package-specific faces can inherit from it.
835 *** `vertical-border' face is used for the vertical divider between windows.
837 ** Font-Lock changes:
840 *** M-o now is the prefix key for setting text properties;
841 M-o M-o requests refontification.
844 *** All modes now support using M-x font-lock-mode to toggle
845 fontification, even those such as Occur, Info, and comint-derived
846 modes that do their own fontification in a special way.
848 The variable `Info-fontify' is no longer applicable; to disable
849 fontification in Info, remove `turn-on-font-lock' from
850 `Info-mode-hook'.
853 *** font-lock-lines-before specifies a number of lines before the
854 current line that should be refontified when you change the buffer.
855 The default value is 1.
858 *** font-lock: in modes like C and Lisp where the fontification assumes that
859 an open-paren in column 0 is always outside of any string or comment,
860 font-lock now highlights any such open-paren-in-column-zero in bold-red
861 if it is inside a string or a comment, to indicate that it can cause
862 trouble with fontification and/or indentation.
865 *** New standard font-lock face `font-lock-preprocessor-face'.
868 *** New standard font-lock face `font-lock-comment-delimiter-face'.
871 *** Easy to overlook single character negation can now be font-locked.
872 You can use the new variable `font-lock-negation-char-face' and the face of
873 the same name to customize this.  Currently the cc-modes, sh-script-mode,
874 cperl-mode and make-mode support this.
877 *** The default settings for JIT stealth lock parameters are changed.
878 The default value for the user option jit-lock-stealth-time is now 16
879 instead of 3, and the default value of jit-lock-stealth-nice is now
880 0.5 instead of 0.125.  The new defaults should lower the CPU usage
881 when Emacs is fontifying in the background.
884 *** jit-lock can now be delayed with `jit-lock-defer-time'.
886 If this variable is non-nil, its value should be the amount of Emacs
887 idle time in seconds to wait before starting fontification.  For
888 example, if you set `jit-lock-defer-time' to 0.25, fontification will
889 only happen after 0.25s of idle time.
892 *** contextual refontification is now separate from stealth fontification.
894 jit-lock-defer-contextually is renamed jit-lock-contextually and
895 jit-lock-context-time determines the delay after which contextual
896 refontification takes place.
898 ** Menu support:
901 *** A menu item "Show/Hide" was added to the top-level menu "Options".
902 This menu allows you to turn various display features on and off (such
903 as the fringes, the tool bar, the speedbar, and the menu bar itself).
904 You can also move the vertical scroll bar to either side here or turn
905 it off completely.  There is also a menu-item to toggle displaying of
906 current date and time, current line and column number in the mode-line.
909 *** Speedbar has moved from the "Tools" top level menu to "Show/Hide".
912 *** You can exit dialog windows and menus by typing C-g.
915 *** The menu item "Open File..." has been split into two items, "New File..."
916 and "Open File...".  "Open File..." now opens only existing files.  This is
917 to support existing GUI file selection dialogs better.
920 *** The file selection dialog for Gtk+, Mac, W32 and Motif/Lesstif can be
921 disabled by customizing the variable `use-file-dialog'.
924 *** The pop up menus for Lucid now stay up if you do a fast click and can
925 be navigated with the arrow keys (like Gtk+, Mac and W32).
928 *** The Lucid menus can display multilingual text in your locale.  You have
929 to explicitly specify a fontSet resource for this to work, for example
930 `-xrm "Emacs*fontSet:  -*-helvetica-medium-r-*--*-120-*-*-*-*-*-*,*"'.
933 *** Dialogs for Lucid/Athena and Lesstif/Motif now pops down when pressing
934 ESC, like they do for Gtk+, Mac and W32.
937 *** For Gtk+ version 2.4, you can make Emacs use the old file dialog
938 by setting the variable `x-use-old-gtk-file-dialog' to t.  Default is to use
939 the new dialog.
941 ** Mouse changes:
944 *** If you set the new variable `mouse-autoselect-window' to a non-nil
945 value, windows are automatically selected as you move the mouse from
946 one Emacs window to another, even within a frame.  A minibuffer window
947 can be selected only when it is active.
950 *** On X, when the window manager requires that you click on a frame to
951 select it (give it focus), the selected window and cursor position
952 normally changes according to the mouse click position.  If you set
953 the variable x-mouse-click-focus-ignore-position to t, the selected
954 window and cursor position do not change when you click on a frame
955 to give it focus.
958 *** You can now follow links by clicking Mouse-1 on the link.
960 Traditionally, Emacs uses a Mouse-1 click to set point and a Mouse-2
961 click to follow a link, whereas most other applications use a Mouse-1
962 click for both purposes, depending on whether you click outside or
963 inside a link.  Now the behavior of a Mouse-1 click has been changed
964 to match this context-sentitive dual behavior.  (If you prefer the old
965 behavior, set the user option `mouse-1-click-follows-link' to nil.)
967 Depending on the current mode, a Mouse-2 click in Emacs can do much
968 more than just follow a link, so the new Mouse-1 behavior is only
969 activated for modes which explicitly mark a clickable text as a "link"
970 (see the new function `mouse-on-link-p' for details).  The Lisp
971 packages that are included in release 22.1 have been adapted to do
972 this, but external packages may not yet support this.  However, there
973 is no risk in using such packages, as the worst thing that could
974 happen is that you get the original Mouse-1 behavior when you click
975 on a link, which typically means that you set point where you click.
977 If you want to get the original Mouse-1 action also inside a link, you
978 just need to press the Mouse-1 button a little longer than a normal
979 click (i.e. press and hold the Mouse-1 button for half a second before
980 you release it).
982 Dragging the Mouse-1 inside a link still performs the original
983 drag-mouse-1 action, typically copy the text.
985 You can customize the new Mouse-1 behavior via the new user options
986 `mouse-1-click-follows-link' and `mouse-1-click-in-non-selected-windows'.
989 *** Emacs normally highlights mouse sensitive text whenever the mouse
990 is over the text.  By setting the new variable `mouse-highlight', you
991 can optionally enable mouse highlighting only after you move the
992 mouse, so that highlighting disappears when you press a key.  You can
993 also disable mouse highlighting.
996 *** You can now customize if selecting a region by dragging the mouse
997 shall not copy the selected text to the kill-ring by setting the new
998 variable mouse-drag-copy-region to nil.
1001 *** mouse-wheels can now scroll a specific fraction of the window
1002 (rather than a fixed number of lines) and the scrolling is `progressive'.
1005 *** Emacs ignores mouse-2 clicks while the mouse wheel is being moved.
1007 People tend to push the mouse wheel (which counts as a mouse-2 click)
1008 unintentionally while turning the wheel, so these clicks are now
1009 ignored.  You can customize this with the mouse-wheel-click-event and
1010 mouse-wheel-inhibit-click-time variables.
1013 *** Under X, mouse-wheel-mode is turned on by default.
1015 ** Multilingual Environment (Mule) changes:
1018 *** Language environment and various default coding systems are setup
1019 more correctly according to the current locale name.  If the locale
1020 name doesn't specify a charset, the default is what glibc defines.
1021 This change can result in using the different coding systems as
1022 default in some locale (e.g. vi_VN).
1025 *** The keyboard-coding-system is now automatically set based on your
1026 current locale settings if you are not using a window system.  This
1027 can mean that the META key doesn't work but generates non-ASCII
1028 characters instead, depending on how the terminal (or terminal
1029 emulator) works.  Use `set-keyboard-coding-system' (or customize
1030 keyboard-coding-system) if you prefer META to work (the old default)
1031 or if the locale doesn't describe the character set actually generated
1032 by the keyboard.  See Info node `Single-Byte Character Support'.
1035 *** The new command `revert-buffer-with-coding-system' (C-x RET r)
1036 revisits the current file using a coding system that you specify.
1039 *** New command `recode-region' decodes the region again by a specified
1040 coding system.
1043 *** The new command `recode-file-name' changes the encoding of the name
1044 of a file.
1047 *** New command `ucs-insert' inserts a character specified by its
1048 unicode.
1051 *** The new command `set-file-name-coding-system' (C-x RET F) sets
1052 coding system for encoding and decoding file names.  A new menu item
1053 (Options->Mule->Set Coding Systems->For File Name) invokes this
1054 command.
1057 *** New command quail-show-key shows what key (or key sequence) to type
1058 in the current input method to input a character at point.
1061 *** Limited support for character `unification' has been added.
1062 Emacs now knows how to translate between different representations of
1063 the same characters in various Emacs charsets according to standard
1064 Unicode mappings.  This applies mainly to characters in the ISO 8859
1065 sets plus some other 8-bit sets, but can be extended.  For instance,
1066 translation works amongst the Emacs ...-iso8859-... charsets and the
1067 mule-unicode-... ones.
1069 By default this translation happens automatically on encoding.
1070 Self-inserting characters are translated to make the input conformant
1071 with the encoding of the buffer in which it's being used, where
1072 possible.
1074 You can force a more complete unification with the user option
1075 unify-8859-on-decoding-mode.  That maps all the Latin-N character sets
1076 into Unicode characters (from the latin-iso8859-1 and
1077 mule-unicode-0100-24ff charsets) on decoding.  Note that this mode
1078 will often effectively clobber data with an iso-2022 encoding.
1081 *** There is support for decoding Greek and Cyrillic characters into
1082 either Unicode (the mule-unicode charsets) or the iso-8859 charsets,
1083 when possible.  The latter are more space-efficient.  This is
1084 controlled by user option utf-fragment-on-decoding.
1087 *** New language environments: French, Ukrainian, Tajik,
1088 Bulgarian, Belarusian, Ukrainian, UTF-8, Windows-1255, Welsh, Latin-6,
1089 Latin-7, Lithuanian, Latvian, Swedish, Slovenian, Croatian, Georgian,
1090 Italian, Russian, Malayalam, Tamil, Russian, Chinese-EUC-TW.  (Set up
1091 automatically according to the locale.)
1094 *** New input methods: latin-alt-postfix, latin-postfix, latin-prefix,
1095 ukrainian-computer, belarusian, bulgarian-bds, russian-computer,
1096 vietnamese-telex, lithuanian-numeric, lithuanian-keyboard,
1097 latvian-keyboard, welsh, georgian, rfc1345, ucs, sgml,
1098 bulgarian-phonetic, dutch, slovenian, croatian, malayalam-inscript,
1099 tamil-inscript.
1102 *** New input method chinese-sisheng for inputting Chinese Pinyin
1103 characters.
1106 *** Improved Thai support.  A new minor mode `thai-word-mode' (which is
1107 automatically activated if you select Thai as a language
1108 environment) changes key bindings of most word-oriented commands to
1109 versions which recognize Thai words.  Affected commands are
1110     M-f     (forward-word)
1111     M-b     (backward-word)
1112     M-d     (kill-word)
1113     M-DEL   (backward-kill-word)
1114     M-t     (transpose-words)
1115     M-q     (fill-paragraph)
1118 *** Indian support has been updated.
1119 The in-is13194 coding system is now Unicode-based.  CDAC fonts are
1120 assumed.  There is a framework for supporting various
1121 Indian scripts, but currently only Devanagari, Malayalam and Tamil are
1122 supported.
1125 *** A UTF-7 coding system is available in the library `utf-7'.
1128 *** The utf-8/16 coding systems have been enhanced.
1129 By default, untranslatable utf-8 sequences are simply composed into
1130 single quasi-characters.  User option `utf-translate-cjk-mode' (it is
1131 turned on by default) arranges to translate many utf-8 CJK character
1132 sequences into real Emacs characters in a similar way to the Mule-UCS
1133 system.  As this loads a fairly big data on demand, people who are not
1134 interested in CJK characters may want to customize it to nil.
1135 You can augment/amend the CJK translation via hash tables
1136 `ucs-mule-cjk-to-unicode' and `ucs-unicode-to-mule-cjk'.  The utf-8
1137 coding system now also encodes characters from most of Emacs's
1138 one-dimensional internal charsets, specifically the ISO-8859 ones.
1139 The utf-16 coding system is affected similarly.
1142 *** A new coding system `euc-tw' has been added for traditional Chinese
1143 in CNS encoding; it accepts both Big 5 and CNS as input; on saving,
1144 Big 5 is then converted to CNS.
1147 *** Many new coding systems are available in the `code-pages' library.
1148 These include complete versions of most of those in codepage.el, based
1149 on Unicode mappings.  `codepage-setup' is now obsolete and is used
1150 only in the MS-DOS port of Emacs.  All coding systems defined in
1151 `code-pages' are auto-loaded.
1154 *** New variable `utf-translate-cjk-unicode-range' controls which
1155 Unicode characters to translate in `utf-translate-cjk-mode'.
1158 *** iso-10646-1 (`Unicode') fonts can be used to display any range of
1159 characters encodable by the utf-8 coding system.  Just specify the
1160 fontset appropriately.
1162 ** Customize changes:
1165 *** Custom themes are collections of customize options.  Create a
1166 custom theme with M-x customize-create-theme.  Use M-x load-theme to
1167 load and enable a theme, and M-x disable-theme to disable it.  Use M-x
1168 enable-theme to renable a disabled theme.
1171 *** The commands M-x customize-face and M-x customize-face-other-window
1172 now look at the character after point.  If a face or faces are
1173 specified for that character, the commands by default customize those
1174 faces.
1177 *** The face-customization widget has been reworked to be less confusing.
1178 In particular, when you enable a face attribute using the corresponding
1179 check-box, there's no longer a redundant `*' option in value selection
1180 for that attribute; the values you can choose are only those which make
1181 sense for the attribute.  When an attribute is de-selected by unchecking
1182 its check-box, then the (now ignored, but still present temporarily in
1183 case you re-select the attribute) value is hidden.
1186 *** When you set or reset a variable's value in a Customize buffer,
1187 the previous value becomes the "backup value" of the variable.
1188 You can go back to that backup value by selecting "Use Backup Value"
1189 under the "[State]" button.
1191 ** Buffer Menu changes:
1194 *** New command `Buffer-menu-toggle-files-only' toggles display of file
1195 buffers only in the Buffer Menu.  It is bound to `T' in Buffer Menu
1196 mode.
1199 *** `buffer-menu' and `list-buffers' now list buffers whose names begin
1200 with a space, when those buffers are visiting files.  Normally buffers
1201 whose names begin with space are omitted.
1204 *** The new options `buffers-menu-show-directories' and
1205 `buffers-menu-show-status' let you control how buffers are displayed
1206 in the menu dropped down when you click "Buffers" from the menu bar.
1208 `buffers-menu-show-directories' controls whether the menu displays
1209 leading directories as part of the file name visited by the buffer.
1210 If its value is `unless-uniquify', the default, directories are
1211 shown unless uniquify-buffer-name-style' is non-nil.  The value of nil
1212 and t turn the display of directories off and on, respectively.
1214 `buffers-menu-show-status' controls whether the Buffers menu includes
1215 the modified and read-only status of the buffers.  By default it is
1216 t, and the status is shown.
1218 Setting these variables directly does not take effect until next time
1219 the Buffers menu is regenerated.
1221 ** Dired mode:
1224 *** New faces dired-header, dired-mark, dired-marked, dired-flagged,
1225 dired-ignored, dired-directory, dired-symlink, dired-warning
1226 introduced for Dired mode instead of font-lock faces.
1229 *** New Dired command `dired-compare-directories' marks files
1230 with different file attributes in two dired buffers.
1233 *** New Dired command `dired-do-touch' (bound to T) changes timestamps
1234 of marked files with the value entered in the minibuffer.
1237 *** In Dired's ! command (dired-do-shell-command), `*' and `?' now
1238 control substitution of the file names only when they are surrounded
1239 by whitespace.  This means you can now use them as shell wildcards
1240 too.  If you want to use just plain `*' as a wildcard, type `*""'; the
1241 doublequotes make no difference in the shell, but they prevent
1242 special treatment in `dired-do-shell-command'.
1245 *** In Dired, the w command now copies the current line's file name
1246 into the kill ring.  With a zero prefix arg, copies absolute file names.
1249 *** In Dired-x, Omitting files is now a minor mode, dired-omit-mode.
1251 The mode toggling command is bound to M-o.  A new command
1252 dired-mark-omitted, bound to * O, marks omitted files.  The variable
1253 dired-omit-files-p is obsoleted, use the mode toggling function
1254 instead.
1257 *** The variables dired-free-space-program and dired-free-space-args
1258 have been renamed to directory-free-space-program and
1259 directory-free-space-args, and they now apply whenever Emacs puts a
1260 directory listing into a buffer.
1262 ** Comint changes:
1265 *** The comint prompt can now be made read-only, using the new user
1266 option `comint-prompt-read-only'.  This is not enabled by default,
1267 except in IELM buffers.  The read-only status of IELM prompts can be
1268 controlled with the new user option `ielm-prompt-read-only', which
1269 overrides `comint-prompt-read-only'.
1271 The new commands `comint-kill-whole-line' and `comint-kill-region'
1272 support editing comint buffers with read-only prompts.
1274 `comint-kill-whole-line' is like `kill-whole-line', but ignores both
1275 read-only and field properties.  Hence, it always kill entire
1276 lines, including any prompts.
1278 `comint-kill-region' is like `kill-region', except that it ignores
1279 read-only properties, if it is safe to do so.  This means that if any
1280 part of a prompt is deleted, then the entire prompt must be deleted
1281 and that all prompts must stay at the beginning of a line.  If this is
1282 not the case, then `comint-kill-region' behaves just like
1283 `kill-region' if read-only properties are involved: it copies the text
1284 to the kill-ring, but does not delete it.
1287 *** The new command `comint-insert-previous-argument' in comint-derived
1288 modes (shell-mode etc) inserts arguments from previous command lines,
1289 like bash's `ESC .' binding.  It is bound by default to `C-c .', but
1290 otherwise behaves quite similarly to the bash version.
1293 *** `comint-use-prompt-regexp-instead-of-fields' has been renamed
1294 `comint-use-prompt-regexp'.  The old name has been kept as an alias,
1295 but declared obsolete.
1297 ** M-x Compile changes:
1300 *** M-x compile has become more robust and reliable
1302 Quite a few more kinds of messages are recognized.  Messages that are
1303 recognized as warnings or informational come in orange or green, instead of
1304 red.  Informational messages are by default skipped with `next-error'
1305 (controlled by `compilation-skip-threshold').
1307 Location data is collected on the fly as the *compilation* buffer changes.
1308 This means you could modify messages to make them point to different files.
1309 This also means you can not go to locations of messages you may have deleted.
1311 The variable `compilation-error-regexp-alist' has now become customizable.  If
1312 you had added your own regexps to this, you'll probably need to include a
1313 leading `^', otherwise they'll match anywhere on a line.  There is now also a
1314 `compilation-mode-font-lock-keywords' and it nicely handles all the checks
1315 that configure outputs and -o options so you see at a glance where you are.
1317 The new file etc/compilation.txt gives examples of each type of message.
1320 *** New user option `compilation-environment'.
1321 This option allows you to specify environment variables for inferior
1322 compilation processes without affecting the environment that all
1323 subprocesses inherit.
1326 *** New user option `compilation-disable-input'.
1327 If this is non-nil, send end-of-file as compilation process input.
1330 *** New options `next-error-highlight' and `next-error-highlight-no-select'
1331 specify the method of highlighting of the corresponding source line
1332 in new face `next-error'.
1335 *** A new minor mode `next-error-follow-minor-mode' can be used in
1336 compilation-mode, grep-mode, occur-mode, and diff-mode (i.e. all the
1337 modes that can use `next-error').  In this mode, cursor motion in the
1338 buffer causes automatic display in another window of the corresponding
1339 matches, compilation errors, etc.  This minor mode can be toggled with
1340 C-c C-f.
1343 *** When the left fringe is displayed, an arrow points to current message in
1344 the compilation buffer.
1347 *** The new variable `compilation-context-lines' controls lines of leading
1348 context before the current message.  If nil and the left fringe is displayed,
1349 it doesn't scroll the compilation output window.  If there is no left fringe,
1350 no arrow is displayed and a value of nil means display the message at the top
1351 of the window.
1353 ** Occur mode changes:
1356 *** In the *Occur* buffer, `o' switches to it in another window, and
1357 C-o displays the current line's occurrence in another window without
1358 switching to it.
1361 *** You can now use next-error (C-x `) and previous-error to advance to
1362 the next/previous matching line found by M-x occur.
1365 *** The new command `multi-occur' is just like `occur', except it can
1366 search multiple buffers.  There is also a new command
1367 `multi-occur-by-filename-regexp' which allows you to specify the
1368 buffers to search by their filename.  Internally, Occur mode has been
1369 rewritten, and now uses font-lock, among other changes.
1371 ** Grep changes:
1374 *** Grep has been decoupled from compilation mode setup.
1376 There's a new separate package grep.el, with its own submenu and
1377 customization group.
1380 *** M-x grep provides highlighting support.
1382 Hits are fontified in green, and hits in binary files in orange.  Grep buffers
1383 can be saved and automatically revisited.
1386 *** `grep-find' is now also available under the name `find-grep' where
1387 people knowing `find-grep-dired' would probably expect it.
1390 *** The new variables `grep-window-height', `grep-auto-highlight', and
1391 `grep-scroll-output' override the corresponding compilation mode
1392 settings, for grep commands only.
1395 *** New option `grep-highlight-matches' highlightes matches in *grep*
1396 buffer.  It uses a special feature of some grep programs which accept
1397 --color option to output markers around matches.  When going to the next
1398 match with `next-error' the exact match is highlighted in the source
1399 buffer.  Otherwise, if `grep-highlight-matches' is nil, the whole
1400 source line is highlighted.
1403 *** New key bindings in grep output window:
1404 SPC and DEL scrolls window up and down.  C-n and C-p moves to next and
1405 previous match in the grep window.  RET jumps to the source line of
1406 the current match.  `n' and `p' shows next and previous match in
1407 other window, but does not switch buffer.  `{' and `}' jumps to the
1408 previous or next file in the grep output.  TAB also jumps to the next
1409 file.
1412 *** M-x grep now tries to avoid appending `/dev/null' to the command line
1413 by using GNU grep `-H' option instead.  M-x grep automatically
1414 detects whether this is possible or not the first time it is invoked.
1415 When `-H' is used, the grep command line supplied by the user is passed
1416 unchanged to the system to execute, which allows more complicated
1417 command lines to be used than was possible before.
1419 ** X Windows Support:
1422 *** Emacs now supports drag and drop for X.  Dropping a file on a window
1423    opens it, dropping text inserts the text.  Dropping a file on a dired
1424    buffer copies or moves the file to that directory.
1427 *** Under X11, it is possible to swap Alt and Meta (and Super and Hyper).
1428 The new variables `x-alt-keysym', `x-hyper-keysym', `x-meta-keysym',
1429 and `x-super-keysym' can be used to choose which keysyms Emacs should
1430 use for the modifiers.  For example, the following two lines swap
1431 Meta and Alt:
1432     (setq x-alt-keysym 'meta)
1433     (setq x-meta-keysym 'alt)
1436 *** The X resource useXIM can be used to turn off use of XIM, which can
1437 speed up Emacs with slow networking to the X server.
1439 If the configure option `--without-xim' was used to turn off use of
1440 XIM by default, the X resource useXIM can be used to turn it on.
1443 *** The new variable `x-select-request-type' controls how Emacs
1444 requests X selection.  The default value is nil, which means that
1445 Emacs requests X selection with types COMPOUND_TEXT and UTF8_STRING,
1446 and use the more appropriately result.
1449 *** The scrollbar under LessTif or Motif has a smoother drag-scrolling.
1450 On the other hand, the size of the thumb does not represent the actual
1451 amount of text shown any more (only a crude approximation of it).
1453 ** Xterm support:
1456 *** Emacs now responds to mouse-clicks on the mode-line, header-line and
1457 display margin, when run in an xterm.
1460 *** Improved key bindings support when running in an xterm.
1461 When emacs is running in an xterm more key bindings are available. The
1462 following should work:
1463 {C,S,C-S,A}-{right,left,up,down,prior,next,delete,insert,F1-12}.
1464 These key bindings work on xterm from X.org 6.8, they might not work on
1465 some older versions of xterm, or on some proprietary versions.
1467 ** Character terminal color support changes:
1470 *** The new command-line option --color=MODE lets you specify a standard
1471 mode for a tty color support.  It is meant to be used on character
1472 terminals whose capabilities are not set correctly in the terminal
1473 database, or with terminal emulators which support colors, but don't
1474 set the TERM environment variable to a name of a color-capable
1475 terminal.  "emacs --color" uses the same color commands as GNU `ls'
1476 when invoked with "ls --color", so if your terminal can support colors
1477 in "ls --color", it will support "emacs --color" as well.  See the
1478 user manual for the possible values of the MODE parameter.
1481 *** Emacs now supports several character terminals which provide more
1482 than 8 colors.  For example, for `xterm', 16-color, 88-color, and
1483 256-color modes are supported.  Emacs automatically notes at startup
1484 the extended number of colors, and defines the appropriate entries for
1485 all of these colors.
1488 *** Emacs now uses the full range of available colors for the default
1489 faces when running on a color terminal, including 16-, 88-, and
1490 256-color xterms.  This means that when you run "emacs -nw" on an
1491 88-color or 256-color xterm, you will see essentially the same face
1492 colors as on X.
1495 *** There's a new support for colors on `rxvt' terminal emulator.
1497 * New Modes and Packages in Emacs 22.1
1499 ** Rcirc is now part of the Emacs distribution.
1501 Rcirc is an Internet relay chat (IRC) client.  It supports
1502 simultaneous connections to multiple IRC servers.  Each discussion
1503 takes place in its own buffer.  For each connection you can join
1504 several channels (many-to-many) and participate in private
1505 (one-to-one) chats.  Both channel and private chats are contained in
1506 separate buffers.
1508 To start an IRC session, type M-x irc, and follow the prompts for
1509 server, port, nick and initial channels.
1512 ** Newsticker is now part of the Emacs distribution.
1514 Newsticker asynchronously retrieves headlines (RSS) from a list of news
1515 sites, prepares these headlines for reading, and allows for loading the
1516 corresponding articles in a web browser.  Its documentation is in a
1517 separate manual.
1520 ** savehist saves minibuffer histories between sessions.
1521 To use this feature, turn on savehist-mode in your `.emacs' file.
1524 ** Filesets are collections of files.  You can define a fileset in
1525 various ways, such as based on a directory tree or based on
1526 program files that include other program files.
1528 Once you have defined a fileset, you can perform various operations on
1529 all the files in it, such as visiting them or searching and replacing
1530 in them.
1533 ** Calc is now part of the Emacs distribution.
1535 Calc is an advanced desk calculator and mathematical tool written in
1536 Emacs Lisp.  The prefix for Calc has been changed to `C-x *' and Calc
1537 can be started with `C-x * *'.  The Calc manual is separate from the
1538 Emacs manual; within Emacs, type "C-h i m calc RET" to read the
1539 manual.  A reference card is available in `etc/calccard.tex' and
1540 `etc/calccard.ps'.
1543 ** The new package ibuffer provides a powerful, completely
1544 customizable replacement for buff-menu.el.
1547 ** Ido mode is now part of the Emacs distribution.
1549 The ido (interactively do) package is an extension of the iswitchb
1550 package to do interactive opening of files and directories in addition
1551 to interactive buffer switching.  Ido is a superset of iswitchb (with
1552 a few exceptions), so don't enable both packages.
1555 ** Image files are normally visited in Image mode, which lets you toggle
1556 between viewing the image and viewing the text using C-c C-c.
1559 ** CUA mode is now part of the Emacs distribution.
1561 The new cua package provides CUA-like keybindings using C-x for
1562 cut (kill), C-c for copy, C-v for paste (yank), and C-z for undo.
1563 With cua, the region can be set and extended using shifted movement
1564 keys (like pc-selection-mode) and typed text replaces the active
1565 region (like delete-selection-mode).  Do not enable these modes with
1566 cua-mode.  Customize the variable `cua-mode' to enable cua.
1568 In addition, cua provides unified rectangle support with visible
1569 rectangle highlighting: Use C-return to start a rectangle, extend it
1570 using the movement commands (or mouse-3), and cut or copy it using C-x
1571 or C-c (using C-w and M-w also works).
1573 Use M-o and M-c to `open' or `close' the rectangle, use M-b or M-f, to
1574 fill it with blanks or another character, use M-u or M-l to upcase or
1575 downcase the rectangle, use M-i to increment the numbers in the
1576 rectangle, use M-n to fill the rectangle with a numeric sequence (such
1577 as 10 20 30...), use M-r to replace a regexp in the rectangle, and use
1578 M-' or M-/ to restrict command on the rectangle to a subset of the
1579 rows.  See the commentary in cua-base.el for more rectangle commands.
1581 Cua also provides unified support for registers:  Use a numeric
1582 prefix argument between 0 and 9, i.e. M-0 .. M-9, for C-x, C-c, and
1583 C-v to cut or copy into register 0-9, or paste from register 0-9.
1585 The last text deleted (not killed) is automatically stored in
1586 register 0.  This includes text deleted by typing text.
1588 Finally, cua provides a global mark which is set using S-C-space.
1589 When the global mark is active, any text which is cut or copied is
1590 automatically inserted at the global mark position.  See the
1591 commentary in cua-base.el for more global mark related commands.
1593 The features of cua also works with the standard emacs bindings for
1594 kill, copy, yank, and undo.  If you want to use cua mode, but don't
1595 want the C-x, C-c, C-v, and C-z bindings, you can customize the
1596 `cua-enable-cua-keys' variable.
1598 Note: This version of cua mode is not backwards compatible with older
1599 versions of cua.el and cua-mode.el.  To ensure proper operation, you
1600 must remove older versions of cua.el or cua-mode.el as well as the
1601 loading and customization of those packages from the .emacs file.
1604 ** Org mode is now part of the Emacs distribution
1606 Org mode is a mode for keeping notes, maintaining ToDo lists, and
1607 doing project planning with a fast and effective plain-text system.
1608 It also contains a plain-text table editor with spreadsheet-like
1609 capabilities.
1611 The Org mode table editor can be integrated into any major mode by
1612 activating the minor Orgtbl-mode.
1614 The documentation for org-mode is in a separate manual; within Emacs,
1615 type "C-h i m org RET" to read that manual.  A reference card is
1616 available in `etc/orgcard.tex' and `etc/orgcard.ps'.
1619 ** The new package dns-mode.el add syntax highlight of DNS master files.
1620 The key binding C-c C-s (`dns-mode-soa-increment-serial') can be used
1621 to increment the SOA serial.
1624 ** The new global minor mode `file-name-shadow-mode' modifies the way
1625 filenames being entered by the user in the minibuffer are displayed, so
1626 that it's clear when part of the entered filename will be ignored due to
1627 emacs' filename parsing rules.  The ignored portion can be made dim,
1628 invisible, or otherwise less visually noticable.  The display method can
1629 be displayed by customizing the variable `file-name-shadow-properties'.
1632 ** The new package flymake.el does on-the-fly syntax checking of program
1633 source files.  See the Flymake's Info manual for more details.
1636 ** The new keypad setup package provides several common bindings for
1637 the numeric keypad which is available on most keyboards.  The numeric
1638 keypad typically has the digits 0 to 9, a decimal point, keys marked
1639 +, -, /, and *, an Enter key, and a NumLock toggle key.  The keypad
1640 package only controls the use of the digit and decimal keys.
1642 By customizing the variables `keypad-setup', `keypad-shifted-setup',
1643 `keypad-numlock-setup', and `keypad-numlock-shifted-setup', or by
1644 using the function `keypad-setup', you can rebind all digit keys and
1645 the decimal key of the keypad in one step for each of the four
1646 possible combinations of the Shift key state (not pressed/pressed) and
1647 the NumLock toggle state (off/on).
1649 The choices for the keypad keys in each of the above states are:
1650 `Plain numeric keypad' where the keys generates plain digits,
1651 `Numeric keypad with decimal key' where the character produced by the
1652 decimal key can be customized individually (for internationalization),
1653 `Numeric Prefix Arg' where the keypad keys produce numeric prefix args
1654 for emacs editing commands, `Cursor keys' and `Shifted Cursor keys'
1655 where the keys work like (shifted) arrow keys, home/end, etc., and
1656 `Unspecified/User-defined' where the keypad keys (kp-0, kp-1, etc.)
1657 are left unspecified and can be bound individually through the global
1658 or local keymaps.
1661 ** The new kmacro package provides a simpler user interface to
1662 emacs' keyboard macro facilities.
1664 Basically, it uses two function keys (default F3 and F4) like this:
1665 F3 starts a macro, F4 ends the macro, and pressing F4 again executes
1666 the last macro.  While defining the macro, F3 inserts a counter value
1667 which automatically increments every time the macro is executed.
1669 There is now a keyboard macro ring which stores the most recently
1670 defined macros.
1672 The C-x C-k sequence is now a prefix for the kmacro keymap which
1673 defines bindings for moving through the keyboard macro ring,
1674 C-x C-k C-p and C-x C-k C-n, editing the last macro C-x C-k C-e,
1675 manipulating the macro counter and format via C-x C-k C-c,
1676 C-x C-k C-a, and C-x C-k C-f.  See the commentary in kmacro.el
1677 for more commands.
1679 The normal macro bindings C-x (, C-x ), and C-x e now interfaces to
1680 the keyboard macro ring.
1682 The C-x e command now automatically terminates the current macro
1683 before calling it, if used while defining a macro.
1685 In addition, when ending or calling a macro with C-x e, the macro can
1686 be repeated immediately by typing just the `e'.  You can customize
1687 this behavior via the variables kmacro-call-repeat-key and
1688 kmacro-call-repeat-with-arg.
1690 Keyboard macros can now be debugged and edited interactively.
1691 C-x C-k SPC steps through the last keyboard macro one key sequence
1692 at a time, prompting for the actions to take.
1695 ** New minor mode, Visible mode, toggles invisibility in the current buffer.
1696 When enabled, it makes all invisible text visible.  When disabled, it
1697 restores the previous value of `buffer-invisibility-spec'.
1700 ** The wdired.el package allows you to use normal editing commands on Dired
1701 buffers to change filenames, permissions, etc...
1704 ** The new package longlines.el provides a minor mode for editing text
1705 files composed of long lines, based on the `use-hard-newlines'
1706 mechanism.  The long lines are broken up by inserting soft newlines,
1707 which are automatically removed when saving the file to disk or
1708 copying into the kill ring, clipboard, etc.  By default, Longlines
1709 mode inserts soft newlines automatically during editing, a behavior
1710 referred to as "soft word wrap" in other text editors.  This is
1711 similar to Refill mode, but more reliable.  To turn the word wrap
1712 feature off, set `longlines-auto-wrap' to nil.
1715 ** The printing package is now part of the Emacs distribution.
1717 If you enable the printing package by including (require 'printing) in
1718 the .emacs file, the normal Print item on the File menu is replaced
1719 with a Print sub-menu which allows you to preview output through
1720 ghostview, use ghostscript to print (if you don't have a PostScript
1721 printer) or send directly to printer a PostScript code generated by
1722 `ps-print' package.  Use M-x pr-help for more information.
1725 ** The minor mode Reveal mode makes text visible on the fly as you
1726 move your cursor into hidden regions of the buffer.
1727 It should work with any package that uses overlays to hide parts
1728 of a buffer, such as outline-minor-mode, hs-minor-mode, hide-ifdef-mode, ...
1730 There is also Global Reveal mode which affects all buffers.
1733 ** The ruler-mode.el library provides a minor mode for displaying an
1734 "active" ruler in the header line.  You can use the mouse to visually
1735 change the `fill-column', `window-margins' and `tab-stop-list'
1736 settings.
1739 ** SES mode (ses-mode) is a new major mode for creating and editing
1740 spreadsheet files.  Besides the usual Emacs features (intuitive command
1741 letters, undo, cell formulas in Lisp, plaintext files, etc.) it also offers
1742 viral immunity and import/export of tab-separated values.
1745 ** The new global minor mode `size-indication-mode' (off by default)
1746 shows the size of accessible part of the buffer on the mode line.
1749 ** The new package table.el implements editable, WYSIWYG, embedded
1750 `text tables' in Emacs buffers.  It simulates the effect of putting
1751 these tables in a special major mode.  The package emulates WYSIWYG
1752 table editing available in modern word processors.  The package also
1753 can generate a table source in typesetting and markup languages such
1754 as latex and html from the visually laid out text table.
1756 ** The tumme.el package allows you to easily view, tag and in other ways
1757 manipulate image files and their thumbnails, using dired as the main interface.
1758 Tumme provides functionality to generate simple image galleries.
1761 ** Tramp is now part of the distribution.
1763 This package is similar to Ange-FTP: it allows you to edit remote
1764 files.  But whereas Ange-FTP uses FTP to access the remote host,
1765 Tramp uses a shell connection.  The shell connection is always used
1766 for filename completion and directory listings and suchlike, but for
1767 the actual file transfer, you can choose between the so-called
1768 `inline' methods (which transfer the files through the shell
1769 connection using base64 or uu encoding) and the `out-of-band' methods
1770 (which invoke an external copying program such as `rcp' or `scp' or
1771 `rsync' to do the copying).
1773 Shell connections can be acquired via `rsh', `ssh', `telnet' and also
1774 `su' and `sudo'.  Ange-FTP is still supported via the `ftp' method.
1776 If you want to disable Tramp you should set
1778   (setq tramp-default-method "ftp")
1781 ** The URL package (which had been part of W3) is now part of Emacs.
1784 ** `cfengine-mode' is a major mode for editing GNU Cfengine
1785 configuration files.
1788 ** The new package conf-mode.el handles thousands of configuration files, with
1789 varying syntaxes for comments (;, #, //, /* */ or !), assignment (var = value,
1790 var : value, var value or keyword var value) and sections ([section] or
1791 section { }).  Many files under /etc/, or with suffixes like .cf through
1792 .config, .properties (Java), .desktop (KDE/Gnome), .ini and many others are
1793 recognized.
1796 ** GDB-Script-mode is used for files like .gdbinit.
1799 ** The new python.el package is used to edit Python and Jython programs.
1802 ** The TCL package tcl-mode.el was replaced by tcl.el.
1803 This was actually done in Emacs-21.1, and was not documented.
1805 ** The new package scroll-lock.el provides the Scroll Lock minor mode
1806 for pager-like scrolling.  Keys which normally move point by line or
1807 paragraph will scroll the buffer by the respective amount of lines
1808 instead and point will be kept vertically fixed relative to window
1809 boundaries during scrolling.
1811 * Changes in Specialized Modes and Packages in Emacs 22.1:
1813 ** Changes in Hi Lock:
1816 *** hi-lock-mode now only affects a single buffer, and a new function
1817 `global-hi-lock-mode' enables Hi Lock in all buffers.  By default, if
1818 hi-lock-mode is used in what appears to be the initialization file, a
1819 warning message suggests to use global-hi-lock-mode instead.  However,
1820 if the new variable `hi-lock-archaic-interface-deduce' is non-nil,
1821 using hi-lock-mode in an initialization file will turn on Hi Lock in all
1822 buffers and no warning will be issued (for compatibility with the
1823 behavior in older versions of Emacs).
1825 ** Changes in Allout
1827 *** Topic cryptography added, enabling easy gpg topic encryption and
1828 decryption.  Per-topic basis enables interspersing encrypted-text and
1829 clear-text within a single file to your hearts content, using symmetric
1830 and/or public key modes.  Time-limited key caching, user-provided
1831 symmetric key hinting and consistency verification, auto-encryption of
1832 pending topics on save, and more, make it easy to use encryption in
1833 powerful ways.
1835 *** many substantial fixes and refinements, including:
1837    - repaired inhibition of inadvertent edits to concealed text
1838    - repaired retention of topic body hanging indent upon topic depth shifts
1839    - prevent "containment discontinuities" where a topic is shifted deeper
1840      than the offspring-depth of its container
1841    - easy to adopt the distinctive bullet of a topic in a topic created
1842      relative to it, or select a new one, or use the common topic bullet
1843    - plain bullets, by default, now alternate between only two characters
1844      ('.' and ','), yielding less cluttered outlines
1845    - many internal fixes
1846    - version number incremented to 2.1
1848 ** The variable `woman-topic-at-point' was renamed
1849 to `woman-use-topic-at-point' and behaves differently: if this
1850 variable is non-nil, the `woman' command uses the word at point
1851 automatically, without asking for a confirmation.  Otherwise, the word
1852 at point is suggested as default, but not inserted at the prompt.
1855 ** Changes to cmuscheme
1857 *** Emacs now offers to start Scheme if the user tries to
1858 evaluate a Scheme expression but no Scheme subprocess is running.
1860 *** If a file `.emacs_NAME' (where NAME is the name of the Scheme interpreter)
1861 exists in the user's home directory or in ~/.emacs.d, its
1862 contents are sent to the Scheme subprocess upon startup.
1864 *** There are new commands to instruct the Scheme interpreter to trace
1865 procedure calls (`scheme-trace-procedure') and to expand syntactic forms
1866 (`scheme-expand-current-form').  The commands actually sent to the Scheme
1867 subprocess are controlled by the user options `scheme-trace-command',
1868 `scheme-untrace-command' and `scheme-expand-current-form'.
1871 ** Makefile mode has submodes for automake, gmake, makepp and BSD make.
1873 The former two couldn't be differentiated before, and the latter two
1874 are new.  Font-locking is robust now and offers new customizable
1875 faces.
1878 ** In Outline mode, `hide-body' no longer hides lines at the top
1879 of the file that precede the first header line.
1882 ** Telnet now prompts you for a port number with C-u M-x telnet.
1885 ** The terminal emulation code in term.el has been improved; it can
1886 run most curses applications now.
1889 ** M-x diff uses Diff mode instead of Compilation mode.
1892 ** You can now customize `fill-nobreak-predicate' to control where
1893 filling can break lines.  The value is now normally a list of
1894 functions, but it can also be a single function, for compatibility.
1896 Emacs provide two predicates, `fill-single-word-nobreak-p' and
1897 `fill-french-nobreak-p', for use as the value of
1898 `fill-nobreak-predicate'.
1901 ** M-x view-file and commands that use it now avoid interfering
1902 with special modes such as Tar mode.
1905 ** Commands `winner-redo' and `winner-undo', from winner.el, are now
1906 bound to C-c <left> and C-c <right>, respectively.  This is an
1907 incompatible change.
1910 ** `global-whitespace-mode' is a new alias for `whitespace-global-mode'.
1913 ** M-x compare-windows now can automatically skip non-matching text to
1914 resync points in both windows.
1917 ** New user option `add-log-always-start-new-record'.
1919 When this option is enabled, M-x add-change-log-entry always
1920 starts a new record regardless of when the last record is.
1923 ** PO translation files are decoded according to their MIME headers
1924 when Emacs visits them.
1926 ** Info mode changes:
1929 *** A numeric prefix argument of `info' selects an Info buffer
1930 with the number appended to the `*info*' buffer name (e.g. "*info*<2>").
1933 *** isearch in Info uses Info-search and searches through multiple nodes.
1935 Before leaving the initial Info node isearch fails once with the error
1936 message [initial node], and with subsequent C-s/C-r continues through
1937 other nodes.  When isearch fails for the rest of the manual, it wraps
1938 aroung the whole manual to the top/final node.  The user option
1939 `Info-isearch-search' controls whether to use Info-search for isearch,
1940 or the default isearch search function that wraps around the current
1941 Info node.
1944 *** New search commands: `Info-search-case-sensitively' (bound to S),
1945 `Info-search-backward', and `Info-search-next' which repeats the last
1946 search without prompting for a new search string.
1949 *** New command `Info-history-forward' (bound to r and new toolbar icon)
1950 moves forward in history to the node you returned from after using
1951 `Info-history-back' (renamed from `Info-last').
1954 *** New command `Info-history' (bound to L) displays a menu of visited nodes.
1957 *** New command `Info-toc' (bound to T) creates a node with table of contents
1958 from the tree structure of menus of the current Info file.
1961 *** New command `info-apropos' searches the indices of the known
1962 Info files on your system for a string, and builds a menu of the
1963 possible matches.
1966 *** New command `Info-copy-current-node-name' (bound to w) copies
1967 the current Info node name into the kill ring.  With a zero prefix
1968 arg, puts the node name inside the `info' function call.
1971 *** New face `info-xref-visited' distinguishes visited nodes from unvisited
1972 and a new option `Info-fontify-visited-nodes' to control this.
1975 *** http and ftp links in Info are now operational: they look like cross
1976 references and following them calls `browse-url'.
1979 *** Info now hides node names in menus and cross references by default.
1981 If you prefer the old behavior, you can set the new user option
1982 `Info-hide-note-references' to nil.
1985 *** Images in Info pages are supported.
1987 Info pages show embedded images, in Emacs frames with image support.
1988 Info documentation that includes images, processed with makeinfo
1989 version 4.7 or newer, compiles to Info pages with embedded images.
1992 *** The default value for `Info-scroll-prefer-subnodes' is now nil.
1995 *** `Info-index' offers completion.
1997 ** Lisp mode changes:
2000 *** Lisp mode now uses `font-lock-doc-face' for doc strings.
2003 *** C-u C-M-q in Emacs Lisp mode pretty-prints the list after point.
2005 *** New features in evaluation commands
2008 **** The function `eval-defun' (C-M-x) called on defface reinitializes
2009 the face to the value specified in the defface expression.
2012 **** Typing C-x C-e twice prints the value of the integer result
2013 in additional formats (octal, hexadecimal, character) specified
2014 by the new function `eval-expression-print-format'.  The same
2015 function also defines the result format for `eval-expression' (M-:),
2016 `eval-print-last-sexp' (C-j) and some edebug evaluation functions.
2019 ** CC mode changes.
2021 *** The CC Mode manual has been extensively revised.
2022 The information about using CC Mode has been separated from the larger
2023 and more difficult chapters about configuration.
2025 *** Changes in Key Sequences
2026 **** c-toggle-auto-hungry-state is no longer bound to C-c C-t.
2028 **** c-toggle-hungry-state is no longer bound to C-c C-d.
2029 This binding has been taken over by c-hungry-delete-forwards.
2031 **** c-toggle-auto-state (C-c C-t) has been renamed to c-toggle-auto-newline.
2032 c-toggle-auto-state remains as an alias.
2034 **** The new commands c-hungry-backspace and c-hungry-delete-forwards
2035 have key bindings C-c C-DEL (or C-c DEL, for the benefit of TTYs) and
2036 C-c C-d (or C-c C-<delete> or C-c <delete>) respectively.  These
2037 commands delete entire blocks of whitespace with a single
2038 key-sequence.  [N.B. "DEL" is the <backspace> key.]
2040 **** The new command c-toggle-electric-mode is bound to C-c C-l.
2042 **** The new command c-subword-mode is bound to C-c C-w.
2044 *** C-c C-s (`c-show-syntactic-information') now highlights the anchor
2045 position(s).
2047 *** New Minor Modes
2048 **** Electric Minor Mode toggles the electric action of non-alphabetic keys.
2049 The new command c-toggle-electric-mode is bound to C-c C-l.  Turning the
2050 mode off can be helpful for editing chaotically indented code and for
2051 users new to CC Mode, who sometimes find electric indentation
2052 disconcerting.  Its current state is displayed in the mode line with an
2053 'l', e.g. "C/al".
2055 **** Subword Minor Mode makes Emacs recognize word boundaries at upper case
2056 letters in StudlyCapsIdentifiers.  You enable this feature by C-c C-w.  It can
2057 also be used in non-CC Mode buffers.  :-) Contributed by Masatake YAMATO.
2059 *** New clean-ups
2061 **** `comment-close-slash'.
2062 With this clean-up, a block (i.e. c-style) comment can be terminated by
2063 typing a slash at the start of a line.
2065 **** `c-one-liner-defun'
2066 This clean-up compresses a short enough defun (for example, an AWK
2067 pattern/action pair) onto a single line.  "Short enough" is configurable.
2069 *** Font lock support.
2070 CC Mode now provides font lock support for all its languages.  This
2071 supersedes the font lock patterns that have been in the core font lock
2072 package for C, C++, Java and Objective-C.  Like indentation, font
2073 locking is done in a uniform way across all languages (except the new
2074 AWK mode - see below).  That means that the new font locking will be
2075 different from the old patterns in various details for most languages.
2077 The main goal of the font locking in CC Mode is accuracy, to provide a
2078 dependable aid in recognizing the various constructs.  Some, like
2079 strings and comments, are easy to recognize while others like
2080 declarations and types can be very tricky.  CC Mode can go to great
2081 lengths to recognize declarations and casts correctly, especially when
2082 the types aren't recognized by standard patterns.  This is a fairly
2083 demanding analysis which can be slow on older hardware, and it can
2084 therefore be disabled by choosing a lower decoration level with the
2085 variable font-lock-maximum-decoration.
2087 Note that the most demanding font lock level has been tuned with lazy
2088 fontification in mind; Just-In-Time-Lock mode should be enabled for
2089 the highest font lock level (by default, it is).  Fontifying a file
2090 with several thousand lines in one go can take the better part of a
2091 minute.
2093 **** The (c|c++|objc|java|idl|pike)-font-lock-extra-types variables
2094 are now used by CC Mode to recognize identifiers that are certain to
2095 be types.  (They are also used in cases that aren't related to font
2096 locking.)  At the maximum decoration level, types are often recognized
2097 properly anyway, so these variables should be fairly restrictive and
2098 not contain patterns for uncertain types.
2100 **** Support for documentation comments.
2101 There is a "plugin" system to fontify documentation comments like
2102 Javadoc and the markup within them.  It's independent of the host
2103 language, so it's possible to e.g. turn on Javadoc font locking in C
2104 buffers.  See the variable c-doc-comment-style for details.
2106 Currently three kinds of doc comment styles are recognized: Sun's
2107 Javadoc, Autodoc (which is used in Pike) and GtkDoc (used in C).  (The
2108 last was contributed by Masatake YAMATO).  This is by no means a
2109 complete list of the most common tools; if your doc comment extractor
2110 of choice is missing then please drop a note to bug-cc-mode@gnu.org.
2112 **** Better handling of C++ templates.
2113 As a side effect of the more accurate font locking, C++ templates are
2114 now handled much better.  The angle brackets that delimit them are
2115 given parenthesis syntax so that they can be navigated like other
2116 parens.
2118 This also improves indentation of templates, although there still is
2119 work to be done in that area.  E.g. it's required that multiline
2120 template clauses are written in full and then refontified to be
2121 recognized, and the indentation of nested templates is a bit odd and
2122 not as configurable as it ought to be.
2124 **** Improved handling of Objective-C and CORBA IDL.
2125 Especially the support for Objective-C and IDL has gotten an overhaul.
2126 The special "@" declarations in Objective-C are handled correctly.
2127 All the keywords used in CORBA IDL, PSDL, and CIDL are recognized and
2128 handled correctly, also wrt indentation.
2130 *** Support for the AWK language.
2131 Support for the AWK language has been introduced.  The implementation is
2132 based around GNU AWK version 3.1, but it should work pretty well with
2133 any AWK.  As yet, not all features of CC Mode have been adapted for AWK.
2134 Here is a summary:
2136 **** Indentation Engine
2137 The CC Mode indentation engine fully supports AWK mode.
2139 AWK mode handles code formatted in the conventional AWK fashion: `{'s
2140 which start actions, user-defined functions, or compound statements are
2141 placed on the same line as the associated construct; the matching `}'s
2142 are normally placed under the start of the respective pattern, function
2143 definition, or structured statement.
2145 The predefined line-up functions haven't yet been adapted for AWK
2146 mode, though some of them may work serendipitously.  There shouldn't
2147 be any problems writing custom indentation functions for AWK mode.
2149 **** Font Locking
2150 There is a single level of font locking in AWK mode, rather than the
2151 three distinct levels the other modes have.  There are several
2152 idiosyncrasies in AWK mode's font-locking due to the peculiarities of
2153 the AWK language itself.
2155 **** Comment and Movement Commands
2156 These commands all work for AWK buffers.  The notion of "defun" has
2157 been augmented to include AWK pattern-action pairs - the standard
2158 "defun" commands on key sequences C-M-a, C-M-e, and C-M-h use this
2159 extended definition.
2161 **** "awk" style, Auto-newline Insertion and Clean-ups
2162 A new style, "awk" has been introduced, and this is now the default
2163 style for AWK code.  With auto-newline enabled, the clean-up
2164 c-one-liner-defun (see above) is useful.
2166 *** New syntactic symbols in IDL mode.
2167 The top level constructs "module" and "composition" (from CIDL) are
2168 now handled like "namespace" in C++: They are given syntactic symbols
2169 module-open, module-close, inmodule, composition-open,
2170 composition-close, and incomposition.
2172 *** New functions to do hungry delete without enabling hungry delete mode.
2173 The new functions `c-hungry-backspace' and `c-hungry-delete-forward'
2174 provide hungry deletion without having to toggle a mode.  They are
2175 bound to C-c C-DEL and C-c C-d (and several variants, for the benefit
2176 of different keyboard setups.  See "Changes in key sequences" above).
2178 *** Better control over `require-final-newline'.
2180 The variable `c-require-final-newline' specifies which of the modes
2181 implemented by CC mode should insert final newlines.  Its value is a
2182 list of modes, and only those modes should do it.  By default the list
2183 includes C, C++ and Objective-C modes.
2185 Whichever modes are in this list will set `require-final-newline'
2186 based on `mode-require-final-newline'.
2188 *** Format change for syntactic context elements.
2190 The elements in the syntactic context returned by `c-guess-basic-syntax'
2191 and stored in `c-syntactic-context' has been changed somewhat to allow
2192 attaching more information.  They are now lists instead of single cons
2193 cells.  E.g. a line that previously had the syntactic analysis
2195 ((inclass . 11) (topmost-intro . 13))
2197 is now analyzed as
2199 ((inclass 11) (topmost-intro 13))
2201 In some cases there are more than one position given for a syntactic
2202 symbol.
2204 This change might affect code that calls `c-guess-basic-syntax'
2205 directly, and custom lineup functions if they use
2206 `c-syntactic-context'.  However, the argument given to lineup
2207 functions is still a single cons cell with nil or an integer in the
2208 cdr.
2210 *** API changes for derived modes.
2212 There have been extensive changes "under the hood" which can affect
2213 derived mode writers.  Some of these changes are likely to cause
2214 incompatibilities with existing derived modes, but on the other hand
2215 care has now been taken to make it possible to extend and modify CC
2216 Mode with less risk of such problems in the future.
2218 **** New language variable system.
2219 These are variables whose values vary between CC Mode's different
2220 languages.  See the comment blurb near the top of cc-langs.el.
2222 **** New initialization functions.
2223 The initialization procedure has been split up into more functions to
2224 give better control: `c-basic-common-init', `c-font-lock-init', and
2225 `c-init-language-vars'.
2227 *** Changes in analysis of nested syntactic constructs.
2228 The syntactic analysis engine has better handling of cases where
2229 several syntactic constructs appear nested on the same line.  They are
2230 now handled as if each construct started on a line of its own.
2232 This means that CC Mode now indents some cases differently, and
2233 although it's more consistent there might be cases where the old way
2234 gave results that's more to one's liking.  So if you find a situation
2235 where you think that the indentation has become worse, please report
2236 it to bug-cc-mode@gnu.org.
2238 **** New syntactic symbol substatement-label.
2239 This symbol is used when a label is inserted between a statement and
2240 its substatement.  E.g:
2242     if (x)
2243       x_is_true:
2244         do_stuff();
2246 *** Better handling of multiline macros.
2248 **** Syntactic indentation inside macros.
2249 The contents of multiline #define's are now analyzed and indented
2250 syntactically just like other code.  This can be disabled by the new
2251 variable `c-syntactic-indentation-in-macros'.  A new syntactic symbol
2252 `cpp-define-intro' has been added to control the initial indentation
2253 inside `#define's.
2255 **** New lineup function `c-lineup-cpp-define'.
2257 Now used by default to line up macro continuation lines.  The behavior
2258 of this function closely mimics the indentation one gets if the macro
2259 is indented while the line continuation backslashes are temporarily
2260 removed.  If syntactic indentation in macros is turned off, it works
2261 much line `c-lineup-dont-change', which was used earlier, but handles
2262 empty lines within the macro better.
2264 **** Automatically inserted newlines continues the macro if used within one.
2265 This applies to the newlines inserted by the auto-newline mode, and to
2266 `c-context-line-break' and `c-context-open-line'.
2268 **** Better alignment of line continuation backslashes.
2269 `c-backslash-region' tries to adapt to surrounding backslashes.  New
2270 variable `c-backslash-max-column' puts a limit on how far out
2271 backslashes can be moved.
2273 **** Automatic alignment of line continuation backslashes.
2274 This is controlled by the new variable `c-auto-align-backslashes'.  It
2275 affects `c-context-line-break', `c-context-open-line' and newlines
2276 inserted in Auto-Newline mode.
2278 **** Line indentation works better inside macros.
2279 Regardless whether syntactic indentation and syntactic indentation
2280 inside macros are enabled or not, line indentation now ignores the
2281 line continuation backslashes.  This is most noticeable when syntactic
2282 indentation is turned off and there are empty lines (save for the
2283 backslash) in the macro.
2285 *** indent-for-comment is more customizable.
2286 The behavior of M-; (indent-for-comment) is now configurable through
2287 the variable `c-indent-comment-alist'.  The indentation behavior is
2288 based on the preceding code on the line, e.g. to get two spaces after
2289 #else and #endif but indentation to `comment-column' in most other
2290 cases (something which was hardcoded earlier).
2292 *** New function `c-context-open-line'.
2293 It's the open-line equivalent of `c-context-line-break'.
2295 *** New lineup functions
2297 **** `c-lineup-string-cont'
2298 This lineup function lines up a continued string under the one it
2299 continues.  E.g:
2301 result = prefix + "A message "
2302                   "string.";      <- c-lineup-string-cont
2304 **** `c-lineup-cascaded-calls'
2305 Lines up series of calls separated by "->" or ".".
2307 **** `c-lineup-knr-region-comment'
2308 Gives (what most people think is) better indentation of comments in
2309 the "K&R region" between the function header and its body.
2311 **** `c-lineup-gcc-asm-reg'
2312 Provides better indentation inside asm blocks.
2314 **** `c-lineup-argcont'
2315 Lines up continued function arguments after the preceding comma.
2317 *** Better caching of the syntactic context.
2318 CC Mode caches the positions of the opening parentheses (of any kind)
2319 of the lists surrounding the point.  Those positions are used in many
2320 places as anchor points for various searches.  The cache is now
2321 improved so that it can be reused to a large extent when the point is
2322 moved.  The less it moves, the less needs to be recalculated.
2324 The effect is that CC Mode should be fast most of the time even when
2325 opening parens are hung (i.e. aren't in column zero).  It's typically
2326 only the first time after the point is moved far down in a complex
2327 file that it'll take noticeable time to find out the syntactic
2328 context.
2330 *** Statements are recognized in a more robust way.
2331 Statements are recognized most of the time even when they occur in an
2332 "invalid" context, e.g. in a function argument.  In practice that can
2333 happen when macros are involved.
2335 *** Improved the way `c-indent-exp' chooses the block to indent.
2336 It now indents the block for the closest sexp following the point
2337 whose closing paren ends on a different line.  This means that the
2338 point doesn't have to be immediately before the block to indent.
2339 Also, only the block and the closing line is indented; the current
2340 line is left untouched.
2342 *** Added toggle for syntactic indentation.
2343 The function `c-toggle-syntactic-indentation' can be used to toggle
2344 syntactic indentation.
2346 ** In sh-script, a continuation line is only indented if the backslash was
2347 preceded by a SPC or a TAB.
2350 ** Perl mode has a new variable `perl-indent-continued-arguments'.
2353 ** The old Octave mode bindings C-c f and C-c i have been changed
2354 to C-c C-f and C-c C-i.  The C-c C-i subcommands now have duplicate
2355 bindings on control characters--thus, C-c C-i C-b is the same as
2356 C-c C-i b, and so on.
2358 ** Fortran mode changes:
2361 *** Fortran mode does more font-locking by default. Use level 3
2362 highlighting for the old default.
2365 *** Fortran mode has a new variable `fortran-directive-re'.
2366 Adapt this to match the format of any compiler directives you use.
2367 Lines that match are never indented, and are given distinctive font-locking.
2370 *** F90 mode and Fortran mode have new navigation commands
2371 `f90-end-of-block', `f90-beginning-of-block', `f90-next-block',
2372 `f90-previous-block', `fortran-end-of-block',
2373 `fortran-beginning-of-block'.
2376 *** F90 mode and Fortran mode have support for `hs-minor-mode' (hideshow).
2377 It cannot deal with every code format, but ought to handle a sizeable
2378 majority.
2381 *** The new function `f90-backslash-not-special' can be used to change
2382 the syntax of backslashes in F90 buffers.
2385 ** Reftex mode changes
2387 *** Changes to RefTeX's table of contents
2389 The new command keys "<" and ">" in the TOC buffer promote/demote the
2390 section at point or all sections in the current region, with full
2391 support for multifile documents.
2393 The new command `reftex-toc-recenter' (`C-c -') shows the current
2394 section in the TOC buffer without selecting the TOC window.
2395 Recentering can happen automatically in idle time when the option
2396 `reftex-auto-recenter-toc' is turned on.  The highlight in the TOC
2397 buffer stays when the focus moves to a different window.  A dedicated
2398 frame can show the TOC with the current section always automatically
2399 highlighted.  The frame is created and deleted from the toc buffer
2400 with the `d' key.
2402 The toc window can be split off horizontally instead of vertically.
2403 See new option `reftex-toc-split-windows-horizontally'.
2405 Labels can be renamed globally from the table of contents using the
2406 key `M-%'.
2408 The new command `reftex-goto-label' jumps directly to a label
2409 location.
2412 *** Changes related to citations and BibTeX database files
2414 Commands that insert a citation now prompt for optional arguments when
2415 called with a prefix argument.  Related new options are
2416 `reftex-cite-prompt-optional-args' and `reftex-cite-cleanup-optional-args'.
2418 The new command `reftex-create-bibtex-file' creates a BibTeX database
2419 with all entries referenced in the current document.  The keys "e" and
2420 "E" allow to produce a BibTeX database file from entries marked in a
2421 citation selection buffer.
2423 The command `reftex-citation' uses the word in the buffer before the
2424 cursor as a default search string.
2426 The support for chapterbib has been improved.  Different chapters can
2427 now use BibTeX or an explicit `thebibliography' environment.
2429 The macros which specify the bibliography file (like \bibliography)
2430 can be configured with the new option `reftex-bibliography-commands'.
2432 Support for jurabib has been added.
2435 *** Global index matched may be verified with a user function
2437 During global indexing, a user function can verify an index match.
2438 See new option `reftex-index-verify-function'.
2441 *** Parsing documents with many labels can be sped up.
2443 Operating in a document with thousands of labels can be sped up
2444 considerably by allowing RefTeX to derive the type of a label directly
2445 from the label prefix like `eq:' or `fig:'.  The option
2446 `reftex-trust-label-prefix' needs to be configured in order to enable
2447 this feature.  While the speed-up is significant, this may reduce the
2448 quality of the context offered by RefTeX to describe a label.
2451 *** Miscellaneous changes
2453 The macros which input a file in LaTeX (like \input, \include) can be
2454 configured in the new option `reftex-include-file-commands'.
2456 RefTeX supports global incremental search.
2459 ** Prolog mode has a new variable `prolog-font-lock-keywords'
2460 to support use of font-lock.
2462 ** HTML/SGML changes:
2465 *** Emacs now tries to set up buffer coding systems for HTML/XML files
2466 automatically.
2469 *** SGML mode has indentation and supports XML syntax.
2470 The new variable `sgml-xml-mode' tells SGML mode to use XML syntax.
2471 When this option is enabled, SGML tags are inserted in XML style,
2472 i.e., there is always a closing tag.
2473 By default, its setting is inferred on a buffer-by-buffer basis
2474 from the file name or buffer contents.
2477 *** `xml-mode' is now an alias for `sgml-mode', which has XML support.
2479 ** TeX modes:
2482 *** C-c C-c prompts for a command to run, and tries to offer a good default.
2485 *** The user option `tex-start-options-string' has been replaced
2486 by two new user options: `tex-start-options', which should hold
2487 command-line options to feed to TeX, and `tex-start-commands' which should hold
2488 TeX commands to use at startup.
2491 *** verbatim environments are now highlighted in courier by font-lock
2492 and super/sub-scripts are made into super/sub-scripts.
2495 *** New major mode Doctex mode, for *.dtx files.
2497 ** BibTeX mode:
2499 *** The new command `bibtex-url' browses a URL for the BibTeX entry at
2500 point (bound to C-c C-l and mouse-2, RET on clickable fields).
2502 *** The new command `bibtex-entry-update' (bound to C-c C-u) updates
2503 an existing BibTeX entry.
2505 *** New `bibtex-entry-format' option `required-fields', enabled by default.
2507 *** `bibtex-maintain-sorted-entries' can take values `plain',
2508 `crossref', and `entry-class' which control the sorting scheme used
2509 for BibTeX entries.  `bibtex-sort-entry-class' controls the sorting
2510 scheme `entry-class'.  TAB completion for reference keys and
2511 automatic detection of duplicates does not require anymore that
2512 `bibtex-maintain-sorted-entries' is non-nil.
2514 *** If the new variable `bibtex-parse-keys-fast' is non-nil,
2515 use fast but simplified algorithm for parsing BibTeX keys.
2517 *** If the new variable `bibtex-autoadd-commas' is non-nil,
2518 automatically add missing commas at end of BibTeX fields.
2520 *** The new variable `bibtex-autofill-types' contains a list of entry
2521 types for which fields are filled automatically (if possible).
2523 *** The new command `bibtex-complete' completes word fragment before
2524 point according to context (bound to M-tab).
2526 *** The new commands `bibtex-find-entry' and `bibtex-find-crossref'
2527 locate entries and crossref'd entries (bound to C-c C-s and C-c C-x).
2528 Crossref fields are clickable (bound to mouse-2, RET).
2530 *** In BibTeX mode the command `fill-paragraph' (M-q) fills
2531 individual fields of a BibTeX entry.
2533 *** The new variables `bibtex-files' and `bibtex-file-path' define a set
2534 of BibTeX files that are searched for entry keys.
2536 *** The new command `bibtex-validate-globally' checks for duplicate keys
2537 in multiple BibTeX files.
2539 *** The new command `bibtex-copy-summary-as-kill' pushes summary
2540 of BibTeX entry to kill ring (bound to C-c C-t).
2542 *** The new variables bibtex-expand-strings and
2543 bibtex-autokey-expand-strings control the expansion of strings when
2544 extracting the content of a BibTeX field.
2547 ** In Enriched mode, `set-left-margin' and `set-right-margin' are now
2548 by default bound to `C-c [' and `C-c ]' instead of the former `C-c C-l'
2549 and `C-c C-r'.
2551 ** GUD changes:
2554 *** In GUD mode, when talking to GDB, C-x C-a C-j "jumps" the program
2555 counter to the specified source line (the one where point is).
2558 *** GUD mode has its own tool bar for controlling execution of the inferior
2559 and other common debugger commands.
2562 *** The new package gdb-ui.el provides an enhanced graphical interface to
2563 GDB. You can interact with GDB through the GUD buffer in the usual way, but
2564 there are also further buffers which control the execution and describe the
2565 state of your program.  It can separate the input/output of your program from
2566 that of GDB and watches expressions in the speedbar.  It also uses features of
2567 Emacs 21/22 such as the toolbar, and bitmaps in the fringe to indicate
2568 breakpoints.
2570 Use M-x gdb to start GDB-UI.
2572 *** The variable tooltip-gud-tips-p has been removed.  GUD tooltips can now be
2573 toggled independently of normal tooltips with the minor mode
2574 `gud-tooltip-mode'.
2577 *** In graphical mode, with a C program, GUD Tooltips have been extended to
2578 display the #define directive associated with an identifier when program is
2579 not executing.
2582 ** GUD mode improvements for jdb:
2584 *** Search for source files using jdb classpath and class
2585     information. Fast startup since there is no need to scan all
2586     source files up front. There is also no need to create and maintain
2587     lists of source directories to scan. Look at `gud-jdb-use-classpath'
2588     and `gud-jdb-classpath' customization variables documentation.
2590 *** Supports the standard breakpoint (gud-break, gud-clear)
2591     set/clear operations from java source files under the classpath, stack
2592     traversal (gud-up, gud-down), and run until current stack finish
2593     (gud-finish).
2595 *** Supports new jdb (Java 1.2 and later) in addition to oldjdb
2596     (Java 1.1 jdb).
2598 *** The previous method of searching for source files has been
2599     preserved in case someone still wants/needs to use it.
2600     Set `gud-jdb-use-classpath' to nil.
2602   Added Customization Variables
2604 *** `gud-jdb-command-name'.  What command line to use to invoke jdb.
2606 *** `gud-jdb-use-classpath'. Allows selection of java source file searching
2607     method: set to t for new method, nil to scan `gud-jdb-directories' for
2608     java sources (previous method).
2610 *** `gud-jdb-directories'. List of directories to scan and search for java
2611     classes using the original gud-jdb method (if `gud-jdb-use-classpath'
2612     is nil).
2614   Minor Improvements
2616 *** The STARTTLS wrapper (starttls.el) can now use GNUTLS
2617 instead of the OpenSSL based `starttls' tool.  For backwards
2618 compatibility, it prefers `starttls', but you can toggle
2619 `starttls-use-gnutls' to switch to GNUTLS (or simply remove the
2620 `starttls' tool).
2622 *** Do not allow debugger output history variable to grow without bounds.
2624 ** Auto-Revert changes:
2627 *** You can now use Auto Revert mode to `tail' a file.
2629 If point is at the end of a file buffer before reverting, Auto Revert
2630 mode keeps it at the end after reverting.  Similarly if point is
2631 displayed at the end of a file buffer in any window, it stays at
2632 the end of the buffer in that window.  This allows to tail a file:
2633 just put point at the end of the buffer and it stays there.  This
2634 rule applies to file buffers.  For non-file buffers, the behavior can
2635 be mode dependent.
2637 If you are sure that the file will only change by growing at the end,
2638 then you can tail the file more efficiently by using the new minor
2639 mode Auto Revert Tail mode.  The function `auto-revert-tail-mode'
2640 toggles this mode.
2643 *** Auto Revert mode is now more careful to avoid excessive reverts and
2644 other potential problems when deciding which non-file buffers to
2645 revert.  This matters especially if Global Auto Revert mode is enabled
2646 and `global-auto-revert-non-file-buffers' is non-nil.  Auto Revert
2647 mode only reverts a non-file buffer if the buffer has a non-nil
2648 `revert-buffer-function' and a non-nil `buffer-stale-function', which
2649 decides whether the buffer should be reverted.  Currently, this means
2650 that auto reverting works for Dired buffers (although this may not
2651 work properly on all operating systems) and for the Buffer Menu.
2654 *** If the new user option `auto-revert-check-vc-info' is non-nil, Auto
2655 Revert mode reliably updates version control info (such as the version
2656 control number in the mode line), in all version controlled buffers in
2657 which it is active.  If the option is nil, the default, then this info
2658 only gets updated whenever the buffer gets reverted.
2661 ** recentf changes.
2663 The recent file list is now automatically cleanup when recentf mode is
2664 enabled.  The new option `recentf-auto-cleanup' controls when to do
2665 automatic cleanup.
2667 The ten most recent files can be quickly opened by using the shortcut
2668 keys 1 to 9, and 0, when the recent list is displayed in a buffer via
2669 the `recentf-open-files', or `recentf-open-more-files' commands.
2671 The `recentf-keep' option replaces `recentf-keep-non-readable-files-p'
2672 and provides a more general mechanism to customize which file names to
2673 keep in the recent list.
2675 With the more advanced option `recentf-filename-handlers', you can
2676 specify functions that successively transform recent file names.  For
2677 example, if set to `file-truename' plus `abbreviate-file-name', the
2678 same file will not be in the recent list with different symbolic
2679 links, and the file name will be abbreviated.
2681 To follow naming convention, `recentf-menu-append-commands-flag'
2682 replaces the misnamed option `recentf-menu-append-commands-p'.  The
2683 old name remains available as alias, but has been marked obsolete.
2686 ** Desktop package
2689 *** Desktop saving is now a minor mode, `desktop-save-mode'.
2692 *** The variable `desktop-enable' is obsolete.
2694 Customize `desktop-save-mode' to enable desktop saving.
2697 *** Buffers are saved in the desktop file in the same order as that in the
2698 buffer list.
2701 *** The desktop package can be customized to restore only some buffers
2702 immediately, remaining buffers are restored lazily (when Emacs is
2703 idle).
2706 *** New commands:
2707   - desktop-revert reverts to the last loaded desktop.
2708   - desktop-change-dir kills current desktop and loads a new.
2709   - desktop-save-in-desktop-dir saves desktop in the directory from which
2710     it was loaded.
2711   - desktop-lazy-complete runs the desktop load to completion.
2712   - desktop-lazy-abort aborts lazy loading of the desktop.
2715 *** New customizable variables:
2716   - desktop-save. Determins whether the desktop should be saved when it is
2717     killed.
2718   - desktop-file-name-format. Format in which desktop file names should be saved.
2719   - desktop-path. List of directories in which to lookup the desktop file.
2720   - desktop-locals-to-save. List of local variables to save.
2721   - desktop-globals-to-clear. List of global variables that `desktop-clear' will clear.
2722   - desktop-clear-preserve-buffers-regexp. Regexp identifying buffers that `desktop-clear'
2723     should not delete.
2724   - desktop-restore-eager. Number of buffers to restore immediately. Remaining buffers are
2725     restored lazily (when Emacs is idle).
2726   - desktop-lazy-verbose. Verbose reporting of lazily created buffers.
2727   - desktop-lazy-idle-delay. Idle delay before starting to create buffers.
2730 *** New command line option --no-desktop
2733 *** New hooks:
2734   - desktop-after-read-hook run after a desktop is loaded.
2735   - desktop-no-desktop-file-hook run when no desktop file is found.
2738 ** The saveplace.el package now filters out unreadable files.
2740 When you exit Emacs, the saved positions in visited files no longer
2741 include files that aren't readable, e.g. files that don't exist.
2742 Customize the new option `save-place-forget-unreadable-files' to nil
2743 to get the old behavior.  The new options `save-place-save-skipped'
2744 and `save-place-skip-check-regexp' allow further fine-tuning of this
2745 feature.
2747 ** EDiff changes.
2750 ***  When comparing directories.
2751 Typing D brings up a buffer that lists the differences between the contents of
2752 directories. Now it is possible to use this buffer to copy the missing files
2753 from one directory to another.
2756 *** When comparing files or buffers.
2757 Typing the = key now offers to perform the word-by-word comparison of the
2758 currently highlighted regions in an inferior Ediff session. If you answer 'n'
2759 then it reverts to the old behavior and asks the user to select regions for
2760 comparison.
2763 *** The new command `ediff-backup' compares a file with its most recent
2764 backup using `ediff'.  If you specify the name of a backup file,
2765 `ediff-backup' compares it with the file of which it is a backup.
2768 ** Etags changes.
2770 *** New regular expressions features
2772 **** New syntax for regular expressions, multi-line regular expressions.
2774 The syntax --ignore-case-regexp=/regex/ is now undocumented and retained
2775 only for backward compatibility.  The new equivalent syntax is
2776 --regex=/regex/i.  More generally, it is --regex=/TAGREGEX/TAGNAME/MODS,
2777 where `/TAGNAME' is optional, as usual, and MODS is a string of 0 or
2778 more characters among `i' (ignore case), `m' (multi-line) and `s'
2779 (single-line).  The `m' and `s' modifiers behave as in Perl regular
2780 expressions: `m' allows regexps to match more than one line, while `s'
2781 (which implies `m') means that `.' matches newlines.  The ability to
2782 span newlines allows writing of much more powerful regular expressions
2783 and rapid prototyping for tagging new languages.
2785 **** Regular expressions can use char escape sequences as in GCC.
2787 The escaped character sequence \a, \b, \d, \e, \f, \n, \r, \t, \v,
2788 respectively, stand for the ASCII characters BEL, BS, DEL, ESC, FF, NL,
2789 CR, TAB, VT,
2791 **** Regular expressions can be bound to a given language.
2793 The syntax --regex={LANGUAGE}REGEX means that REGEX is used to make tags
2794 only for files of language LANGUAGE, and ignored otherwise.  This is
2795 particularly useful when storing regexps in a file.
2797 **** Regular expressions can be read from a file.
2799 The --regex=@regexfile option means read the regexps from a file, one
2800 per line.  Lines beginning with space or tab are ignored.
2802 *** New language parsing features
2804 **** The `::' qualifier triggers C++ parsing in C file.
2806 Previously, only the `template' and `class' keywords had this effect.
2808 **** The GCC __attribute__ keyword is now recognized and ignored.
2810 **** New language HTML.
2812 Tags are generated for `title' as well as `h1', `h2', and `h3'.  Also,
2813 when `name=' is used inside an anchor and whenever `id=' is used.
2815 **** In Makefiles, constants are tagged.
2817 If you want the old behavior instead, thus avoiding to increase the
2818 size of the tags file, use the --no-globals option.
2820 **** New language Lua.
2822 All functions are tagged.
2824 **** In Perl, packages are tags.
2826 Subroutine tags are named from their package.  You can jump to sub tags
2827 as you did before, by the sub name, or additionally by looking for
2828 package::sub.
2830 **** In Prolog, etags creates tags for rules in addition to predicates.
2832 **** New language PHP.
2834 Functions, classes and defines are tags.  If the --members option is
2835 specified to etags, variables are tags also.
2837 **** New default keywords for TeX.
2839 The new keywords are def, newcommand, renewcommand, newenvironment and
2840 renewenvironment.
2842 *** Honour #line directives.
2844 When Etags parses an input file that contains C preprocessor's #line
2845 directives, it creates tags using the file name and line number
2846 specified in those directives.  This is useful when dealing with code
2847 created from Cweb source files.  When Etags tags the generated file, it
2848 writes tags pointing to the source file.
2850 *** New option --parse-stdin=FILE.
2852 This option is mostly useful when calling etags from programs.  It can
2853 be used (only once) in place of a file name on the command line.  Etags
2854 reads from standard input and marks the produced tags as belonging to
2855 the file FILE.
2857 ** VC Changes
2860 *** The key C-x C-q only changes the read-only state of the buffer
2861 (toggle-read-only).  It no longer checks files in or out.
2863 We made this change because we held a poll and found that many users
2864 were unhappy with the previous behavior.  If you do prefer this
2865 behavior, you can bind `vc-toggle-read-only' to C-x C-q in your
2866 `.emacs' file:
2868     (global-set-key "\C-x\C-q" 'vc-toggle-read-only)
2870 The function `vc-toggle-read-only' will continue to exist.
2873 *** The new variable `vc-cvs-global-switches' specifies switches that
2874 are passed to any CVS command invoked by VC.
2876 These switches are used as "global options" for CVS, which means they
2877 are inserted before the command name.  For example, this allows you to
2878 specify a compression level using the `-z#' option for CVS.
2881 *** New backends for Subversion and Meta-CVS.
2884 *** VC-Annotate mode enhancements
2886 In VC-Annotate mode, you can now use the following key bindings for
2887 enhanced functionality to browse the annotations of past revisions, or
2888 to view diffs or log entries directly from vc-annotate-mode:
2890     P:  annotates the previous revision
2891     N:  annotates the next revision
2892     J:  annotates the revision at line
2893     A:  annotates the revision previous to line
2894     D:  shows the diff of the revision at line with its previous revision
2895     L:  shows the log of the revision at line
2896     W:  annotates the workfile (most up to date) version
2898 ** pcl-cvs changes:
2901 *** In pcl-cvs mode, there is a new `d y' command to view the diffs
2902 between the local version of the file and yesterday's head revision
2903 in the repository.
2906 *** In pcl-cvs mode, there is a new `d r' command to view the changes
2907 anyone has committed to the repository since you last executed
2908 `checkout', `update' or `commit'.  That means using cvs diff options
2909 -rBASE -rHEAD.
2912 ** The new variable `mail-default-directory' specifies
2913 `default-directory' for mail buffers.  This directory is used for
2914 auto-save files of mail buffers.  It defaults to "~/".
2917 ** The mode line can indicate new mail in a directory or file.
2919 See the documentation of the user option
2920 `display-time-mail-directory'.
2922 ** Rmail changes:
2925 *** Rmail now displays 5-digit message ids in its summary buffer.
2927 *** The new commands rmail-end-of-message and rmail-summary end-of-message,
2928 by default bound to `/', go to the end of the current mail message in
2929 Rmail and Rmail summary buffers.
2932 *** Support for `movemail' from GNU mailutils was added to Rmail.
2934 This version of `movemail' allows to read mail from a wide range of
2935 mailbox formats, including remote POP3 and IMAP4 mailboxes with or
2936 without TLS encryption.  If GNU mailutils is installed on the system
2937 and its version of `movemail' can be found in exec-path, it will be
2938 used instead of the native one.
2940 ** Gnus package
2943 *** Gnus now includes Sieve and PGG
2945 Sieve is a library for managing Sieve scripts.  PGG is a library to handle
2946 PGP/MIME.
2949 *** There are many news features, bug fixes and improvements.
2951 See the file GNUS-NEWS or the node "Oort Gnus" in the Gnus manual for details.
2954 ** MH-E changes.
2956 Upgraded to MH-E version 7.85. There have been major changes since
2957 version 5.0.2; see MH-E-NEWS for details.
2959 ** Calendar changes:
2962 *** You can now use < and >, instead of C-x < and C-x >, to scroll
2963 the calendar left or right.  (The old key bindings still work too.)
2966 *** There is a new calendar package, icalendar.el, that can be used to
2967 convert Emacs diary entries to/from the iCalendar format.
2970 *** Diary sexp entries can have custom marking in the calendar.
2971 Diary sexp functions which only apply to certain days (such as
2972 `diary-block' or `diary-cyclic') now take an optional parameter MARK,
2973 which is the name of a face or a single-character string indicating
2974 how to highlight the day in the calendar display.  Specifying a
2975 single-character string as @var{mark} places the character next to the
2976 day in the calendar.  Specifying a face highlights the day with that
2977 face.  This lets you have different colors or markings for vacations,
2978 appointments, paydays or anything else using a sexp.
2981 *** The new function `calendar-goto-day-of-year' (g D) prompts for a
2982 year and day number, and moves to that date. Negative day numbers
2983 count backward from the end of the year.
2986 *** The new Calendar function `calendar-goto-iso-week' (g w)
2987 prompts for a year and a week number, and moves to the first
2988 day of that ISO week.
2991 *** The new variable `calendar-minimum-window-height' affects the
2992 window generated by the function `generate-calendar-window'.
2995 *** The functions `holiday-easter-etc' and `holiday-advent' now take
2996 optional arguments, in order to only report on the specified holiday
2997 rather than all. This makes customization of variables such as
2998 `christian-holidays' simpler.
3001 *** The function `simple-diary-display' now by default sets a header line.
3002 This can be controlled through the variables `diary-header-line-flag'
3003 and `diary-header-line-format'.
3006 *** The procedure for activating appointment reminders has changed:
3007 use the new function `appt-activate'.  The new variable
3008 `appt-display-format' controls how reminders are displayed, replacing
3009 `appt-issue-message', `appt-visible', and `appt-msg-window'.
3012 *** The new functions `diary-from-outlook', `diary-from-outlook-gnus',
3013 and `diary-from-outlook-rmail' can be used to import diary entries
3014 from Outlook-format appointments in mail messages.  The variable
3015 `diary-outlook-formats' can be customized to recognize additional
3016 formats.
3019 ** Speedbar changes:
3021 *** Speedbar items can now be selected by clicking mouse-1, based on
3022 the `mouse-1-click-follows-link' mechanism.
3024 *** SPC and DEL are no longer bound to scroll up/down in the speedbar
3025 keymap.
3027 *** The new command `speedbar-toggle-line-expansion', bound to SPC,
3028 contracts or expands the line under the cursor.
3030 *** New command `speedbar-create-directory', bound to `M'.
3032 *** The new commands `speedbar-expand-line-descendants' and
3033 `speedbar-contract-line-descendants', bound to `[' and `]'
3034 respectively, expand and contract the line under cursor with all of
3035 its descendents.
3037 *** The new user option `speedbar-query-confirmation-method' controls
3038 how querying is performed for file operations.  A value of 'always
3039 means to always query before file operations; 'none-but-delete means
3040 to not query before any file operations, except before a file
3041 deletion.
3043 *** The new user option `speedbar-select-frame-method' specifies how
3044 to select a frame for displaying a file opened with the speedbar.  A
3045 value of 'attached means to use the attached frame (the frame that
3046 speedbar was started from.)  A number such as 1 or -1 means to pass
3047 that number to `other-frame'.
3049 *** The new user option `speedbar-use-tool-tips-flag', if non-nil,
3050 means to display tool-tips for speedbar items.
3052 *** The frame management code in speedbar.el has been split into a new
3053 `dframe' library.  Emacs Lisp code that makes use of the speedbar
3054 should use `dframe-attached-frame' instead of
3055 `speedbar-attached-frame', `dframe-timer' instead of `speedbar-timer',
3056 `dframe-close-frame' instead of `speedbar-close-frame', and
3057 `dframe-activity-change-focus-flag' instead of
3058 `speedbar-activity-change-focus-flag'.  The variables
3059 `speedbar-update-speed' and `speedbar-navigating-speed' are also
3060 obsolete; use `dframe-update-speed' instead.
3063 ** sql changes.
3065 *** The variable `sql-product' controls the highlightng of different
3066 SQL dialects.  This variable can be set globally via Customize, on a
3067 buffer-specific basis via local variable settings, or for the current
3068 session using the new SQL->Product submenu.  (This menu replaces the
3069 SQL->Highlighting submenu.)
3071 The following values are supported:
3073     ansi        ANSI Standard (default)
3074     db2         DB2
3075     informix    Informix
3076     ingres      Ingres
3077     interbase   Interbase
3078     linter      Linter
3079     ms          Microsoft
3080     mysql       MySQL
3081     oracle      Oracle
3082     postgres    Postgres
3083     solid       Solid
3084     sqlite      SQLite
3085     sybase      Sybase
3087 The current product name will be shown on the mode line following the
3088 SQL mode indicator.
3090 The technique of setting `sql-mode-font-lock-defaults' directly in
3091 your `.emacs' will no longer establish the default highlighting -- Use
3092 `sql-product' to accomplish this.
3094 ANSI keywords are always highlighted.
3096 *** The function `sql-add-product-keywords' can be used to add
3097 font-lock rules to the product specific rules.  For example, to have
3098 all identifiers ending in `_t' under MS SQLServer treated as a type,
3099 you would use the following line in your .emacs file:
3101   (sql-add-product-keywords 'ms
3102              '(("\\<\\w+_t\\>" . font-lock-type-face)))
3104 *** Oracle support includes keyword highlighting for Oracle 9i.
3106 Most SQL and PL/SQL keywords are implemented.  SQL*Plus commands are
3107 highlighted in `font-lock-doc-face'.
3109 *** Microsoft SQLServer support has been significantly improved.
3111 Keyword highlighting for SqlServer 2000 is implemented.
3112 sql-interactive-mode defaults to use osql, rather than isql, because
3113 osql flushes its error stream more frequently.  Thus error messages
3114 are displayed when they occur rather than when the session is
3115 terminated.
3117 If the username and password are not provided to `sql-ms', osql is
3118 called with the `-E' command line argument to use the operating system
3119 credentials to authenticate the user.
3121 *** Postgres support is enhanced.
3122 Keyword highlighting of Postgres 7.3 is implemented.  Prompting for
3123 the username and the pgsql `-U' option is added.
3125 *** MySQL support is enhanced.
3126 Keyword higlighting of MySql 4.0 is implemented.
3128 *** Imenu support has been enhanced to locate tables, views, indexes,
3129 packages, procedures, functions, triggers, sequences, rules, and
3130 defaults.
3132 *** Added SQL->Start SQLi Session menu entry which calls the
3133 appropriate `sql-interactive-mode' wrapper for the current setting of
3134 `sql-product'.
3137 *** sql.el supports the SQLite interpreter--call 'sql-sqlite'.
3139 ** FFAP changes:
3142 *** New ffap commands and keybindings:
3144 C-x C-r (`ffap-read-only'),
3145 C-x C-v (`ffap-alternate-file'), C-x C-d (`ffap-list-directory'),
3146 C-x 4 r (`ffap-read-only-other-window'), C-x 4 d (`ffap-dired-other-window'),
3147 C-x 5 r (`ffap-read-only-other-frame'), C-x 5 d (`ffap-dired-other-frame').
3150 *** FFAP accepts wildcards in a file name by default.
3152 C-x C-f passes the file name to `find-file' with non-nil WILDCARDS
3153 argument, which visits multiple files, and C-x d passes it to `dired'.
3156 ** In skeleton.el, `-' marks the `skeleton-point' without interregion interaction.
3158 `@' has reverted to only setting `skeleton-positions' and no longer
3159 sets `skeleton-point'.  Skeletons which used @ to mark
3160 `skeleton-point' independent of `_' should now use `-' instead.  The
3161 updated `skeleton-insert' docstring explains these new features along
3162 with other details of skeleton construction.
3165 ** Hideshow mode changes
3167 *** New variable `hs-set-up-overlay' allows customization of the overlay
3168 used to effect hiding for hideshow minor mode.  Integration with isearch
3169 handles the overlay property `display' specially, preserving it during
3170 temporary overlay showing in the course of an isearch operation.
3172 *** New variable `hs-allow-nesting' non-nil means that hiding a block does
3173 not discard the hidden state of any "internal" blocks; when the parent
3174 block is later shown, the internal blocks remain hidden.  Default is nil.
3177 ** `hide-ifdef-mode' now uses overlays rather than selective-display
3178 to hide its text.  This should be mostly transparent but slightly
3179 changes the behavior of motion commands like C-e and C-p.
3182 ** `partial-completion-mode' now handles partial completion on directory names.
3185 ** The type-break package now allows `type-break-file-name' to be nil
3186 and if so, doesn't store any data across sessions.  This is handy if
3187 you don't want the `.type-break' file in your home directory or are
3188 annoyed by the need for interaction when you kill Emacs.
3191 ** `ps-print' can now print characters from the mule-unicode charsets.
3193 Printing text with characters from the mule-unicode-* sets works with
3194 `ps-print', provided that you have installed the appropriate BDF
3195 fonts.  See the file INSTALL for URLs where you can find these fonts.
3198 ** New command `strokes-global-set-stroke-string'.
3199 This is like `strokes-global-set-stroke', but it allows you to bind
3200 the stroke directly to a string to insert.  This is convenient for
3201 using strokes as an input method.
3203 ** Emacs server changes:
3206 *** You can have several Emacs servers on the same machine.
3208         % emacs --eval '(setq server-name "foo")' -f server-start &
3209         % emacs --eval '(setq server-name "bar")' -f server-start &
3210         % emacsclient -s foo file1
3211         % emacsclient -s bar file2
3214 *** The `emacsclient' command understands the options `--eval' and
3215 `--display' which tell Emacs respectively to evaluate the given Lisp
3216 expression and to use the given display when visiting files.
3219 *** User option `server-mode' can be used to start a server process.
3222 ** LDAP support now defaults to ldapsearch from OpenLDAP version 2.
3225 ** You can now disable pc-selection-mode after enabling it.
3227 M-x pc-selection-mode behaves like a proper minor mode, and with no
3228 argument it toggles the mode.  Turning off PC-Selection mode restores
3229 the global key bindings that were replaced by turning on the mode.
3232 ** `uniquify-strip-common-suffix' tells uniquify to prefer
3233 `file|dir1' and `file|dir2' to `file|dir1/subdir' and `file|dir2/subdir'.
3236 ** Support for `magic cookie' standout modes has been removed.
3238 Emacs still works on terminals that require magic cookies in order to
3239 use standout mode, but they can no longer display mode-lines in
3240 inverse-video.
3243 ** The game `mpuz' is enhanced.
3245 `mpuz' now allows the 2nd factor not to have two identical digits.  By
3246 default, all trivial operations involving whole lines are performed
3247 automatically.  The game uses faces for better visual feedback.
3249 ** battery.el changes:
3252 *** display-battery-mode replaces display-battery.
3255 *** battery.el now works on recent versions of OS X.
3258 ** calculator.el now has radix grouping mode.
3260 To enable this, set `calculator-output-radix' non-nil.  In this mode a
3261 separator character is used every few digits, making it easier to see
3262 byte boundries etc.  For more info, see the documentation of the
3263 variable `calculator-radix-grouping-mode'.
3266 ** fast-lock.el and lazy-lock.el are obsolete.  Use jit-lock.el instead.
3269 ** iso-acc.el is now obsolete.  Use one of the latin input methods instead.
3272 ** cplus-md.el has been deleted.
3274 * Changes in Emacs 22.1 on non-free operating systems
3277 ** The HOME directory defaults to Application Data under the user profile.
3279 If you used a previous version of Emacs without setting the HOME
3280 environment variable and a `.emacs' was saved, then Emacs will continue
3281 using C:/ as the default HOME.  But if you are installing Emacs afresh,
3282 the default location will be the "Application Data" (or similar
3283 localized name) subdirectory of your user profile.  A typical location
3284 of this directory is "C:\Documents and Settings\USERNAME\Application Data",
3285 where USERNAME is your user name.
3287 This change means that users can now have their own `.emacs' files on
3288 shared computers, and the default HOME directory is less likely to be
3289 read-only on computers that are administered by someone else.
3292 ** Passing resources on the command line now works on MS Windows.
3294 You can use --xrm to pass resource settings to Emacs, overriding any
3295 existing values.  For example:
3297   emacs --xrm "Emacs.Background:red" --xrm "Emacs.Geometry:100x20"
3299 will start up Emacs on an initial frame of 100x20 with red background,
3300 irrespective of geometry or background setting on the Windows registry.
3303 ** On MS Windows, the "system caret" now follows the cursor.
3305 This enables Emacs to work better with programs that need to track
3306 the cursor, for example screen magnifiers and text to speech programs.
3309 ** Tooltips now work on MS Windows.
3311 See the Emacs 21.1 NEWS entry for tooltips for details.
3314 ** Images are now supported on MS Windows.
3316 PBM and XBM images are supported out of the box. Other image formats
3317 depend on external libraries.  All of these libraries have been ported
3318 to Windows, and can be found in both source and binary form at
3319 http://gnuwin32.sourceforge.net/.  Note that libpng also depends on
3320 zlib, and tiff depends on the version of jpeg that it was compiled
3321 against.  For additional information, see nt/INSTALL.
3324 ** Sound is now supported on MS Windows.
3326 WAV format is supported on all versions of Windows, other formats such
3327 as AU, AIFF and MP3 may be supported in the more recent versions of
3328 Windows, or when other software provides hooks into the system level
3329 sound support for those formats.
3332 ** Different shaped mouse pointers are supported on MS Windows.
3334 The mouse pointer changes shape depending on what is under the pointer.
3337 ** Pointing devices with more than 3 buttons are now supported on MS Windows.
3339 The new variable `w32-pass-extra-mouse-buttons-to-system' controls
3340 whether Emacs should handle the extra buttons itself (the default), or
3341 pass them to Windows to be handled with system-wide functions.
3344 ** Emacs takes note of colors defined in Control Panel on MS-Windows.
3346 The Control Panel defines some default colors for applications in much
3347 the same way as wildcard X Resources do on X.  Emacs now adds these
3348 colors to the colormap prefixed by System (eg SystemMenu for the
3349 default Menu background, SystemMenuText for the foreground), and uses
3350 some of them to initialize some of the default faces.
3351 `list-colors-display' shows the list of System color names, in case
3352 you wish to use them in other faces.
3355 ** On MS Windows NT/W2K/XP, Emacs uses Unicode for clipboard operations.
3357 Those systems use Unicode internally, so this allows Emacs to share
3358 multilingual text with other applications. On other versions of
3359 MS Windows, Emacs now uses the appropriate locale coding-system, so
3360 the clipboard should work correctly for your local language without
3361 any customizations.
3364 ** Running in a console window in Windows now uses the console size.
3366 Previous versions of Emacs erred on the side of having a usable Emacs
3367 through telnet, even though that was inconvenient if you use Emacs in
3368 a local console window with a scrollback buffer. The default value of
3369 w32-use-full-screen-buffer is now nil, which favours local console
3370 windows. Recent versions of Windows telnet also work well with this
3371 setting. If you are using an older telnet server then Emacs detects
3372 that the console window dimensions that are reported are not sane, and
3373 defaults to 80x25. If you use such a telnet server regularly at a size
3374 other than 80x25, you can still manually set
3375 w32-use-full-screen-buffer to t.
3378 ** On Mac OS, `keyboard-coding-system' changes based on the keyboard script.
3381 ** The variable `mac-keyboard-text-encoding' and the constants
3382 `kTextEncodingMacRoman', `kTextEncodingISOLatin1', and
3383 `kTextEncodingISOLatin2' are obsolete.
3385 ** The variable `mac-command-key-is-meta' is obsolete.  Use
3386 `mac-command-modifier' and `mac-option-modifier' instead.
3388 * Incompatible Lisp Changes in Emacs 22.1
3391 ** The variables post-command-idle-hook and post-command-idle-delay have
3392     been removed.  Use run-with-idle-timer instead.
3395 ** `suppress-keymap' now works by remapping `self-insert-command' to
3396 the command `undefined'.  (In earlier Emacs versions, it used
3397 `substitute-key-definition' to rebind self inserting characters to
3398 `undefined'.)
3401 ** Mode line display ignores text properties as well as the
3402 :propertize and :eval forms in the value of a variable whose
3403 `risky-local-variable' property is nil.
3406 ** Support for Mocklisp has been removed.
3409 ** The variable `memory-full' now remains t until
3410 there is no longer a shortage of memory.
3412 * Lisp Changes in Emacs 22.1
3414 ** General Lisp changes:
3416 *** The function `expt' handles negative exponents differently.
3417 The value for `(expt A B)', if both A and B are integers and B is
3418 negative, is now a float.  For example: (expt 2 -2) => 0.25.
3421 *** The function `eql' is now available without requiring the CL package.
3424 *** `makehash' is now obsolete.  Use `make-hash-table' instead.
3427 *** `add-to-list' takes an optional third argument, APPEND.
3429 If APPEND is non-nil, the new element gets added at the end of the
3430 list instead of at the beginning.  This change actually occurred in
3431 Emacs 21.1, but was not documented then.
3434 *** New function `add-to-ordered-list' is like `add-to-list' but
3435 associates a numeric ordering of each element added to the list.
3438 *** New function `copy-tree' makes a copy of a tree.
3440 It recursively copyies through both CARs and CDRs.
3443 *** New function `delete-dups' deletes `equal' duplicate elements from a list.
3445 It modifies the list destructively, like `delete'.  Of several `equal'
3446 occurrences of an element in the list, the one that's kept is the
3447 first one.
3450 *** New function `rassq-delete-all'.
3452 (rassq-delete-all VALUE ALIST) deletes, from ALIST, each element whose
3453 CDR is `eq' to the specified value.
3456 *** The function `number-sequence' makes a list of equally-separated numbers.
3458 For instance, (number-sequence 4 9) returns (4 5 6 7 8 9).  By
3459 default, the separation is 1, but you can specify a different
3460 separation as the third argument.  (number-sequence 1.5 6 2) returns
3461 (1.5 3.5 5.5).
3464 *** New variables `most-positive-fixnum' and `most-negative-fixnum'.
3466 They hold the largest and smallest possible integer values.
3469 *** Minor change in the function `format'.
3471 Some flags that were accepted but not implemented (such as "*") are no
3472 longer accepted.
3475 *** Functions `get' and `plist-get' no longer give errors for bad plists.
3477 They return nil for a malformed property list or if the list is
3478 cyclic.
3481 *** New functions `lax-plist-get' and `lax-plist-put'.
3483 They are like `plist-get' and `plist-put', except that they compare
3484 the property name using `equal' rather than `eq'.
3487 *** New variable `print-continuous-numbering'.
3489 When this is non-nil, successive calls to print functions use a single
3490 numbering scheme for circular structure references.  This is only
3491 relevant when `print-circle' is non-nil.
3493 When you bind `print-continuous-numbering' to t, you should
3494 also bind `print-number-table' to nil.
3497 *** New function `macroexpand-all' expands all macros in a form.
3499 It is similar to the Common-Lisp function of the same name.
3500 One difference is that it guarantees to return the original argument
3501 if no expansion is done, which can be tested using `eq'.
3504 *** The function `atan' now accepts an optional second argument.
3506 When called with 2 arguments, as in `(atan Y X)', `atan' returns the
3507 angle in radians between the vector [X, Y] and the X axis.  (This is
3508 equivalent to the standard C library function `atan2'.)
3511 *** A function or macro's doc string can now specify the calling pattern.
3513 You put this info in the doc string's last line.  It should be
3514 formatted so as to match the regexp "\n\n(fn .*)\\'".  If you don't
3515 specify this explicitly, Emacs determines it from the actual argument
3516 names.  Usually that default is right, but not always.
3519 *** New macro `with-local-quit' temporarily allows quitting.
3521 A quit inside the body of `with-local-quit' is caught by the
3522 `with-local-quit' form itself, but another quit will happen later once
3523 the code that has inhibitted quitting exits.
3525 This is for use around potentially blocking or long-running code
3526 inside timer functions and `post-command-hook' functions.
3529 *** New macro `define-obsolete-function-alias'.
3531 This combines `defalias' and `make-obsolete'.
3534 *** New function `unsafep' determines whether a Lisp form is safe.
3536 It returns nil if the given Lisp form can't possibly do anything
3537 dangerous; otherwise it returns a reason why the form might be unsafe
3538 (calls unknown function, alters global variable, etc).
3541 *** New macro `eval-at-startup' specifies expressions to
3542 evaluate when Emacs starts up.  If this is done after startup,
3543 it evaluates those expressions immediately.
3545 This is useful in packages that can be preloaded.
3547 *** `list-faces-display' takes an optional argument, REGEXP.
3549 If it is non-nil, the function lists only faces matching this regexp.
3551 ** Lisp code indentation features:
3554 *** The `defmacro' form can contain indentation and edebug declarations.
3556 These declarations specify how to indent the macro calls in Lisp mode
3557 and how to debug them with Edebug.  You write them like this:
3559    (defmacro NAME LAMBDA-LIST [DOC-STRING] [DECLARATION ...] ...)
3561 DECLARATION is a list `(declare DECLARATION-SPECIFIER ...)'.  The
3562 possible declaration specifiers are:
3564 (indent INDENT)
3565         Set NAME's `lisp-indent-function' property to INDENT.
3567 (edebug DEBUG)
3568         Set NAME's `edebug-form-spec' property to DEBUG.  (This is
3569         equivalent to writing a `def-edebug-spec' for the macro,
3570         but this is cleaner.)
3573 *** cl-indent now allows customization of Indentation of backquoted forms.
3575 See the new user option `lisp-backquote-indentation'.
3578 *** cl-indent now handles indentation of simple and extended `loop' forms.
3580 The new user options `lisp-loop-keyword-indentation',
3581 `lisp-loop-forms-indentation', and `lisp-simple-loop-indentation' can
3582 be used to customize the indentation of keywords and forms in loop
3583 forms.
3586 ** Variable aliases:
3588 *** New function: defvaralias ALIAS-VAR BASE-VAR [DOCSTRING]
3590 This function defines the symbol ALIAS-VAR as a variable alias for
3591 symbol BASE-VAR.  This means that retrieving the value of ALIAS-VAR
3592 returns the value of BASE-VAR, and changing the value of ALIAS-VAR
3593 changes the value of BASE-VAR.
3595 DOCSTRING, if present, is the documentation for ALIAS-VAR; else it has
3596 the same documentation as BASE-VAR.
3598 *** New function: indirect-variable VARIABLE
3600 This function returns the variable at the end of the chain of aliases
3601 of VARIABLE.  If VARIABLE is not a symbol, or if VARIABLE is not
3602 defined as an alias, the function returns VARIABLE.
3604 It might be noteworthy that variables aliases work for all kinds of
3605 variables, including buffer-local and frame-local variables.
3608 *** The macro `define-obsolete-variable-alias' combines `defvaralias' and
3609 `make-obsolete-variable'.
3611 ** defcustom changes:
3614 *** The new customization type `float' requires a floating point number.
3616 ** String changes:
3619 *** The escape sequence \s is now interpreted as a SPACE character.
3621 Exception: In a character constant, if it is followed by a `-' in a
3622 character constant (e.g. ?\s-A), it is still interpreted as the super
3623 modifier.  In strings, \s is always interpreted as a space.
3626 *** A hex escape in a string constant forces the string to be multibyte.
3629 *** An octal escape in a string constant forces the string to be unibyte.
3632 *** `split-string' now includes null substrings in the returned list if
3633 the optional argument SEPARATORS is non-nil and there are matches for
3634 SEPARATORS at the beginning or end of the string.  If SEPARATORS is
3635 nil, or if the new optional third argument OMIT-NULLS is non-nil, all
3636 empty matches are omitted from the returned list.
3639 *** New function `string-to-multibyte' converts a unibyte string to a
3640 multibyte string with the same individual character codes.
3643 *** New function `substring-no-properties' returns a substring without
3644 text properties.
3647 *** The new function `assoc-string' replaces `assoc-ignore-case' and
3648 `assoc-ignore-representation', which are still available, but have
3649 been declared obsolete.
3652 ** Displaying warnings to the user.
3654 See the functions `warn' and `display-warning', or the Lisp Manual.
3655 If you want to be sure the warning will not be overlooked, this
3656 facility is much better than using `message', since it displays
3657 warnings in a separate window.
3660 ** Progress reporters.
3662 These provide a simple and uniform way for commands to present
3663 progress messages for the user.
3665 See the new functions `make-progress-reporter',
3666 `progress-reporter-update', `progress-reporter-force-update',
3667 `progress-reporter-done', and `dotimes-with-progress-reporter'.
3669 ** Buffer positions:
3672 *** Function `compute-motion' now calculates the usable window
3673 width if the WIDTH argument is nil.  If the TOPOS argument is nil,
3674 the usable window height and width is used.
3677 *** The `line-move', `scroll-up', and `scroll-down' functions will now
3678 modify the window vscroll to scroll through display rows that are
3679 taller that the height of the window, for example in the presence of
3680 large images.  To disable this feature, bind the new variable
3681 `auto-window-vscroll' to nil.
3684 *** The argument to `forward-word', `backward-word' is optional.
3686 It defaults to 1.
3689 *** Argument to `forward-to-indentation' and `backward-to-indentation' is optional.
3691 It defaults to 1.
3694 *** New function `mouse-on-link-p' test if a position is in a clickable link.
3696 This is the function used by the new `mouse-1-click-follows-link'
3697 functionality.
3700 *** New function `line-number-at-pos' returns the line number of a position.
3702 It an optional buffer position argument that defaults to point.
3705 *** `field-beginning' and `field-end' take new optional argument, LIMIT.
3707 This argument tells them not to search beyond LIMIT.  Instead they
3708 give up and return LIMIT.
3711 *** Function `pos-visible-in-window-p' now returns the pixel coordinates
3712 and partial visiblity state of the corresponding row, if the PARTIALLY
3713 arg is non-nil.
3716 *** New functions `posn-at-point' and `posn-at-x-y' return
3717 click-event-style position information for a given visible buffer
3718 position or for a given window pixel coordinate.
3720 ** Text modification:
3723 *** The new function `insert-for-yank' normally works like `insert', but
3724 removes the text properties in the `yank-excluded-properties' list
3725 and handles the `yank-handler' text property.
3728 *** The new function `insert-buffer-substring-as-yank' is like
3729 `insert-for-yank' except that it gets the text from another buffer as
3730 in `insert-buffer-substring'.
3733 *** The new function `insert-buffer-substring-no-properties' is like
3734 `insert-buffer-substring', but removes all text properties from the
3735 inserted substring.
3738 *** The new function `filter-buffer-substring' extracts a buffer
3739 substring, passes it through a set of filter functions, and returns
3740 the filtered substring.  Use it instead of `buffer-substring' or
3741 `delete-and-extract-region' when copying text into a user-accessible
3742 data structure, such as the kill-ring, X clipboard, or a register.
3744 The list of filter function is specified by the new variable
3745 `buffer-substring-filters'.  For example, Longlines mode adds to
3746 `buffer-substring-filters' to remove soft newlines from the copied
3747 text.
3750 *** Function `translate-region' accepts also a char-table as TABLE
3751 argument.
3754 *** The new translation table `translation-table-for-input'
3755 is used for customizing self-insertion.  The character to
3756 be inserted is translated through it.
3759 *** Text clones.
3761 The new function `text-clone-create'.  Text clones are chunks of text
3762 that are kept identical by transparently propagating changes from one
3763 clone to the other.
3766 *** The function `insert-string' is now obsolete.
3768 ** Filling changes.
3771 *** In determining an adaptive fill prefix, Emacs now tries the function in
3772 `adaptive-fill-function' _before_ matching the buffer line against
3773 `adaptive-fill-regexp' rather than _after_ it.
3776 ** Atomic change groups.
3778 To perform some changes in the current buffer "atomically" so that
3779 they either all succeed or are all undone, use `atomic-change-group'
3780 around the code that makes changes.  For instance:
3782   (atomic-change-group
3783     (insert foo)
3784     (delete-region x y))
3786 If an error (or other nonlocal exit) occurs inside the body of
3787 `atomic-change-group', it unmakes all the changes in that buffer that
3788 were during the execution of the body.  The change group has no effect
3789 on any other buffers--any such changes remain.
3791 If you need something more sophisticated, you can directly call the
3792 lower-level functions that `atomic-change-group' uses.  Here is how.
3794 To set up a change group for one buffer, call `prepare-change-group'.
3795 Specify the buffer as argument; it defaults to the current buffer.
3796 This function returns a "handle" for the change group.  You must save
3797 the handle to activate the change group and then finish it.
3799 Before you change the buffer again, you must activate the change
3800 group.  Pass the handle to `activate-change-group' afterward to
3801 do this.
3803 After you make the changes, you must finish the change group.  You can
3804 either accept the changes or cancel them all.  Call
3805 `accept-change-group' to accept the changes in the group as final;
3806 call `cancel-change-group' to undo them all.
3808 You should use `unwind-protect' to make sure the group is always
3809 finished.  The call to `activate-change-group' should be inside the
3810 `unwind-protect', in case the user types C-g just after it runs.
3811 (This is one reason why `prepare-change-group' and
3812 `activate-change-group' are separate functions.)  Once you finish the
3813 group, don't use the handle again--don't try to finish the same group
3814 twice.
3816 To make a multibuffer change group, call `prepare-change-group' once
3817 for each buffer you want to cover, then use `nconc' to combine the
3818 returned values, like this:
3820   (nconc (prepare-change-group buffer-1)
3821          (prepare-change-group buffer-2))
3823 You can then activate the multibuffer change group with a single call
3824 to `activate-change-group', and finish it with a single call to
3825 `accept-change-group' or `cancel-change-group'.
3827 Nested use of several change groups for the same buffer works as you
3828 would expect.  Non-nested use of change groups for the same buffer
3829 will lead to undesirable results, so don't let it happen; the first
3830 change group you start for any given buffer should be the last one
3831 finished.
3833 ** Buffer-related changes:
3836 *** `list-buffers-noselect' now takes an additional argument, BUFFER-LIST.
3838 If it is non-nil, it specifies which buffers to list.
3841 *** `kill-buffer-hook' is now a permanent local.
3844 *** The new function `buffer-local-value' returns the buffer-local
3845 binding of VARIABLE (a symbol) in buffer BUFFER.  If VARIABLE does not
3846 have a buffer-local binding in buffer BUFFER, it returns the default
3847 value of VARIABLE instead.
3849 *** The function `frame-or-buffer-changed-p' now lets you maintain
3850 various status records in parallel.
3852 It take a variable (a symbol) as argument.  If the variable is non-nil,
3853 then its value should be a vector installed previously by
3854 `frame-or-buffer-changed-p'.  If the frame names, buffer names, buffer
3855 order, or their read-only or modified flags have changed, since the
3856 time the vector's contents were recorded by a previous call to
3857 `frame-or-buffer-changed-p', then the function returns t.  Otherwise
3858 it returns nil.
3860 On the first call to `frame-or-buffer-changed-p', the variable's
3861 value should be nil.  `frame-or-buffer-changed-p' stores a suitable
3862 vector into the variable and returns t.
3864 If the variable is itself nil, then `frame-or-buffer-changed-p' uses,
3865 for compatibility, an internal variable which exists only for this
3866 purpose.
3869 *** The function `read-buffer' follows the convention for reading from
3870 the minibuffer with a default value: if DEF is non-nil, the minibuffer
3871 prompt provided in PROMPT is edited to show the default value provided
3872 in DEF before the terminal colon and space.
3874 ** Local variables lists:
3877 *** Text properties in local variables.
3879 A file local variables list cannot specify a string with text
3880 properties--any specified text properties are discarded.
3883 *** The variable `safe-local-eval-forms' specifies a list of forms that
3884 are ok to evaluate when they appear in an `eval' local variables
3885 specification.  Normally Emacs asks for confirmation before evaluating
3886 such a form, but if the form appears in this list, no confirmation is
3887 needed.
3890 *** If a function has a non-nil `safe-local-eval-function' property,
3891 that means it is ok to evaluate some calls to that function when it
3892 appears in an `eval' local variables specification.  If the property
3893 is t, then any form calling that function with constant arguments is
3894 ok.  If the property is a function or list of functions, they are called
3895 with the form as argument, and if any returns t, the form is ok to call.
3897 If the form is not "ok to call", that means Emacs asks for
3898 confirmation as before.
3900 ** Searching and matching changes:
3903 *** New function `looking-back' checks whether a regular expression matches
3904 the text before point.  Specifying the LIMIT argument bounds how far
3905 back the match can start; this is a way to keep it from taking too long.
3908 *** The new variable `search-spaces-regexp' controls how to search
3909 for spaces in a regular expression.  If it is non-nil, it should be a
3910 regular expression, and any series of spaces stands for that regular
3911 expression.  If it is nil, spaces stand for themselves.
3913 Spaces inside of constructs such as `[..]' and inside loops such as
3914 `*', `+', and `?' are never replaced with `search-spaces-regexp'.
3917 *** New regular expression operators, `\_<' and `\_>'.
3919 These match the beginning and end of a symbol.  A symbol is a
3920 non-empty sequence of either word or symbol constituent characters, as
3921 specified by the syntax table.
3924 *** rx.el has new corresponding `symbol-end' and `symbol-start' elements.
3927 *** `skip-chars-forward' and `skip-chars-backward' now handle
3928 character classes such as `[:alpha:]', along with individual
3929 characters and ranges.
3932 *** In `replace-match', the replacement text no longer inherits
3933 properties from surrounding text.
3936 *** The list returned by `(match-data t)' now has the buffer as a final
3937 element, if the last match was on a buffer.  `set-match-data'
3938 accepts such a list for restoring the match state.
3941 *** Functions `match-data' and `set-match-data' now have an optional
3942 argument `reseat'.  When non-nil, all markers in the match data list
3943 passed to these function will be reseated to point to nowhere.
3946 *** The default value of `sentence-end' is now defined using the new
3947 variable `sentence-end-without-space', which contains such characters
3948 that end a sentence without following spaces.
3950 The function `sentence-end' should be used to obtain the value of the
3951 variable `sentence-end'.  If the variable `sentence-end' is nil, then
3952 this function returns the regexp constructed from the variables
3953 `sentence-end-without-period', `sentence-end-double-space' and
3954 `sentence-end-without-space'.
3956 ** Undo changes:
3959 *** `buffer-undo-list' can allows programmable elements.
3961 These elements have the form (apply FUNNAME . ARGS), where FUNNAME is
3962 a symbol other than t or nil.  That stands for a high-level change
3963 that should be undone by evaluating (apply FUNNAME ARGS).
3965 These entries can also have the form (apply DELTA BEG END FUNNAME . ARGS)
3966 which indicates that the change which took place was limited to the
3967 range BEG...END and increased the buffer size by DELTA.
3970 *** If the buffer's undo list for the current command gets longer than
3971 `undo-outer-limit', garbage collection empties it.  This is to prevent
3972 it from using up the available memory and choking Emacs.
3975 ** New `yank-handler' text property can be used to control how
3976 previously killed text on the kill ring is reinserted.
3978 The value of the `yank-handler' property must be a list with one to four
3979 elements with the following format:
3980   (FUNCTION PARAM NOEXCLUDE UNDO).
3982 The `insert-for-yank' function looks for a yank-handler property on
3983 the first character on its string argument (typically the first
3984 element on the kill-ring).  If a `yank-handler' property is found,
3985 the normal behavior of `insert-for-yank' is modified in various ways:
3987   When FUNCTION is present and non-nil, it is called instead of `insert'
3988 to insert the string.  FUNCTION takes one argument--the object to insert.
3989   If PARAM is present and non-nil, it replaces STRING as the object
3990 passed to FUNCTION (or `insert'); for example, if FUNCTION is
3991 `yank-rectangle', PARAM should be a list of strings to insert as a
3992 rectangle.
3993   If NOEXCLUDE is present and non-nil, the normal removal of the
3994 `yank-excluded-properties' is not performed; instead FUNCTION is
3995 responsible for removing those properties.  This may be necessary
3996 if FUNCTION adjusts point before or after inserting the object.
3997   If UNDO is present and non-nil, it is a function that will be called
3998 by `yank-pop' to undo the insertion of the current object.  It is
3999 called with two arguments, the start and end of the current region.
4000 FUNCTION can set `yank-undo-function' to override the UNDO value.
4002 *** The functions `kill-new', `kill-append', and `kill-region' now have an
4003 optional argument to specify the `yank-handler' text property to put on
4004 the killed text.
4006 *** The function `yank-pop' will now use a non-nil value of the variable
4007 `yank-undo-function' (instead of `delete-region') to undo the previous
4008 `yank' or `yank-pop' command (or a call to `insert-for-yank').  The function
4009 `insert-for-yank' automatically sets that variable according to the UNDO
4010 element of the string argument's `yank-handler' text property if present.
4012 *** The function `insert-for-yank' now supports strings where the
4013 `yank-handler' property does not span the first character of the
4014 string.  The old behavior is available if you call
4015 `insert-for-yank-1' instead.
4017 ** Syntax table changes:
4020 *** The macro `with-syntax-table' no longer copies the syntax table.
4023 *** The new function `syntax-after' returns the syntax code
4024 of the character after a specified buffer position, taking account
4025 of text properties as well as the character code.
4028 *** `syntax-class' extracts the class of a syntax code (as returned
4029 by `syntax-after').
4032 *** The new function `syntax-ppss' rovides an efficient way to find the
4033 current syntactic context at point.
4035 ** File operation changes:
4038 *** New vars `exec-suffixes' and `load-suffixes' used when
4039 searching for an executable or an Emacs Lisp file.
4042 *** The new primitive `set-file-times' sets a file's access and
4043 modification times.  Magic file name handlers can handle this
4044 operation.
4047 *** The new function `file-remote-p' tests a file name and returns
4048 non-nil if it specifies a remote file (one that Emacs accesses using
4049 its own special methods and not directly through the file system).
4050 The value in that case is an identifier for the remote file system.
4053 *** `buffer-auto-save-file-format' is the new name for what was
4054 formerly called `auto-save-file-format'.  It is now a permanent local.
4057 *** Functions `file-name-sans-extension' and `file-name-extension' now
4058 ignore the leading dots in file names, so that file names such as
4059 `.emacs' are treated as extensionless.
4062 *** `copy-file' now takes an additional option arg MUSTBENEW.
4064 This argument works like the MUSTBENEW argument of write-file.
4067 *** `visited-file-modtime' and `calendar-time-from-absolute' now return
4068 a list of two integers, instead of a cons.
4071 *** `file-chase-links' now takes an optional second argument LIMIT which
4072 specifies the maximum number of links to chase through.  If after that
4073 many iterations the file name obtained is still a symbolic link,
4074 `file-chase-links' returns it anyway.
4077 *** The new hook `before-save-hook' is invoked by `basic-save-buffer'
4078 before saving buffers.  This allows packages to perform various final
4079 tasks, for example; it can be used by the copyright package to make
4080 sure saved files have the current year in any copyright headers.
4083 *** If `buffer-save-without-query' is non-nil in some buffer,
4084 `save-some-buffers' will always save that buffer without asking (if
4085 it's modified).
4088 *** New function `locate-file' searches for a file in a list of directories.
4089 `locate-file' accepts a name of a file to search (a string), and two
4090 lists: a list of directories to search in and a list of suffixes to
4091 try; typical usage might use `exec-path' and `load-path' for the list
4092 of directories, and `exec-suffixes' and `load-suffixes' for the list
4093 of suffixes.  The function also accepts a predicate argument to
4094 further filter candidate files.
4096 One advantage of using this function is that the list of suffixes in
4097 `exec-suffixes' is OS-dependant, so this function will find
4098 executables without polluting Lisp code with OS dependancies.
4101 *** The precedence of file name handlers has been changed.
4103 Instead of choosing the first handler that matches,
4104 `find-file-name-handler' now gives precedence to a file name handler
4105 that matches nearest the end of the file name.  More precisely, the
4106 handler whose (match-beginning 0) is the largest is chosen.  In case
4107 of ties, the old "first matched" rule applies.
4110 *** A file name handler can declare which operations it handles.
4112 You do this by putting an `operation' property on the handler name
4113 symbol.  The property value should be a list of the operations that
4114 the handler really handles.  It won't be called for any other
4115 operations.
4117 This is useful for autoloaded handlers, to prevent them from being
4118 autoloaded when not really necessary.
4121 *** The function `make-auto-save-file-name' is now handled by file
4122 name handlers.  This will be exploited for remote files mainly.
4124 ** Input changes:
4127 *** An interactive specification can now use the code letter 'U' to get
4128 the up-event that was discarded in case the last key sequence read for a
4129 previous `k' or `K' argument was a down-event; otherwise nil is used.
4132 *** The new interactive-specification `G' reads a file name
4133 much like `F', but if the input is a directory name (even defaulted),
4134 it returns just the directory name.
4137 *** Functions `y-or-n-p', `read-char', `read-key-sequence' and the like, that
4138 display a prompt but don't use the minibuffer, now display the prompt
4139 using the text properties (esp. the face) of the prompt string.
4142 *** (while-no-input BODY...) runs BODY, but only so long as no input
4143 arrives.  If the user types or clicks anything, BODY stops as if a
4144 quit had occurred.  `while-no-input' returns the value of BODY, if BODY
4145 finishes.  It returns nil if BODY was aborted by a quit, and t if
4146 BODY was aborted by arrival of input.
4148 ** Minibuffer changes:
4151 *** The new function `minibufferp' returns non-nil if its optional
4152 buffer argument is a minibuffer.  If the argument is omitted, it
4153 defaults to the current buffer.
4156 *** New function `minibuffer-selected-window' returns the window which
4157 was selected when entering the minibuffer.
4160 *** `read-from-minibuffer' now accepts an additional argument KEEP-ALL
4161 saying to put all inputs in the history list, even empty ones.
4164 *** The `read-file-name' function now takes an additional argument which
4165 specifies a predicate which the file name read must satify.  The
4166 new variable `read-file-name-predicate' contains the predicate argument
4167 while reading the file name from the minibuffer; the predicate in this
4168 variable is used by read-file-name-internal to filter the completion list.
4171 *** The new variable `read-file-name-function' can be used by Lisp code
4172 to override the built-in `read-file-name' function.
4175 *** The new variable `read-file-name-completion-ignore-case' specifies
4176 whether completion ignores case when reading a file name with the
4177 `read-file-name' function.
4180 *** The new function `read-directory-name' for reading a directory name.
4182 It is like `read-file-name' except that the defaulting works better
4183 for directories, and completion inside it shows only directories.
4185 ** Completion changes:
4188 *** The functions `all-completions' and `try-completion' now accept lists
4189 of strings as well as hash-tables additionally to alists, obarrays
4190 and functions.  Furthermore, the function `test-completion' is now
4191 exported to Lisp.  The keys in alists and hash tables can be either
4192 strings or symbols, which are automatically converted with to strings.
4195 *** The new macro `dynamic-completion-table' supports using functions
4196 as a dynamic completion table.
4198   (dynamic-completion-table FUN)
4200 FUN is called with one argument, the string for which completion is required,
4201 and it should return an alist containing all the intended possible
4202 completions.  This alist can be a full list of possible completions so that FUN
4203 can ignore the value of its argument.  If completion is performed in the
4204 minibuffer, FUN will be called in the buffer from which the minibuffer was
4205 entered.  `dynamic-completion-table' then computes the completion.
4208 *** The new macro `lazy-completion-table' initializes a variable
4209 as a lazy completion table.
4211   (lazy-completion-table VAR FUN &rest ARGS)
4213 If the completion table VAR is used for the first time (e.g., by passing VAR
4214 as an argument to `try-completion'), the function FUN is called with arguments
4215 ARGS. FUN must return the completion table that will be stored in VAR. If
4216 completion is requested in the minibuffer, FUN will be called in the buffer
4217 from which the minibuffer was entered. The return value of
4218 `lazy-completion-table' must be used to initialize the value of VAR.
4221 ** Enhancements to keymaps.
4223 *** New keymaps for typing file names
4225 Two new keymaps, `minibuffer-local-filename-completion-map'  and
4226 `minibuffer-local-must-match-filename-map', apply whenever
4227 Emacs reads a file name in the minibuffer.  These key maps override
4228 the usual binding of SPC to `minibuffer-complete-word' (so that file
4229 names with embedded spaces could be typed without the need to quote
4230 the spaces).
4232 *** Cleaner way to enter key sequences.
4234 You can enter a constant key sequence in a more natural format, the
4235 same one used for saving keyboard macros, using the macro `kbd'.  For
4236 example,
4238 (kbd "C-x C-f") => "\^x\^f"
4240 *** Interactive commands can be remapped through keymaps.
4242 This is an alternative to using `defadvice' or `substitute-key-definition'
4243 to modify the behavior of a key binding using the normal keymap
4244 binding and lookup functionality.
4246 When a key sequence is bound to a command, and that command is
4247 remapped to another command, that command is run instead of the
4248 original command.
4250 Example:
4251 Suppose that minor mode `my-mode' has defined the commands
4252 `my-kill-line' and `my-kill-word', and it wants C-k (and any other key
4253 bound to `kill-line') to run the command `my-kill-line' instead of
4254 `kill-line', and likewise it wants to run `my-kill-word' instead of
4255 `kill-word'.
4257 Instead of rebinding C-k and the other keys in the minor mode map,
4258 command remapping allows you to directly map `kill-line' into
4259 `my-kill-line' and `kill-word' into `my-kill-word' using `define-key':
4261    (define-key my-mode-map [remap kill-line] 'my-kill-line)
4262    (define-key my-mode-map [remap kill-word] 'my-kill-word)
4264 When `my-mode' is enabled, its minor mode keymap is enabled too.  So
4265 when the user types C-k, that runs the command `my-kill-line'.
4267 Only one level of remapping is supported.  In the above example, this
4268 means that if `my-kill-line' is remapped to `other-kill', then C-k still
4269 runs `my-kill-line'.
4271 The following changes have been made to provide command remapping:
4273 - Command remappings are defined using `define-key' with a prefix-key
4274   `remap', i.e. `(define-key MAP [remap CMD] DEF)' remaps command CMD
4275   to definition DEF in keymap MAP.  The definition is not limited to
4276   another command; it can be anything accepted for a normal binding.
4278 - The new function `command-remapping' returns the binding for a
4279   remapped command in the current keymaps, or nil if not remapped.
4281 - `key-binding' now remaps interactive commands unless the optional
4282   third argument NO-REMAP is non-nil.
4284 - `where-is-internal' now returns nil for a remapped command (e.g.
4285   `kill-line', when `my-mode' is enabled), and the actual key binding for
4286   the command it is remapped to (e.g. C-k for my-kill-line).
4287   It also has a new optional fifth argument, NO-REMAP, which inhibits
4288   remapping if non-nil (e.g. it returns "C-k" for `kill-line', and
4289   "<kill-line>" for `my-kill-line').
4291 - The new variable `this-original-command' contains the original
4292   command before remapping.  It is equal to `this-command' when the
4293   command was not remapped.
4295 *** If text has a `keymap' property, that keymap takes precedence
4296 over minor mode keymaps.
4298 *** The `keymap' property now also works at the ends of overlays and
4299 text properties, according to their stickiness.  This also means that it
4300 works with empty overlays.  The same hold for the `local-map' property.
4302 *** Dense keymaps now handle inheritance correctly.
4304 Previously a dense keymap would hide all of the simple-char key
4305 bindings of the parent keymap.
4307 *** `define-key-after' now accepts keys longer than 1.
4309 *** New function `current-active-maps' returns a list of currently
4310 active keymaps.
4312 *** New function `describe-buffer-bindings' inserts the list of all
4313 defined keys and their definitions.
4315 *** New function `keymap-prompt' returns the prompt string of a keymap.
4317 *** (map-keymap FUNCTION KEYMAP) applies the function to each binding
4318 in the keymap.
4320 *** New variable `emulation-mode-map-alists'.
4322 Lisp packages using many minor mode keymaps can now maintain their own
4323 keymap alist separate from `minor-mode-map-alist' by adding their
4324 keymap alist to this list.
4326 ** Abbrev changes:
4329 *** The new function `copy-abbrev-table' copies an abbrev table.
4331 It returns a new abbrev table that is a copy of a given abbrev table.
4334 *** `define-abbrev' now accepts an optional argument SYSTEM-FLAG.
4336 If non-nil, this marks the abbrev as a "system" abbrev, which means
4337 that it won't be stored in the user's abbrevs file if he saves the
4338 abbrevs.  Major modes that predefine some abbrevs should always
4339 specify this flag.
4342 ** Enhancements to process support
4344 *** Function `list-processes' now has an optional argument; if non-nil,
4345 it lists only the processes whose query-on-exit flag is set.
4347 *** New fns `set-process-query-on-exit-flag' and `process-query-on-exit-flag'.
4349 These replace the old function `process-kill-without-query'.  That
4350 function is still supported, but new code should use the new
4351 functions.
4353 *** Function `signal-process' now accepts a process object or process
4354 name in addition to a process id to identify the signaled process.
4356 *** Processes now have an associated property list where programs can
4357 maintain process state and other per-process related information.
4359 Use the new functions `process-get' and `process-put' to access, add,
4360 and modify elements on this property list.  Use the new functions
4361 `process-plist' and `set-process-plist' to access and replace the
4362 entire property list of a process.
4364 *** Function `accept-process-output' has a new optional fourth arg
4365 JUST-THIS-ONE.  If non-nil, only output from the specified process
4366 is handled, suspending output from other processes.  If value is an
4367 integer, also inhibit running timers.  This feature is generally not
4368 recommended, but may be necessary for specific applications, such as
4369 speech synthesis.
4371 *** Adaptive read buffering of subprocess output.
4373 On some systems, when emacs reads the output from a subprocess, the
4374 output data is read in very small blocks, potentially resulting in
4375 very poor performance.  This behavior can be remedied to some extent
4376 by setting the new variable `process-adaptive-read-buffering' to a
4377 non-nil value (the default), as it will automatically delay reading
4378 from such processes, to allowing them to produce more output before
4379 emacs tries to read it.
4381 *** The new function `call-process-shell-command'.
4383 This executes a shell command synchronously in a separate process.
4385 *** The new function `process-file' is similar to `call-process', but
4386 obeys file handlers.  The file handler is chosen based on
4387 `default-directory'.
4389 *** A process filter function gets the output as multibyte string
4390 if the process specifies t for its filter's multibyteness.
4392 That multibyteness is decided by the value of
4393 `default-enable-multibyte-characters' when the process is created, and
4394 you can change it later with `set-process-filter-multibyte'.
4396 *** The new function `set-process-filter-multibyte' sets the
4397 multibyteness of the strings passed to the process's filter.
4399 *** The new function `process-filter-multibyte-p' returns the
4400 multibyteness of the strings passed to the process's filter.
4402 *** If a process's coding system is `raw-text' or `no-conversion' and its
4403 buffer is multibyte, the output of the process is at first converted
4404 to multibyte by `string-to-multibyte' then inserted in the buffer.
4405 Previously, it was converted to multibyte by `string-as-multibyte',
4406 which was not compatible with the behavior of file reading.
4409 ** Enhanced networking support.
4411 *** The new `make-network-process' function makes network connections.
4412 It allows opening of stream and datagram connections to a server, as well as
4413 create a stream or datagram server inside emacs.
4415 - A server is started using :server t arg.
4416 - Datagram connection is selected using :type 'datagram arg.
4417 - A server can open on a random port using :service t arg.
4418 - Local sockets are supported using :family 'local arg.
4419 - Non-blocking connect is supported using :nowait t arg.
4420 - The process' property list can be initialized using :plist PLIST arg;
4421   a copy of the server process' property list is automatically inherited
4422   by new client processes created to handle incoming connections.
4424 To test for the availability of a given feature, use featurep like this:
4425   (featurep 'make-network-process '(:type datagram))
4427 *** The old `open-network-stream' now uses `make-network-process'.
4429 *** New functions `process-datagram-address', `set-process-datagram-address'.
4431 These functions are used with datagram-based network processes to get
4432 and set the current address of the remote partner.
4434 *** New function `format-network-address'.
4436 This function reformats the Lisp representation of a network address
4437 to a printable string.  For example, an IP address A.B.C.D and port
4438 number P is represented as a five element vector [A B C D P], and the
4439 printable string returned for this vector is "A.B.C.D:P".  See the doc
4440 string for other formatting options.
4442 *** `process-contact' has an optional KEY argument.
4444 Depending on this argument, you can get the complete list of network
4445 process properties or a specific property.  Using :local or :remote as
4446 the KEY, you get the address of the local or remote end-point.
4448 An Inet address is represented as a 5 element vector, where the first
4449 4 elements contain the IP address and the fifth is the port number.
4451 *** New functions `stop-process' and `continue-process'.
4453 These functions stop and restart communication through a network
4454 connection.  For a server process, no connections are accepted in the
4455 stopped state.  For a client process, no input is received in the
4456 stopped state.
4458 *** New function `network-interface-list'.
4460 This function returns a list of network interface names and their
4461 current network addresses.
4463 *** New function `network-interface-info'.
4465 This function returns the network address, hardware address, current
4466 status, and other information about a specific network interface.
4468 *** Deleting a network process with `delete-process' calls the sentinel.
4470 The status message passed to the sentinel for a deleted network
4471 process is "deleted".  The message passed to the sentinel when the
4472 connection is closed by the remote peer has been changed to
4473 "connection broken by remote peer".
4475 ** Using window objects:
4478 *** New function `window-body-height'.
4480 This is like `window-height' but does not count the mode line or the
4481 header line.
4484 *** New function `window-body-height'.
4486 This is like `window-height' but does not count the mode line
4487 or the header line.
4490 *** You can now make a window as short as one line.
4492 A window that is just one line tall does not display either a mode
4493 line or a header line, even if the variables `mode-line-format' and
4494 `header-line-format' call for them.  A window that is two lines tall
4495 cannot display both a mode line and a header line at once; if the
4496 variables call for both, only the mode line actually appears.
4499 *** The new function `window-inside-edges' returns the edges of the
4500 actual text portion of the window, not including the scroll bar or
4501 divider line, the fringes, the display margins, the header line and
4502 the mode line.
4505 *** The new functions `window-pixel-edges' and `window-inside-pixel-edges'
4506 return window edges in units of pixels, rather than columns and lines.
4509 *** The new macro `with-selected-window' temporarily switches the
4510 selected window without impacting the order of `buffer-list'.
4511 It saves and restores the current buffer, too.
4514 *** `select-window' takes an optional second argument NORECORD.
4516 This is like `switch-to-buffer'.
4519 *** `save-selected-window' now saves and restores the selected window
4520 of every frame.  This way, it restores everything that can be changed
4521 by calling `select-window'.  It also saves and restores the current
4522 buffer.
4525 *** `set-window-buffer' has an optional argument KEEP-MARGINS.
4527 If non-nil, that says to preserve the window's current margin, fringe,
4528 and scroll-bar settings.
4531 *** The new function `window-tree' returns a frame's window tree.
4534 *** The functions `get-lru-window' and `get-largest-window' take an optional
4535 argument `dedicated'.  If non-nil, those functions do not ignore
4536 dedicated windows.
4539 *** The new function `adjust-window-trailing-edge' moves the right
4540 or bottom edge of a window.  It does not move other window edges.
4543 ** Customizable fringe bitmaps
4545 *** New function `define-fringe-bitmap' can now be used to create new
4546 fringe bitmaps, as well as change the built-in fringe bitmaps.
4548 To change a built-in bitmap, do (require 'fringe) and use the symbol
4549 identifing the bitmap such as `left-truncation or `continued-line'.
4551 *** New function `destroy-fringe-bitmap' deletes a fringe bitmap
4552 or restores a built-in one to its default value.
4554 *** New function `set-fringe-bitmap-face' specifies the face to be
4555 used for a specific fringe bitmap.  The face is automatically merged
4556 with the `fringe' face, so normally, the face should only specify the
4557 foreground color of the bitmap.
4559 *** There are new display properties, `left-fringe' and `right-fringe',
4560 that can be used to show a specific bitmap in the left or right fringe
4561 bitmap of the display line.
4563 Format is `display (left-fringe BITMAP [FACE])', where BITMAP is a
4564 symbol identifying a fringe bitmap, either built-in or defined with
4565 `define-fringe-bitmap', and FACE is an optional face name to be used
4566 for displaying the bitmap instead of the default `fringe' face.
4567 When specified, FACE is automatically merged with the `fringe' face.
4569 *** New function `fringe-bitmaps-at-pos' returns the current fringe
4570 bitmaps in the display line at a given buffer position.
4572 ** Other window fringe features:
4575 *** Controlling the default left and right fringe widths.
4577 The default left and right fringe widths for all windows of a frame
4578 can now be controlled by setting the `left-fringe' and `right-fringe'
4579 frame parameters to an integer value specifying the width in pixels.
4580 Setting the width to 0 effectively removes the corresponding fringe.
4582 The actual default fringe widths for the frame may deviate from the
4583 specified widths, since the combined fringe widths must match an
4584 integral number of columns.  The extra width is distributed evenly
4585 between the left and right fringe.  For force a specific fringe width,
4586 specify the width as a negative integer (if both widths are negative,
4587 only the left fringe gets the specified width).
4589 Setting the width to nil (the default), restores the default fringe
4590 width which is the minimum number of pixels necessary to display any
4591 of the currently defined fringe bitmaps.  The width of the built-in
4592 fringe bitmaps is 8 pixels.
4595 *** Per-window fringe and scrollbar settings
4597 **** Windows can now have their own individual fringe widths and
4598 position settings.
4600 To control the fringe widths of a window, either set the buffer-local
4601 variables `left-fringe-width', `right-fringe-width', or call
4602 `set-window-fringes'.
4604 To control the fringe position in a window, that is, whether fringes
4605 are positioned between the display margins and the window's text area,
4606 or at the edges of the window, either set the buffer-local variable
4607 `fringes-outside-margins' or call `set-window-fringes'.
4609 The function `window-fringes' can be used to obtain the current
4610 settings.  To make `left-fringe-width', `right-fringe-width', and
4611 `fringes-outside-margins' take effect, you must set them before
4612 displaying the buffer in a window, or use `set-window-buffer' to force
4613 an update of the display margins.
4615 **** Windows can now have their own individual scroll-bar settings
4616 controlling the width and position of scroll-bars.
4618 To control the scroll-bar of a window, either set the buffer-local
4619 variables `scroll-bar-mode' and `scroll-bar-width', or call
4620 `set-window-scroll-bars'.  The function `window-scroll-bars' can be
4621 used to obtain the current settings.  To make `scroll-bar-mode' and
4622 `scroll-bar-width' take effect, you must set them before displaying
4623 the buffer in a window, or use `set-window-buffer' to force an update
4624 of the display margins.
4626 ** Redisplay features:
4629 *** `sit-for' can now be called with args (SECONDS &optional NODISP).
4632 *** New function `force-window-update' can initiate a full redisplay of
4633 one or all windows.  Normally, this is not needed as changes in window
4634 contents are detected automatically.  However, certain implicit
4635 changes to mode lines, header lines, or display properties may require
4636 forcing an explicit window update.
4639 *** (char-displayable-p CHAR) returns non-nil if Emacs ought to be able
4640 to display CHAR.  More precisely, if the selected frame's fontset has
4641 a font to display the character set that CHAR belongs to.
4643 Fontsets can specify a font on a per-character basis; when the fontset
4644 does that, this value cannot be accurate.
4647 *** You can define multiple overlay arrows via the new
4648 variable `overlay-arrow-variable-list'.
4650 It contains a list of varibles which contain overlay arrow position
4651 markers, including the original `overlay-arrow-position' variable.
4653 Each variable on this list can have individual `overlay-arrow-string'
4654 and `overlay-arrow-bitmap' properties that specify an overlay arrow
4655 string (for non-window terminals) or fringe bitmap (for window
4656 systems) to display at the corresponding overlay arrow position.
4657 If either property is not set, the default `overlay-arrow-string' or
4658 'overlay-arrow-fringe-bitmap' will be used.
4661 *** New `line-height' and `line-spacing' properties for newline characters
4663 A newline can now have `line-height' and `line-spacing' text or overlay
4664 properties that control the height of the corresponding display row.
4666 If the `line-height' property value is t, the newline does not
4667 contribute to the height of the display row; instead the height of the
4668 newline glyph is reduced.  Also, a `line-spacing' property on this
4669 newline is ignored.  This can be used to tile small images or image
4670 slices without adding blank areas between the images.
4672 If the `line-height' property value is a positive integer, the value
4673 specifies the minimum line height in pixels.  If necessary, the line
4674 height it increased by increasing the line's ascent.
4676 If the `line-height' property value is a float, the minimum line
4677 height is calculated by multiplying the default frame line height by
4678 the given value.
4680 If the `line-height' property value is a cons (FACE . RATIO), the
4681 minimum line height is calculated as RATIO * height of named FACE.
4682 RATIO is int or float.  If FACE is t, it specifies the current face.
4684 If the `line-height' property value is a cons (nil . RATIO), the line
4685 height is calculated as RATIO * actual height of the line's contents.
4687 If the `line-height' value is a cons (HEIGHT . TOTAL), HEIGHT specifies
4688 the line height as described above, while TOTAL is any of the forms
4689 described above and specifies the total height of the line, causing a
4690 varying number of pixels to be inserted after the line to make it line
4691 exactly that many pixels high.
4693 If the `line-spacing' property value is an positive integer, the value
4694 is used as additional pixels to insert after the display line; this
4695 overrides the default frame `line-spacing' and any buffer local value of
4696 the `line-spacing' variable.
4698 If the `line-spacing' property is a float or cons, the line spacing
4699 is calculated as specified above for the `line-height' property.
4702 *** The buffer local `line-spacing' variable can now have a float value,
4703 which is used as a height relative to the default frame line height.
4706 *** Enhancements to stretch display properties
4708 The display property stretch specification form `(space PROPS)', where
4709 PROPS is a property list now allows pixel based width and height
4710 specifications, as well as enhanced horizontal text alignment.
4712 The value of these properties can now be a (primitive) expression
4713 which is evaluated during redisplay.  The following expressions
4714 are supported:
4716 EXPR ::= NUM | (NUM) | UNIT | ELEM | POS | IMAGE | FORM
4717 NUM  ::= INTEGER | FLOAT | SYMBOL
4718 UNIT ::= in | mm | cm | width | height
4719 ELEM ::= left-fringe | right-fringe | left-margin | right-margin
4720       |  scroll-bar | text
4721 POS  ::= left | center | right
4722 FORM ::= (NUM . EXPR) | (OP EXPR ...)
4723 OP   ::= + | -
4725 The form `NUM' specifies a fractional width or height of the default
4726 frame font size.  The form `(NUM)' specifies an absolute number of
4727 pixels.  If a symbol is specified, its buffer-local variable binding
4728 is used.  The `in', `mm', and `cm' units specifies the number of
4729 pixels per inch, milli-meter, and centi-meter, resp.  The `width' and
4730 `height' units correspond to the width and height of the current face
4731 font.  An image specification corresponds to the width or height of
4732 the image.
4734 The `left-fringe', `right-fringe', `left-margin', `right-margin',
4735 `scroll-bar', and `text' elements specify to the width of the
4736 corresponding area of the window.
4738 The `left', `center', and `right' positions can be used with :align-to
4739 to specify a position relative to the left edge, center, or right edge
4740 of the text area.  One of the above window elements (except `text')
4741 can also be used with :align-to to specify that the position is
4742 relative to the left edge of the given area.  Once the base offset for
4743 a relative position has been set (by the first occurrence of one of
4744 these symbols), further occurences of these symbols are interpreted as
4745 the width of the area.
4747 For example, to align to the center of the left-margin, use
4748     :align-to (+ left-margin (0.5 . left-margin))
4750 If no specific base offset is set for alignment, it is always relative
4751 to the left edge of the text area.  For example, :align-to 0 in a
4752 header line aligns with the first text column in the text area.
4754 The value of the form `(NUM . EXPR)' is the value of NUM multiplied by
4755 the value of the expression EXPR.  For example, (2 . in) specifies a
4756 width of 2 inches, while (0.5 . IMAGE) specifies half the width (or
4757 height) of the specified image.
4759 The form `(+ EXPR ...)' adds up the value of the expressions.
4760 The form `(- EXPR ...)' negates or subtracts the value of the expressions.
4763 *** Normally, the cursor is displayed at the end of any overlay and
4764 text property string that may be present at the current window
4765 position.  The cursor can now be placed on any character of such
4766 strings by giving that character a non-nil `cursor' text property.
4769 *** The display space :width and :align-to text properties are now
4770 supported on text terminals.
4773 *** Support for displaying image slices
4775 **** New display property (slice X Y WIDTH HEIGHT) can be used with
4776 an image property to display only a specific slice of the image.
4778 **** Function `insert-image' has new optional fourth arg to
4779 specify image slice (X Y WIDTH HEIGHT).
4781 **** New function `insert-sliced-image' inserts a given image as a
4782 specified number of evenly sized slices (rows x columns).
4785 *** Images can now have an associated image map via the :map property.
4787 An image map is an alist where each element has the format (AREA ID PLIST).
4788 An AREA is specified as either a rectangle, a circle, or a polygon:
4789 A rectangle is a cons (rect . ((X0 . Y0) . (X1 . Y1))) specifying the
4790 pixel coordinates of the upper left and bottom right corners.
4791 A circle is a cons (circle . ((X0 . Y0) . R)) specifying the center
4792 and the radius of the circle; R can be a float or integer.
4793 A polygon is a cons (poly . [X0 Y0 X1 Y1 ...]) where each pair in the
4794 vector describes one corner in the polygon.
4796 When the mouse pointer is above a hot-spot area of an image, the
4797 PLIST of that hot-spot is consulted; if it contains a `help-echo'
4798 property it defines a tool-tip for the hot-spot, and if it contains
4799 a `pointer' property, it defines the shape of the mouse cursor when
4800 it is over the hot-spot.  See the variable `void-area-text-pointer'
4801 for possible pointer shapes.
4803 When you click the mouse when the mouse pointer is over a hot-spot,
4804 an event is composed by combining the ID of the hot-spot with the
4805 mouse event, e.g. [area4 mouse-1] if the hot-spot's ID is `area4'.
4808 *** The function `find-image' now searches in etc/images/ and etc/.
4809 The new variable `image-load-path' is a list of locations in which to
4810 search for image files.  The default is to search in etc/images, then
4811 in etc/, and finally in the directories specified by `load-path'.
4812 Subdirectories of etc/ and etc/images are not recursively searched; if
4813 you put an image file in a subdirectory, you have to specify it
4814 explicitly; for example, if an image is put in etc/images/foo/bar.xpm:
4816   (defimage foo-image '((:type xpm :file "foo/bar.xpm")))
4819 *** The new variable `max-image-size' defines the maximum size of
4820 images that Emacs will load and display.
4822 ** Mouse pointer features:
4824 +++ (lispref)
4825 ??? (man)
4826 *** The mouse pointer shape in void text areas (i.e. after the end of a
4827 line or below the last line in the buffer) of the text window is now
4828 controlled by the new variable `void-text-area-pointer'.  The default
4829 is to use the `arrow' (non-text) pointer.  Other choices are `text'
4830 (or nil), `hand', `vdrag', `hdrag', `modeline', and `hourglass'.
4833 *** The mouse pointer shape over an image can now be controlled by the
4834 :pointer image property.
4837 *** The mouse pointer shape over ordinary text or images can now be
4838 controlled/overriden via the `pointer' text property.
4840 ** Mouse event enhancements:
4843 *** Mouse events for clicks on window fringes now specify `left-fringe'
4844 or `right-fringe' as the area.
4847 *** All mouse events now include a buffer position regardless of where
4848 you clicked.  For mouse clicks in window margins and fringes, this is
4849 a sensible buffer position corresponding to the surrounding text.
4852 *** `posn-point' now returns buffer position for non-text area events.
4855 *** Function `mouse-set-point' now works for events outside text area.
4858 *** New function `posn-area' returns window area clicked on (nil means
4859 text area).
4862 *** Mouse events include actual glyph column and row for all event types
4863 and all areas.
4866 *** New function `posn-actual-col-row' returns the actual glyph coordinates
4867 of the mouse event position.
4870 *** Mouse events can now indicate an image object clicked on.
4873 *** Mouse events include relative X and Y pixel coordinates relative to
4874 the top left corner of the object (image or character) clicked on.
4877 *** Mouse events include the pixel width and height of the object
4878 (image or character) clicked on.
4881 *** New functions 'posn-object', 'posn-object-x-y', 'posn-object-width-height'.
4883 These return the image or string object of a mouse click, the X and Y
4884 pixel coordinates relative to the top left corner of that object, and
4885 the total width and height of that object.
4887 ** Text property and overlay changes:
4890 *** Arguments for `remove-overlays' are now optional, so that you can
4891 remove all overlays in the buffer with just (remove-overlays).
4894 *** New variable `char-property-alias-alist'.
4896 This variable allows you to create alternative names for text
4897 properties.  It works at the same level as `default-text-properties',
4898 although it applies to overlays as well.  This variable was introduced
4899 to implement the `font-lock-face' property.
4902 *** New function `get-char-property-and-overlay' accepts the same
4903 arguments as `get-char-property' and returns a cons whose car is the
4904 return value of `get-char-property' called with those arguments and
4905 whose cdr is the overlay in which the property was found, or nil if
4906 it was found as a text property or not found at all.
4909 *** The new function `remove-list-of-text-properties'.
4911 It is like `remove-text-properties' except that it takes a list of
4912 property names as argument rather than a property list.
4914 ** Face changes
4917 *** The new face attribute condition `min-colors' can be used to tailor
4918 the face color to the number of colors supported by a display, and
4919 define the foreground and background colors accordingly so that they
4920 look best on a terminal that supports at least this many colors.  This
4921 is now the preferred method for defining default faces in a way that
4922 makes a good use of the capabilities of the display.
4925 *** New function `display-supports-face-attributes-p' can be used to test
4926 whether a given set of face attributes is actually displayable.
4928 A new predicate `supports' has also been added to the `defface' face
4929 specification language, which can be used to do this test for faces
4930 defined with `defface'.
4933 *** The special treatment of faces whose names are of the form `fg:COLOR'
4934 or `bg:COLOR' has been removed.  Lisp programs should use the
4935 `defface' facility for defining faces with specific colors, or use
4936 the feature of specifying the face attributes :foreground and :background
4937 directly in the `face' property instead of using a named face.
4940 *** The first face specification element in a defface can specify
4941 `default' instead of frame classification.  Then its attributes act as
4942 defaults that apply to all the subsequent cases (and can be overridden
4943 by them).
4946 *** The variable `face-font-rescale-alist' specifies how much larger
4947 (or smaller) font we should use.  For instance, if the value is
4948 '((SOME-FONTNAME-PATTERN . 1.3)) and a face requests a font of 10
4949 point, we actually use a font of 13 point if the font matches
4950 SOME-FONTNAME-PATTERN.
4953 *** The function `face-differs-from-default-p' now truly checks
4954 whether the given face displays differently from the default face or
4955 not (previously it did only a very cursory check).
4958 *** `face-attribute', `face-foreground', `face-background', `face-stipple'.
4960 These now accept a new optional argument, INHERIT, which controls how
4961 face inheritance is used when determining the value of a face
4962 attribute.
4965 *** New functions `face-attribute-relative-p' and `merge-face-attribute'
4966 help with handling relative face attributes.
4969 *** The priority of faces in an :inherit attribute face list is reversed.
4971 If a face contains an :inherit attribute with a list of faces, earlier
4972 faces in the list override later faces in the list; in previous
4973 releases of Emacs, the order was the opposite.  This change was made
4974 so that :inherit face lists operate identically to face lists in text
4975 `face' properties.
4978 *** On terminals, faces with the :inverse-video attribute are displayed
4979 with swapped foreground and background colors even when one of them is
4980 not specified.  In previous releases of Emacs, if either foreground
4981 or background color was unspecified, colors were not swapped.  This
4982 was inconsistent with the face behavior under X.
4985 *** `set-fontset-font', `fontset-info', `fontset-font' now operate on
4986 the default fontset if the argument NAME is nil..
4988 ** Font-Lock changes:
4991 *** New special text property `font-lock-face'.
4993 This property acts like the `face' property, but it is controlled by
4994 M-x font-lock-mode.  It is not, strictly speaking, a builtin text
4995 property.  Instead, it is implemented inside font-core.el, using the
4996 new variable `char-property-alias-alist'.
4999 *** font-lock can manage arbitrary text-properties beside `face'.
5001 **** the FACENAME returned in `font-lock-keywords' can be a list of the
5002 form (face FACE PROP1 VAL1 PROP2 VAL2 ...) so you can set other
5003 properties than `face'.
5005 **** `font-lock-extra-managed-props' can be set to make sure those
5006 extra properties are automatically cleaned up by font-lock.
5009 *** jit-lock obeys a new text-property `jit-lock-defer-multiline'.
5011 If a piece of text with that property gets contextually refontified
5012 (see `jit-lock-defer-contextually'), then all of that text will
5013 be refontified.  This is useful when the syntax of a textual element
5014 depends on text several lines further down (and when `font-lock-multiline'
5015 is not appropriate to solve that problem).  For example in Perl:
5017         s{
5018                 foo
5019         }{
5020                 bar
5021         }e
5023 Adding/removing the last `e' changes the `bar' from being a piece of
5024 text to being a piece of code, so you'd put a `jit-lock-defer-multiline'
5025 property over the second half of the command to force (deferred)
5026 refontification of `bar' whenever the `e' is added/removed.
5028 ** Major mode mechanism changes:
5031 *** `set-auto-mode' now gives the interpreter magic line (if present)
5032 precedence over the file name.  Likewise an `<?xml' or `<!DOCTYPE'
5033 declaration will give the buffer XML or SGML mode, based on the new
5034 var `magic-mode-alist'.
5037 *** Use the new function `run-mode-hooks' to run the major mode's mode hook.
5040 *** All major mode functions should now run the new normal hook
5041 `after-change-major-mode-hook', at their very end, after the mode
5042 hooks.  `run-mode-hooks' does this automatically.
5045 *** If a major mode function has a non-nil `no-clone-indirect'
5046 property, `clone-indirect-buffer' signals an error if you use
5047 it in that buffer.
5050 *** Major modes can define `eldoc-documentation-function'
5051 locally to provide Eldoc functionality by some method appropriate to
5052 the language.
5055 *** `define-derived-mode' by default creates a new empty abbrev table.
5056 It does not copy abbrevs from the parent mode's abbrev table.
5059 *** The new function `run-mode-hooks' and the new macro `delay-mode-hooks'
5060 are used by `define-derived-mode' to make sure the mode hook for the
5061 parent mode is run at the end of the child mode.
5063 ** Minor mode changes:
5066 *** `define-minor-mode' now accepts arbitrary additional keyword arguments
5067 and simply passes them to `defcustom', if applicable.
5070 *** `minor-mode-list' now holds a list of minor mode commands.
5073 *** `define-global-minor-mode'.
5075 This is a new name for what was formerly called
5076 `easy-mmode-define-global-mode'.  The old name remains as an alias.
5078 ** Command loop changes:
5081 *** The new function `called-interactively-p' does what many people
5082 have mistakenly believed `interactive-p' to do: it returns t if the
5083 calling function was called through `call-interactively'.
5085 Only use this when you cannot solve the problem by adding a new
5086 INTERACTIVE argument to the command.
5089 *** The function `commandp' takes an additional optional argument.
5091 If it is non-nil, then `commandp' checks for a function that could be
5092 called with `call-interactively', and does not return t for keyboard
5093 macros.
5096 *** When a command returns, the command loop moves point out from
5097 within invisible text, in the same way it moves out from within text
5098 covered by an image or composition property.
5100 This makes it generally unnecessary to mark invisible text as intangible.
5101 This is particularly good because the intangible property often has
5102 unexpected side-effects since the property applies to everything
5103 (including `goto-char', ...) whereas this new code is only run after
5104 `post-command-hook' and thus does not care about intermediate states.
5107 *** If a command sets `transient-mark-mode' to `only', that
5108 enables Transient Mark mode for the following command only.
5109 During that following command, the value of `transient-mark-mode'
5110 is `identity'.  If it is still `identity' at the end of the command,
5111 the next return to the command loop changes to nil.
5114 *** Both the variable and the function `disabled-command-hook' have
5115 been renamed to `disabled-command-function'.  The variable
5116 `disabled-command-hook' has been kept as an obsolete alias.
5119 *** `emacsserver' now runs `pre-command-hook' and `post-command-hook'
5120 when it receives a request from emacsclient.
5122 ** Lisp file loading changes:
5125 *** `load-history' can now have elements of the form (t . FUNNAME),
5126 which means FUNNAME was previously defined as an autoload (before the
5127 current file redefined it).
5130 *** `load-history' now records (defun . FUNNAME) when a function is
5131 defined.  For a variable, it records just the variable name.
5134 *** The function `symbol-file' can now search specifically for function,
5135 variable or face definitions.
5138 *** `provide' and `featurep' now accept an optional second argument
5139 to test/provide subfeatures.  Also `provide' now checks `after-load-alist'
5140 and runs any code associated with the provided feature.
5143 *** The variable `recursive-load-depth-limit' has been deleted.
5144 Emacs now signals an error if the same file is loaded with more
5145 than 3 levels of nesting.
5148 ** Byte compiler changes:
5150 *** The byte compiler now displays the actual line and character
5151 position of errors, where possible.  Additionally, the form of its
5152 warning and error messages have been brought into line with GNU standards
5153 for these.  As a result, you can use next-error and friends on the
5154 compilation output buffer.
5156 *** The new macro `with-no-warnings' suppresses all compiler warnings
5157 inside its body.  In terms of execution, it is equivalent to `progn'.
5159 *** You can avoid warnings for possibly-undefined symbols with a
5160 simple convention that the compiler understands.  (This is mostly
5161 useful in code meant to be portable to different Emacs versions.)
5162 Write forms like the following, or code that macroexpands into such
5163 forms:
5165   (if (fboundp 'foo) <then> <else>)
5166   (if (boundp 'foo) <then> <else)
5168 In the first case, using `foo' as a function inside the <then> form
5169 won't produce a warning if it's not defined as a function, and in the
5170 second case, using `foo' as a variable won't produce a warning if it's
5171 unbound.  The test must be in exactly one of the above forms (after
5172 macro expansion), but such tests can be nested.  Note that `when' and
5173 `unless' expand to `if', but `cond' doesn't.
5175 *** `(featurep 'xemacs)' is treated by the compiler as nil.  This
5176 helps to avoid noisy compiler warnings in code meant to run under both
5177 Emacs and XEmacs and can sometimes make the result significantly more
5178 efficient.  Since byte code from recent versions of XEmacs won't
5179 generally run in Emacs and vice versa, this optimization doesn't lose
5180 you anything.
5182 *** The local variable `no-byte-compile' in Lisp files is now obeyed.
5185 *** When a Lisp file uses CL functions at run-time, compiling the file
5186 now issues warnings about these calls, unless the file performs
5187 (require 'cl) when loaded.
5189 ** Frame operations:
5192 *** New functions `frame-current-scroll-bars' and `window-current-scroll-bars'.
5194 These functions return the current locations of the vertical and
5195 horizontal scroll bars in a frame or window.
5198 *** The new function `modify-all-frames-parameters' modifies parameters
5199 for all (existing and future) frames.
5202 *** The new frame parameter `tty-color-mode' specifies the mode to use
5203 for color support on character terminal frames.  Its value can be a
5204 number of colors to support, or a symbol.  See the Emacs Lisp
5205 Reference manual for more detailed documentation.
5208 *** When using non-toolkit scroll bars with the default width,
5209 the `scroll-bar-width' frame parameter value is nil.
5211 ** Mule changes:
5214 *** Already true in Emacs 21.1, but not emphasized clearly enough:
5216 Multibyte buffers can now faithfully record all 256 character codes
5217 from 0 to 255.  As a result, most of the past reasons to use unibyte
5218 buffers no longer exist.  We only know of three reasons to use them
5219 now:
5221 1. If you prefer to use unibyte text all of the time.
5223 2. For reading files into temporary buffers, when you want to avoid
5224 the time it takes to convert the format.
5226 3. For binary files where format conversion would be pointless and
5227 wasteful.
5230 *** `set-buffer-file-coding-system' now takes an additional argument,
5231 NOMODIFY.  If it is non-nil, it means don't mark the buffer modified.
5234 *** The new variable `auto-coding-functions' lets you specify functions
5235 to examine a file being visited and deduce the proper coding system
5236 for it.  (If the coding system is detected incorrectly for a specific
5237 file, you can put a `coding:' tags to override it.)
5240 *** The new function `merge-coding-systems' fills in unspecified aspects
5241 of one coding system from another coding system.
5244 *** New coding system property `mime-text-unsuitable' indicates that
5245 the coding system's `mime-charset' is not suitable for MIME text
5246 parts, e.g. utf-16.
5249 *** New function `decode-coding-inserted-region' decodes a region as if
5250 it is read from a file without decoding.
5253 *** New CCL functions `lookup-character' and `lookup-integer' access
5254 hash tables defined by the Lisp function `define-translation-hash-table'.
5257 *** New function `quail-find-key' returns a list of keys to type in the
5258 current input method to input a character.
5260 ** Mode line changes:
5263 *** New function `format-mode-line'.
5265 This returns the mode line or header line of the selected (or a
5266 specified) window as a string with or without text properties.
5269 *** The new mode-line construct `(:propertize ELT PROPS...)' can be
5270 used to add text properties to mode-line elements.
5273 *** The new `%i' and `%I' constructs for `mode-line-format' can be used
5274 to display the size of the accessible part of the buffer on the mode
5275 line.
5278 *** Mouse-face on mode-line (and header-line) is now supported.
5280 ** Menu manipulation changes:
5283 *** To manipulate the File menu using easy-menu, you must specify the
5284 proper name "file".  In previous Emacs versions, you had to specify
5285 "files", even though the menu item itself was changed to say "File"
5286 several versions ago.
5289 *** The dummy function keys made by easy-menu are now always lower case.
5290 If you specify the menu item name "Ada", for instance, it uses `ada'
5291 as the "key" bound by that key binding.
5293 This is relevant only if Lisp code looks for the bindings that were
5294 made with easy-menu.
5297 *** `easy-menu-define' now allows you to use nil for the symbol name
5298 if you don't need to give the menu a name.  If you install the menu
5299 into other keymaps right away (MAPS is non-nil), it usually doesn't
5300 need to have a name.
5302 ** Operating system access:
5305 *** The new primitive `get-internal-run-time' returns the processor
5306 run time used by Emacs since start-up.
5309 *** Functions `user-uid' and `user-real-uid' now return floats if the
5310 user UID doesn't fit in a Lisp integer.  Function `user-full-name'
5311 accepts a float as UID parameter.
5314 *** New function `locale-info' accesses locale information.
5317 *** On MS Windows, locale-coding-system is used to interact with the OS.
5318 The Windows specific variable w32-system-coding-system, which was
5319 formerly used for that purpose is now an alias for locale-coding-system.
5322 *** New function `redirect-debugging-output' can be used to redirect
5323 debugging output on the stderr file handle to a file.
5325 ** Miscellaneous:
5328 *** A number of hooks have been renamed to better follow the conventions:
5330 `find-file-hooks' to `find-file-hook',
5331 `find-file-not-found-hooks' to `find-file-not-found-functions',
5332 `write-file-hooks' to `write-file-functions',
5333 `write-contents-hooks' to `write-contents-functions',
5334 `x-lost-selection-hooks' to `x-lost-selection-functions',
5335 `x-sent-selection-hooks' to `x-sent-selection-functions',
5336 `delete-frame-hook' to `delete-frame-functions'.
5338 In each case the old name remains as an alias for the moment.
5341 *** local-write-file-hooks is marked obsolete
5343 Use the LOCAL arg of `add-hook'.
5346 *** New function `x-send-client-message' sends a client message when
5347 running under X.
5349 ** GC changes:
5352 *** New variable `gc-cons-percentage' automatically grows the GC cons threshold
5353 as the heap size increases.
5356 *** New variables `gc-elapsed' and `gcs-done' provide extra information
5357 on garbage collection.
5360 *** The normal hook `post-gc-hook' is run at the end of garbage collection.
5362 The hook is run with GC inhibited, so use it with care.
5364 * New Packages for Lisp Programming in Emacs 22.1
5367 ** The new library button.el implements simple and fast `clickable
5368 buttons' in emacs buffers.  Buttons are much lighter-weight than the
5369 `widgets' implemented by widget.el, and can be used by lisp code that
5370 doesn't require the full power of widgets.  Emacs uses buttons for
5371 such things as help and apropos buffers.
5374 ** The new library tree-widget.el provides a widget to display a set
5375 of hierarchical data as an outline.  For example, the tree-widget is
5376 well suited to display a hierarchy of directories and files.
5379 ** The new library bindat.el provides functions to unpack and pack
5380 binary data structures, such as network packets, to and from Lisp
5381 data structures.
5384 ** master-mode.el implements a minor mode for scrolling a slave
5385 buffer without leaving your current buffer, the master buffer.
5387 It can be used by sql.el, for example: the SQL buffer is the master
5388 and its SQLi buffer is the slave.  This allows you to scroll the SQLi
5389 buffer containing the output from the SQL buffer containing the
5390 commands.
5392 This is how to use sql.el and master.el together: the variable
5393 sql-buffer contains the slave buffer.  It is a local variable in the
5394 SQL buffer.
5396 (add-hook 'sql-mode-hook
5397    (function (lambda ()
5398                (master-mode t)
5399                (master-set-slave sql-buffer))))
5400 (add-hook 'sql-set-sqli-hook
5401    (function (lambda ()
5402                (master-set-slave sql-buffer))))
5405 ** The new library benchmark.el does timing measurements on Lisp code.
5407 This includes measuring garbage collection time.
5410 ** The new library testcover.el does test coverage checking.
5412 This is so you can tell whether you've tested all paths in your Lisp
5413 code.  It works with edebug.
5415 The function `testcover-start' instruments all functions in a given
5416 file.  Then test your code.  The function `testcover-mark-all' adds
5417 overlay "splotches" to the Lisp file's buffer to show where coverage
5418 is lacking.  The command `testcover-next-mark' (bind it to a key!)
5419 will move point forward to the next spot that has a splotch.
5421 Normally, a red splotch indicates the form was never completely
5422 evaluated; a brown splotch means it always evaluated to the same
5423 value.  The red splotches are skipped for forms that can't possibly
5424 complete their evaluation, such as `error'.  The brown splotches are
5425 skipped for forms that are expected to always evaluate to the same
5426 value, such as (setq x 14).
5428 For difficult cases, you can add do-nothing macros to your code to
5429 help out the test coverage tool.  The macro `noreturn' suppresses a
5430 red splotch.  It is an error if the argument to `noreturn' does
5431 return.  The macro `1value' suppresses a brown splotch for its argument.
5432 This macro is a no-op except during test-coverage -- then it signals
5433 an error if the argument actually returns differing values.
5435 * Installation changes in Emacs 21.3
5437 ** Support for GNU/Linux on little-endian MIPS and on IBM S390 has
5438 been added.
5441 * Changes in Emacs 21.3
5443 ** The obsolete C mode (c-mode.el) has been removed to avoid problems
5444 with Custom.
5446 ** UTF-16 coding systems are available, encoding the same characters
5447 as mule-utf-8.
5449 ** There is a new language environment for UTF-8 (set up automatically
5450 in UTF-8 locales).
5452 ** Translation tables are available between equivalent characters in
5453 different Emacs charsets -- for instance `e with acute' coming from the
5454 Latin-1 and Latin-2 charsets.  User options `unify-8859-on-encoding-mode'
5455 and `unify-8859-on-decoding-mode' respectively turn on translation
5456 between ISO 8859 character sets (`unification') on encoding
5457 (e.g. writing a file) and decoding (e.g. reading a file).  Note that
5458 `unify-8859-on-encoding-mode' is useful and safe, but
5459 `unify-8859-on-decoding-mode' can cause text to change when you read
5460 it and write it out again without edits, so it is not generally advisable.
5461 By default `unify-8859-on-encoding-mode' is turned on.
5463 ** In Emacs running on the X window system, the default value of
5464 `selection-coding-system' is now `compound-text-with-extensions'.
5466 If you want the old behavior, set selection-coding-system to
5467 compound-text, which may be significantly more efficient.  Using
5468 compound-text-with-extensions seems to be necessary only for decoding
5469 text from applications under XFree86 4.2, whose behavior is actually
5470 contrary to the compound text specification.
5473 * Installation changes in Emacs 21.2
5475 ** Support for BSD/OS 5.0 has been added.
5477 ** Support for AIX 5.1 was added.
5480 * Changes in Emacs 21.2
5482 ** Emacs now supports compound-text extended segments in X selections.
5484 X applications can use `extended segments' to encode characters in
5485 compound text that belong to character sets which are not part of the
5486 list of approved standard encodings for X, e.g. Big5.  To paste
5487 selections with such characters into Emacs, use the new coding system
5488 compound-text-with-extensions as the value of selection-coding-system.
5490 ** The default values of `tooltip-delay' and `tooltip-hide-delay'
5491 were changed.
5493 ** On terminals whose erase-char is ^H (Backspace), Emacs
5494 now uses normal-erase-is-backspace-mode.
5496 ** When the *scratch* buffer is recreated, its mode is set from
5497 initial-major-mode, which normally is lisp-interaction-mode,
5498 instead of using default-major-mode.
5500 ** The new option `Info-scroll-prefer-subnodes' causes Info to behave
5501 like the stand-alone Info reader (from the GNU Texinfo package) as far
5502 as motion between nodes and their subnodes is concerned.  If it is t
5503 (the default), Emacs behaves as before when you type SPC in a menu: it
5504 visits the subnode pointed to by the first menu entry.  If this option
5505 is nil, SPC scrolls to the end of the current node, and only then goes
5506 to the first menu item, like the stand-alone reader does.
5508 This change was already in Emacs 21.1, but wasn't advertised in the
5509 NEWS.
5512 * Lisp Changes in Emacs 21.2
5514 ** The meanings of scroll-up-aggressively and scroll-down-aggressively
5515 have been interchanged, so that the former now controls scrolling up,
5516 and the latter now controls scrolling down.
5518 ** The variable `compilation-parse-errors-filename-function' can
5519 be used to transform filenames found in compilation output.
5522 * Installation Changes in Emacs 21.1
5524 See the INSTALL file for information on installing extra libraries and
5525 fonts to take advantage of the new graphical features and extra
5526 charsets in this release.
5528 ** Support for GNU/Linux on IA64 machines has been added.
5530 ** Support for LynxOS has been added.
5532 ** There are new configure options associated with the support for
5533 images and toolkit scrollbars.  Use the --help option in `configure'
5534 to list them.
5536 ** You can build a 64-bit Emacs for SPARC/Solaris systems which
5537 support 64-bit executables and also on Irix 6.5.  This increases the
5538 maximum buffer size.  See etc/MACHINES for instructions.  Changes to
5539 build on other 64-bit systems should be straightforward modulo any
5540 necessary changes to unexec.
5542 ** There is a new configure option `--disable-largefile' to omit
5543 Unix-98-style support for large files if that is available.
5545 ** There is a new configure option `--without-xim' that instructs
5546 Emacs to not use X Input Methods (XIM), if these are available.
5548 ** `movemail' defaults to supporting POP.  You can turn this off using
5549 the --without-pop configure option, should that be necessary.
5551 ** This version can be built for the Macintosh, but does not implement
5552 all of the new display features described below.  The port currently
5553 lacks unexec, asynchronous processes, and networking support.  See the
5554 "Emacs and the Mac OS" appendix in the Emacs manual, for the
5555 description of aspects specific to the Mac.
5557 ** Note that the MS-Windows port does not yet implement various of the
5558 new display features described below.
5561 * Changes in Emacs 21.1
5563 ** Emacs has a new redisplay engine.
5565 The new redisplay handles characters of variable width and height.
5566 Italic text can be used without redisplay problems.  Fonts containing
5567 oversized characters, i.e. characters larger than the logical height
5568 of a font can be used.  Images of various formats can be displayed in
5569 the text.
5571 ** Emacs has a new face implementation.
5573 The new faces no longer fundamentally use X font names to specify the
5574 font.  Instead, each face has several independent attributes--family,
5575 height, width, weight and slant--that it may or may not specify.
5576 These attributes can be merged from various faces, and then together
5577 specify a font.
5579 Faces are supported on terminals that can display color or fonts.
5580 These terminal capabilities are auto-detected.  Details can be found
5581 under Lisp changes, below.
5583 ** Emacs can display faces on TTY frames.
5585 Emacs automatically detects terminals that are able to display colors.
5586 Faces with a weight greater than normal are displayed extra-bright, if
5587 the terminal supports it.  Faces with a weight less than normal and
5588 italic faces are displayed dimmed, if the terminal supports it.
5589 Underlined faces are displayed underlined if possible.  Other face
5590 attributes such as `overline', `strike-through', and `box' are ignored
5591 on terminals.
5593 The command-line options `-fg COLOR', `-bg COLOR', and `-rv' are now
5594 supported on character terminals.
5596 Emacs automatically remaps all X-style color specifications to one of
5597 the colors supported by the terminal.  This means you could have the
5598 same color customizations that work both on a windowed display and on
5599 a TTY or when Emacs is invoked with the -nw option.
5601 ** New default font is Courier 12pt under X.
5603 ** Sound support
5605 Emacs supports playing sound files on GNU/Linux and FreeBSD (Voxware
5606 driver and native BSD driver, a.k.a. Luigi's driver).  Currently
5607 supported file formats are RIFF-WAVE (*.wav) and Sun Audio (*.au).
5608 You must configure Emacs with the option `--with-sound=yes' to enable
5609 sound support.
5611 ** Emacs now resizes mini-windows if appropriate.
5613 If a message is longer than one line, or minibuffer contents are
5614 longer than one line, Emacs can resize the minibuffer window unless it
5615 is on a frame of its own.  You can control resizing and the maximum
5616 minibuffer window size by setting the following variables:
5618 - User option: max-mini-window-height
5620 Maximum height for resizing mini-windows.  If a float, it specifies a
5621 fraction of the mini-window frame's height.  If an integer, it
5622 specifies a number of lines.
5624 Default is 0.25.
5626 - User option: resize-mini-windows
5628 How to resize mini-windows.  If nil, don't resize.  If t, always
5629 resize to fit the size of the text.  If `grow-only', let mini-windows
5630 grow only, until they become empty, at which point they are shrunk
5631 again.
5633 Default is `grow-only'.
5635 ** LessTif support.
5637 Emacs now runs with the LessTif toolkit (see
5638 <http://www.lesstif.org>).  You will need version 0.92.26, or later.
5640 ** LessTif/Motif file selection dialog.
5642 When Emacs is configured to use LessTif or Motif, reading a file name
5643 from a menu will pop up a file selection dialog if `use-dialog-box' is
5644 non-nil.
5646 ** File selection dialog on MS-Windows is supported.
5648 When a file is visited by clicking File->Open, the MS-Windows version
5649 now pops up a standard file selection dialog where you can select a
5650 file to visit.  File->Save As also pops up that dialog.
5652 ** Toolkit scroll bars.
5654 Emacs now uses toolkit scroll bars if available.  When configured for
5655 LessTif/Motif, it will use that toolkit's scroll bar.  Otherwise, when
5656 configured for Lucid and Athena widgets, it will use the Xaw3d scroll
5657 bar if Xaw3d is available.  You can turn off the use of toolkit scroll
5658 bars by specifying `--with-toolkit-scroll-bars=no' when configuring
5659 Emacs.
5661 When you encounter problems with the Xaw3d scroll bar, watch out how
5662 Xaw3d is compiled on your system.  If the Makefile generated from
5663 Xaw3d's Imakefile contains a `-DNARROWPROTO' compiler option, and your
5664 Emacs system configuration file `s/your-system.h' does not contain a
5665 define for NARROWPROTO, you might consider adding it.  Take
5666 `s/freebsd.h' as an example.
5668 Alternatively, if you don't have access to the Xaw3d source code, take
5669 a look at your system's imake configuration file, for example in the
5670 directory `/usr/X11R6/lib/X11/config' (paths are different on
5671 different systems).  You will find files `*.cf' there.  If your
5672 system's cf-file contains a line like `#define NeedWidePrototypes NO',
5673 add a `#define NARROWPROTO' to your Emacs system configuration file.
5675 The reason for this is that one Xaw3d function uses `double' or
5676 `float' function parameters depending on the setting of NARROWPROTO.
5677 This is not a problem when Imakefiles are used because each system's
5678 imake configuration file contains the necessary information.  Since
5679 Emacs doesn't use imake, this has do be done manually.
5681 ** Tool bar support.
5683 Emacs supports a tool bar at the top of a frame under X.  For details
5684 of how to define a tool bar, see the page describing Lisp-level
5685 changes.  Tool-bar global minor mode controls whether or not it is
5686 displayed and is on by default.  The appearance of the bar is improved
5687 if Emacs has been built with XPM image support.  Otherwise monochrome
5688 icons will be used.
5690 To make the tool bar more useful, we need contributions of extra icons
5691 for specific modes (with copyright assignments).
5693 ** Tooltips.
5695 Tooltips are small X windows displaying a help string at the current
5696 mouse position.  The Lisp package `tooltip' implements them.  You can
5697 turn them off via the user option `tooltip-mode'.
5699 Tooltips also provides support for GUD debugging.  If activated,
5700 variable values can be displayed in tooltips by pointing at them with
5701 the mouse in source buffers.  You can customize various aspects of the
5702 tooltip display in the group `tooltip'.
5704 ** Automatic Hscrolling
5706 Horizontal scrolling now happens automatically if
5707 `automatic-hscrolling' is set (the default).  This setting can be
5708 customized.
5710 If a window is scrolled horizontally with set-window-hscroll, or
5711 scroll-left/scroll-right (C-x <, C-x >), this serves as a lower bound
5712 for automatic horizontal scrolling.  Automatic scrolling will scroll
5713 the text more to the left if necessary, but won't scroll the text more
5714 to the right than the column set with set-window-hscroll etc.
5716 ** When using a windowing terminal, each Emacs window now has a cursor
5717 of its own.  By default, when a window is selected, the cursor is
5718 solid; otherwise, it is hollow.  The user-option
5719 `cursor-in-non-selected-windows' controls how to display the
5720 cursor in non-selected windows.  If nil, no cursor is shown, if
5721 non-nil a hollow box cursor is shown.
5723 ** Fringes to the left and right of windows are used to display
5724 truncation marks, continuation marks, overlay arrows and alike.  The
5725 foreground, background, and stipple of these areas can be changed by
5726 customizing face `fringe'.
5728 ** The mode line under X is now drawn with shadows by default.
5729 You can change its appearance by modifying the face `mode-line'.
5730 In particular, setting the `:box' attribute to nil turns off the 3D
5731 appearance of the mode line.  (The 3D appearance makes the mode line
5732 occupy more space, and thus might cause the first or the last line of
5733 the window to be partially obscured.)
5735 The variable `mode-line-inverse-video', which was used in older
5736 versions of emacs to make the mode-line stand out, is now deprecated.
5737 However, setting it to nil will cause the `mode-line' face to be
5738 ignored, and mode-lines to be drawn using the default text face.
5740 ** Mouse-sensitive mode line.
5742 Different parts of the mode line have been made mouse-sensitive on all
5743 systems which support the mouse.  Moving the mouse to a
5744 mouse-sensitive part in the mode line changes the appearance of the
5745 mouse pointer to an arrow, and help about available mouse actions is
5746 displayed either in the echo area, or in the tooltip window if you
5747 have enabled one.
5749 Currently, the following actions have been defined:
5751 - Mouse-1 on the buffer name in the mode line goes to the next buffer.
5753 - Mouse-3 on the buffer-name goes to the previous buffer.
5755 - Mouse-2 on the read-only or modified status in the mode line (`%' or
5756 `*') toggles the status.
5758 - Mouse-3 on the mode name displays a minor-mode menu.
5760 ** Hourglass pointer
5762 Emacs can optionally display an hourglass pointer under X.  You can
5763 turn the display on or off by customizing group `cursor'.
5765 ** Blinking cursor
5767 M-x blink-cursor-mode toggles a blinking cursor under X and on
5768 terminals having terminal capabilities `vi', `vs', and `ve'.  Blinking
5769 and related parameters like frequency and delay can be customized in
5770 the group `cursor'.
5772 ** New font-lock support mode `jit-lock-mode'.
5774 This support mode is roughly equivalent to `lazy-lock' but is
5775 generally faster.  It supports stealth and deferred fontification.
5776 See the documentation of the function `jit-lock-mode' for more
5777 details.
5779 Font-lock uses jit-lock-mode as default support mode, so you don't
5780 have to do anything to activate it.
5782 ** The default binding of the Delete key has changed.
5784 The new user-option `normal-erase-is-backspace' can be set to
5785 determine the effect of the Delete and Backspace function keys.
5787 On window systems, the default value of this option is chosen
5788 according to the keyboard used.  If the keyboard has both a Backspace
5789 key and a Delete key, and both are mapped to their usual meanings, the
5790 option's default value is set to t, so that Backspace can be used to
5791 delete backward, and Delete can be used to delete forward.  On
5792 keyboards which either have only one key (usually labeled DEL), or two
5793 keys DEL and BS which produce the same effect, the option's value is
5794 set to nil, and these keys delete backward.
5796 If not running under a window system, setting this option accomplishes
5797 a similar effect by mapping C-h, which is usually generated by the
5798 Backspace key, to DEL, and by mapping DEL to C-d via
5799 `keyboard-translate'.  The former functionality of C-h is available on
5800 the F1 key.  You should probably not use this setting on a text-only
5801 terminal if you don't have both Backspace, Delete and F1 keys.
5803 Programmatically, you can call function normal-erase-is-backspace-mode
5804 to toggle the behavior of the Delete and Backspace keys.
5806 ** The default for user-option `next-line-add-newlines' has been
5807 changed to nil, i.e. C-n will no longer add newlines at the end of a
5808 buffer by default.
5810 ** The <home> and <end> keys now move to the beginning or end of the
5811 current line, respectively.  C-<home> and C-<end> move to the
5812 beginning and end of the buffer.
5814 ** Emacs now checks for recursive loads of Lisp files.  If the
5815 recursion depth exceeds `recursive-load-depth-limit', an error is
5816 signaled.
5818 ** When an error is signaled during the loading of the user's init
5819 file, Emacs now pops up the *Messages* buffer.
5821 ** Emacs now refuses to load compiled Lisp files which weren't
5822 compiled with Emacs.  Set `load-dangerous-libraries' to t to change
5823 this behavior.
5825 The reason for this change is an incompatible change in XEmacs's byte
5826 compiler.  Files compiled with XEmacs can contain byte codes that let
5827 Emacs dump core.
5829 ** Toggle buttons and radio buttons in menus.
5831 When compiled with LessTif (or Motif) support, Emacs uses toolkit
5832 widgets for radio and toggle buttons in menus.  When configured for
5833 Lucid, Emacs draws radio buttons and toggle buttons similar to Motif.
5835 ** The menu bar configuration has changed.  The new configuration is
5836 more CUA-compliant.  The most significant change is that Options is
5837 now a separate menu-bar item, with Mule and Customize as its submenus.
5839 ** Item Save Options on the Options menu allows saving options set
5840 using that menu.
5842 ** Highlighting of trailing whitespace.
5844 When `show-trailing-whitespace' is non-nil, Emacs displays trailing
5845 whitespace in the face `trailing-whitespace'.  Trailing whitespace is
5846 defined as spaces or tabs at the end of a line.  To avoid busy
5847 highlighting when entering new text, trailing whitespace is not
5848 displayed if point is at the end of the line containing the
5849 whitespace.
5851 ** C-x 5 1 runs the new command delete-other-frames which deletes
5852 all frames except the selected one.
5854 ** The new user-option `confirm-kill-emacs' can be customized to
5855 let Emacs ask for confirmation before exiting.
5857 ** The header line in an Info buffer is now displayed as an emacs
5858 header-line (which is like a mode-line, but at the top of the window),
5859 so that it remains visible even when the buffer has been scrolled.
5860 This behavior may be disabled by customizing the option
5861 `Info-use-header-line'.
5863 ** Polish, Czech, German, and French translations of Emacs' reference card
5864 have been added.  They are named `pl-refcard.tex', `cs-refcard.tex',
5865 `de-refcard.tex' and `fr-refcard.tex'.  Postscript files are included.
5867 ** An `Emacs Survival Guide', etc/survival.tex, is available.
5869 ** A reference card for Dired has been added.  Its name is
5870 `dired-ref.tex'.  A French translation is available in
5871 `fr-drdref.tex'.
5873 ** C-down-mouse-3 is bound differently.  Now if the menu bar is not
5874 displayed it pops up a menu containing the items which would be on the
5875 menu bar.  If the menu bar is displayed, it pops up the major mode
5876 menu or the Edit menu if there is no major mode menu.
5878 ** Variable `load-path' is no longer customizable through Customize.
5880 You can no longer use `M-x customize-variable' to customize `load-path'
5881 because it now contains a version-dependent component.  You can still
5882 use `add-to-list' and `setq' to customize this variable in your
5883 `~/.emacs' init file or to modify it from any Lisp program in general.
5885 ** C-u C-x = provides detailed information about the character at
5886 point in a pop-up window.
5888 ** Emacs can now support 'wheeled' mice (such as the MS IntelliMouse)
5889 under XFree86.  To enable this, use the `mouse-wheel-mode' command, or
5890 customize the variable `mouse-wheel-mode'.
5892 The variables `mouse-wheel-follow-mouse' and `mouse-wheel-scroll-amount'
5893 determine where and by how much buffers are scrolled.
5895 ** Emacs' auto-save list files are now by default stored in a
5896 sub-directory `.emacs.d/auto-save-list/' of the user's home directory.
5897 (On MS-DOS, this subdirectory's name is `_emacs.d/auto-save.list/'.)
5898 You can customize `auto-save-list-file-prefix' to change this location.
5900 ** The function `getenv' is now callable interactively.
5902 ** The new user-option `even-window-heights' can be set to nil
5903 to prevent `display-buffer' from evening out window heights.
5905 ** The new command M-x delete-trailing-whitespace RET will delete the
5906 trailing whitespace within the current restriction.  You can also add
5907 this function to `write-file-hooks' or `local-write-file-hooks'.
5909 ** When visiting a file with M-x find-file-literally, no newlines will
5910 be added to the end of the buffer even if `require-final-newline' is
5911 non-nil.
5913 ** The new user-option `find-file-suppress-same-file-warnings' can be
5914 set to suppress warnings ``X and Y are the same file'' when visiting a
5915 file that is already visited under a different name.
5917 ** The new user-option `electric-help-shrink-window' can be set to
5918 nil to prevent adjusting the help window size to the buffer size.
5920 ** New command M-x describe-character-set reads a character set name
5921 and displays information about that.
5923 ** The new variable `auto-mode-interpreter-regexp' contains a regular
5924 expression matching interpreters, for file mode determination.
5926 This regular expression is matched against the first line of a file to
5927 determine the file's mode in `set-auto-mode' when Emacs can't deduce a
5928 mode from the file's name.  If it matches, the file is assumed to be
5929 interpreted by the interpreter matched by the second group of the
5930 regular expression.  The mode is then determined as the mode
5931 associated with that interpreter in `interpreter-mode-alist'.
5933 ** New function executable-make-buffer-file-executable-if-script-p is
5934 suitable as an after-save-hook as an alternative to `executable-chmod'.
5936 ** The most preferred coding-system is now used to save a buffer if
5937 buffer-file-coding-system is `undecided' and it is safe for the buffer
5938 contents.  (The most preferred is set by set-language-environment or
5939 by M-x prefer-coding-system.)  Thus if you visit an ASCII file and
5940 insert a non-ASCII character from your current language environment,
5941 the file will be saved silently with the appropriate coding.
5942 Previously you would be prompted for a safe coding system.
5944 ** The many obsolete language `setup-...-environment' commands have
5945 been removed -- use `set-language-environment'.
5947 ** The new Custom option `keyboard-coding-system' specifies a coding
5948 system for keyboard input.
5950 ** New variable `inhibit-iso-escape-detection' determines if Emacs'
5951 coding system detection algorithm should pay attention to ISO2022's
5952 escape sequences.  If this variable is non-nil, the algorithm ignores
5953 such escape sequences.  The default value is nil, and it is
5954 recommended not to change it except for the special case that you
5955 always want to read any escape code verbatim.  If you just want to
5956 read a specific file without decoding escape codes, use C-x RET c
5957 (`universal-coding-system-argument').  For instance, C-x RET c latin-1
5958 RET C-x C-f filename RET.
5960 ** Variable `default-korean-keyboard' is initialized properly from the
5961 environment variable `HANGUL_KEYBOARD_TYPE'.
5963 ** New command M-x list-charset-chars reads a character set name and
5964 displays all characters in that character set.
5966 ** M-x set-terminal-coding-system (C-x RET t) now allows CCL-based
5967 coding systems such as cpXXX and cyrillic-koi8.
5969 ** Emacs now attempts to determine the initial language environment
5970 and preferred and locale coding systems systematically from the
5971 LC_ALL, LC_CTYPE, and LANG environment variables during startup.
5973 ** New language environments `Polish', `Latin-8' and `Latin-9'.
5974 Latin-8 and Latin-9 correspond respectively to the ISO character sets
5975 8859-14 (Celtic) and 8859-15 (updated Latin-1, with the Euro sign).
5976 GNU Intlfonts doesn't support these yet but recent X releases have
5977 8859-15.  See etc/INSTALL for information on obtaining extra fonts.
5978 There are new Leim input methods for Latin-8 and Latin-9 prefix (only)
5979 and Polish `slash'.
5981 ** New language environments `Dutch' and `Spanish'.
5982 These new environments mainly select appropriate translations
5983 of the tutorial.
5985 ** In Ethiopic language environment, special key bindings for
5986 function keys are changed as follows.  This is to conform to "Emacs
5987 Lisp Coding Convention".
5989     new  command                            old-binding
5990     ---  -------                            -----------
5991     f3   ethio-fidel-to-sera-buffer         f5
5992     S-f3 ethio-fidel-to-sera-region         f5
5993     C-f3 ethio-fidel-to-sera-mail-or-marker f5
5995     f4   ethio-sera-to-fidel-buffer         unchanged
5996     S-f4 ethio-sera-to-fidel-region         unchanged
5997     C-f4 ethio-sera-to-fidel-mail-or-marker unchanged
5999     S-f5 ethio-toggle-punctuation           f3
6000     S-f6 ethio-modify-vowel                 f6
6001     S-f7 ethio-replace-space                f7
6002     S-f8 ethio-input-special-character      f8
6003     S-f9 ethio-replace-space                unchanged
6004     C-f9 ethio-toggle-space                 f2
6006 ** There are new Leim input methods.
6007 New input methods "turkish-postfix", "turkish-alt-postfix",
6008 "greek-mizuochi", "TeX", and "greek-babel" are now part of the Leim
6009 package.
6011 ** The rule of input method "slovak" is slightly changed.  Now the
6012 rules for translating "q" and "Q" to "`" (backquote) are deleted, thus
6013 typing them inserts "q" and "Q" respectively.  Rules for translating
6014 "=q", "+q", "=Q", and "+Q" to "`" are also deleted.  Now, to input
6015 "`", you must type "=q".
6017 ** When your terminal can't display characters from some of the ISO
6018 8859 character sets but can display Latin-1, you can display
6019 more-or-less mnemonic sequences of ASCII/Latin-1 characters instead of
6020 empty boxes (under a window system) or question marks (not under a
6021 window system).  Customize the option `latin1-display' to turn this
6024 ** M-; now calls comment-dwim which tries to do something clever based
6025 on the context.  M-x kill-comment is now an alias to comment-kill,
6026 defined in newcomment.el.  You can choose different styles of region
6027 commenting with the variable `comment-style'.
6029 ** New user options `display-time-mail-face' and
6030 `display-time-use-mail-icon' control the appearance of mode-line mail
6031 indicator used by the display-time package.  On a suitable display the
6032 indicator can be an icon and is mouse-sensitive.
6034 ** On window-systems, additional space can be put between text lines
6035 on the display using several methods
6037 - By setting frame parameter `line-spacing' to PIXELS.  PIXELS must be
6038 a positive integer, and specifies that PIXELS number of pixels should
6039 be put below text lines on the affected frame or frames.
6041 - By setting X resource `lineSpacing', class `LineSpacing'.  This is
6042 equivalent to specifying the frame parameter.
6044 - By specifying `--line-spacing=N' or `-lsp N' on the command line.
6046 - By setting buffer-local variable `line-spacing'.  The meaning is
6047 the same, but applies to the a particular buffer only.
6049 ** The new command `clone-indirect-buffer' can be used to create
6050 an indirect buffer that is a twin copy of the current buffer.  The
6051 command `clone-indirect-buffer-other-window', bound to C-x 4 c,
6052 does the same but displays the indirect buffer in another window.
6054 ** New user options `backup-directory-alist' and
6055 `make-backup-file-name-function' control the placement of backups,
6056 typically in a single directory or in an invisible sub-directory.
6058 ** New commands iso-iso2sgml and iso-sgml2iso convert between Latin-1
6059 characters and the corresponding SGML (HTML) entities.
6061 ** New X resources recognized
6063 *** The X resource `synchronous', class `Synchronous', specifies
6064 whether Emacs should run in synchronous mode.  Synchronous mode
6065 is useful for debugging X problems.
6067 Example:
6069   emacs.synchronous: true
6071 *** The X resource `visualClass, class `VisualClass', specifies the
6072 visual Emacs should use.  The resource's value should be a string of
6073 the form `CLASS-DEPTH', where CLASS is the name of the visual class,
6074 and DEPTH is the requested color depth as a decimal number.  Valid
6075 visual class names are
6077   TrueColor
6078   PseudoColor
6079   DirectColor
6080   StaticColor
6081   GrayScale
6082   StaticGray
6084 Visual class names specified as X resource are case-insensitive, i.e.
6085 `pseudocolor', `Pseudocolor' and `PseudoColor' all have the same
6086 meaning.
6088 The program `xdpyinfo' can be used to list the visual classes
6089 supported on your display, and which depths they have.  If
6090 `visualClass' is not specified, Emacs uses the display's default
6091 visual.
6093 Example:
6095   emacs.visualClass: TrueColor-8
6097 *** The X resource `privateColormap', class `PrivateColormap',
6098 specifies that Emacs should use a private colormap if it is using the
6099 default visual, and that visual is of class PseudoColor.  Recognized
6100 resource values are `true' or `on'.
6102 Example:
6104   emacs.privateColormap: true
6106 ** Faces and frame parameters.
6108 There are four new faces `scroll-bar', `border', `cursor' and `mouse'.
6109 Setting the frame parameters `scroll-bar-foreground' and
6110 `scroll-bar-background' sets foreground and background color of face
6111 `scroll-bar' and vice versa.  Setting frame parameter `border-color'
6112 sets the background color of face `border' and vice versa.  Likewise
6113 for frame parameters `cursor-color' and face `cursor', and frame
6114 parameter `mouse-color' and face `mouse'.
6116 Changing frame parameter `font' sets font-related attributes of the
6117 `default' face and vice versa.  Setting frame parameters
6118 `foreground-color' or `background-color' sets the colors of the
6119 `default' face and vice versa.
6121 ** New face `menu'.
6123 The face `menu' can be used to change colors and font of Emacs' menus.
6125 ** New frame parameter `screen-gamma' for gamma correction.
6127 The new frame parameter `screen-gamma' specifies gamma-correction for
6128 colors.  Its value may be nil, the default, in which case no gamma
6129 correction occurs, or a number > 0, usually a float, that specifies
6130 the screen gamma of a frame's display.
6132 PC monitors usually have a screen gamma of 2.2.  smaller values result
6133 in darker colors.  You might want to try a screen gamma of 1.5 for LCD
6134 color displays.  The viewing gamma Emacs uses is 0.4545. (1/2.2).
6136 The X resource name of this parameter is `screenGamma', class
6137 `ScreenGamma'.
6139 ** Tabs and variable-width text.
6141 Tabs are now displayed with stretch properties; the width of a tab is
6142 defined as a multiple of the normal character width of a frame, and is
6143 independent of the fonts used in the text where the tab appears.
6144 Thus, tabs can be used to line up text in different fonts.
6146 ** Enhancements of the Lucid menu bar
6148 *** The Lucid menu bar now supports the resource "margin".
6150         emacs.pane.menubar.margin: 5
6152 The default margin is 4 which makes the menu bar appear like the
6153 LessTif/Motif one.
6155 *** Arrows that indicate sub-menus are now drawn with shadows, as in
6156 LessTif and Motif.
6158 ** A block cursor can be drawn as wide as the glyph under it under X.
6160 As an example: if a block cursor is over a tab character, it will be
6161 drawn as wide as that tab on the display.  To do this, set
6162 `x-stretch-cursor' to a non-nil value.
6164 ** Empty display lines at the end of a buffer may be marked with a
6165 bitmap (this is similar to the tilde displayed by vi and Less).
6167 This behavior is activated by setting the buffer-local variable
6168 `indicate-empty-lines' to a non-nil value.  The default value of this
6169 variable is found in `default-indicate-empty-lines'.
6171 ** There is a new "aggressive" scrolling method.
6173 When scrolling up because point is above the window start, if the
6174 value of the buffer-local variable `scroll-up-aggressively' is a
6175 number, Emacs chooses a new window start so that point ends up that
6176 fraction of the window's height from the top of the window.
6178 When scrolling down because point is below the window end, if the
6179 value of the buffer-local variable `scroll-down-aggressively' is a
6180 number, Emacs chooses a new window start so that point ends up that
6181 fraction of the window's height from the bottom of the window.
6183 ** You can now easily create new *Info* buffers using either
6184 M-x clone-buffer, C-u m <entry> RET or C-u g <entry> RET.
6185 M-x clone-buffer can also be used on *Help* and several other special
6186 buffers.
6188 ** The command `Info-search' now uses a search history.
6190 ** Listing buffers with M-x list-buffers (C-x C-b) now shows
6191 abbreviated file names.  Abbreviations can be customized by changing
6192 `directory-abbrev-alist'.
6194 ** A new variable, backup-by-copying-when-privileged-mismatch, gives
6195 the highest file uid for which backup-by-copying-when-mismatch will be
6196 forced on.  The assumption is that uids less than or equal to this
6197 value are special uids (root, bin, daemon, etc.--not real system
6198 users) and that files owned by these users should not change ownership,
6199 even if your system policy allows users other than root to edit them.
6201 The default is 200; set the variable to nil to disable the feature.
6203 ** The rectangle commands now avoid inserting undesirable spaces,
6204 notably at the end of lines.
6206 All these functions have been rewritten to avoid inserting unwanted
6207 spaces, and an optional prefix now allows them to behave the old way.
6209 ** The function `replace-rectangle' is an alias for `string-rectangle'.
6211 ** The new command M-x string-insert-rectangle is like `string-rectangle',
6212 but inserts text instead of replacing it.
6214 ** The new command M-x query-replace-regexp-eval acts like
6215 query-replace-regexp, but takes a Lisp expression which is evaluated
6216 after each match to get the replacement text.
6218 ** M-x query-replace recognizes a new command `e' (or `E') that lets
6219 you edit the replacement string.
6221 ** The new command mail-abbrev-complete-alias, bound to `M-TAB'
6222 (if you load the library `mailabbrev'), lets you complete mail aliases
6223 in the text, analogous to lisp-complete-symbol.
6225 ** The variable `echo-keystrokes' may now have a floating point value.
6227 ** If your init file is compiled (.emacs.elc), `user-init-file' is set
6228 to the source name (.emacs.el), if that exists, after loading it.
6230 ** The help string specified for a menu-item whose definition contains
6231 the property `:help HELP' is now displayed under X, on MS-Windows, and
6232 MS-DOS, either in the echo area or with tooltips.  Many standard menus
6233 displayed by Emacs now have help strings.
6236 ** New user option `read-mail-command' specifies a command to use to
6237 read mail from the menu etc.
6239 ** The environment variable `EMACSLOCKDIR' is no longer used on MS-Windows.
6240 This environment variable was used when creating lock files.  Emacs on
6241 MS-Windows does not use this variable anymore.  This change was made
6242 before Emacs 21.1, but wasn't documented until now.
6244 ** Highlighting of mouse-sensitive regions is now supported in the
6245 MS-DOS version of Emacs.
6247 ** The new command `msdos-set-mouse-buttons' forces the MS-DOS version
6248 of Emacs to behave as if the mouse had a specified number of buttons.
6249 This comes handy with mice that don't report their number of buttons
6250 correctly.  One example is the wheeled mice, which report 3 buttons,
6251 but clicks on the middle button are not passed to the MS-DOS version
6252 of Emacs.
6254 ** Customize changes
6256 *** Customize now supports comments about customized items.  Use the
6257 `State' menu to add comments, or give a prefix argument to
6258 M-x customize-set-variable or M-x customize-set-value.  Note that
6259 customization comments will cause the customizations to fail in
6260 earlier versions of Emacs.
6262 *** The new option `custom-buffer-done-function' says whether to kill
6263 Custom buffers when you've done with them or just bury them (the
6264 default).
6266 *** If Emacs was invoked with the `-q' or `--no-init-file' options, it
6267 does not allow you to save customizations in your `~/.emacs' init
6268 file.  This is because saving customizations from such a session would
6269 wipe out all the other customizationss you might have on your init
6270 file.
6272 ** If Emacs was invoked with the `-q' or `--no-init-file' options, it
6273 does not save disabled and enabled commands for future sessions, to
6274 avoid overwriting existing customizations of this kind that are
6275 already in your init file.
6277 ** New features in evaluation commands
6279 *** The commands to evaluate Lisp expressions, such as C-M-x in Lisp
6280 modes, C-j in Lisp Interaction mode, and M-:, now bind the variables
6281 print-level, print-length, and debug-on-error based on the new
6282 customizable variables eval-expression-print-level,
6283 eval-expression-print-length, and eval-expression-debug-on-error.
6285 The default values for the first two of these variables are 12 and 4
6286 respectively, which means that `eval-expression' now prints at most
6287 the first 12 members of a list and at most 4 nesting levels deep (if
6288 the list is longer or deeper than that, an ellipsis `...'  is
6289 printed).
6291 <RET> or <mouse-2> on the printed text toggles between an abbreviated
6292 printed representation and an unabbreviated one.
6294 The default value of eval-expression-debug-on-error is t, so any error
6295 during evaluation produces a backtrace.
6297 *** The function `eval-defun' (C-M-x) now loads Edebug and instruments
6298 code when called with a prefix argument.
6300 ** CC mode changes.
6302 Note: This release contains changes that might not be compatible with
6303 current user setups (although it's believed that these
6304 incompatibilities will only show in very uncommon circumstances).
6305 However, since the impact is uncertain, these changes may be rolled
6306 back depending on user feedback.  Therefore there's no forward
6307 compatibility guarantee wrt the new features introduced in this
6308 release.
6310 *** The hardcoded switch to "java" style in Java mode is gone.
6311 CC Mode used to automatically set the style to "java" when Java mode
6312 is entered.  This has now been removed since it caused too much
6313 confusion.
6315 However, to keep backward compatibility to a certain extent, the
6316 default value for c-default-style now specifies the "java" style for
6317 java-mode, but "gnu" for all other modes (as before).  So you won't
6318 notice the change if you haven't touched that variable.
6320 *** New cleanups, space-before-funcall and compact-empty-funcall.
6321 Two new cleanups have been added to c-cleanup-list:
6323 space-before-funcall causes a space to be inserted before the opening
6324 parenthesis of a function call, which gives the style "foo (bar)".
6326 compact-empty-funcall causes any space before a function call opening
6327 parenthesis to be removed if there are no arguments to the function.
6328 It's typically useful together with space-before-funcall to get the
6329 style "foo (bar)" and "foo()".
6331 *** Some keywords now automatically trigger reindentation.
6332 Keywords like "else", "while", "catch" and "finally" have been made
6333 "electric" to make them reindent automatically when they continue an
6334 earlier statement.  An example:
6336 for (i = 0; i < 17; i++)
6337   if (a[i])
6338     res += a[i]->offset;
6339 else
6341 Here, the "else" should be indented like the preceding "if", since it
6342 continues that statement. CC Mode will automatically reindent it after
6343 the "else" has been typed in full, since it's not until then it's
6344 possible to decide whether it's a new statement or a continuation of
6345 the preceding "if".
6347 CC Mode uses Abbrev mode to achieve this, which is therefore turned on
6348 by default.
6350 *** M-a and M-e now moves by sentence in multiline strings.
6351 Previously these two keys only moved by sentence in comments, which
6352 meant that sentence movement didn't work in strings containing
6353 documentation or other natural language text.
6355 The reason it's only activated in multiline strings (i.e. strings that
6356 contain a newline, even when escaped by a '\') is to avoid stopping in
6357 the short strings that often reside inside statements.  Multiline
6358 strings almost always contain text in a natural language, as opposed
6359 to other strings that typically contain format specifications,
6360 commands, etc.  Also, it's not that bothersome that M-a and M-e misses
6361 sentences in single line strings, since they're short anyway.
6363 *** Support for autodoc comments in Pike mode.
6364 Autodoc comments for Pike are used to extract documentation from the
6365 source, like Javadoc in Java.  Pike mode now recognize this markup in
6366 comment prefixes and paragraph starts.
6368 *** The comment prefix regexps on c-comment-prefix may be mode specific.
6369 When c-comment-prefix is an association list, it specifies the comment
6370 line prefix on a per-mode basis, like c-default-style does.  This
6371 change came about to support the special autodoc comment prefix in
6372 Pike mode only.
6374 *** Better handling of syntactic errors.
6375 The recovery after unbalanced parens earlier in the buffer has been
6376 improved; CC Mode now reports them by dinging and giving a message
6377 stating the offending line, but still recovers and indent the
6378 following lines in a sane way (most of the time).  An "else" with no
6379 matching "if" is handled similarly.  If an error is discovered while
6380 indenting a region, the whole region is still indented and the error
6381 is reported afterwards.
6383 *** Lineup functions may now return absolute columns.
6384 A lineup function can give an absolute column to indent the line to by
6385 returning a vector with the desired column as the first element.
6387 *** More robust and warning-free byte compilation.
6388 Although this is strictly not a user visible change (well, depending
6389 on the view of a user), it's still worth mentioning that CC Mode now
6390 can be compiled in the standard ways without causing trouble.  Some
6391 code have also been moved between the subpackages to enhance the
6392 modularity somewhat.  Thanks to Martin Buchholz for doing the
6393 groundwork.
6395 *** c-style-variables-are-local-p now defaults to t.
6396 This is an incompatible change that has been made to make the behavior
6397 of the style system wrt global variable settings less confusing for
6398 non-advanced users.  If you know what this variable does you might
6399 want to set it to nil in your .emacs, otherwise you probably don't
6400 have to bother.
6402 Defaulting c-style-variables-are-local-p to t avoids the confusing
6403 situation that occurs when a user sets some style variables globally
6404 and edits both a Java and a non-Java file in the same Emacs session.
6405 If the style variables aren't buffer local in this case, loading of
6406 the second file will cause the default style (either "gnu" or "java"
6407 by default) to override the global settings made by the user.
6409 *** New initialization procedure for the style system.
6410 When the initial style for a buffer is determined by CC Mode (from the
6411 variable c-default-style), the global values of style variables now
6412 take precedence over the values specified by the chosen style.  This
6413 is different than the old behavior: previously, the style-specific
6414 settings would override the global settings.  This change makes it
6415 possible to do simple configuration in the intuitive way with
6416 Customize or with setq lines in one's .emacs file.
6418 By default, the global value of every style variable is the new
6419 special symbol set-from-style, which causes the value to be taken from
6420 the style system.  This means that in effect, only an explicit setting
6421 of a style variable will cause the "overriding" behavior described
6422 above.
6424 Also note that global settings override style-specific settings *only*
6425 when the initial style of a buffer is chosen by a CC Mode major mode
6426 function.  When a style is chosen in other ways --- for example, by a
6427 call like (c-set-style "gnu") in a hook, or via M-x c-set-style ---
6428 then the style-specific values take precedence over any global style
6429 values.  In Lisp terms, global values override style-specific values
6430 only when the new second argument to c-set-style is non-nil; see the
6431 function documentation for more info.
6433 The purpose of these changes is to make it easier for users,
6434 especially novice users, to do simple customizations with Customize or
6435 with setq in their .emacs files.  On the other hand, the new system is
6436 intended to be compatible with advanced users' customizations as well,
6437 such as those that choose styles in hooks or whatnot.  This new system
6438 is believed to be almost entirely compatible with current
6439 configurations, in spite of the changed precedence between style and
6440 global variable settings when a buffer's default style is set.
6442 (Thanks to Eric Eide for clarifying this explanation a bit.)
6444 **** c-offsets-alist is now a customizable variable.
6445 This became possible as a result of the new initialization behavior.
6447 This variable is treated slightly differently from the other style
6448 variables; instead of using the symbol set-from-style, it will be
6449 completed with the syntactic symbols it doesn't already contain when
6450 the style is first initialized.  This means it now defaults to the
6451 empty list to make all syntactic elements get their values from the
6452 style system.
6454 **** Compatibility variable to restore the old behavior.
6455 In case your configuration doesn't work with this change, you can set
6456 c-old-style-variable-behavior to non-nil to get the old behavior back
6457 as far as possible.
6459 *** Improvements to line breaking and text filling.
6460 CC Mode now handles this more intelligently and seamlessly wrt the
6461 surrounding code, especially inside comments.  For details see the new
6462 chapter about this in the manual.
6464 **** New variable to recognize comment line prefix decorations.
6465 The variable c-comment-prefix-regexp has been added to properly
6466 recognize the line prefix in both block and line comments.  It's
6467 primarily used to initialize the various paragraph recognition and
6468 adaptive filling variables that the text handling functions uses.
6470 **** New variable c-block-comment-prefix.
6471 This is a generalization of the now obsolete variable
6472 c-comment-continuation-stars to handle arbitrary strings.
6474 **** CC Mode now uses adaptive fill mode.
6475 This to make it adapt better to the paragraph style inside comments.
6477 It's also possible to use other adaptive filling packages inside CC
6478 Mode, notably Kyle E. Jones' Filladapt mode (http://wonderworks.com/).
6479 A new convenience function c-setup-filladapt sets up Filladapt for use
6480 inside CC Mode.
6482 Note though that the 2.12 version of Filladapt lacks a feature that
6483 causes it to work suboptimally when c-comment-prefix-regexp can match
6484 the empty string (which it commonly does).  A patch for that is
6485 available from the CC Mode web site (http://www.python.org/emacs/
6486 cc-mode/).
6488 **** The variables `c-hanging-comment-starter-p' and
6489 `c-hanging-comment-ender-p', which controlled how comment starters and
6490 enders were filled, are not used anymore.  The new version of the
6491 function `c-fill-paragraph' keeps the comment starters and enders as
6492 they were before the filling.
6494 **** It's now possible to selectively turn off auto filling.
6495 The variable c-ignore-auto-fill is used to ignore auto fill mode in
6496 specific contexts, e.g. in preprocessor directives and in string
6497 literals.
6499 **** New context sensitive line break function c-context-line-break.
6500 It works like newline-and-indent in normal code, and adapts the line
6501 prefix according to the comment style when used inside comments.  If
6502 you're normally using newline-and-indent, you might want to switch to
6503 this function.
6505 *** Fixes to IDL mode.
6506 It now does a better job in recognizing only the constructs relevant
6507 to IDL.  E.g. it no longer matches "class" as the beginning of a
6508 struct block, but it does match the CORBA 2.3 "valuetype" keyword.
6509 Thanks to Eric Eide.
6511 *** Improvements to the Whitesmith style.
6512 It now keeps the style consistently on all levels and both when
6513 opening braces hangs and when they don't.
6515 **** New lineup function c-lineup-whitesmith-in-block.
6517 *** New lineup functions c-lineup-template-args and c-indent-multi-line-block.
6518 See their docstrings for details.  c-lineup-template-args does a
6519 better job of tracking the brackets used as parens in C++ templates,
6520 and is used by default to line up continued template arguments.
6522 *** c-lineup-comment now preserves alignment with a comment on the
6523 previous line.  It used to instead preserve comments that started in
6524 the column specified by comment-column.
6526 *** c-lineup-C-comments handles "free form" text comments.
6527 In comments with a long delimiter line at the start, the indentation
6528 is kept unchanged for lines that start with an empty comment line
6529 prefix.  This is intended for the type of large block comments that
6530 contain documentation with its own formatting.  In these you normally
6531 don't want CC Mode to change the indentation.
6533 *** The `c' syntactic symbol is now relative to the comment start
6534 instead of the previous line, to make integers usable as lineup
6535 arguments.
6537 *** All lineup functions have gotten docstrings.
6539 *** More preprocessor directive movement functions.
6540 c-down-conditional does the reverse of c-up-conditional.
6541 c-up-conditional-with-else and c-down-conditional-with-else are
6542 variants of these that also stops at "#else" lines (suggested by Don
6543 Provan).
6545 *** Minor improvements to many movement functions in tricky situations.
6547 ** Dired changes
6549 *** New variable `dired-recursive-deletes' determines if the delete
6550 command will delete non-empty directories recursively.  The default
6551 is, delete only empty directories.
6553 *** New variable `dired-recursive-copies' determines if the copy
6554 command will copy directories recursively.  The default is, do not
6555 copy directories recursively.
6557 *** In command `dired-do-shell-command' (usually bound to `!') a `?'
6558 in the shell command has a special meaning similar to `*', but with
6559 the difference that the command will be run on each file individually.
6561 *** The new command `dired-find-alternate-file' (usually bound to `a')
6562 replaces the Dired buffer with the buffer for an alternate file or
6563 directory.
6565 *** The new command `dired-show-file-type' (usually bound to `y') shows
6566 a message in the echo area describing what type of file the point is on.
6567 This command invokes the external program `file' do its work, and so
6568 will only work on systems with that program, and will be only as
6569 accurate or inaccurate as it is.
6571 *** Dired now properly handles undo changes of adding/removing `-R'
6572 from ls switches.
6574 *** Dired commands that prompt for a destination file now allow the use
6575 of the `M-n' command in the minibuffer to insert the source filename,
6576 which the user can then edit.  This only works if there is a single
6577 source file, not when operating on multiple marked files.
6579 ** Gnus changes.
6581 The Gnus NEWS entries are short, but they reflect sweeping changes in
6582 four areas: Article display treatment, MIME treatment,
6583 internationalization and mail-fetching.
6585 *** The mail-fetching functions have changed.  See the manual for the
6586 many details.  In particular, all procmail fetching variables are gone.
6588 If you used procmail like in
6590 (setq nnmail-use-procmail t)
6591 (setq nnmail-spool-file 'procmail)
6592 (setq nnmail-procmail-directory "~/mail/incoming/")
6593 (setq nnmail-procmail-suffix "\\.in")
6595 this now has changed to
6597 (setq mail-sources
6598       '((directory :path "~/mail/incoming/"
6599                    :suffix ".in")))
6601 More information is available in the info doc at Select Methods ->
6602 Getting Mail -> Mail Sources
6604 *** Gnus is now a MIME-capable reader.  This affects many parts of
6605 Gnus, and adds a slew of new commands.  See the manual for details.
6606 Separate MIME packages like RMIME, mime-compose etc., will probably no
6607 longer work; remove them and use the native facilities.
6609 The FLIM/SEMI package still works with Emacs 21, but if you want to
6610 use the native facilities, you must remove any mailcap.el[c] that was
6611 installed by FLIM/SEMI version 1.13 or earlier.
6613 *** Gnus has also been multilingualized.  This also affects too many
6614 parts of Gnus to summarize here, and adds many new variables.  There
6615 are built-in facilities equivalent to those of gnus-mule.el, which is
6616 now just a compatibility layer.
6618 *** gnus-mule.el is now just a compatibility layer over the built-in
6619 Gnus facilities.
6621 *** gnus-auto-select-first can now be a function to be
6622 called to position point.
6624 *** The user can now decide which extra headers should be included in
6625 summary buffers and NOV files.
6627 *** `gnus-article-display-hook' has been removed.  Instead, a number
6628 of variables starting with `gnus-treat-' have been added.
6630 *** The Gnus posting styles have been redone again and now work in a
6631 subtly different manner.
6633 *** New web-based backends have been added: nnslashdot, nnwarchive
6634 and nnultimate.  nnweb has been revamped, again, to keep up with
6635 ever-changing layouts.
6637 *** Gnus can now read IMAP mail via nnimap.
6639 *** There is image support of various kinds and some sound support.
6641 ** Changes in Texinfo mode.
6643 *** A couple of new key bindings have been added for inserting Texinfo
6644 macros
6646   Key binding   Macro
6647   -------------------------
6648   C-c C-c C-s   @strong
6649   C-c C-c C-e   @emph
6650   C-c C-c u     @uref
6651   C-c C-c q     @quotation
6652   C-c C-c m     @email
6653   C-c C-o       @<block> ... @end <block>
6654   M-RET         @item
6656 *** The " key now inserts either " or `` or '' depending on context.
6658 ** Changes in Outline mode.
6660 There is now support for Imenu to index headings.  A new command
6661 `outline-headers-as-kill' copies the visible headings in the region to
6662 the kill ring, e.g. to produce a table of contents.
6664 ** Changes to Emacs Server
6666 *** The new option `server-kill-new-buffers' specifies what to do
6667 with buffers when done with them.  If non-nil, the default, buffers
6668 are killed, unless they were already present before visiting them with
6669 Emacs Server.  If nil, `server-temp-file-regexp' specifies which
6670 buffers to kill, as before.
6672 Please note that only buffers are killed that still have a client,
6673 i.e. buffers visited with `emacsclient --no-wait' are never killed in
6674 this way.
6676 ** Both emacsclient and Emacs itself now accept command line options
6677 of the form +LINE:COLUMN in addition to +LINE.
6679 ** Changes to Show Paren mode.
6681 *** Overlays used by Show Paren mode now use a priority property.
6682 The new user option show-paren-priority specifies the priority to
6683 use.  Default is 1000.
6685 ** New command M-x check-parens can be used to find unbalanced paren
6686 groups and strings in buffers in Lisp mode (or other modes).
6688 ** Changes to hideshow.el
6690 *** Generalized block selection and traversal
6692 A block is now recognized by its start and end regexps (both strings),
6693 and an integer specifying which sub-expression in the start regexp
6694 serves as the place where a `forward-sexp'-like function can operate.
6695 See the documentation of variable `hs-special-modes-alist'.
6697 *** During incremental search, if Hideshow minor mode is active,
6698 hidden blocks are temporarily shown.  The variable `hs-headline' can
6699 be used in the mode line format to show the line at the beginning of
6700 the open block.
6702 *** User option `hs-hide-all-non-comment-function' specifies a
6703 function to be called at each top-level block beginning, instead of
6704 the normal block-hiding function.
6706 *** The command `hs-show-region' has been removed.
6708 *** The key bindings have changed to fit the Emacs conventions,
6709 roughly imitating those of Outline minor mode.  Notably, the prefix
6710 for all bindings is now `C-c @'.  For details, see the documentation
6711 for `hs-minor-mode'.
6713 *** The variable `hs-show-hidden-short-form' has been removed, and
6714 hideshow.el now always behaves as if this variable were set to t.
6716 ** Changes to Change Log mode and Add-Log functions
6718 *** If you invoke `add-change-log-entry' from a backup file, it makes
6719 an entry appropriate for the file's parent.  This is useful for making
6720 log entries by comparing a version with deleted functions.
6722 **** New command M-x change-log-merge merges another log into the
6723 current buffer.
6725 *** New command M-x change-log-redate fixes any old-style date entries
6726 in a log file.
6728 *** Change Log mode now adds a file's version number to change log
6729 entries if user-option `change-log-version-info-enabled' is non-nil.
6730 Unless the file is under version control the search for a file's
6731 version number is performed based on regular expressions from
6732 `change-log-version-number-regexp-list' which can be customized.
6733 Version numbers are only found in the first 10 percent of a file.
6735 *** Change Log mode now defines its own faces for font-lock highlighting.
6737 ** Changes to cmuscheme
6739 *** The user-option `scheme-program-name' has been renamed
6740 `cmuscheme-program-name' due to conflicts with xscheme.el.
6742 ** Changes in Font Lock
6744 *** The new function `font-lock-remove-keywords' can be used to remove
6745 font-lock keywords from the current buffer or from a specific major mode.
6747 *** Multi-line patterns are now supported.  Modes using this, should
6748 set font-lock-multiline to t in their font-lock-defaults.
6750 *** `font-lock-syntactic-face-function' allows major-modes to choose
6751 the face used for each string/comment.
6753 *** A new standard face `font-lock-doc-face'.
6754 Meant for Lisp docstrings, Javadoc comments and other "documentation in code".
6756 ** Changes to Shell mode
6758 *** The `shell' command now accepts an optional argument to specify the buffer
6759 to use, which defaults to "*shell*".  When used interactively, a
6760 non-default buffer may be specified by giving the `shell' command a
6761 prefix argument (causing it to prompt for the buffer name).
6763 ** Comint (subshell) changes
6765 These changes generally affect all modes derived from comint mode, which
6766 include shell-mode, gdb-mode, scheme-interaction-mode, etc.
6768 *** Comint now by default interprets some carriage-control characters.
6769 Comint now removes CRs from CR LF sequences, and treats single CRs and
6770 BSs in the output in a way similar to a terminal (by deleting to the
6771 beginning of the line, or deleting the previous character,
6772 respectively).  This is achieved by adding `comint-carriage-motion' to
6773 the `comint-output-filter-functions' hook by default.
6775 *** By default, comint no longer uses the variable `comint-prompt-regexp'
6776 to distinguish prompts from user-input.  Instead, it notices which
6777 parts of the text were output by the process, and which entered by the
6778 user, and attaches `field' properties to allow emacs commands to use
6779 this information.  Common movement commands, notably beginning-of-line,
6780 respect field boundaries in a fairly natural manner.  To disable this
6781 feature, and use the old behavior, customize the user option
6782 `comint-use-prompt-regexp-instead-of-fields'.
6784 *** Comint now includes new features to send commands to running processes
6785 and redirect the output to a designated buffer or buffers.
6787 *** The command M-x comint-redirect-send-command reads a command and
6788 buffer name from the mini-buffer.  The command is sent to the current
6789 buffer's process, and its output is inserted into the specified buffer.
6791 The command M-x comint-redirect-send-command-to-process acts like
6792 M-x comint-redirect-send-command but additionally reads the name of
6793 the buffer whose process should be used from the mini-buffer.
6795 *** Packages based on comint now highlight user input and program prompts,
6796 and support choosing previous input with mouse-2.  To control these features,
6797 see the user-options `comint-highlight-input' and `comint-highlight-prompt'.
6799 *** The new command `comint-write-output' (usually bound to `C-c C-s')
6800 saves the output from the most recent command to a file.  With a prefix
6801 argument, it appends to the file.
6803 *** The command `comint-kill-output' has been renamed `comint-delete-output'
6804 (usually bound to `C-c C-o'); the old name is aliased to it for
6805 compatibility.
6807 *** The new function `comint-add-to-input-history' adds commands to the input
6808 ring (history).
6810 *** The new variable `comint-input-history-ignore' is a regexp for
6811 identifying history lines that should be ignored, like tcsh time-stamp
6812 strings, starting with a `#'.  The default value of this variable is "^#".
6814 ** Changes to Rmail mode
6816 *** The new user-option rmail-user-mail-address-regexp can be
6817 set to fine tune the identification of the correspondent when
6818 receiving new mail.  If it matches the address of the sender, the
6819 recipient is taken as correspondent of a mail.  If nil, the default,
6820 `user-login-name' and `user-mail-address' are used to exclude yourself
6821 as correspondent.
6823 Usually you don't have to set this variable, except if you collect
6824 mails sent by you under different user names.  Then it should be a
6825 regexp matching your mail addresses.
6827 *** The new user-option rmail-confirm-expunge controls whether and how
6828 to ask for confirmation before expunging deleted messages from an
6829 Rmail file.  You can choose between no confirmation, confirmation
6830 with y-or-n-p, or confirmation with yes-or-no-p.  Default is to ask
6831 for confirmation with yes-or-no-p.
6833 *** RET is now bound in the Rmail summary to rmail-summary-goto-msg,
6834 like `j'.
6836 *** There is a new user option `rmail-digest-end-regexps' that
6837 specifies the regular expressions to detect the line that ends a
6838 digest message.
6840 *** The new user option `rmail-automatic-folder-directives' specifies
6841 in which folder to put messages automatically.
6843 *** The new function `rmail-redecode-body' allows to fix a message
6844 with non-ASCII characters if Emacs happens to decode it incorrectly
6845 due to missing or malformed "charset=" header.
6847 ** The new user-option `mail-envelope-from' can be used to specify
6848 an envelope-from address different from user-mail-address.
6850 ** The variable mail-specify-envelope-from controls whether to
6851 use the -f option when sending mail.
6853 ** The Rmail command `o' (`rmail-output-to-rmail-file') now writes the
6854 current message in the internal `emacs-mule' encoding, rather than in
6855 the encoding taken from the variable `buffer-file-coding-system'.
6856 This allows to save messages whose characters cannot be safely encoded
6857 by the buffer's coding system, and makes sure the message will be
6858 displayed correctly when you later visit the target Rmail file.
6860 If you want your Rmail files be encoded in a specific coding system
6861 other than `emacs-mule', you can customize the variable
6862 `rmail-file-coding-system' to set its value to that coding system.
6864 ** Changes to TeX mode
6866 *** The default mode has been changed from `plain-tex-mode' to
6867 `latex-mode'.
6869 *** latex-mode now has a simple indentation algorithm.
6871 *** M-f and M-p jump around \begin...\end pairs.
6873 *** Added support for outline-minor-mode.
6875 ** Changes to RefTeX mode
6877 *** RefTeX has new support for index generation.  Index entries can be
6878     created with `C-c <', with completion available on index keys.
6879     Pressing `C-c /' indexes the word at the cursor with a default
6880     macro.  `C-c >' compiles all index entries into an alphabetically
6881     sorted *Index* buffer which looks like the final index.  Entries
6882     can be edited from that buffer.
6884 *** Label and citation key selection now allow to select several
6885     items and reference them together (use `m' to mark items, `a' or
6886     `A' to use all marked entries).
6888 *** reftex.el has been split into a number of smaller files to reduce
6889     memory use when only a part of RefTeX is being used.
6891 *** a new command `reftex-view-crossref-from-bibtex' (bound to `C-c &'
6892     in BibTeX-mode) can be called in a BibTeX database buffer in order
6893     to show locations in LaTeX documents where a particular entry has
6894     been cited.
6896 ** Emacs Lisp mode now allows multiple levels of outline headings.
6897 The level of a heading is determined from the number of leading
6898 semicolons in a heading line.  Toplevel forms starting with a `('
6899 in column 1 are always made leaves.
6901 ** The M-x time-stamp command (most commonly used on write-file-hooks)
6902 has the following new features:
6904 *** The patterns for finding the time stamp and for updating a pattern
6905 may match text spanning multiple lines.  For example, some people like
6906 to have the filename and date on separate lines.  The new variable
6907 time-stamp-inserts-lines controls the matching for multi-line patterns.
6909 *** More than one time stamp can be updated in the same file.  This
6910 feature is useful if you need separate time stamps in a program source
6911 file to both include in formatted documentation and insert in the
6912 compiled binary.  The same time-stamp will be written at each matching
6913 pattern.  The variable time-stamp-count enables this new feature; it
6914 defaults to 1.
6916 ** Partial Completion mode now completes environment variables in
6917 file names.
6919 ** Ispell changes
6921 *** The command `ispell' now spell-checks a region if
6922 transient-mark-mode is on, and the mark is active.  Otherwise it
6923 spell-checks the current buffer.
6925 *** Support for synchronous subprocesses - DOS/Windoze - has been
6926 added.
6928 *** An "alignment error" bug was fixed when a manual spelling
6929 correction is made and re-checked.
6931 *** Italian, Portuguese, and Slovak dictionary definitions have been added.
6933 *** Region skipping performance has been vastly improved in some
6934 cases.
6936 *** Spell checking HTML buffers has been improved and isn't so strict
6937 on syntax errors.
6939 *** The buffer-local words are now always placed on a new line at the
6940 end of the buffer.
6942 *** Spell checking now works in the MS-DOS version of Emacs.
6944 ** Makefile mode changes
6946 *** The mode now uses the abbrev table `makefile-mode-abbrev-table'.
6948 *** Conditionals and include statements are now highlighted when
6949 Fontlock mode is active.
6951 ** Isearch changes
6953 *** Isearch now puts a call to `isearch-resume' in the command history,
6954 so that searches can be resumed.
6956 *** In Isearch mode, C-M-s and C-M-r are now bound like C-s and C-r,
6957 respectively, i.e. you can repeat a regexp isearch with the same keys
6958 that started the search.
6960 *** In Isearch mode, mouse-2 in the echo area now yanks the current
6961 selection into the search string rather than giving an error.
6963 *** There is a new lazy highlighting feature in incremental search.
6965 Lazy highlighting is switched on/off by customizing variable
6966 `isearch-lazy-highlight'.  When active, all matches for the current
6967 search string are highlighted.  The current match is highlighted as
6968 before using face `isearch' or `region'.  All other matches are
6969 highlighted using face `isearch-lazy-highlight-face' which defaults to
6970 `secondary-selection'.
6972 The extra highlighting makes it easier to anticipate where the cursor
6973 will end up each time you press C-s or C-r to repeat a pending search.
6974 Highlighting of these additional matches happens in a deferred fashion
6975 using "idle timers," so the cycles needed do not rob isearch of its
6976 usual snappy response.
6978 If `isearch-lazy-highlight-cleanup' is set to t, highlights for
6979 matches are automatically cleared when you end the search.  If it is
6980 set to nil, you can remove the highlights manually with `M-x
6981 isearch-lazy-highlight-cleanup'.
6983 ** VC Changes
6985 VC has been overhauled internally.  It is now modular, making it
6986 easier to plug-in arbitrary version control backends.  (See Lisp
6987 Changes for details on the new structure.)  As a result, the mechanism
6988 to enable and disable support for particular version systems has
6989 changed: everything is now controlled by the new variable
6990 `vc-handled-backends'.  Its value is a list of symbols that identify
6991 version systems; the default is '(RCS CVS SCCS).  When finding a file,
6992 each of the backends in that list is tried in order to see whether the
6993 file is registered in that backend.
6995 When registering a new file, VC first tries each of the listed
6996 backends to see if any of them considers itself "responsible" for the
6997 directory of the file (e.g. because a corresponding subdirectory for
6998 master files exists).  If none of the backends is responsible, then
6999 the first backend in the list that could register the file is chosen.
7000 As a consequence, the variable `vc-default-back-end' is now obsolete.
7002 The old variable `vc-master-templates' is also obsolete, although VC
7003 still supports it for backward compatibility.  To define templates for
7004 RCS or SCCS, you should rather use the new variables
7005 vc-{rcs,sccs}-master-templates.  (There is no such feature under CVS
7006 where it doesn't make sense.)
7008 The variables `vc-ignore-vc-files' and `vc-handle-cvs' are also
7009 obsolete now, you must set `vc-handled-backends' to nil or exclude
7010 `CVS' from the list, respectively, to achieve their effect now.
7012 *** General Changes
7014 The variable `vc-checkout-carefully' is obsolete: the corresponding
7015 checks are always done now.
7017 VC Dired buffers are now kept up-to-date during all version control
7018 operations.
7020 `vc-diff' output is now displayed in `diff-mode'.
7021 `vc-print-log' uses `log-view-mode'.
7022 `vc-log-mode' (used for *VC-Log*) has been replaced by `log-edit-mode'.
7024 The command C-x v m (vc-merge) now accepts an empty argument as the
7025 first revision number.  This means that any recent changes on the
7026 current branch should be picked up from the repository and merged into
7027 the working file (``merge news'').
7029 The commands C-x v s (vc-create-snapshot) and C-x v r
7030 (vc-retrieve-snapshot) now ask for a directory name from which to work
7031 downwards.
7033 *** Multiple Backends
7035 VC now lets you register files in more than one backend.  This is
7036 useful, for example, if you are working with a slow remote CVS
7037 repository.  You can then use RCS for local editing, and occasionally
7038 commit your changes back to CVS, or pick up changes from CVS into your
7039 local RCS archives.
7041 To make this work, the ``more local'' backend (RCS in our example)
7042 should come first in `vc-handled-backends', and the ``more remote''
7043 backend (CVS) should come later.  (The default value of
7044 `vc-handled-backends' already has it that way.)
7046 You can then commit changes to another backend (say, RCS), by typing
7047 C-u C-x v v RCS RET (i.e. vc-next-action now accepts a backend name as
7048 a revision number).  VC registers the file in the more local backend
7049 if that hasn't already happened, and commits to a branch based on the
7050 current revision number from the more remote backend.
7052 If a file is registered in multiple backends, you can switch to
7053 another one using C-x v b (vc-switch-backend).  This does not change
7054 any files, it only changes VC's perspective on the file.  Use this to
7055 pick up changes from CVS while working under RCS locally.
7057 After you are done with your local RCS editing, you can commit your
7058 changes back to CVS using C-u C-x v v CVS RET.  In this case, the
7059 local RCS archive is removed after the commit, and the log entry
7060 buffer is initialized to contain the entire RCS change log of the file.
7062 *** Changes for CVS
7064 There is a new user option, `vc-cvs-stay-local'.  If it is `t' (the
7065 default), then VC avoids network queries for files registered in
7066 remote repositories.  The state of such files is then only determined
7067 by heuristics and past information.  `vc-cvs-stay-local' can also be a
7068 regexp to match against repository hostnames; only files from hosts
7069 that match it are treated locally.  If the variable is nil, then VC
7070 queries the repository just as often as it does for local files.
7072 If `vc-cvs-stay-local' is on, then VC also makes local backups of
7073 repository versions.  This means that ordinary diffs (C-x v =) and
7074 revert operations (C-x v u) can be done completely locally, without
7075 any repository interactions at all.  The name of a local version
7076 backup of FILE is FILE.~REV.~, where REV is the repository version
7077 number.  This format is similar to that used by C-x v ~
7078 (vc-version-other-window), except for the trailing dot.  As a matter
7079 of fact, the two features can each use the files created by the other,
7080 the only difference being that files with a trailing `.' are deleted
7081 automatically after commit.  (This feature doesn't work on MS-DOS,
7082 since DOS disallows more than a single dot in the trunk of a file
7083 name.)
7085 If `vc-cvs-stay-local' is on, and there have been changes in the
7086 repository, VC notifies you about it when you actually try to commit.
7087 If you want to check for updates from the repository without trying to
7088 commit, you can either use C-x v m RET to perform an update on the
7089 current file, or you can use C-x v r RET to get an update for an
7090 entire directory tree.
7092 The new user option `vc-cvs-use-edit' indicates whether VC should call
7093 "cvs edit" to make files writeable; it defaults to `t'.  (This option
7094 is only meaningful if the CVSREAD variable is set, or if files are
7095 "watched" by other developers.)
7097 The commands C-x v s (vc-create-snapshot) and C-x v r
7098 (vc-retrieve-snapshot) are now also implemented for CVS.  If you give
7099 an empty snapshot name to the latter, that performs a `cvs update',
7100 starting at the given directory.
7102 *** Lisp Changes in VC
7104 VC has been restructured internally to make it modular.  You can now
7105 add support for arbitrary version control backends by writing a
7106 library that provides a certain set of backend-specific functions, and
7107 then telling VC to use that library.  For example, to add support for
7108 a version system named SYS, you write a library named vc-sys.el, which
7109 provides a number of functions vc-sys-... (see commentary at the top
7110 of vc.el for a detailed list of them).  To make VC use that library,
7111 you need to put it somewhere into Emacs' load path and add the symbol
7112 `SYS' to the list `vc-handled-backends'.
7114 ** The customizable EDT emulation package now supports the EDT
7115 SUBS command and EDT scroll margins.  It also works with more
7116 terminal/keyboard configurations and it now works under XEmacs.
7117 See etc/edt-user.doc for more information.
7119 ** New modes and packages
7121 *** The new global minor mode `minibuffer-electric-default-mode'
7122 automatically hides the `(default ...)' part of minibuffer prompts when
7123 the default is not applicable.
7125 *** Artist is an Emacs lisp package that allows you to draw lines,
7126 rectangles and ellipses by using your mouse and/or keyboard.  The
7127 shapes are made up with the ascii characters |, -, / and \.
7129 Features are:
7131 - Intersecting: When a `|' intersects with a `-', a `+' is
7132   drawn, like this:   |         \ /
7133                     --+--        X
7134                       |         / \
7136 - Rubber-banding: When drawing lines you can interactively see the
7137   result while holding the mouse button down and moving the mouse.  If
7138   your machine is not fast enough (a 386 is a bit too slow, but a
7139   pentium is well enough), you can turn this feature off.  You will
7140   then see 1's and 2's which mark the 1st and 2nd endpoint of the line
7141   you are drawing.
7143 - Arrows: After having drawn a (straight) line or a (straight)
7144   poly-line, you can set arrows on the line-ends by typing < or >.
7146 - Flood-filling: You can fill any area with a certain character by
7147   flood-filling.
7149 - Cut copy and paste: You can cut, copy and paste rectangular
7150   regions.  Artist also interfaces with the rect package (this can be
7151   turned off if it causes you any trouble) so anything you cut in
7152   artist can be yanked with C-x r y and vice versa.
7154 - Drawing with keys: Everything you can do with the mouse, you can
7155   also do without the mouse.
7157 - Aspect-ratio: You can set the variable artist-aspect-ratio to
7158   reflect the height-width ratio for the font you are using. Squares
7159   and circles are then drawn square/round.  Note, that once your
7160   ascii-file is shown with font with a different height-width ratio,
7161   the squares won't be square and the circles won't be round.
7163 - Drawing operations: The following drawing operations are implemented:
7165     lines               straight-lines
7166     rectangles          squares
7167     poly-lines          straight poly-lines
7168     ellipses            circles
7169     text (see-thru)     text (overwrite)
7170     spray-can           setting size for spraying
7171     vaporize line       vaporize lines
7172     erase characters    erase rectangles
7174   Straight lines are lines that go horizontally, vertically or
7175   diagonally.  Plain lines go in any direction.  The operations in
7176   the right column are accessed by holding down the shift key while
7177   drawing.
7179   It is possible to vaporize (erase) entire lines and connected lines
7180   (rectangles for example) as long as the lines being vaporized are
7181   straight and connected at their endpoints.  Vaporizing is inspired
7182   by the drawrect package by Jari Aalto <jari.aalto@poboxes.com>.
7184 - Picture mode compatibility: Artist is picture mode compatible (this
7185   can be turned off).
7187 *** The new package Eshell is an operating system command shell
7188 implemented entirely in Emacs Lisp.  Use `M-x eshell' to invoke it.
7189 It functions similarly to bash and zsh, and allows running of Lisp
7190 functions and external commands using the same syntax.  It supports
7191 history lists, aliases, extended globbing, smart scrolling, etc.  It
7192 will work on any platform Emacs has been ported to.  And since most of
7193 the basic commands -- ls, rm, mv, cp, ln, du, cat, etc. -- have been
7194 rewritten in Lisp, it offers an operating-system independent shell,
7195 all within the scope of your Emacs process.
7197 *** The new package timeclock.el is a mode is for keeping track of time
7198 intervals.  You can use it for whatever purpose you like, but the
7199 typical scenario is to keep track of how much time you spend working
7200 on certain projects.
7202 *** The new package hi-lock.el provides commands to highlight matches
7203 of interactively entered regexps.  For example,
7205   M-x highlight-regexp RET clearly RET RET
7207 will highlight all occurrences of `clearly' using a yellow background
7208 face.  New occurrences of `clearly' will be highlighted as they are
7209 typed.  `M-x unhighlight-regexp RET' will remove the highlighting.
7210 Any existing face can be used for highlighting and a set of
7211 appropriate faces is provided.  The regexps can be written into the
7212 current buffer in a form that will be recognized the next time the
7213 corresponding file is read.  There are commands to highlight matches
7214 to phrases and to highlight entire lines containing a match.
7216 *** The new package zone.el plays games with Emacs' display when
7217 Emacs is idle.
7219 *** The new package tildify.el allows to add hard spaces or other text
7220 fragments in accordance with the current major mode.
7222 *** The new package xml.el provides a simple but generic XML
7223 parser. It doesn't parse the DTDs however.
7225 *** The comment operations are now provided by the newcomment.el
7226 package which allows different styles of comment-region and should
7227 be more robust while offering the same functionality.
7228 `comment-region' now doesn't always comment a-line-at-a-time, but only
7229 comments the region, breaking the line at point if necessary.
7231 *** The Ebrowse package implements a C++ class browser and tags
7232 facilities tailored for use with C++.  It is documented in a
7233 separate Texinfo file.
7235 *** The PCL-CVS package available by either running M-x cvs-examine or
7236 by visiting a CVS administrative directory (with a prefix argument)
7237 provides an alternative interface to VC-dired for CVS.  It comes with
7238 `log-view-mode' to view RCS and SCCS logs and `log-edit-mode' used to
7239 enter check-in log messages.
7241 *** The new package called `woman' allows to browse Unix man pages
7242 without invoking external programs.
7244 The command `M-x woman' formats manual pages entirely in Emacs Lisp
7245 and then displays them, like `M-x manual-entry' does.  Unlike
7246 `manual-entry', `woman' does not invoke any external programs, so it
7247 is useful on systems such as MS-DOS/MS-Windows where the `man' and
7248 Groff or `troff' commands are not readily available.
7250 The command `M-x woman-find-file' asks for the file name of a man
7251 page, then formats and displays it like `M-x woman' does.
7253 *** The new command M-x re-builder offers a convenient interface for
7254 authoring regular expressions with immediate visual feedback.
7256 The buffer from which the command was called becomes the target for
7257 the regexp editor popping up in a separate window.  Matching text in
7258 the target buffer is immediately color marked during the editing.
7259 Each sub-expression of the regexp will show up in a different face so
7260 even complex regexps can be edited and verified on target data in a
7261 single step.
7263 On displays not supporting faces the matches instead blink like
7264 matching parens to make them stand out.  On such a setup you will
7265 probably also want to use the sub-expression mode when the regexp
7266 contains such to get feedback about their respective limits.
7268 *** glasses-mode is a minor mode that makes
7269 unreadableIdentifiersLikeThis readable.  It works as glasses, without
7270 actually modifying content of a buffer.
7272 *** The package ebnf2ps translates an EBNF to a syntactic chart in
7273 PostScript.
7275 Currently accepts ad-hoc EBNF, ISO EBNF and Bison/Yacc.
7277 The ad-hoc default EBNF syntax has the following elements:
7279     ;           comment (until end of line)
7280     A           non-terminal
7281     "C"         terminal
7282     ?C?         special
7283     $A          default non-terminal
7284     $"C"        default terminal
7285     $?C?        default special
7286     A = B.      production (A is the header and B the body)
7287     C D         sequence (C occurs before D)
7288     C | D       alternative (C or D occurs)
7289     A - B       exception (A excluding B, B without any non-terminal)
7290     n * A       repetition (A repeats n (integer) times)
7291     (C)         group (expression C is grouped together)
7292     [C]         optional (C may or not occurs)
7293     C+          one or more occurrences of C
7294     {C}+        one or more occurrences of C
7295     {C}*        zero or more occurrences of C
7296     {C}         zero or more occurrences of C
7297     C / D       equivalent to: C {D C}*
7298     {C || D}+   equivalent to: C {D C}*
7299     {C || D}*   equivalent to: [C {D C}*]
7300     {C || D}    equivalent to: [C {D C}*]
7302 Please, see ebnf2ps documentation for EBNF syntax and how to use it.
7304 *** The package align.el will align columns within a region, using M-x
7305 align.  Its mode-specific rules, based on regular expressions,
7306 determine where the columns should be split.  In C and C++, for
7307 example, it will align variable names in declaration lists, or the
7308 equal signs of assignments.
7310 *** `paragraph-indent-minor-mode' is a new minor mode supporting
7311 paragraphs in the same style as `paragraph-indent-text-mode'.
7313 *** bs.el is a new package for buffer selection similar to
7314 list-buffers or electric-buffer-list.  Use M-x bs-show to display a
7315 buffer menu with this package.  See the Custom group `bs'.
7317 *** find-lisp.el is a package emulating the Unix find command in Lisp.
7319 *** calculator.el is a small calculator package that is intended to
7320 replace desktop calculators such as xcalc and calc.exe.  Actually, it
7321 is not too small - it has more features than most desktop calculators,
7322 and can be customized easily to get many more functions.  It should
7323 not be confused with "calc" which is a much bigger mathematical tool
7324 which answers different needs.
7326 *** The minor modes cwarn-mode and global-cwarn-mode highlights
7327 suspicious C and C++ constructions.  Currently, assignments inside
7328 expressions, semicolon following `if', `for' and `while' (except, of
7329 course, after a `do .. while' statement), and C++ functions with
7330 reference parameters are recognized.  The modes require font-lock mode
7331 to be enabled.
7333 *** smerge-mode.el provides `smerge-mode', a simple minor-mode for files
7334 containing diff3-style conflict markers, such as generated by RCS.
7336 *** 5x5.el is a simple puzzle game.
7338 *** hl-line.el provides `hl-line-mode', a minor mode to highlight the
7339 current line in the current buffer.  It also provides
7340 `global-hl-line-mode' to provide the same behavior in all buffers.
7342 *** ansi-color.el translates ANSI terminal escapes into text-properties.
7344 Please note: if `ansi-color-for-comint-mode' and
7345 `global-font-lock-mode' are non-nil, loading ansi-color.el will
7346 disable font-lock and add `ansi-color-apply' to
7347 `comint-preoutput-filter-functions' for all shell-mode buffers.  This
7348 displays the output of "ls --color=yes" using the correct foreground
7349 and background colors.
7351 *** delphi.el provides a major mode for editing the Delphi (Object
7352 Pascal) language.
7354 *** quickurl.el provides a simple method of inserting a URL based on
7355 the text at point.
7357 *** sql.el provides an interface to SQL data bases.
7359 *** fortune.el uses the fortune program to create mail/news signatures.
7361 *** whitespace.el is a package for warning about and cleaning bogus
7362 whitespace in a file.
7364 *** PostScript mode (ps-mode) is a new major mode for editing PostScript
7365 files. It offers: interaction with a PostScript interpreter, including
7366 (very basic) error handling; fontification, easily customizable for
7367 interpreter messages; auto-indentation; insertion of EPSF templates and
7368 often used code snippets; viewing of BoundingBox; commenting out /
7369 uncommenting regions; conversion of 8bit characters to PostScript octal
7370 codes. All functionality is accessible through a menu.
7372 *** delim-col helps to prettify columns in a text region or rectangle.
7374 Here is an example of columns:
7376 horse   apple   bus
7377 dog     pineapple       car     EXTRA
7378 porcupine       strawberry      airplane
7380 Doing the following settings:
7382    (setq delimit-columns-str-before "[ ")
7383    (setq delimit-columns-str-after " ]")
7384    (setq delimit-columns-str-separator ", ")
7385    (setq delimit-columns-separator "\t")
7388 Selecting the lines above and typing:
7390    M-x delimit-columns-region
7392 It results:
7394 [ horse    , apple     , bus     ,       ]
7395 [ dog      , pineapple , car     , EXTRA ]
7396 [ porcupine, strawberry, airplane,       ]
7398 delim-col has the following options:
7400    delimit-columns-str-before           Specify a string to be inserted
7401                                         before all columns.
7403    delimit-columns-str-separator        Specify a string to be inserted
7404                                         between each column.
7406    delimit-columns-str-after            Specify a string to be inserted
7407                                         after all columns.
7409    delimit-columns-separator            Specify a regexp which separates
7410                                         each column.
7412 delim-col has the following commands:
7414    delimit-columns-region       Prettify all columns in a text region.
7415    delimit-columns-rectangle    Prettify all columns in a text rectangle.
7417 *** Recentf mode maintains a menu for visiting files that were
7418 operated on recently.  User option recentf-menu-filter specifies a
7419 menu filter function to change the menu appearance. For example, the
7420 recent file list can be displayed:
7422 - organized by major modes, directories or user defined rules.
7423 - sorted by file paths, file names, ascending or descending.
7424 - showing paths relative to the current default-directory
7426 The `recentf-filter-changer' menu filter function allows to
7427 dynamically change the menu appearance.
7429 *** elide-head.el provides a mechanism for eliding boilerplate header
7430 text.
7432 *** footnote.el provides `footnote-mode', a minor mode supporting use
7433 of footnotes.  It is intended for use with Message mode, but isn't
7434 specific to Message mode.
7436 *** diff-mode.el provides `diff-mode', a major mode for
7437 viewing/editing context diffs (patches).  It is selected for files
7438 with extension `.diff', `.diffs', `.patch' and `.rej'.
7440 *** EUDC, the Emacs Unified Directory Client, provides a common user
7441 interface to access directory servers using different directory
7442 protocols.  It has a separate manual.
7444 *** autoconf.el provides a major mode for editing configure.in files
7445 for Autoconf, selected automatically.
7447 *** windmove.el provides moving between windows.
7449 *** crm.el provides a facility to read multiple strings from the
7450 minibuffer with completion.
7452 *** todo-mode.el provides management of TODO lists and integration
7453 with the diary features.
7455 *** autoarg.el provides a feature reported from Twenex Emacs whereby
7456 numeric keys supply prefix args rather than self inserting.
7458 *** The function `turn-off-auto-fill' unconditionally turns off Auto
7459 Fill mode.
7461 *** pcomplete.el is a library that provides programmable completion
7462 facilities for Emacs, similar to what zsh and tcsh offer.  The main
7463 difference is that completion functions are written in Lisp, meaning
7464 they can be profiled, debugged, etc.
7466 *** antlr-mode is a new major mode for editing ANTLR grammar files.
7467 It is automatically turned on for files whose names have the extension
7468 `.g'.
7470 ** Changes in sort.el
7472 The function sort-numeric-fields interprets numbers starting with `0'
7473 as octal and numbers starting with `0x' or `0X' as hexadecimal.  The
7474 new user-option sort-numeric-base can be used to specify a default
7475 numeric base.
7477 ** Changes to Ange-ftp
7479 *** Ange-ftp allows you to specify of a port number in remote file
7480 names cleanly.  It is appended to the host name, separated by a hash
7481 sign, e.g. `/foo@bar.org#666:mumble'.  (This syntax comes from EFS.)
7483 *** If the new user-option `ange-ftp-try-passive-mode' is set, passive
7484 ftp mode will be used if the ftp client supports that.
7486 *** Ange-ftp handles the output of the w32-style clients which
7487 output ^M at the end of lines.
7489 ** The recommended way of using Iswitchb is via the new global minor
7490 mode `iswitchb-mode'.
7492 ** Just loading the msb package doesn't switch on Msb mode anymore.
7493 If you have `(require 'msb)' in your .emacs, please replace it with
7494 `(msb-mode 1)'.
7496 ** Flyspell mode has various new options.  See the `flyspell' Custom
7497 group.
7499 ** The user option `backward-delete-char-untabify-method' controls the
7500 behavior of `backward-delete-char-untabify'.  The following values
7501 are recognized:
7503 `untabify' -- turn a tab to many spaces, then delete one space;
7504 `hungry'   -- delete all whitespace, both tabs and spaces;
7505 `all'      -- delete all whitespace, including tabs, spaces and newlines;
7506 nil        -- just delete one character.
7508 Default value is `untabify'.
7510 [This change was made in Emacs 20.3 but not mentioned then.]
7512 ** In Cperl mode `cperl-invalid-face' should now be a normal face
7513 symbol, not double-quoted.
7515 ** Some packages are declared obsolete, to be removed in a future
7516 version.  They are:  auto-show, c-mode, hilit19, hscroll, ooutline,
7517 profile, rnews, rnewspost, and sc.  Their implementations have been
7518 moved to lisp/obsolete.
7520 ** auto-compression mode is no longer enabled just by loading jka-compr.el.
7521 To control it, set `auto-compression-mode' via Custom or use the
7522 `auto-compression-mode' command.
7524 ** `browse-url-gnome-moz' is a new option for
7525 `browse-url-browser-function', invoking Mozilla in GNOME, and
7526 `browse-url-kde' can be chosen for invoking the KDE browser.
7528 ** The user-option `browse-url-new-window-p' has been renamed to
7529 `browse-url-new-window-flag'.
7531 ** The functions `keep-lines', `flush-lines' and `how-many' now
7532 operate on the active region in Transient Mark mode.
7534 ** `gnus-user-agent' is a new possibility for `mail-user-agent'.  It
7535 is like `message-user-agent', but with all the Gnus paraphernalia.
7537 ** The Strokes package has been updated.  If your Emacs has XPM
7538 support, you can use it for pictographic editing.  In Strokes mode,
7539 use C-mouse-2 to compose a complex stoke and insert it into the
7540 buffer.  You can encode or decode a strokes buffer with new commands
7541 M-x strokes-encode-buffer and M-x strokes-decode-buffer.  There is a
7542 new command M-x strokes-list-strokes.
7544 ** Hexl contains a new command `hexl-insert-hex-string' which inserts
7545 a string of hexadecimal numbers read from the mini-buffer.
7547 ** Hexl mode allows to insert non-ASCII characters.
7549 The non-ASCII characters are encoded using the same encoding as the
7550 file you are visiting in Hexl mode.
7552 ** Shell script mode changes.
7554 Shell script mode (sh-script) can now indent scripts for shells
7555 derived from sh and rc.  The indentation style is customizable, and
7556 sh-script can attempt to "learn" the current buffer's style.
7558 ** Etags changes.
7560 *** In DOS, etags looks for file.cgz if it cannot find file.c.
7562 *** New option --ignore-case-regex is an alternative to --regex.  It is now
7563 possible to bind a regexp to a language, by prepending the regexp with
7564 {lang}, where lang is one of the languages that `etags --help' prints out.
7565 This feature is useful especially for regex files, where each line contains
7566 a regular expression.  The manual contains details.
7568 *** In C and derived languages, etags creates tags for function
7569 declarations when given the --declarations option.
7571 *** In C++, tags are created for "operator".  The tags have the form
7572 "operator+", without spaces between the keyword and the operator.
7574 *** You shouldn't generally need any more the -C or -c++ option: etags
7575 automatically switches to C++ parsing when it meets the `class' or
7576 `template' keywords.
7578 *** Etags now is able to delve at arbitrary deeps into nested structures in
7579 C-like languages.  Previously, it was limited to one or two brace levels.
7581 *** New language Ada: tags are functions, procedures, packages, tasks, and
7582 types.
7584 *** In Fortran, `procedure' is not tagged.
7586 *** In Java, tags are created for "interface".
7588 *** In Lisp, "(defstruct (foo", "(defun (operator" and similar constructs
7589 are now tagged.
7591 *** In makefiles, tags the targets.
7593 *** In Perl, the --globals option tags global variables.  my and local
7594 variables are tagged.
7596 *** New language Python: def and class at the beginning of a line are tags.
7598 *** .ss files are Scheme files, .pdb is Postscript with C syntax, .psw is
7599 for PSWrap.
7601 ** Changes in etags.el
7603 *** The new user-option tags-case-fold-search can be used to make
7604 tags operations case-sensitive or case-insensitive.  The default
7605 is to use the same setting as case-fold-search.
7607 *** You can display additional output with M-x tags-apropos by setting
7608 the new variable tags-apropos-additional-actions.
7610 If non-nil, the variable's value should be a list of triples (TITLE
7611 FUNCTION TO-SEARCH).  For each triple, M-x tags-apropos processes
7612 TO-SEARCH and lists tags from it.  TO-SEARCH should be an alist,
7613 obarray, or symbol.  If it is a symbol, the symbol's value is used.
7615 TITLE is a string to use to label the list of tags from TO-SEARCH.
7617 FUNCTION is a function to call when an entry is selected in the Tags
7618 List buffer.  It is called with one argument, the selected symbol.
7620 A useful example value for this variable might be something like:
7622   '(("Emacs Lisp" Info-goto-emacs-command-node obarray)
7623     ("Common Lisp" common-lisp-hyperspec common-lisp-hyperspec-obarray)
7624     ("SCWM" scwm-documentation scwm-obarray))
7626 *** The face tags-tag-face can be used to customize the appearance
7627 of tags in the output of M-x tags-apropos.
7629 *** Setting tags-apropos-verbose to a non-nil value displays the
7630 names of tags files in the *Tags List* buffer.
7632 *** You can now search for tags that are part of the filename itself.
7633 If you have tagged the files topfile.c subdir/subfile.c
7634 /tmp/tempfile.c, you can now search for tags "topfile.c", "subfile.c",
7635 "dir/sub", "tempfile", "tempfile.c".  If the tag matches the file name,
7636 point will go to the beginning of the file.
7638 *** Compressed files are now transparently supported if
7639 auto-compression-mode is active.  You can tag (with Etags) and search
7640 (with find-tag) both compressed and uncompressed files.
7642 *** Tags commands like M-x tags-search no longer change point
7643 in buffers where no match is found.  In buffers where a match is
7644 found, the original value of point is pushed on the marker ring.
7646 ** Fortran mode has a new command `fortran-strip-sequence-nos' to
7647 remove text past column 72.  The syntax class of `\' in Fortran is now
7648 appropriate for C-style escape sequences in strings.
7650 ** SGML mode's default `sgml-validate-command' is now `nsgmls'.
7652 ** A new command `view-emacs-problems' (C-h P) displays the PROBLEMS file.
7654 ** The Dabbrev package has a new user-option `dabbrev-ignored-regexps'
7655 containing a list of regular expressions.  Buffers matching a regular
7656 expression from that list, are not checked.
7658 ** Emacs can now figure out modification times of remote files.
7659 When you do C-x C-f /user@host:/path/file RET and edit the file,
7660 and someone else modifies the file, you will be prompted to revert
7661 the buffer, just like for the local files.
7663 ** The buffer menu (C-x C-b) no longer lists the *Buffer List* buffer.
7665 ** When invoked with a prefix argument, the command `list-abbrevs' now
7666 displays local abbrevs, only.
7668 ** Refill minor mode provides preliminary support for keeping
7669 paragraphs filled as you modify them.
7671 ** The variable `double-click-fuzz' specifies how much the mouse
7672 may be moved between clicks that are recognized as a pair.  Its value
7673 is measured in pixels.
7675 ** The new global minor mode `auto-image-file-mode' allows image files
7676 to be visited as images.
7678 ** Two new user-options `grep-command' and `grep-find-command'
7679 were added to compile.el.
7681 ** Withdrawn packages
7683 *** mldrag.el has been removed.  mouse.el provides the same
7684 functionality with aliases for the mldrag functions.
7686 *** eval-reg.el has been obsoleted by changes to edebug.el and removed.
7688 *** ph.el has been obsoleted by EUDC and removed.
7691 * Incompatible Lisp changes
7693 There are a few Lisp changes which are not backwards-compatible and
7694 may require changes to existing code. Here is a list for reference.
7695 See the sections below for details.
7697 ** Since `format' preserves text properties, the idiom
7698 `(format "%s" foo)' no longer works to copy and remove properties.
7699 Use `copy-sequence' to copy the string, then use `set-text-properties'
7700 to remove the properties of the copy.
7702 ** Since the `keymap' text property now has significance, some code
7703 which uses both `local-map' and `keymap' properties (for portability)
7704 may, for instance, give rise to duplicate menus when the keymaps from
7705 these properties are active.
7707 ** The change in the treatment of non-ASCII characters in search
7708 ranges may affect some code.
7710 ** A non-nil value for the LOCAL arg of add-hook makes the hook
7711 buffer-local even if `make-local-hook' hasn't been called, which might
7712 make a difference to some code.
7714 ** The new treatment of the minibuffer prompt might affect code which
7715 operates on the minibuffer.
7717 ** The new character sets `eight-bit-control' and `eight-bit-graphic'
7718 cause `no-conversion' and `emacs-mule-unix' coding systems to produce
7719 different results when reading files with non-ASCII characters
7720 (previously, both coding systems would produce the same results).
7721 Specifically, `no-conversion' interprets each 8-bit byte as a separate
7722 character.  This makes `no-conversion' inappropriate for reading
7723 multibyte text, e.g. buffers written to disk in their internal MULE
7724 encoding (auto-saving does that, for example).  If a Lisp program
7725 reads such files with `no-conversion', each byte of the multibyte
7726 sequence, including the MULE leading codes such as \201, is treated as
7727 a separate character, which prevents them from being interpreted in
7728 the buffer as multibyte characters.
7730 Therefore, Lisp programs that read files which contain the internal
7731 MULE encoding should use `emacs-mule-unix'.  `no-conversion' is only
7732 appropriate for reading truly binary files.
7734 ** Code that relies on the obsolete `before-change-function' and
7735 `after-change-function' to detect buffer changes will now fail.  Use
7736 `before-change-functions' and `after-change-functions' instead.
7738 ** Code that uses `concat' with integer args now gets an error, as
7739 long promised.  So does any code that uses derivatives of `concat',
7740 such as `mapconcat'.
7742 ** The function base64-decode-string now always returns a unibyte
7743 string.
7745 ** Not a Lisp incompatibility as such but, with the introduction of
7746 extra private charsets, there is now only one slot free for a new
7747 dimension-2 private charset.  User code which tries to add more than
7748 one extra will fail unless you rebuild Emacs with some standard
7749 charset(s) removed; that is probably inadvisable because it changes
7750 the emacs-mule encoding.  Also, files stored in the emacs-mule
7751 encoding using Emacs 20 with additional private charsets defined will
7752 probably not be read correctly by Emacs 21.
7754 ** The variable `directory-sep-char' is slated for removal.
7755 Not really a change (yet), but a projected one that you should be
7756 aware of: The variable `directory-sep-char' is deprecated, and should
7757 not be used.  It was always ignored on GNU/Linux and Unix systems and
7758 on MS-DOS, but the MS-Windows port tried to support it by adapting the
7759 behavior of certain primitives to the value of this variable.  It
7760 turned out that such support cannot be reliable, so it was decided to
7761 remove this variable in the near future.  Lisp programs are well
7762 advised not to set it to anything but '/', because any different value
7763 will not have any effect when support for this variable is removed.
7766 * Lisp changes made after edition 2.6 of the Emacs Lisp Manual,
7767 (Display-related features are described in a page of their own below.)
7769 ** Function assq-delete-all replaces function assoc-delete-all.
7771 ** The new function animate-string, from lisp/play/animate.el
7772 allows the animated display of strings.
7774 ** The new function `interactive-form' can be used to obtain the
7775 interactive form of a function.
7777 ** The keyword :set-after in defcustom allows to specify dependencies
7778 between custom options.  Example:
7780   (defcustom default-input-method nil
7781     "*Default input method for multilingual text (a string).
7782   This is the input method activated automatically by the command
7783   `toggle-input-method' (\\[toggle-input-method])."
7784     :group 'mule
7785     :type '(choice (const nil) string)
7786     :set-after '(current-language-environment))
7788 This specifies that default-input-method should be set after
7789 current-language-environment even if default-input-method appears
7790 first in a custom-set-variables statement.
7792 ** The new hook `kbd-macro-termination-hook' is run at the end of
7793 function execute-kbd-macro.  Functions on this hook are called with no
7794 args.  The hook is run independent of how the macro was terminated
7795 (signal or normal termination).
7797 ** Functions `butlast' and `nbutlast' for removing trailing elements
7798 from a list are now available without requiring the CL package.
7800 ** The new user-option `even-window-heights' can be set to nil
7801 to prevent `display-buffer' from evening out window heights.
7803 ** The user-option `face-font-registry-alternatives' specifies
7804 alternative font registry names to try when looking for a font.
7806 ** Function `md5' calculates the MD5 "message digest"/"checksum".
7808 ** Function `delete-frame' runs `delete-frame-hook' before actually
7809 deleting the frame.  The hook is called with one arg, the frame
7810 being deleted.
7812 ** `add-hook' now makes the hook local if called with a non-nil LOCAL arg.
7814 ** The treatment of non-ASCII characters in search ranges has changed.
7815 If a range in a regular expression or the arg of
7816 skip-chars-forward/backward starts with a unibyte character C and ends
7817 with a multibyte character C2, the range is divided into two: one is
7818 C..?\377, the other is C1..C2, where C1 is the first character of C2's
7819 charset.
7821 ** The new function `display-message-or-buffer' displays a message in
7822 the echo area or pops up a buffer, depending on the length of the
7823 message.
7825 ** The new macro `with-auto-compression-mode' allows evaluating an
7826 expression with auto-compression-mode enabled.
7828 ** In image specifications, `:heuristic-mask' has been replaced
7829 with the more general `:mask' property.
7831 ** Image specifications accept more `:conversion's.
7833 ** A `?' can be used in a symbol name without escaping it with a
7834 backslash.
7836 ** Reading from the mini-buffer now reads from standard input if Emacs
7837 is running in batch mode.  For example,
7839   (message "%s" (read t))
7841 will read a Lisp expression from standard input and print the result
7842 to standard output.
7844 ** The argument of `down-list', `backward-up-list', `up-list',
7845 `kill-sexp', `backward-kill-sexp' and `mark-sexp' is now optional.
7847 ** If `display-buffer-reuse-frames' is set, function `display-buffer'
7848 will raise frames displaying a buffer, instead of creating a new
7849 frame or window.
7851 ** Two new functions for removing elements from lists/sequences
7852 were added
7854 - Function: remove ELT SEQ
7856 Return a copy of SEQ with all occurrences of ELT removed.  SEQ must be
7857 a list, vector, or string.  The comparison is done with `equal'.
7859 - Function: remq ELT LIST
7861 Return a copy of LIST with all occurrences of ELT removed.  The
7862 comparison is done with `eq'.
7864 ** The function `delete' now also works with vectors and strings.
7866 ** The meaning of the `:weakness WEAK' argument of make-hash-table
7867 has been changed: WEAK can now have new values `key-or-value' and
7868 `key-and-value', in addition to `nil', `key', `value', and `t'.
7870 ** Function `aset' stores any multibyte character in any string
7871 without signaling "Attempt to change char length of a string".  It may
7872 convert a unibyte string to multibyte if necessary.
7874 ** The value of the `help-echo' text property is called as a function
7875 or evaluated, if it is not a string already, to obtain a help string.
7877 ** Function `make-obsolete' now has an optional arg to say when the
7878 function was declared obsolete.
7880 ** Function `plist-member' is renamed from `widget-plist-member' (which is
7881 retained as an alias).
7883 ** Easy-menu's :filter now takes the unconverted form of the menu and
7884 the result is automatically converted to Emacs' form.
7886 ** The new function `window-list' has been defined
7888 - Function: window-list &optional FRAME WINDOW MINIBUF
7890 Return a list of windows on FRAME, starting with WINDOW.  FRAME nil or
7891 omitted means use the selected frame.  WINDOW nil or omitted means use
7892 the selected window.  MINIBUF t means include the minibuffer window,
7893 even if it isn't active.  MINIBUF nil or omitted means include the
7894 minibuffer window only if it's active.  MINIBUF neither nil nor t
7895 means never include the minibuffer window.
7897 ** There's a new function `get-window-with-predicate' defined as follows
7899 - Function: get-window-with-predicate PREDICATE &optional MINIBUF ALL-FRAMES DEFAULT
7901 Return a window satisfying PREDICATE.
7903 This function cycles through all visible windows using `walk-windows',
7904 calling PREDICATE on each one.  PREDICATE is called with a window as
7905 argument.  The first window for which PREDICATE returns a non-nil
7906 value is returned.  If no window satisfies PREDICATE, DEFAULT is
7907 returned.
7909 Optional second arg MINIBUF t means count the minibuffer window even
7910 if not active.  MINIBUF nil or omitted means count the minibuffer iff
7911 it is active.  MINIBUF neither t nor nil means not to count the
7912 minibuffer even if it is active.
7914 Several frames may share a single minibuffer; if the minibuffer
7915 counts, all windows on all frames that share that minibuffer count
7916 too.  Therefore, if you are using a separate minibuffer frame
7917 and the minibuffer is active and MINIBUF says it counts,
7918 `walk-windows' includes the windows in the frame from which you
7919 entered the minibuffer, as well as the minibuffer window.
7921 ALL-FRAMES is the optional third argument.
7922 ALL-FRAMES nil or omitted means cycle within the frames as specified above.
7923 ALL-FRAMES = `visible' means include windows on all visible frames.
7924 ALL-FRAMES = 0 means include windows on all visible and iconified frames.
7925 ALL-FRAMES = t means include windows on all frames including invisible frames.
7926 If ALL-FRAMES is a frame, it means include windows on that frame.
7927 Anything else means restrict to the selected frame.
7929 ** The function `single-key-description' now encloses function key and
7930 event names in angle brackets.  When called with a second optional
7931 argument non-nil, angle brackets won't be printed.
7933 ** If the variable `message-truncate-lines' is bound to t around a
7934 call to `message', the echo area will not be resized to display that
7935 message; it will be truncated instead, as it was done in 20.x.
7936 Default value is nil.
7938 ** The user option `line-number-display-limit' can now be set to nil,
7939 meaning no limit.
7941 ** The new user option `line-number-display-limit-width' controls
7942 the maximum width of lines in a buffer for which Emacs displays line
7943 numbers in the mode line.  The default is 200.
7945 ** `select-safe-coding-system' now also checks the most preferred
7946 coding-system if buffer-file-coding-system is `undecided' and
7947 DEFAULT-CODING-SYSTEM is not specified,
7949 ** The function `subr-arity' provides information about the argument
7950 list of a primitive.
7952 ** `where-is-internal' now also accepts a list of keymaps.
7954 ** The text property `keymap' specifies a key map which overrides the
7955 buffer's local map and the map specified by the `local-map' property.
7956 This is probably what most current uses of `local-map' want, rather
7957 than replacing the local map.
7959 ** The obsolete variables `before-change-function' and
7960 `after-change-function' are no longer acted upon and have been
7961 removed.  Use `before-change-functions' and `after-change-functions'
7962 instead.
7964 ** The function `apropos-mode' runs the hook `apropos-mode-hook'.
7966 ** `concat' no longer accepts individual integer arguments,
7967 as promised long ago.
7969 ** The new function `float-time' returns the current time as a float.
7971 ** The new variable auto-coding-regexp-alist specifies coding systems
7972 for reading specific files, analogous to auto-coding-alist, but
7973 patterns are checked against file contents instead of file names.
7976 * Lisp changes in Emacs 21.1 (see following page for display-related features)
7978 ** The new package rx.el provides an alternative sexp notation for
7979 regular expressions.
7981 - Function: rx-to-string SEXP
7983 Translate SEXP into a regular expression in string notation.
7985 - Macro: rx SEXP
7987 Translate SEXP into a regular expression in string notation.
7989 The following are valid subforms of regular expressions in sexp
7990 notation.
7992 STRING
7993      matches string STRING literally.
7995 CHAR
7996      matches character CHAR literally.
7998 `not-newline'
7999      matches any character except a newline.
8000                         .
8001 `anything'
8002      matches any character
8004 `(any SET)'
8005      matches any character in SET.  SET may be a character or string.
8006      Ranges of characters can be specified as `A-Z' in strings.
8008 '(in SET)'
8009      like `any'.
8011 `(not (any SET))'
8012      matches any character not in SET
8014 `line-start'
8015      matches the empty string, but only at the beginning of a line
8016      in the text being matched
8018 `line-end'
8019      is similar to `line-start' but matches only at the end of a line
8021 `string-start'
8022      matches the empty string, but only at the beginning of the
8023      string being matched against.
8025 `string-end'
8026      matches the empty string, but only at the end of the
8027      string being matched against.
8029 `buffer-start'
8030      matches the empty string, but only at the beginning of the
8031      buffer being matched against.
8033 `buffer-end'
8034      matches the empty string, but only at the end of the
8035      buffer being matched against.
8037 `point'
8038      matches the empty string, but only at point.
8040 `word-start'
8041      matches the empty string, but only at the beginning or end of a
8042      word.
8044 `word-end'
8045      matches the empty string, but only at the end of a word.
8047 `word-boundary'
8048      matches the empty string, but only at the beginning or end of a
8049      word.
8051 `(not word-boundary)'
8052      matches the empty string, but not at the beginning or end of a
8053      word.
8055 `digit'
8056      matches 0 through 9.
8058 `control'
8059      matches ASCII control characters.
8061 `hex-digit'
8062      matches 0 through 9, a through f and A through F.
8064 `blank'
8065      matches space and tab only.
8067 `graphic'
8068      matches graphic characters--everything except ASCII control chars,
8069      space, and DEL.
8071 `printing'
8072      matches printing characters--everything except ASCII control chars
8073      and DEL.
8075 `alphanumeric'
8076      matches letters and digits.  (But at present, for multibyte characters,
8077      it matches anything that has word syntax.)
8079 `letter'
8080      matches letters.  (But at present, for multibyte characters,
8081      it matches anything that has word syntax.)
8083 `ascii'
8084      matches ASCII (unibyte) characters.
8086 `nonascii'
8087      matches non-ASCII (multibyte) characters.
8089 `lower'
8090      matches anything lower-case.
8092 `upper'
8093      matches anything upper-case.
8095 `punctuation'
8096      matches punctuation.  (But at present, for multibyte characters,
8097      it matches anything that has non-word syntax.)
8099 `space'
8100      matches anything that has whitespace syntax.
8102 `word'
8103      matches anything that has word syntax.
8105 `(syntax SYNTAX)'
8106      matches a character with syntax SYNTAX.  SYNTAX must be one
8107      of the following symbols.
8109      `whitespace'               (\\s- in string notation)
8110      `punctuation'              (\\s.)
8111      `word'                     (\\sw)
8112      `symbol'                   (\\s_)
8113      `open-parenthesis'         (\\s()
8114      `close-parenthesis'        (\\s))
8115      `expression-prefix'        (\\s')
8116      `string-quote'             (\\s\")
8117      `paired-delimiter'         (\\s$)
8118      `escape'                   (\\s\\)
8119      `character-quote'          (\\s/)
8120      `comment-start'            (\\s<)
8121      `comment-end'              (\\s>)
8123 `(not (syntax SYNTAX))'
8124      matches a character that has not syntax SYNTAX.
8126 `(category CATEGORY)'
8127      matches a character with category CATEGORY.  CATEGORY must be
8128      either a character to use for C, or one of the following symbols.
8130      `consonant'                        (\\c0 in string notation)
8131      `base-vowel'                       (\\c1)
8132      `upper-diacritical-mark'           (\\c2)
8133      `lower-diacritical-mark'           (\\c3)
8134      `tone-mark'                        (\\c4)
8135      `symbol'                           (\\c5)
8136      `digit'                            (\\c6)
8137      `vowel-modifying-diacritical-mark' (\\c7)
8138      `vowel-sign'                       (\\c8)
8139      `semivowel-lower'                  (\\c9)
8140      `not-at-end-of-line'               (\\c<)
8141      `not-at-beginning-of-line'         (\\c>)
8142      `alpha-numeric-two-byte'           (\\cA)
8143      `chinse-two-byte'                  (\\cC)
8144      `greek-two-byte'                   (\\cG)
8145      `japanese-hiragana-two-byte'       (\\cH)
8146      `indian-two-byte'                  (\\cI)
8147      `japanese-katakana-two-byte'       (\\cK)
8148      `korean-hangul-two-byte'           (\\cN)
8149      `cyrillic-two-byte'                (\\cY)
8150      `ascii'                            (\\ca)
8151      `arabic'                           (\\cb)
8152      `chinese'                          (\\cc)
8153      `ethiopic'                         (\\ce)
8154      `greek'                            (\\cg)
8155      `korean'                           (\\ch)
8156      `indian'                           (\\ci)
8157      `japanese'                         (\\cj)
8158      `japanese-katakana'                (\\ck)
8159      `latin'                            (\\cl)
8160      `lao'                              (\\co)
8161      `tibetan'                          (\\cq)
8162      `japanese-roman'                   (\\cr)
8163      `thai'                             (\\ct)
8164      `vietnamese'                       (\\cv)
8165      `hebrew'                           (\\cw)
8166      `cyrillic'                         (\\cy)
8167      `can-break'                        (\\c|)
8169 `(not (category CATEGORY))'
8170      matches a character that has not category CATEGORY.
8172 `(and SEXP1 SEXP2 ...)'
8173      matches what SEXP1 matches, followed by what SEXP2 matches, etc.
8175 `(submatch SEXP1 SEXP2 ...)'
8176      like `and', but makes the match accessible with `match-end',
8177      `match-beginning', and `match-string'.
8179 `(group SEXP1 SEXP2 ...)'
8180      another name for `submatch'.
8182 `(or SEXP1 SEXP2 ...)'
8183      matches anything that matches SEXP1 or SEXP2, etc.  If all
8184      args are strings, use `regexp-opt' to optimize the resulting
8185      regular expression.
8187 `(minimal-match SEXP)'
8188      produce a non-greedy regexp for SEXP.  Normally, regexps matching
8189      zero or more occurrences of something are \"greedy\" in that they
8190      match as much as they can, as long as the overall regexp can
8191      still match.  A non-greedy regexp matches as little as possible.
8193 `(maximal-match SEXP)'
8194      produce a greedy regexp for SEXP.  This is the default.
8196 `(zero-or-more SEXP)'
8197      matches zero or more occurrences of what SEXP matches.
8199 `(0+ SEXP)'
8200      like `zero-or-more'.
8202 `(* SEXP)'
8203      like `zero-or-more', but always produces a greedy regexp.
8205 `(*? SEXP)'
8206      like `zero-or-more', but always produces a non-greedy regexp.
8208 `(one-or-more SEXP)'
8209      matches one or more occurrences of A.
8211 `(1+ SEXP)'
8212      like `one-or-more'.
8214 `(+ SEXP)'
8215      like `one-or-more', but always produces a greedy regexp.
8217 `(+? SEXP)'
8218      like `one-or-more', but always produces a non-greedy regexp.
8220 `(zero-or-one SEXP)'
8221      matches zero or one occurrences of A.
8223 `(optional SEXP)'
8224      like `zero-or-one'.
8226 `(? SEXP)'
8227      like `zero-or-one', but always produces a greedy regexp.
8229 `(?? SEXP)'
8230      like `zero-or-one', but always produces a non-greedy regexp.
8232 `(repeat N SEXP)'
8233      matches N occurrences of what SEXP matches.
8235 `(repeat N M SEXP)'
8236      matches N to M occurrences of what SEXP matches.
8238 `(eval FORM)'
8239       evaluate FORM and insert result.  If result is a string,
8240       `regexp-quote' it.
8242 `(regexp REGEXP)'
8243       include REGEXP in string notation in the result.
8245 *** The features `md5' and `overlay' are now provided by default.
8247 *** The special form `save-restriction' now works correctly even if the
8248 buffer is widened inside the save-restriction and changes made outside
8249 the original restriction.  Previously, doing this would cause the saved
8250 restriction to be restored incorrectly.
8252 *** The functions `find-charset-region' and `find-charset-string' include
8253 `eight-bit-control' and/or `eight-bit-graphic' in the returned list
8254 when they find 8-bit characters.  Previously, they included `ascii' in a
8255 multibyte buffer and `unknown' in a unibyte buffer.
8257 *** The functions `set-buffer-multibyte', `string-as-multibyte' and
8258 `string-as-unibyte' change the byte sequence of a buffer or a string
8259 if it contains a character from the `eight-bit-control' character set.
8261 *** The handling of multibyte sequences in a multibyte buffer is
8262 changed.  Previously, a byte sequence matching the pattern
8263 [\200-\237][\240-\377]+ was interpreted as a single character
8264 regardless of the length of the trailing bytes [\240-\377]+.  Thus, if
8265 the sequence was longer than what the leading byte indicated, the
8266 extra trailing bytes were ignored by Lisp functions.  Now such extra
8267 bytes are independent 8-bit characters belonging to the charset
8268 eight-bit-graphic.
8270 ** Fontsets are now implemented using char-tables.
8272 A fontset can now be specified for each independent character, for
8273 a group of characters or for a character set rather than just for a
8274 character set as previously.
8276 *** The arguments of the function `set-fontset-font' are changed.
8277 They are NAME, CHARACTER, FONTNAME, and optional FRAME.  The function
8278 modifies fontset NAME to use FONTNAME for CHARACTER.
8280 CHARACTER may be a cons (FROM . TO), where FROM and TO are non-generic
8281 characters.  In that case FONTNAME is used for all characters in the
8282 range FROM and TO (inclusive).  CHARACTER may be a charset.  In that
8283 case FONTNAME is used for all character in the charset.
8285 FONTNAME may be a cons (FAMILY . REGISTRY), where FAMILY is the family
8286 name of a font and REGISTRY is a registry name of a font.
8288 *** Variable x-charset-registry has been deleted.  The default charset
8289 registries of character sets are set in the default fontset
8290 "fontset-default".
8292 *** The function `create-fontset-from-fontset-spec' ignores the second
8293 argument STYLE-VARIANT.  It never creates style-variant fontsets.
8295 ** The method of composing characters is changed.  Now character
8296 composition is done by a special text property `composition' in
8297 buffers and strings.
8299 *** Charset composition is deleted.  Emacs never creates a `composite
8300 character' which is an independent character with a unique character
8301 code.  Thus the following functions handling `composite characters'
8302 have been deleted: composite-char-component,
8303 composite-char-component-count, composite-char-composition-rule,
8304 composite-char-composition-rule and decompose-composite-char delete.
8305 The variables leading-code-composition and min-composite-char have
8306 also been deleted.
8308 *** Three more glyph reference points are added.  They can be used to
8309 specify a composition rule.  See the documentation of the variable
8310 `reference-point-alist' for more detail.
8312 *** The function `compose-region' takes new arguments COMPONENTS and
8313 MODIFICATION-FUNC.  With COMPONENTS, you can specify not only a
8314 composition rule but also characters to be composed.  Such characters
8315 may differ between buffer and string text.
8317 *** The function `compose-string' takes new arguments START, END,
8318 COMPONENTS, and MODIFICATION-FUNC.
8320 *** The function `compose-string' puts text property `composition'
8321 directly on the argument STRING instead of returning a new string.
8322 Likewise, the function `decompose-string' just removes text property
8323 `composition' from STRING.
8325 *** The new function `find-composition' returns information about
8326 a composition at a specified position in a buffer or a string.
8328 *** The function `decompose-composite-char' is now labeled as
8329 obsolete.
8331 ** The new coding system `mac-roman' is primarily intended for use on
8332 the Macintosh but may be used generally for Macintosh-encoded text.
8334 ** The new character sets `mule-unicode-0100-24ff',
8335 `mule-unicode-2500-33ff', and `mule-unicode-e000-ffff' have been
8336 introduced for Unicode characters in the range U+0100..U+24FF,
8337 U+2500..U+33FF, U+E000..U+FFFF respectively.
8339 Note that the character sets are not yet unified in Emacs, so
8340 characters which belong to charsets such as Latin-2, Greek, Hebrew,
8341 etc. and the same characters in the `mule-unicode-*' charsets are
8342 different characters, as far as Emacs is concerned.  For example, text
8343 which includes Unicode characters from the Latin-2 locale cannot be
8344 encoded by Emacs with ISO 8859-2 coding system.
8346 ** The new coding system `mule-utf-8' has been added.
8347 It provides limited support for decoding/encoding UTF-8 text.  For
8348 details, please see the documentation string of this coding system.
8350 ** The new character sets `japanese-jisx0213-1' and
8351 `japanese-jisx0213-2' have been introduced for the new Japanese
8352 standard JIS X 0213 Plane 1 and Plane 2.
8354 ** The new character sets `latin-iso8859-14' and `latin-iso8859-15'
8355 have been introduced.
8357 ** The new character sets `eight-bit-control' and `eight-bit-graphic'
8358 have been introduced for 8-bit characters in the ranges 0x80..0x9F and
8359 0xA0..0xFF respectively.  Note that the multibyte representation of
8360 eight-bit-control is never exposed; this leads to an exception in the
8361 emacs-mule coding system, which encodes everything else to the
8362 buffer/string internal representation.  Note that to search for
8363 eight-bit-graphic characters in a multibyte buffer, the search string
8364 must be multibyte, otherwise such characters will be converted to
8365 their multibyte equivalent.
8367 ** If the APPEND argument of `write-region' is an integer, it seeks to
8368 that offset in the file before writing.
8370 ** The function `add-minor-mode' has been added for convenience and
8371 compatibility with XEmacs (and is used internally by define-minor-mode).
8373 ** The function `shell-command' now sets the default directory of the
8374 `*Shell Command Output*' buffer to the default directory of the buffer
8375 from which the command was issued.
8377 ** The functions `query-replace', `query-replace-regexp',
8378 `query-replace-regexp-eval' `map-query-replace-regexp',
8379 `replace-string', `replace-regexp', and `perform-replace' take two
8380 additional optional arguments START and END that specify the region to
8381 operate on.
8383 ** The new function `count-screen-lines' is a more flexible alternative
8384 to `window-buffer-height'.
8386 - Function: count-screen-lines &optional BEG END COUNT-FINAL-NEWLINE WINDOW
8388 Return the number of screen lines in the region between BEG and END.
8389 The number of screen lines may be different from the number of actual
8390 lines, due to line breaking, display table, etc.
8392 Optional arguments BEG and END default to `point-min' and `point-max'
8393 respectively.
8395 If region ends with a newline, ignore it unless optional third argument
8396 COUNT-FINAL-NEWLINE is non-nil.
8398 The optional fourth argument WINDOW specifies the window used for
8399 obtaining parameters such as width, horizontal scrolling, and so
8400 on. The default is to use the selected window's parameters.
8402 Like `vertical-motion', `count-screen-lines' always uses the current
8403 buffer, regardless of which buffer is displayed in WINDOW. This makes
8404 possible to use `count-screen-lines' in any buffer, whether or not it
8405 is currently displayed in some window.
8407 ** The new function `mapc' is like `mapcar' but doesn't collect the
8408 argument function's results.
8410 ** The functions base64-decode-region and base64-decode-string now
8411 signal an error instead of returning nil if decoding fails.  Also,
8412 `base64-decode-string' now always returns a unibyte string (in Emacs
8413 20, it returned a multibyte string when the result was a valid multibyte
8414 sequence).
8416 ** The function sendmail-user-agent-compose now recognizes a `body'
8417 header in the list of headers passed to it.
8419 ** The new function member-ignore-case works like `member', but
8420 ignores differences in case and text representation.
8422 ** The buffer-local variable cursor-type can be used to specify the
8423 cursor to use in windows displaying a buffer.  Values are interpreted
8424 as follows:
8426   t             use the cursor specified for the frame (default)
8427   nil           don't display a cursor
8428   `bar'         display a bar cursor with default width
8429   (bar . WIDTH) display a bar cursor with width WIDTH
8430   others        display a box cursor.
8432 ** The variable open-paren-in-column-0-is-defun-start controls whether
8433 an open parenthesis in column 0 is considered to be the start of a
8434 defun.  If set, the default, it is considered a defun start.  If not
8435 set, an open parenthesis in column 0 has no special meaning.
8437 ** The new function `string-to-syntax' can be used to translate syntax
8438 specifications in string form as accepted by `modify-syntax-entry' to
8439 the cons-cell form that is used for the values of the `syntax-table'
8440 text property, and in `font-lock-syntactic-keywords'.
8442 Example:
8444   (string-to-syntax "()")
8445     => (4 . 41)
8447 ** Emacs' reader supports CL read syntax for integers in bases
8448 other than 10.
8450 *** `#BINTEGER' or `#bINTEGER' reads INTEGER in binary (radix 2).
8451 INTEGER optionally contains a sign.
8453   #b1111
8454     => 15
8455   #b-1111
8456     => -15
8458 *** `#OINTEGER' or `#oINTEGER' reads INTEGER in octal (radix 8).
8460   #o666
8461     => 438
8463 *** `#XINTEGER' or `#xINTEGER' reads INTEGER in hexadecimal (radix 16).
8465   #xbeef
8466     => 48815
8468 *** `#RADIXrINTEGER' reads INTEGER in radix RADIX, 2 <= RADIX <= 36.
8470   #2R-111
8471     => -7
8472   #25rah
8473     => 267
8475 ** The function `documentation-property' now evaluates the value of
8476 the given property to obtain a string if it doesn't refer to etc/DOC
8477 and isn't a string.
8479 ** If called for a symbol, the function `documentation' now looks for
8480 a `function-documentation' property of that symbol.  If it has a non-nil
8481 value, the documentation is taken from that value.  If the value is
8482 not a string, it is evaluated to obtain a string.
8484 ** The last argument of `define-key-after' defaults to t for convenience.
8486 ** The new function `replace-regexp-in-string' replaces all matches
8487 for a regexp in a string.
8489 ** `mouse-position' now runs the abnormal hook
8490 `mouse-position-function'.
8492 ** The function string-to-number now returns a float for numbers
8493 that don't fit into a Lisp integer.
8495 ** The variable keyword-symbols-constants-flag has been removed.
8496 Keywords are now always considered constants.
8498 ** The new function `delete-and-extract-region' deletes text and
8499 returns it.
8501 ** The function `clear-this-command-keys' now also clears the vector
8502 returned by function `recent-keys'.
8504 ** Variables `beginning-of-defun-function' and `end-of-defun-function'
8505 can be used to define handlers for the functions that find defuns.
8506 Major modes can define these locally instead of rebinding C-M-a
8507 etc. if the normal conventions for defuns are not appropriate for the
8508 mode.
8510 ** easy-mmode-define-minor-mode now takes an additional BODY argument
8511 and is renamed `define-minor-mode'.
8513 ** If an abbrev has a hook function which is a symbol, and that symbol
8514 has a non-nil `no-self-insert' property, the return value of the hook
8515 function specifies whether an expansion has been done or not.  If it
8516 returns nil, abbrev-expand also returns nil, meaning "no expansion has
8517 been performed."
8519 When abbrev expansion is done by typing a self-inserting character,
8520 and the abbrev has a hook with the `no-self-insert' property, and the
8521 hook function returns non-nil meaning expansion has been done,
8522 then the self-inserting character is not inserted.
8524 ** The function `intern-soft' now accepts a symbol as first argument.
8525 In this case, that exact symbol is looked up in the specified obarray,
8526 and the function's value is nil if it is not found.
8528 ** The new macro `with-syntax-table' can be used to evaluate forms
8529 with the syntax table of the current buffer temporarily set to a
8530 specified table.
8532   (with-syntax-table TABLE &rest BODY)
8534 Evaluate BODY with syntax table of current buffer set to a copy of
8535 TABLE.  The current syntax table is saved, BODY is evaluated, and the
8536 saved table is restored, even in case of an abnormal exit.  Value is
8537 what BODY returns.
8539 ** Regular expressions now support intervals \{n,m\} as well as
8540 Perl's shy-groups \(?:...\) and non-greedy *? +? and ?? operators.
8541 Also back-references like \2 are now considered as an error if the
8542 corresponding subgroup does not exist (or is not closed yet).
8543 Previously it would have been silently turned into `2' (ignoring the `\').
8545 ** The optional argument BUFFER of function file-local-copy has been
8546 removed since it wasn't used by anything.
8548 ** The file name argument of function `file-locked-p' is now required
8549 instead of being optional.
8551 ** The new built-in error `text-read-only' is signaled when trying to
8552 modify read-only text.
8554 ** New functions and variables for locales.
8556 The new variable `locale-coding-system' specifies how to encode and
8557 decode strings passed to low-level message functions like strerror and
8558 time functions like strftime.  The new variables
8559 `system-messages-locale' and `system-time-locale' give the system
8560 locales to be used when invoking these two types of functions.
8562 The new function `set-locale-environment' sets the language
8563 environment, preferred coding system, and locale coding system from
8564 the system locale as specified by the LC_ALL, LC_CTYPE, and LANG
8565 environment variables.  Normally, it is invoked during startup and need
8566 not be invoked thereafter.  It uses the new variables
8567 `locale-language-names', `locale-charset-language-names', and
8568 `locale-preferred-coding-systems' to make its decisions.
8570 ** syntax tables now understand nested comments.
8571 To declare a comment syntax as allowing nesting, just add an `n'
8572 modifier to either of the characters of the comment end and the comment
8573 start sequences.
8575 ** The function `pixmap-spec-p' has been renamed `bitmap-spec-p'
8576 because `bitmap' is more in line with the usual X terminology.
8578 ** New function `propertize'
8580 The new function `propertize' can be used to conveniently construct
8581 strings with text properties.
8583 - Function: propertize STRING &rest PROPERTIES
8585 Value is a copy of STRING with text properties assigned as specified
8586 by PROPERTIES.  PROPERTIES is a sequence of pairs PROPERTY VALUE, with
8587 PROPERTY being the name of a text property and VALUE being the
8588 specified value of that property.  Example:
8590   (propertize "foo" 'face 'bold 'read-only t)
8592 ** push and pop macros.
8594 Simple versions of the push and pop macros of Common Lisp
8595 are now defined in Emacs Lisp.  These macros allow only symbols
8596 as the place that holds the list to be changed.
8598 (push NEWELT LISTNAME)  add NEWELT to the front of LISTNAME's value.
8599 (pop LISTNAME)          return first elt of LISTNAME, and remove it
8600                         (thus altering the value of LISTNAME).
8602 ** New dolist and dotimes macros.
8604 Simple versions of the dolist and dotimes macros of Common Lisp
8605 are now defined in Emacs Lisp.
8607 (dolist (VAR LIST [RESULT]) BODY...)
8608       Execute body once for each element of LIST,
8609       using the variable VAR to hold the current element.
8610       Then return the value of RESULT, or nil if RESULT is omitted.
8612 (dotimes (VAR COUNT [RESULT]) BODY...)
8613       Execute BODY with VAR bound to successive integers running from 0,
8614       inclusive, to COUNT, exclusive.
8615       Then return the value of RESULT, or nil if RESULT is omitted.
8617 ** Regular expressions now support Posix character classes such as
8618 [:alpha:], [:space:] and so on.  These must be used within a character
8619 class--for instance, [-[:digit:].+] matches digits or a period
8620 or a sign.
8622 [:digit:]  matches 0 through 9
8623 [:cntrl:]  matches ASCII control characters
8624 [:xdigit:]  matches 0 through 9, a through f and A through F.
8625 [:blank:]  matches space and tab only
8626 [:graph:]  matches graphic characters--everything except ASCII control chars,
8627            space, and DEL.
8628 [:print:]  matches printing characters--everything except ASCII control chars
8629            and DEL.
8630 [:alnum:]  matches letters and digits.
8631            (But at present, for multibyte characters,
8632             it matches anything that has word syntax.)
8633 [:alpha:]  matches letters.
8634            (But at present, for multibyte characters,
8635             it matches anything that has word syntax.)
8636 [:ascii:]  matches ASCII (unibyte) characters.
8637 [:nonascii:]  matches non-ASCII (multibyte) characters.
8638 [:lower:]  matches anything lower-case.
8639 [:punct:]  matches punctuation.
8640            (But at present, for multibyte characters,
8641             it matches anything that has non-word syntax.)
8642 [:space:]  matches anything that has whitespace syntax.
8643 [:upper:]  matches anything upper-case.
8644 [:word:]   matches anything that has word syntax.
8646 ** Emacs now has built-in hash tables.
8648 The following functions are defined for hash tables:
8650 - Function: make-hash-table ARGS
8652 The argument list ARGS consists of keyword/argument pairs.  All arguments
8653 are optional.  The following arguments are defined:
8655 :test TEST
8657 TEST must be a symbol specifying how to compare keys.  Default is `eql'.
8658 Predefined are `eq', `eql' and `equal'.  If TEST is not predefined,
8659 it must have been defined with `define-hash-table-test'.
8661 :size SIZE
8663 SIZE must be an integer > 0 giving a hint to the implementation how
8664 many elements will be put in the hash table.  Default size is 65.
8666 :rehash-size REHASH-SIZE
8668 REHASH-SIZE specifies by how much to grow a hash table once it becomes
8669 full.  If REHASH-SIZE is an integer, add that to the hash table's old
8670 size to get the new size.  Otherwise, REHASH-SIZE must be a float >
8671 1.0, and the new size is computed by multiplying REHASH-SIZE with the
8672 old size.  Default rehash size is 1.5.
8674 :rehash-threshold THRESHOLD
8676 THRESHOLD must be a float > 0 and <= 1.0 specifying when to resize the
8677 hash table.  It is resized when the ratio of (number of entries) /
8678 (size of hash table) is >= THRESHOLD.  Default threshold is 0.8.
8680 :weakness WEAK
8682 WEAK must be either nil, one of the symbols `key, `value',
8683 `key-or-value', `key-and-value', or t, meaning the same as
8684 `key-and-value'.  Entries are removed from weak tables during garbage
8685 collection if their key and/or value are not referenced elsewhere
8686 outside of the hash table.  Default are non-weak hash tables.
8688 - Function: makehash &optional TEST
8690 Similar to make-hash-table, but only TEST can be specified.
8692 - Function: hash-table-p TABLE
8694 Returns non-nil if TABLE is a hash table object.
8696 - Function: copy-hash-table TABLE
8698 Returns a copy of TABLE.  Only the table itself is copied, keys and
8699 values are shared.
8701 - Function: hash-table-count TABLE
8703 Returns the number of entries in TABLE.
8705 - Function: hash-table-rehash-size TABLE
8707 Returns the rehash size of TABLE.
8709 - Function: hash-table-rehash-threshold TABLE
8711 Returns the rehash threshold of TABLE.
8713 - Function: hash-table-rehash-size TABLE
8715 Returns the size of TABLE.
8717 - Function: hash-table-test TABLE
8719 Returns the test TABLE uses to compare keys.
8721 - Function: hash-table-weakness TABLE
8723 Returns the weakness specified for TABLE.
8725 - Function: clrhash TABLE
8727 Clear TABLE.
8729 - Function: gethash KEY TABLE &optional DEFAULT
8731 Look up KEY in TABLE and return its associated VALUE or DEFAULT if
8732 not found.
8734 - Function: puthash KEY VALUE TABLE
8736 Associate KEY with VALUE in TABLE.  If KEY is already associated with
8737 another value, replace the old value with VALUE.
8739 - Function: remhash KEY TABLE
8741 Remove KEY from TABLE if it is there.
8743 - Function: maphash FUNCTION TABLE
8745 Call FUNCTION for all elements in TABLE.  FUNCTION must take two
8746 arguments KEY and VALUE.
8748 - Function: sxhash OBJ
8750 Return a hash code for Lisp object OBJ.
8752 - Function: define-hash-table-test NAME TEST-FN HASH-FN
8754 Define a new hash table test named NAME.  If NAME is specified as
8755 a test in `make-hash-table', the table created will use TEST-FN for
8756 comparing keys, and HASH-FN to compute hash codes for keys.  Test
8757 and hash function are stored as symbol property `hash-table-test'
8758 of NAME with a value of (TEST-FN HASH-FN).
8760 TEST-FN must take two arguments and return non-nil if they are the same.
8762 HASH-FN must take one argument and return an integer that is the hash
8763 code of the argument.  The function should use the whole range of
8764 integer values for hash code computation, including negative integers.
8766 Example: The following creates a hash table whose keys are supposed to
8767 be strings that are compared case-insensitively.
8769   (defun case-fold-string= (a b)
8770     (compare-strings a nil nil b nil nil t))
8772   (defun case-fold-string-hash (a)
8773     (sxhash (upcase a)))
8775   (define-hash-table-test 'case-fold 'case-fold-string=
8776                           'case-fold-string-hash))
8778   (make-hash-table :test 'case-fold)
8780 ** The Lisp reader handles circular structure.
8782 It now works to use the #N= and #N# constructs to represent
8783 circular structures.  For example, #1=(a . #1#) represents
8784 a cons cell which is its own cdr.
8786 ** The Lisp printer handles circular structure.
8788 If you bind print-circle to a non-nil value, the Lisp printer outputs
8789 #N= and #N# constructs to represent circular and shared structure.
8791 ** If the second argument to `move-to-column' is anything but nil or
8792 t, that means replace a tab with spaces if necessary to reach the
8793 specified column, but do not add spaces at the end of the line if it
8794 is too short to reach that column.
8796 ** perform-replace has a new feature:  the REPLACEMENTS argument may
8797 now be a cons cell (FUNCTION . DATA).  This means to call FUNCTION
8798 after each match to get the replacement text.  FUNCTION is called with
8799 two arguments: DATA, and the number of replacements already made.
8801 If the FROM-STRING contains any upper-case letters,
8802 perform-replace also turns off `case-fold-search' temporarily
8803 and inserts the replacement text without altering case in it.
8805 ** The function buffer-size now accepts an optional argument
8806 to specify which buffer to return the size of.
8808 ** The calendar motion commands now run the normal hook
8809 calendar-move-hook after moving point.
8811 ** The new variable small-temporary-file-directory specifies a
8812 directory to use for creating temporary files that are likely to be
8813 small.  (Certain Emacs features use this directory.)  If
8814 small-temporary-file-directory is nil, they use
8815 temporary-file-directory instead.
8817 ** The variable `inhibit-modification-hooks', if non-nil, inhibits all
8818 the hooks that track changes in the buffer.  This affects
8819 `before-change-functions' and `after-change-functions', as well as
8820 hooks attached to text properties and overlay properties.
8822 ** assq-delete-all is a new function that deletes all the
8823 elements of an alist which have a car `eq' to a particular value.
8825 ** make-temp-file provides a more reliable way to create a temporary file.
8827 make-temp-file is used like make-temp-name, except that it actually
8828 creates the file before it returns.  This prevents a timing error,
8829 ensuring that no other job can use the same name for a temporary file.
8831 ** New exclusive-open feature in `write-region'
8833 The optional seventh arg is now called MUSTBENEW.  If non-nil, it insists
8834 on a check for an existing file with the same name.  If MUSTBENEW
8835 is `excl', that means to get an error if the file already exists;
8836 never overwrite. If MUSTBENEW is neither nil nor `excl', that means
8837 ask for confirmation before overwriting, but do go ahead and
8838 overwrite the file if the user gives confirmation.
8840 If the MUSTBENEW argument in `write-region' is `excl',
8841 that means to use a special feature in the `open' system call
8842 to get an error if the file exists at that time.
8843 The error reported is `file-already-exists'.
8845 ** Function `format' now handles text properties.
8847 Text properties of the format string are applied to the result string.
8848 If the result string is longer than the format string, text properties
8849 ending at the end of the format string are extended to the end of the
8850 result string.
8852 Text properties from string arguments are applied to the result
8853 string where arguments appear in the result string.
8855 Example:
8857   (let ((s1 "hello, %s")
8858         (s2 "world"))
8859      (put-text-property 0 (length s1) 'face 'bold s1)
8860      (put-text-property 0 (length s2) 'face 'italic s2)
8861      (format s1 s2))
8863 results in a bold-face string with an italic `world' at the end.
8865 ** Messages can now be displayed with text properties.
8867 Text properties are handled as described above for function `format'.
8868 The following example displays a bold-face message with an italic
8869 argument in it.
8871   (let ((msg "hello, %s!")
8872         (arg "world"))
8873      (put-text-property 0 (length msg) 'face 'bold msg)
8874      (put-text-property 0 (length arg) 'face 'italic arg)
8875      (message msg arg))
8877 ** Sound support
8879 Emacs supports playing sound files on GNU/Linux and the free BSDs
8880 (Voxware driver and native BSD driver, aka as Luigi's driver).
8882 Currently supported file formats are RIFF-WAVE (*.wav) and Sun Audio
8883 (*.au).  You must configure Emacs with the option `--with-sound=yes'
8884 to enable sound support.
8886 Sound files can be played by calling (play-sound SOUND).  SOUND is a
8887 list of the form `(sound PROPERTY...)'.  The function is only defined
8888 when sound support is present for the system on which Emacs runs.  The
8889 functions runs `play-sound-functions' with one argument which is the
8890 sound to play, before playing the sound.
8892 The following sound properties are supported:
8894 - `:file FILE'
8896 FILE is a file name.  If FILE isn't an absolute name, it will be
8897 searched relative to `data-directory'.
8899 - `:data DATA'
8901 DATA is a string containing sound data.  Either :file or :data
8902 may be present, but not both.
8904 - `:volume VOLUME'
8906 VOLUME must be an integer in the range 0..100 or a float in the range
8907 0..1.  This property is optional.
8909 - `:device DEVICE'
8911 DEVICE is a string specifying the system device on which to play the
8912 sound.  The default device is system-dependent.
8914 Other properties are ignored.
8916 An alternative interface is called as
8917 (play-sound-file FILE &optional VOLUME DEVICE).
8919 ** `multimedia' is a new Finder keyword and Custom group.
8921 ** keywordp is a new predicate to test efficiently for an object being
8922 a keyword symbol.
8924 ** Changes to garbage collection
8926 *** The function garbage-collect now additionally returns the number
8927 of live and free strings.
8929 *** There is a new variable `strings-consed' holding the number of
8930 strings that have been consed so far.
8933 * Lisp-level Display features added after release 2.6 of the Emacs
8934 Lisp Manual
8936 ** The user-option `resize-mini-windows' controls how Emacs resizes
8937 mini-windows.
8939 ** The function `pos-visible-in-window-p' now has a third optional
8940 argument, PARTIALLY.  If a character is only partially visible, nil is
8941 returned, unless PARTIALLY is non-nil.
8943 ** On window systems, `glyph-table' is no longer used.
8945 ** Help strings in menu items are now used to provide `help-echo' text.
8947 ** The function `image-size' can be used to determine the size of an
8948 image.
8950 - Function: image-size SPEC &optional PIXELS FRAME
8952 Return the size of an image as a pair (WIDTH . HEIGHT).
8954 SPEC is an image specification.  PIXELS non-nil means return sizes
8955 measured in pixels, otherwise return sizes measured in canonical
8956 character units (fractions of the width/height of the frame's default
8957 font).  FRAME is the frame on which the image will be displayed.
8958 FRAME nil or omitted means use the selected frame.
8960 ** The function `image-mask-p' can be used to determine if an image
8961 has a mask bitmap.
8963 - Function: image-mask-p SPEC &optional FRAME
8965 Return t if image SPEC has a mask bitmap.
8966 FRAME is the frame on which the image will be displayed.  FRAME nil
8967 or omitted means use the selected frame.
8969 ** The function `find-image' can be used to find a usable image
8970 satisfying one of a list of specifications.
8972 ** The STRING argument of `put-image' and `insert-image' is now
8973 optional.
8975 ** Image specifications may contain the property `:ascent center' (see
8976 below).
8979 * New Lisp-level Display features in Emacs 21.1
8981 ** The function tty-suppress-bold-inverse-default-colors can be used
8982 to make Emacs avoid displaying text with bold black foreground on TTYs.
8984 Some terminals, notably PC consoles, emulate bold text by displaying
8985 text in brighter colors.  On such a console, a bold black foreground
8986 is displayed in a gray color.  If this turns out to be hard to read on
8987 your monitor---the problem occurred with the mode line on
8988 laptops---you can instruct Emacs to ignore the text's boldness, and to
8989 just display it black instead.
8991 This situation can't be detected automatically.  You will have to put
8992 a line like
8994   (tty-suppress-bold-inverse-default-colors t)
8996 in your `.emacs'.
8998 ** New face implementation.
9000 Emacs faces have been reimplemented from scratch.  They don't use XLFD
9001 font names anymore and face merging now works as expected.
9003 *** New faces.
9005 Each face can specify the following display attributes:
9007    1. Font family or fontset alias name.
9009    2. Relative proportionate width, aka character set width or set
9010    width (swidth), e.g. `semi-compressed'.
9012    3. Font height in 1/10pt
9014    4. Font weight, e.g. `bold'.
9016    5. Font slant, e.g. `italic'.
9018    6. Foreground color.
9020    7. Background color.
9022    8. Whether or not characters should be underlined, and in what color.
9024    9. Whether or not characters should be displayed in inverse video.
9026    10. A background stipple, a bitmap.
9028    11. Whether or not characters should be overlined, and in what color.
9030    12. Whether or not characters should be strike-through, and in what
9031    color.
9033    13. Whether or not a box should be drawn around characters, its
9034    color, the width of the box lines, and 3D appearance.
9036 Faces are frame-local by nature because Emacs allows to define the
9037 same named face (face names are symbols) differently for different
9038 frames.  Each frame has an alist of face definitions for all named
9039 faces.  The value of a named face in such an alist is a Lisp vector
9040 with the symbol `face' in slot 0, and a slot for each of the face
9041 attributes mentioned above.
9043 There is also a global face alist `face-new-frame-defaults'.  Face
9044 definitions from this list are used to initialize faces of newly
9045 created frames.
9047 A face doesn't have to specify all attributes.  Those not specified
9048 have a nil value.  Faces specifying all attributes are called
9049 `fully-specified'.
9051 *** Face merging.
9053 The display style of a given character in the text is determined by
9054 combining several faces.  This process is called `face merging'.  Any
9055 aspect of the display style that isn't specified by overlays or text
9056 properties is taken from the `default' face.  Since it is made sure
9057 that the default face is always fully-specified, face merging always
9058 results in a fully-specified face.
9060 *** Face realization.
9062 After all face attributes for a character have been determined by
9063 merging faces of that character, that face is `realized'.  The
9064 realization process maps face attributes to what is physically
9065 available on the system where Emacs runs.  The result is a `realized
9066 face' in form of an internal structure which is stored in the face
9067 cache of the frame on which it was realized.
9069 Face realization is done in the context of the charset of the
9070 character to display because different fonts and encodings are used
9071 for different charsets.  In other words, for characters of different
9072 charsets, different realized faces are needed to display them.
9074 Except for composite characters, faces are always realized for a
9075 specific character set and contain a specific font, even if the face
9076 being realized specifies a fontset.  The reason is that the result of
9077 the new font selection stage is better than what can be done with
9078 statically defined font name patterns in fontsets.
9080 In unibyte text, Emacs' charsets aren't applicable; function
9081 `char-charset' reports ASCII for all characters, including those >
9082 0x7f.  The X registry and encoding of fonts to use is determined from
9083 the variable `face-default-registry' in this case.  The variable is
9084 initialized at Emacs startup time from the font the user specified for
9085 Emacs.
9087 Currently all unibyte text, i.e. all buffers with
9088 `enable-multibyte-characters' nil are displayed with fonts of the same
9089 registry and encoding `face-default-registry'.  This is consistent
9090 with the fact that languages can also be set globally, only.
9092 **** Clearing face caches.
9094 The Lisp function `clear-face-cache' can be called to clear face caches
9095 on all frames.  If called with a non-nil argument, it will also unload
9096 unused fonts.
9098 *** Font selection.
9100 Font selection tries to find the best available matching font for a
9101 given (charset, face) combination.  This is done slightly differently
9102 for faces specifying a fontset, or a font family name.
9104 If the face specifies a fontset name, that fontset determines a
9105 pattern for fonts of the given charset.  If the face specifies a font
9106 family, a font pattern is constructed.  Charset symbols have a
9107 property `x-charset-registry' for that purpose that maps a charset to
9108 an XLFD registry and encoding in the font pattern constructed.
9110 Available fonts on the system on which Emacs runs are then matched
9111 against the font pattern.  The result of font selection is the best
9112 match for the given face attributes in this font list.
9114 Font selection can be influenced by the user.
9116 The user can specify the relative importance he gives the face
9117 attributes width, height, weight, and slant by setting
9118 face-font-selection-order (faces.el) to a list of face attribute
9119 names.  The default is (:width :height :weight :slant), and means
9120 that font selection first tries to find a good match for the font
9121 width specified by a face, then---within fonts with that width---tries
9122 to find a best match for the specified font height, etc.
9124 Setting `face-font-family-alternatives' allows the user to specify
9125 alternative font families to try if a family specified by a face
9126 doesn't exist.
9128 Setting `face-font-registry-alternatives' allows the user to specify
9129 all alternative font registry names to try for a face specifying a
9130 registry.
9132 Please note that the interpretations of the above two variables are
9133 slightly different.
9135 Setting face-ignored-fonts allows the user to ignore specific fonts.
9138 **** Scalable fonts
9140 Emacs can make use of scalable fonts but doesn't do so by default,
9141 since the use of too many or too big scalable fonts may crash XFree86
9142 servers.
9144 To enable scalable font use, set the variable
9145 `scalable-fonts-allowed'.  A value of nil, the default, means never use
9146 scalable fonts.  A value of t means any scalable font may be used.
9147 Otherwise, the value must be a list of regular expressions.  A
9148 scalable font may then be used if it matches a regular expression from
9149 that list.  Example:
9151   (setq scalable-fonts-allowed '("muleindian-2$"))
9153 allows the use of scalable fonts with registry `muleindian-2'.
9155 *** Functions and variables related to font selection.
9157 - Function: x-family-fonts &optional FAMILY FRAME
9159 Return a list of available fonts of family FAMILY on FRAME.  If FAMILY
9160 is omitted or nil, list all families.  Otherwise, FAMILY must be a
9161 string, possibly containing wildcards `?' and `*'.
9163 If FRAME is omitted or nil, use the selected frame.  Each element of
9164 the result is a vector [FAMILY WIDTH POINT-SIZE WEIGHT SLANT FIXED-P
9165 FULL REGISTRY-AND-ENCODING].  FAMILY is the font family name.
9166 POINT-SIZE is the size of the font in 1/10 pt.  WIDTH, WEIGHT, and
9167 SLANT are symbols describing the width, weight and slant of the font.
9168 These symbols are the same as for face attributes.  FIXED-P is non-nil
9169 if the font is fixed-pitch.  FULL is the full name of the font, and
9170 REGISTRY-AND-ENCODING is a string giving the registry and encoding of
9171 the font.  The result list is sorted according to the current setting
9172 of the face font sort order.
9174 - Function: x-font-family-list
9176 Return a list of available font families on FRAME.  If FRAME is
9177 omitted or nil, use the selected frame.  Value is a list of conses
9178 (FAMILY . FIXED-P) where FAMILY is a font family, and FIXED-P is
9179 non-nil if fonts of that family are fixed-pitch.
9181 - Variable: font-list-limit
9183 Limit for font matching.  If an integer > 0, font matching functions
9184 won't load more than that number of fonts when searching for a
9185 matching font.  The default is currently 100.
9187 *** Setting face attributes.
9189 For the most part, the new face implementation is interface-compatible
9190 with the old one.  Old face attribute related functions are now
9191 implemented in terms of the new functions `set-face-attribute' and
9192 `face-attribute'.
9194 Face attributes are identified by their names which are keyword
9195 symbols.  All attributes can be set to `unspecified'.
9197 The following attributes are recognized:
9199 `:family'
9201 VALUE must be a string specifying the font family, e.g. ``courier'',
9202 or a fontset alias name.  If a font family is specified, wild-cards `*'
9203 and `?' are allowed.
9205 `:width'
9207 VALUE specifies the relative proportionate width of the font to use.
9208 It must be one of the symbols `ultra-condensed', `extra-condensed',
9209 `condensed', `semi-condensed', `normal', `semi-expanded', `expanded',
9210 `extra-expanded', or `ultra-expanded'.
9212 `:height'
9214 VALUE must be either an integer specifying the height of the font to use
9215 in 1/10 pt, a floating point number specifying the amount by which to
9216 scale any underlying face, or a function, which is called with the old
9217 height (from the underlying face), and should return the new height.
9219 `:weight'
9221 VALUE specifies the weight of the font to use.  It must be one of the
9222 symbols `ultra-bold', `extra-bold', `bold', `semi-bold', `normal',
9223 `semi-light', `light', `extra-light', `ultra-light'.
9225 `:slant'
9227 VALUE specifies the slant of the font to use.  It must be one of the
9228 symbols `italic', `oblique', `normal', `reverse-italic', or
9229 `reverse-oblique'.
9231 `:foreground', `:background'
9233 VALUE must be a color name, a string.
9235 `:underline'
9237 VALUE specifies whether characters in FACE should be underlined.  If
9238 VALUE is t, underline with foreground color of the face.  If VALUE is
9239 a string, underline with that color.  If VALUE is nil, explicitly
9240 don't underline.
9242 `:overline'
9244 VALUE specifies whether characters in FACE should be overlined.  If
9245 VALUE is t, overline with foreground color of the face.  If VALUE is a
9246 string, overline with that color.  If VALUE is nil, explicitly don't
9247 overline.
9249 `:strike-through'
9251 VALUE specifies whether characters in FACE should be drawn with a line
9252 striking through them.  If VALUE is t, use the foreground color of the
9253 face.  If VALUE is a string, strike-through with that color.  If VALUE
9254 is nil, explicitly don't strike through.
9256 `:box'
9258 VALUE specifies whether characters in FACE should have a box drawn
9259 around them.  If VALUE is nil, explicitly don't draw boxes.  If
9260 VALUE is t, draw a box with lines of width 1 in the foreground color
9261 of the face.  If VALUE is a string, the string must be a color name,
9262 and the box is drawn in that color with a line width of 1.  Otherwise,
9263 VALUE must be a property list of the form `(:line-width WIDTH
9264 :color COLOR :style STYLE)'.  If a keyword/value pair is missing from
9265 the property list, a default value will be used for the value, as
9266 specified below.  WIDTH specifies the width of the lines to draw; it
9267 defaults to 1.  COLOR is the name of the color to draw in, default is
9268 the foreground color of the face for simple boxes, and the background
9269 color of the face for 3D boxes.  STYLE specifies whether a 3D box
9270 should be draw.  If STYLE is `released-button', draw a box looking
9271 like a released 3D button.  If STYLE is `pressed-button' draw a box
9272 that appears like a pressed button.  If STYLE is nil, the default if
9273 the property list doesn't contain a style specification, draw a 2D
9274 box.
9276 `:inverse-video'
9278 VALUE specifies whether characters in FACE should be displayed in
9279 inverse video. VALUE must be one of t or nil.
9281 `:stipple'
9283 If VALUE is a string, it must be the name of a file of pixmap data.
9284 The directories listed in the `x-bitmap-file-path' variable are
9285 searched.  Alternatively, VALUE may be a list of the form (WIDTH
9286 HEIGHT DATA) where WIDTH and HEIGHT are the size in pixels, and DATA
9287 is a string containing the raw bits of the bitmap.  VALUE nil means
9288 explicitly don't use a stipple pattern.
9290 For convenience, attributes `:family', `:width', `:height', `:weight',
9291 and `:slant' may also be set in one step from an X font name:
9293 `:font'
9295 Set font-related face attributes from VALUE.  VALUE must be a valid
9296 XLFD font name.  If it is a font name pattern, the first matching font
9297 is used--this is for compatibility with the behavior of previous
9298 versions of Emacs.
9300 For compatibility with Emacs 20, keywords `:bold' and `:italic' can
9301 be used to specify that a bold or italic font should be used.  VALUE
9302 must be t or nil in that case.  A value of `unspecified' is not allowed."
9304 Please see also the documentation of `set-face-attribute' and
9305 `defface'.
9307 `:inherit'
9309 VALUE is the name of a face from which to inherit attributes, or a list
9310 of face names.  Attributes from inherited faces are merged into the face
9311 like an underlying face would be, with higher priority than underlying faces.
9313 *** Face attributes and X resources
9315 The following X resource names can be used to set face attributes
9316 from X resources:
9318   Face attribute        X resource              class
9319 -----------------------------------------------------------------------
9320   :family               attributeFamily .       Face.AttributeFamily
9321   :width                attributeWidth          Face.AttributeWidth
9322   :height               attributeHeight         Face.AttributeHeight
9323   :weight               attributeWeight         Face.AttributeWeight
9324   :slant                attributeSlant          Face.AttributeSlant
9325    foreground           attributeForeground     Face.AttributeForeground
9326   :background           attributeBackground .   Face.AttributeBackground
9327   :overline             attributeOverline       Face.AttributeOverline
9328   :strike-through       attributeStrikeThrough  Face.AttributeStrikeThrough
9329   :box                  attributeBox            Face.AttributeBox
9330   :underline            attributeUnderline      Face.AttributeUnderline
9331   :inverse-video        attributeInverse        Face.AttributeInverse
9332   :stipple              attributeStipple        Face.AttributeStipple
9333         or              attributeBackgroundPixmap
9334                                                 Face.AttributeBackgroundPixmap
9335   :font                 attributeFont           Face.AttributeFont
9336   :bold                 attributeBold           Face.AttributeBold
9337   :italic               attributeItalic .       Face.AttributeItalic
9338   :font                 attributeFont           Face.AttributeFont
9340 *** Text property `face'.
9342 The value of the `face' text property can now be a single face
9343 specification or a list of such specifications.  Each face
9344 specification can be
9346 1. A symbol or string naming a Lisp face.
9348 2. A property list of the form (KEYWORD VALUE ...) where each
9349    KEYWORD is a face attribute name, and VALUE is an appropriate value
9350    for that attribute.  Please see the doc string of `set-face-attribute'
9351    for face attribute names.
9353 3. Conses of the form (FOREGROUND-COLOR . COLOR) or
9354    (BACKGROUND-COLOR . COLOR) where COLOR is a color name.  This is
9355    for compatibility with previous Emacs versions.
9357 ** Support functions for colors on text-only terminals.
9359 The function `tty-color-define' can be used to define colors for use
9360 on TTY and MSDOS frames.  It maps a color name to a color number on
9361 the terminal.  Emacs defines a couple of common color mappings by
9362 default.  You can get defined colors with a call to
9363 `defined-colors'.  The function `tty-color-clear' can be
9364 used to clear the mapping table.
9366 ** Unified support for colors independent of frame type.
9368 The new functions `defined-colors', `color-defined-p', `color-values',
9369 and `display-color-p' work for any type of frame.  On frames whose
9370 type is neither x nor w32, these functions transparently map X-style
9371 color specifications to the closest colors supported by the frame
9372 display.  Lisp programs should use these new functions instead of the
9373 old `x-defined-colors', `x-color-defined-p', `x-color-values', and
9374 `x-display-color-p'.  (The old function names are still available for
9375 compatibility; they are now aliases of the new names.)  Lisp programs
9376 should no more look at the value of the variable window-system to
9377 modify their color-related behavior.
9379 The primitives `color-gray-p' and `color-supported-p' also work for
9380 any frame type.
9382 ** Platform-independent functions to describe display capabilities.
9384 The new functions `display-mouse-p', `display-popup-menus-p',
9385 `display-graphic-p', `display-selections-p', `display-screens',
9386 `display-pixel-width', `display-pixel-height', `display-mm-width',
9387 `display-mm-height', `display-backing-store', `display-save-under',
9388 `display-planes', `display-color-cells', `display-visual-class', and
9389 `display-grayscale-p' describe the basic capabilities of a particular
9390 display.  Lisp programs should call these functions instead of testing
9391 the value of the variables `window-system' or `system-type', or calling
9392 platform-specific functions such as `x-display-pixel-width'.
9394 The new function `display-images-p' returns non-nil if a particular
9395 display can display image files.
9397 ** The minibuffer prompt is now actually inserted in the minibuffer.
9399 This makes it possible to scroll through the prompt, if you want to.
9400 To disallow this completely (like previous versions of emacs), customize
9401 the variable `minibuffer-prompt-properties', and turn on the
9402 `Inviolable' option.
9404 The function `minibuffer-prompt-end' returns the current position of the
9405 end of the minibuffer prompt, if the minibuffer is current.
9406 Otherwise, it returns `(point-min)'.
9408 ** New `field' abstraction in buffers.
9410 There is now code to support an abstraction called `fields' in emacs
9411 buffers.  A field is a contiguous region of text with the same `field'
9412 property (which can be a text property or an overlay).
9414 Many emacs functions, such as forward-word, forward-sentence,
9415 forward-paragraph, beginning-of-line, etc., stop moving when they come
9416 to the boundary between fields; beginning-of-line and end-of-line will
9417 not let the point move past the field boundary, but other movement
9418 commands continue into the next field if repeated.  Stopping at field
9419 boundaries can be suppressed programmatically by binding
9420 `inhibit-field-text-motion' to a non-nil value around calls to these
9421 functions.
9423 Now that the minibuffer prompt is inserted into the minibuffer, it is in
9424 a separate field from the user-input part of the buffer, so that common
9425 editing commands treat the user's text separately from the prompt.
9427 The following functions are defined for operating on fields:
9429 - Function: constrain-to-field NEW-POS OLD-POS &optional ESCAPE-FROM-EDGE ONLY-IN-LINE INHIBIT-CAPTURE-PROPERTY
9431 Return the position closest to NEW-POS that is in the same field as OLD-POS.
9433 A field is a region of text with the same `field' property.
9434 If NEW-POS is nil, then the current point is used instead, and set to the
9435 constrained position if that is different.
9437 If OLD-POS is at the boundary of two fields, then the allowable
9438 positions for NEW-POS depends on the value of the optional argument
9439 ESCAPE-FROM-EDGE: If ESCAPE-FROM-EDGE is nil, then NEW-POS is
9440 constrained to the field that has the same `field' char-property
9441 as any new characters inserted at OLD-POS, whereas if ESCAPE-FROM-EDGE
9442 is non-nil, NEW-POS is constrained to the union of the two adjacent
9443 fields.  Additionally, if two fields are separated by another field with
9444 the special value `boundary', then any point within this special field is
9445 also considered to be `on the boundary'.
9447 If the optional argument ONLY-IN-LINE is non-nil and constraining
9448 NEW-POS would move it to a different line, NEW-POS is returned
9449 unconstrained.  This useful for commands that move by line, like
9450 C-n or C-a, which should generally respect field boundaries
9451 only in the case where they can still move to the right line.
9453 If the optional argument INHIBIT-CAPTURE-PROPERTY is non-nil, and OLD-POS has
9454 a non-nil property of that name, then any field boundaries are ignored.
9456 Field boundaries are not noticed if `inhibit-field-text-motion' is non-nil.
9458 - Function: delete-field &optional POS
9460 Delete the field surrounding POS.
9461 A field is a region of text with the same `field' property.
9462 If POS is nil, the value of point is used for POS.
9464 - Function: field-beginning &optional POS ESCAPE-FROM-EDGE
9466 Return the beginning of the field surrounding POS.
9467 A field is a region of text with the same `field' property.
9468 If POS is nil, the value of point is used for POS.
9469 If ESCAPE-FROM-EDGE is non-nil and POS is at the beginning of its
9470 field, then the beginning of the *previous* field is returned.
9472 - Function: field-end &optional POS ESCAPE-FROM-EDGE
9474 Return the end of the field surrounding POS.
9475 A field is a region of text with the same `field' property.
9476 If POS is nil, the value of point is used for POS.
9477 If ESCAPE-FROM-EDGE is non-nil and POS is at the end of its field,
9478 then the end of the *following* field is returned.
9480 - Function: field-string &optional POS
9482 Return the contents of the field surrounding POS as a string.
9483 A field is a region of text with the same `field' property.
9484 If POS is nil, the value of point is used for POS.
9486 - Function: field-string-no-properties &optional POS
9488 Return the contents of the field around POS, without text-properties.
9489 A field is a region of text with the same `field' property.
9490 If POS is nil, the value of point is used for POS.
9492 ** Image support.
9494 Emacs can now display images.  Images are inserted into text by giving
9495 strings or buffer text a `display' text property containing one of
9496 (AREA IMAGE) or IMAGE.  The display of the `display' property value
9497 replaces the display of the characters having that property.
9499 If the property value has the form (AREA IMAGE), AREA must be one of
9500 `(margin left-margin)', `(margin right-margin)' or `(margin nil)'.  If
9501 AREA is `(margin nil)', IMAGE will be displayed in the text area of a
9502 window, otherwise it will be displayed in the left or right marginal
9503 area.
9505 IMAGE is an image specification.
9507 *** Image specifications
9509 Image specifications are lists of the form `(image PROPS)' where PROPS
9510 is a property list whose keys are keyword symbols.  Each
9511 specifications must contain a property `:type TYPE' with TYPE being a
9512 symbol specifying the image type, e.g. `xbm'.  Properties not
9513 described below are ignored.
9515 The following is a list of properties all image types share.
9517 `:ascent ASCENT'
9519 ASCENT must be a number in the range 0..100, or the symbol `center'.
9520 If it is a number, it specifies the percentage of the image's height
9521 to use for its ascent.
9523 If not specified, ASCENT defaults to the value 50 which means that the
9524 image will be centered with the base line of the row it appears in.
9526 If ASCENT is `center' the image is vertically centered around a
9527 centerline which is the vertical center of text drawn at the position
9528 of the image, in the manner specified by the text properties and
9529 overlays that apply to the image.
9531 `:margin MARGIN'
9533 MARGIN must be either a number >= 0 specifying how many pixels to put
9534 as margin around the image, or a pair (X . Y) with X specifying the
9535 horizontal margin and Y specifying the vertical margin.  Default is 0.
9537 `:relief RELIEF'
9539 RELIEF is analogous to the `:relief' attribute of faces.  Puts a relief
9540 around an image.
9542 `:conversion ALGO'
9544 Apply an image algorithm to the image before displaying it.
9546 ALGO `laplace' or `emboss' means apply a Laplace or ``emboss''
9547 edge-detection algorithm to the image.
9549 ALGO `(edge-detection :matrix MATRIX :color-adjust ADJUST)' means
9550 apply a general edge-detection algorithm.  MATRIX must be either a
9551 nine-element list or a nine-element vector of numbers.  A pixel at
9552 position x/y in the transformed image is computed from original pixels
9553 around that position.  MATRIX specifies, for each pixel in the
9554 neighborhood of x/y, a factor with which that pixel will influence the
9555 transformed pixel; element 0 specifies the factor for the pixel at
9556 x-1/y-1, element 1 the factor for the pixel at x/y-1 etc. as shown
9557 below.
9559   (x-1/y-1  x/y-1  x+1/y-1
9560    x-1/y    x/y    x+1/y
9561    x-1/y+1  x/y+1  x+1/y+1)
9563 The resulting pixel is computed from the color intensity of the color
9564 resulting from summing up the RGB values of surrounding pixels,
9565 multiplied by the specified factors, and dividing that sum by the sum
9566 of the factors' absolute values.
9568 Laplace edge-detection currently uses a matrix of
9570   (1  0  0
9571    0  0  0
9572    9  9 -1)
9574 Emboss edge-detection uses a matrix of
9576   ( 2 -1  0
9577    -1  0  1
9578     0  1 -2)
9580 ALGO `disabled' means transform the image so that it looks
9581 ``disabled''.
9583 `:mask MASK'
9585 If MASK is `heuristic' or `(heuristic BG)', build a clipping mask for
9586 the image, so that the background of a frame is visible behind the
9587 image.  If BG is not specified, or if BG is t, determine the
9588 background color of the image by looking at the 4 corners of the
9589 image, assuming the most frequently occurring color from the corners is
9590 the background color of the image.  Otherwise, BG must be a list `(RED
9591 GREEN BLUE)' specifying the color to assume for the background of the
9592 image.
9594 If MASK is nil, remove a mask from the image, if it has one.  Images
9595 in some formats include a mask which can be removed by specifying
9596 `:mask nil'.
9598 `:file FILE'
9600 Load image from FILE.  If FILE is not absolute after expanding it,
9601 search for the image in `data-directory'.  Some image types support
9602 building images from data.  When this is done, no `:file' property
9603 may be present in the image specification.
9605 `:data DATA'
9607 Get image data from DATA.  (As of this writing, this is not yet
9608 supported for image type `postscript').  Either :file or :data may be
9609 present in an image specification, but not both.  All image types
9610 support strings as DATA, some types allow additional types of DATA.
9612 *** Supported image types
9614 **** XBM, image type `xbm'.
9616 XBM images don't require an external library.  Additional image
9617 properties supported are:
9619 `:foreground FG'
9621 FG must be a string specifying the image foreground color, or nil
9622 meaning to use the default.  Default is the frame's foreground color.
9624 `:background BG'
9626 BG must be a string specifying the image background color, or nil
9627 meaning to use the default.  Default is the frame's background color.
9629 XBM images can be constructed from data instead of file.  In this
9630 case, the image specification must contain the following properties
9631 instead of a `:file' property.
9633 `:width WIDTH'
9635 WIDTH specifies the width of the image in pixels.
9637 `:height HEIGHT'
9639 HEIGHT specifies the height of the image in pixels.
9641 `:data DATA'
9643 DATA must be either
9645    1. a string large enough to hold the bitmap data, i.e. it must
9646    have a size >= (WIDTH + 7) / 8 * HEIGHT
9648    2. a bool-vector of size >= WIDTH * HEIGHT
9650    3. a vector of strings or bool-vectors, one for each line of the
9651    bitmap.
9653    4. a string that's an in-memory XBM file.  Neither width nor
9654    height may be specified in this case because these are defined
9655    in the file.
9657 **** XPM, image type `xpm'
9659 XPM images require the external library `libXpm', package
9660 `xpm-3.4k.tar.gz', version 3.4k or later.  Make sure the library is
9661 found when Emacs is configured by supplying appropriate paths via
9662 `--x-includes' and `--x-libraries'.
9664 Additional image properties supported are:
9666 `:color-symbols SYMBOLS'
9668 SYMBOLS must be a list of pairs (NAME . COLOR), with NAME being the
9669 name of color as it appears in an XPM file, and COLOR being an X color
9670 name.
9672 XPM images can be built from memory instead of files.  In that case,
9673 add a `:data' property instead of a `:file' property.
9675 The XPM library uses libz in its implementation so that it is able
9676 to display compressed images.
9678 **** PBM, image type `pbm'
9680 PBM images don't require an external library.  Color, gray-scale and
9681 mono images are supported.  Additional image properties supported for
9682 mono images are:
9684 `:foreground FG'
9686 FG must be a string specifying the image foreground color, or nil
9687 meaning to use the default.  Default is the frame's foreground color.
9689 `:background FG'
9691 BG must be a string specifying the image background color, or nil
9692 meaning to use the default.  Default is the frame's background color.
9694 **** JPEG, image type `jpeg'
9696 Support for JPEG images requires the external library `libjpeg',
9697 package `jpegsrc.v6a.tar.gz', or later.  There are no additional image
9698 properties defined.
9700 **** TIFF, image type `tiff'
9702 Support for TIFF images requires the external library `libtiff',
9703 package `tiff-v3.4-tar.gz', or later.  There are no additional image
9704 properties defined.
9706 **** GIF, image type `gif'
9708 Support for GIF images requires the external library `libungif', package
9709 `libungif-4.1.0', or later.
9711 Additional image properties supported are:
9713 `:index INDEX'
9715 INDEX must be an integer >= 0.  Load image number INDEX from a
9716 multi-image GIF file.  If INDEX is too large, the image displays
9717 as a hollow box.
9719 This could be used to implement limited support for animated GIFs.
9720 For example, the following function displays a multi-image GIF file
9721 at point-min in the current buffer, switching between sub-images
9722 every 0.1 seconds.
9724 (defun show-anim (file max)
9725   "Display multi-image GIF file FILE which contains MAX subimages."
9726   (display-anim (current-buffer) file 0 max t))
9728 (defun display-anim (buffer file idx max first-time)
9729   (when (= idx max)
9730     (setq idx 0))
9731   (let ((img (create-image file nil nil :index idx)))
9732     (save-excursion
9733       (set-buffer buffer)
9734       (goto-char (point-min))
9735       (unless first-time (delete-char 1))
9736       (insert-image img "x"))
9737     (run-with-timer 0.1 nil 'display-anim buffer file (1+ idx) max nil)))
9739 **** PNG, image type `png'
9741 Support for PNG images requires the external library `libpng',
9742 package `libpng-1.0.2.tar.gz', or later.  There are no additional image
9743 properties defined.
9745 **** Ghostscript, image type `postscript'.
9747 Additional image properties supported are:
9749 `:pt-width WIDTH'
9751 WIDTH is width of the image in pt (1/72 inch).  WIDTH must be an
9752 integer.  This is a required property.
9754 `:pt-height HEIGHT'
9756 HEIGHT specifies the height of the image in pt (1/72 inch).  HEIGHT
9757 must be a integer.  This is an required property.
9759 `:bounding-box BOX'
9761 BOX must be a list or vector of 4 integers giving the bounding box of
9762 the PS image, analogous to the `BoundingBox' comment found in PS
9763 files.  This is an required property.
9765 Part of the Ghostscript interface is implemented in Lisp.  See
9766 lisp/gs.el.
9768 *** Lisp interface.
9770 The variable `image-types' contains a list of those image types
9771 which are supported in the current configuration.
9773 Images are stored in an image cache and removed from the cache when
9774 they haven't been displayed for `image-cache-eviction-delay seconds.
9775 The function `clear-image-cache' can be used to clear the image cache
9776 manually.  Images in the cache are compared with `equal', i.e. all
9777 images with `equal' specifications share the same image.
9779 *** Simplified image API, image.el
9781 The new Lisp package image.el contains functions that simplify image
9782 creation and putting images into text.  The function `create-image'
9783 can be used to create images.  The macro `defimage' can be used to
9784 define an image based on available image types.  The functions
9785 `put-image' and `insert-image' can be used to insert an image into a
9786 buffer.
9788 ** Display margins.
9790 Windows can now have margins which are used for special text
9791 and images.
9793 To give a window margins, either set the buffer-local variables
9794 `left-margin-width' and `right-margin-width', or call
9795 `set-window-margins'.  The function `window-margins' can be used to
9796 obtain the current settings.  To make `left-margin-width' and
9797 `right-margin-width' take effect, you must set them before displaying
9798 the buffer in a window, or use `set-window-buffer' to force an update
9799 of the display margins.
9801 You can put text in margins by giving it a `display' text property
9802 containing a pair of the form `(LOCATION . VALUE)', where LOCATION is
9803 one of `left-margin' or `right-margin' or nil.  VALUE can be either a
9804 string, an image specification or a stretch specification (see later
9805 in this file).
9807 ** Help display
9809 Emacs displays short help messages in the echo area, when the mouse
9810 moves over a tool-bar item or a piece of text that has a text property
9811 `help-echo'.  This feature also applies to strings in the mode line
9812 that have a `help-echo' property.
9814 If the value of the `help-echo' property is a function, that function
9815 is called with three arguments WINDOW, OBJECT and POSITION.  WINDOW is
9816 the window in which the help was found.
9818 If OBJECT is a buffer, POS is the position in the buffer where the
9819 `help-echo' text property was found.
9821 If OBJECT is an overlay, that overlay has a `help-echo' property, and
9822 POS is the position in the overlay's buffer under the mouse.
9824 If OBJECT is a string (an overlay string or a string displayed with
9825 the `display' property), POS is the position in that string under the
9826 mouse.
9828 If the value of the `help-echo' property is neither a function nor a
9829 string, it is evaluated to obtain a help string.
9831 For tool-bar and menu-bar items, their key definition is used to
9832 determine the help to display.  If their definition contains a
9833 property `:help FORM', FORM is evaluated to determine the help string.
9834 For tool-bar items without a help form, the caption of the item is
9835 used as help string.
9837 The hook `show-help-function' can be set to a function that displays
9838 the help string differently.  For example, enabling a tooltip window
9839 causes the help display to appear there instead of in the echo area.
9841 ** Vertical fractional scrolling.
9843 The display of text in windows can be scrolled smoothly in pixels.
9844 This is useful, for example, for making parts of large images visible.
9846 The function `window-vscroll' returns the current value of vertical
9847 scrolling, a non-negative fraction of the canonical character height.
9848 The function `set-window-vscroll' can be used to set the vertical
9849 scrolling value.  Here is an example of how these function might be
9850 used.
9852   (global-set-key [A-down]
9853     #'(lambda ()
9854         (interactive)
9855         (set-window-vscroll (selected-window)
9856                             (+ 0.5 (window-vscroll)))))
9857   (global-set-key [A-up]
9858     #'(lambda ()
9859         (interactive)
9860         (set-window-vscroll (selected-window)
9861                             (- (window-vscroll) 0.5)))))
9863 ** New hook `fontification-functions'.
9865 Functions from `fontification-functions' are called from redisplay
9866 when it encounters a region of text that is not yet fontified.  This
9867 variable automatically becomes buffer-local when set.  Each function
9868 is called with one argument, POS.
9870 At least one of the hook functions should fontify one or more
9871 characters starting at POS in the current buffer.  It should mark them
9872 as fontified by giving them a non-nil value of the `fontified' text
9873 property.  It may be reasonable for these functions to check for the
9874 `fontified' property and not put it back on, but they do not have to.
9876 ** Tool bar support.
9878 Emacs supports a tool bar at the top of a frame under X.  The frame
9879 parameter `tool-bar-lines' (X resource "toolBar", class "ToolBar")
9880 controls how may lines to reserve for the tool bar.  A zero value
9881 suppresses the tool bar.  If the value is non-zero and
9882 `auto-resize-tool-bars' is non-nil the tool bar's size will be changed
9883 automatically so that all tool bar items are visible.
9885 *** Tool bar item definitions
9887 Tool bar items are defined using `define-key' with a prefix-key
9888 `tool-bar'.  For example `(define-key global-map [tool-bar item1] ITEM)'
9889 where ITEM is a list `(menu-item CAPTION BINDING PROPS...)'.
9891 CAPTION is the caption of the item, If it's not a string, it is
9892 evaluated to get a string.  The caption is currently not displayed in
9893 the tool bar, but it is displayed if the item doesn't have a `:help'
9894 property (see below).
9896 BINDING is the tool bar item's binding.  Tool bar items with keymaps as
9897 binding are currently ignored.
9899 The following properties are recognized:
9901 `:enable FORM'.
9903 FORM is evaluated and specifies whether the tool bar item is enabled
9904 or disabled.
9906 `:visible FORM'
9908 FORM is evaluated and specifies whether the tool bar item is displayed.
9910 `:filter FUNCTION'
9912 FUNCTION is called with one parameter, the same list BINDING in which
9913 FUNCTION is specified as the filter.  The value FUNCTION returns is
9914 used instead of BINDING to display this item.
9916 `:button (TYPE SELECTED)'
9918 TYPE must be one of `:radio' or `:toggle'.  SELECTED is evaluated
9919 and specifies whether the button is selected (pressed) or not.
9921 `:image IMAGES'
9923 IMAGES is either a single image specification or a vector of four
9924 image specifications.  If it is a vector, this table lists the
9925 meaning of each of the four elements:
9927    Index        Use when item is
9928    ----------------------------------------
9929      0          enabled and selected
9930      1          enabled and deselected
9931      2          disabled and selected
9932      3          disabled and deselected
9934 If IMAGE is a single image specification, a Laplace edge-detection
9935 algorithm is used on that image to draw the image in disabled state.
9937 `:help HELP-STRING'.
9939 Gives a help string to display for the tool bar item.  This help
9940 is displayed when the mouse is moved over the item.
9942 The function `toolbar-add-item' is a convenience function for adding
9943 toolbar items generally, and `tool-bar-add-item-from-menu' can be used
9944 to define a toolbar item with a binding copied from an item on the
9945 menu bar.
9947 The default bindings use a menu-item :filter to derive the tool-bar
9948 dynamically from variable `tool-bar-map' which may be set
9949 buffer-locally to override the global map.
9951 *** Tool-bar-related variables.
9953 If `auto-resize-tool-bar' is non-nil, the tool bar will automatically
9954 resize to show all defined tool bar items.  It will never grow larger
9955 than 1/4 of the frame's size.
9957 If `auto-raise-tool-bar-buttons' is non-nil, tool bar buttons will be
9958 raised when the mouse moves over them.
9960 You can add extra space between tool bar items by setting
9961 `tool-bar-button-margin' to a positive integer specifying a number of
9962 pixels, or a pair of integers (X . Y) specifying horizontal and
9963 vertical margins .  Default is 1.
9965 You can change the shadow thickness of tool bar buttons by setting
9966 `tool-bar-button-relief' to an integer.  Default is 3.
9968 *** Tool-bar clicks with modifiers.
9970 You can bind commands to clicks with control, shift, meta etc. on
9971 a tool bar item.  If
9973   (define-key global-map [tool-bar shell]
9974     '(menu-item "Shell" shell
9975                 :image (image :type xpm :file "shell.xpm")))
9977 is the original tool bar item definition, then
9979   (define-key global-map [tool-bar S-shell] 'some-command)
9981 makes a binding to run `some-command' for a shifted click on the same
9982 item.
9984 ** Mode line changes.
9986 *** Mouse-sensitive mode line.
9988 The mode line can be made mouse-sensitive by displaying strings there
9989 that have a `local-map' text property.  There are three ways to display
9990 a string with a `local-map' property in the mode line.
9992 1. The mode line spec contains a variable whose string value has
9993 a `local-map' text property.
9995 2. The mode line spec contains a format specifier (e.g. `%12b'), and
9996 that format specifier has a `local-map' property.
9998 3. The mode line spec contains a list containing `:eval FORM'.  FORM
9999 is evaluated.  If the result is a string, and that string has a
10000 `local-map' property.
10002 The same mechanism is used to determine the `face' and `help-echo'
10003 properties of strings in the mode line.  See `bindings.el' for an
10004 example.
10006 *** If a mode line element has the form `(:eval FORM)', FORM is
10007 evaluated and the result is used as mode line element.
10009 *** You can suppress mode-line display by setting the buffer-local
10010 variable mode-line-format to nil.
10012 *** A headerline can now be displayed at the top of a window.
10014 This mode line's contents are controlled by the new variable
10015 `header-line-format' and `default-header-line-format' which are
10016 completely analogous to `mode-line-format' and
10017 `default-mode-line-format'.  A value of nil means don't display a top
10018 line.
10020 The appearance of top mode lines is controlled by the face
10021 `header-line'.
10023 The function `coordinates-in-window-p' returns `header-line' for a
10024 position in the header-line.
10026 ** Text property `display'
10028 The `display' text property is used to insert images into text,
10029 replace text with other text, display text in marginal area, and it is
10030 also used to control other aspects of how text displays.  The value of
10031 the `display' property should be a display specification, as described
10032 below, or a list or vector containing display specifications.
10034 *** Replacing text, displaying text in marginal areas
10036 To replace the text having the `display' property with some other
10037 text, use a display specification of the form `(LOCATION STRING)'.
10039 If LOCATION is `(margin left-margin)', STRING is displayed in the left
10040 marginal area, if it is `(margin right-margin)', it is displayed in
10041 the right marginal area, and if LOCATION is `(margin nil)' STRING
10042 is displayed in the text.  In the latter case you can also use the
10043 simpler form STRING as property value.
10045 *** Variable width and height spaces
10047 To display a space of fractional width or height, use a display
10048 specification of the form `(LOCATION STRECH)'.  If LOCATION is
10049 `(margin left-margin)', the space is displayed in the left marginal
10050 area, if it is `(margin right-margin)', it is displayed in the right
10051 marginal area, and if LOCATION is `(margin nil)' the space is
10052 displayed in the text.  In the latter case you can also use the
10053 simpler form STRETCH as property value.
10055 The stretch specification STRETCH itself is a list of the form `(space
10056 PROPS)', where PROPS is a property list which can contain the
10057 properties described below.
10059 The display of the fractional space replaces the display of the
10060 characters having the `display' property.
10062 - :width WIDTH
10064 Specifies that the space width should be WIDTH times the normal
10065 character width.  WIDTH can be an integer or floating point number.
10067 - :relative-width FACTOR
10069 Specifies that the width of the stretch should be computed from the
10070 first character in a group of consecutive characters that have the
10071 same `display' property.  The computation is done by multiplying the
10072 width of that character by FACTOR.
10074 - :align-to HPOS
10076 Specifies that the space should be wide enough to reach HPOS.  The
10077 value HPOS is measured in units of the normal character width.
10079 Exactly one of the above properties should be used.
10081 - :height HEIGHT
10083 Specifies the height of the space, as HEIGHT, measured in terms of the
10084 normal line height.
10086 - :relative-height FACTOR
10088 The height of the space is computed as the product of the height
10089 of the text having the `display' property and FACTOR.
10091 - :ascent ASCENT
10093 Specifies that ASCENT percent of the height of the stretch should be
10094 used for the ascent of the stretch, i.e. for the part above the
10095 baseline.  The value of ASCENT must be a non-negative number less or
10096 equal to 100.
10098 You should not use both `:height' and `:relative-height' together.
10100 *** Images
10102 A display specification for an image has the form `(LOCATION
10103 . IMAGE)', where IMAGE is an image specification.  The image replaces,
10104 in the display, the characters having this display specification in
10105 their `display' text property.  If LOCATION is `(margin left-margin)',
10106 the image will be displayed in the left marginal area, if it is
10107 `(margin right-margin)' it will be displayed in the right marginal
10108 area, and if LOCATION is `(margin nil)' the image will be displayed in
10109 the text.  In the latter case you can also use the simpler form IMAGE
10110 as display specification.
10112 *** Other display properties
10114 - (space-width FACTOR)
10116 Specifies that space characters in the text having that property
10117 should be displayed FACTOR times as wide as normal; FACTOR must be an
10118 integer or float.
10120 - (height HEIGHT)
10122 Display text having this property in a font that is smaller or larger.
10124 If HEIGHT is a list of the form `(+ N)', where N is an integer, that
10125 means to use a font that is N steps larger.  If HEIGHT is a list of
10126 the form `(- N)', that means to use a font that is N steps smaller.  A
10127 ``step'' is defined by the set of available fonts; each size for which
10128 a font is available counts as a step.
10130 If HEIGHT is a number, that means to use a font that is HEIGHT times
10131 as tall as the frame's default font.
10133 If HEIGHT is a symbol, it is called as a function with the current
10134 height as argument.  The function should return the new height to use.
10136 Otherwise, HEIGHT is evaluated to get the new height, with the symbol
10137 `height' bound to the current specified font height.
10139 - (raise FACTOR)
10141 FACTOR must be a number, specifying a multiple of the current
10142 font's height.  If it is positive, that means to display the characters
10143 raised.  If it is negative, that means to display them lower down.  The
10144 amount of raising or lowering is computed without taking account of the
10145 `height' subproperty.
10147 *** Conditional display properties
10149 All display specifications can be conditionalized.  If a specification
10150 has the form `(when CONDITION . SPEC)', the specification SPEC applies
10151 only when CONDITION yields a non-nil value when evaluated.  During the
10152 evaluation, `object' is bound to the string or buffer having the
10153 conditional display property; `position' and `buffer-position' are
10154 bound to the position within `object' and the buffer position where
10155 the display property was found, respectively.  Both positions can be
10156 different when object is a string.
10158 The normal specification consisting of SPEC only is equivalent to
10159 `(when t . SPEC)'.
10161 ** New menu separator types.
10163 Emacs now supports more than one menu separator type.  Menu items with
10164 item names consisting of dashes only (including zero dashes) are
10165 treated like before.  In addition, the following item names are used
10166 to specify other menu separator types.
10168 - `--no-line' or `--space', or `--:space', or `--:noLine'
10170 No separator lines are drawn, but a small space is inserted where the
10171 separator occurs.
10173 - `--single-line' or `--:singleLine'
10175 A single line in the menu's foreground color.
10177 - `--double-line' or `--:doubleLine'
10179 A double line in the menu's foreground color.
10181 - `--single-dashed-line' or `--:singleDashedLine'
10183 A single dashed line in the menu's foreground color.
10185 - `--double-dashed-line' or `--:doubleDashedLine'
10187 A double dashed line in the menu's foreground color.
10189 - `--shadow-etched-in' or `--:shadowEtchedIn'
10191 A single line with 3D sunken appearance.  This is the form
10192 displayed for item names consisting of dashes only.
10194 - `--shadow-etched-out' or `--:shadowEtchedOut'
10196 A single line with 3D raised appearance.
10198 - `--shadow-etched-in-dash' or `--:shadowEtchedInDash'
10200 A single dashed line with 3D sunken appearance.
10202 - `--shadow-etched-out-dash' or `--:shadowEtchedOutDash'
10204 A single dashed line with 3D raise appearance.
10206 - `--shadow-double-etched-in' or `--:shadowDoubleEtchedIn'
10208 Two lines with 3D sunken appearance.
10210 - `--shadow-double-etched-out' or `--:shadowDoubleEtchedOut'
10212 Two lines with 3D raised appearance.
10214 - `--shadow-double-etched-in-dash' or `--:shadowDoubleEtchedInDash'
10216 Two dashed lines with 3D sunken appearance.
10218 - `--shadow-double-etched-out-dash' or `--:shadowDoubleEtchedOutDash'
10220 Two dashed lines with 3D raised appearance.
10222 Under LessTif/Motif, the last four separator types are displayed like
10223 the corresponding single-line separators.
10225 ** New frame parameters for scroll bar colors.
10227 The new frame parameters `scroll-bar-foreground' and
10228 `scroll-bar-background' can be used to change scroll bar colors.
10229 Their value must be either a color name, a string, or nil to specify
10230 that scroll bars should use a default color.  For toolkit scroll bars,
10231 default colors are toolkit specific.  For non-toolkit scroll bars, the
10232 default background is the background color of the frame, and the
10233 default foreground is black.
10235 The X resource name of these parameters are `scrollBarForeground'
10236 (class ScrollBarForeground) and `scrollBarBackground' (class
10237 `ScrollBarBackground').
10239 Setting these parameters overrides toolkit specific X resource
10240 settings for scroll bar colors.
10242 ** You can set `redisplay-dont-pause' to a non-nil value to prevent
10243 display updates from being interrupted when input is pending.
10245 ** Changing a window's width may now change its window start if it
10246 starts on a continuation line.  The new window start is computed based
10247 on the window's new width, starting from the start of the continued
10248 line as the start of the screen line with the minimum distance from
10249 the original window start.
10251 ** The variable `hscroll-step' and the functions
10252 `hscroll-point-visible' and `hscroll-window-column' have been removed
10253 now that proper horizontal scrolling is implemented.
10255 ** Windows can now be made fixed-width and/or fixed-height.
10257 A window is fixed-size if its buffer has a buffer-local variable
10258 `window-size-fixed' whose value is not nil.  A value of `height' makes
10259 windows fixed-height, a value of `width' makes them fixed-width, any
10260 other non-nil value makes them both fixed-width and fixed-height.
10262 The following code makes all windows displaying the current buffer
10263 fixed-width and fixed-height.
10265   (set (make-local-variable 'window-size-fixed) t)
10267 A call to enlarge-window on a window gives an error if that window is
10268 fixed-width and it is tried to change the window's width, or if the
10269 window is fixed-height, and it is tried to change its height.  To
10270 change the size of a fixed-size window, bind `window-size-fixed'
10271 temporarily to nil, for example
10273   (let ((window-size-fixed nil))
10274      (enlarge-window 10))
10276 Likewise, an attempt to split a fixed-height window vertically,
10277 or a fixed-width window horizontally results in a error.
10279 ** The cursor-type frame parameter is now supported on MS-DOS
10280 terminals.  When Emacs starts, it by default changes the cursor shape
10281 to a solid box, as it does on Unix.  The `cursor-type' frame parameter
10282 overrides this as it does on Unix, except that the bar cursor is
10283 horizontal rather than vertical (since the MS-DOS display doesn't
10284 support a vertical-bar cursor).
10288 * Emacs 20.7 is a bug-fix release with few user-visible changes
10290 ** It is now possible to use CCL-based coding systems for keyboard
10291 input.
10293 ** ange-ftp now handles FTP security extensions, like Kerberos.
10295 ** Rmail has been extended to recognize more forms of digest messages.
10297 ** Now, most coding systems set in keyboard coding system work not
10298 only for character input, but also in incremental search.  The
10299 exceptions are such coding systems that handle 2-byte character sets
10300 (e.g euc-kr, euc-jp) and that use ISO's escape sequence
10301 (e.g. iso-2022-jp).  They are ignored in incremental search.
10303 ** Support for Macintosh PowerPC-based machines running GNU/Linux has
10304 been added.
10307 * Emacs 20.6 is a bug-fix release with one user-visible change
10309 ** Support for ARM-based non-RISCiX machines has been added.
10313 * Emacs 20.5 is a bug-fix release with no user-visible changes.
10315 ** Not new, but not mentioned before:
10316 M-w when Transient Mark mode is enabled disables the mark.
10318 * Changes in Emacs 20.4
10320 ** Init file may be called .emacs.el.
10322 You can now call the Emacs init file `.emacs.el'.
10323 Formerly the name had to be `.emacs'.  If you use the name
10324 `.emacs.el', you can byte-compile the file in the usual way.
10326 If both `.emacs' and `.emacs.el' exist, the latter file
10327 is the one that is used.
10329 ** shell-command, and shell-command-on-region, now return
10330 the exit code of the command (unless it is asynchronous).
10331 Also, you can specify a place to put the error output,
10332 separate from the command's regular output.
10333 Interactively, the variable shell-command-default-error-buffer
10334 says where to put error output; set it to a buffer name.
10335 In calls from Lisp, an optional argument ERROR-BUFFER specifies
10336 the buffer name.
10338 When you specify a non-nil error buffer (or buffer name), any error
10339 output is inserted before point in that buffer, with \f\n to separate
10340 it from the previous batch of error output.  The error buffer is not
10341 cleared, so error output from successive commands accumulates there.
10343 ** Setting the default value of enable-multibyte-characters to nil in
10344 the .emacs file, either explicitly using setq-default, or via Custom,
10345 is now essentially equivalent to using --unibyte: all buffers
10346 created during startup will be made unibyte after loading .emacs.
10348 ** C-x C-f now handles the wildcards * and ? in file names.  For
10349 example, typing C-x C-f c*.c RET visits all the files whose names
10350 match c*.c.  To visit a file whose name contains * or ?, add the
10351 quoting sequence /: to the beginning of the file name.
10353 ** The M-x commands keep-lines, flush-lines and count-matches
10354 now have the same feature as occur and query-replace:
10355 if the pattern contains any upper case letters, then
10356 they never ignore case.
10358 ** The end-of-line format conversion feature previously mentioned
10359 under `* Emacs 20.1 changes for MS-DOS and MS-Windows' actually
10360 applies to all operating systems.  Emacs recognizes from the contents
10361 of a file what convention it uses to separate lines--newline, CRLF, or
10362 just CR--and automatically converts the contents to the normal Emacs
10363 convention (using newline to separate lines) for editing.  This is a
10364 part of the general feature of coding system conversion.
10366 If you subsequently save the buffer, Emacs converts the text back to
10367 the same format that was used in the file before.
10369 You can turn off end-of-line conversion by setting the variable
10370 `inhibit-eol-conversion' to non-nil, e.g. with Custom in the MULE group.
10372 ** The character set property `prefered-coding-system' has been
10373 renamed to `preferred-coding-system', for the sake of correct spelling.
10374 This is a fairly internal feature, so few programs should be affected.
10376 ** Mode-line display of end-of-line format is changed.
10377 The indication of the end-of-line format of the file visited by a
10378 buffer is now more explicit when that format is not the usual one for
10379 your operating system.  For example, the DOS-style end-of-line format
10380 is displayed as "(DOS)" on Unix and GNU/Linux systems.  The usual
10381 end-of-line format is still displayed as a single character (colon for
10382 Unix, backslash for DOS and Windows, and forward slash for the Mac).
10384 The values of the variables eol-mnemonic-unix, eol-mnemonic-dos,
10385 eol-mnemonic-mac, and eol-mnemonic-undecided, which are strings,
10386 control what is displayed in the mode line for each end-of-line
10387 format.  You can now customize these variables.
10389 ** In the previous version of Emacs, tar-mode didn't work well if a
10390 filename contained non-ASCII characters.  Now this is fixed.  Such a
10391 filename is decoded by file-name-coding-system if the default value of
10392 enable-multibyte-characters is non-nil.
10394 ** The command temp-buffer-resize-mode toggles a minor mode
10395 in which temporary buffers (such as help buffers) are given
10396 windows just big enough to hold the whole contents.
10398 ** If you use completion.el, you must now run the function
10399 dynamic-completion-mode to enable it.  Just loading the file
10400 doesn't have any effect.
10402 ** In Flyspell mode, the default is now to make just one Ispell process,
10403 not one per buffer.
10405 ** If you use iswitchb but do not call (iswitchb-default-keybindings) to
10406 use the default keybindings, you will need to add the following line:
10407   (add-hook 'minibuffer-setup-hook 'iswitchb-minibuffer-setup)
10409 ** Auto-show mode is no longer enabled just by loading auto-show.el.
10410 To control it, set `auto-show-mode' via Custom or use the
10411 `auto-show-mode' command.
10413 ** Handling of X fonts' ascent/descent parameters has been changed to
10414 avoid redisplay problems.  As a consequence, compared with previous
10415 versions the line spacing and frame size now differ with some font
10416 choices, typically increasing by a pixel per line.  This change
10417 occurred in version 20.3 but was not documented then.
10419 ** If you select the bar cursor style, it uses the frame's
10420 cursor-color, rather than the cursor foreground pixel.
10422 ** In multibyte mode, Rmail decodes incoming MIME messages using the
10423 character set specified in the message.  If you want to disable this
10424 feature, set the variable rmail-decode-mime-charset to nil.
10426 ** Not new, but not mentioned previously in NEWS: when you use #! at
10427 the beginning of a file to make it executable and specify an
10428 interpreter program, Emacs looks on the second line for the -*- mode
10429 and variable specification, as well as on the first line.
10431 ** Support for IBM codepage encoding of non-ASCII characters.
10433 The new command M-x codepage-setup creates a special coding system
10434 that can be used to convert text between a specific IBM codepage and
10435 one of the character sets built into Emacs which matches that
10436 codepage.  For example, codepage 850 corresponds to Latin-1 character
10437 set, codepage 855 corresponds to Cyrillic-ISO character set, etc.
10439 Windows codepages 1250, 1251 and some others, where Windows deviates
10440 from the corresponding ISO character set, are also supported.
10442 IBM box-drawing characters and other glyphs which don't have
10443 equivalents in the corresponding ISO character set, are converted to
10444 a character defined by dos-unsupported-char-glyph on MS-DOS, and to
10445 `?' on other systems.
10447 IBM codepages are widely used on MS-DOS and MS-Windows, so this
10448 feature is most useful on those platforms, but it can also be used on
10449 Unix.
10451 Emacs compiled for MS-DOS automatically loads the support for the
10452 current codepage when it starts.
10454 ** Mail changes
10456 *** When mail is sent using compose-mail (C-x m), and if
10457 `mail-send-nonascii' is set to the new default value `mime',
10458 appropriate MIME headers are added.  The headers are added only if
10459 non-ASCII characters are present in the body of the mail, and no other
10460 MIME headers are already present.  For example, the following three
10461 headers are added if the coding system used in the *mail* buffer is
10462 latin-1:
10464   MIME-version: 1.0
10465   Content-type: text/plain; charset=iso-8859-1
10466   Content-Transfer-Encoding: 8bit
10468 *** The new variable default-sendmail-coding-system specifies the
10469 default way to encode outgoing mail.  This has higher priority than
10470 default-buffer-file-coding-system but has lower priority than
10471 sendmail-coding-system and the local value of
10472 buffer-file-coding-system.
10474 You should not set this variable manually.  Instead, set
10475 sendmail-coding-system to specify a fixed encoding for all outgoing
10476 mail.
10478 *** When you try to send a message that contains non-ASCII characters,
10479 if the coding system specified by those variables doesn't handle them,
10480 Emacs will ask you to select a suitable coding system while showing a
10481 list of possible coding systems.
10483 ** CC Mode changes
10485 *** c-default-style can now take an association list that maps major
10486 modes to style names.  When this variable is an alist, Java mode no
10487 longer hardcodes a setting to "java" style.  See the variable's
10488 docstring for details.
10490 *** It's now possible to put a list as the offset on a syntactic
10491 symbol.  The list is evaluated recursively until a non-nil offset is
10492 found.  This is useful to combine several lineup functions to act in a
10493 prioritized order on a single line.  However, none of the supplied
10494 lineup functions use this feature currently.
10496 *** New syntactic symbol catch-clause, which is used on the "catch" and
10497 "finally" lines in try-catch constructs in C++ and Java.
10499 *** New cleanup brace-catch-brace on c-cleanup-list, which does for
10500 "catch" lines what brace-elseif-brace does for "else if" lines.
10502 *** The braces of Java anonymous inner classes are treated separately
10503 from the braces of other classes in auto-newline mode.  Two new
10504 symbols inexpr-class-open and inexpr-class-close may be used on
10505 c-hanging-braces-alist to control the automatic newlines used for
10506 anonymous classes.
10508 *** Support for the Pike language added, along with new Pike specific
10509 syntactic symbols: inlambda, lambda-intro-cont
10511 *** Support for Java anonymous classes via new syntactic symbol
10512 inexpr-class.  New syntactic symbol inexpr-statement for Pike
10513 support and gcc-style statements inside expressions.  New lineup
10514 function c-lineup-inexpr-block.
10516 *** New syntactic symbol brace-entry-open which is used in brace lists
10517 (i.e. static initializers) when a list entry starts with an open
10518 brace.  These used to be recognized as brace-list-entry's.
10519 c-electric-brace also recognizes brace-entry-open braces
10520 (brace-list-entry's can no longer be electrified).
10522 *** New command c-indent-line-or-region, not bound by default.
10524 *** `#' is only electric when typed in the indentation of a line.
10526 *** Parentheses are now electric (via the new command c-electric-paren)
10527 for auto-reindenting lines when parens are typed.
10529 *** In "gnu" style, inline-open offset is now set to zero.
10531 *** Uniform handling of the inclass syntactic symbol.  The indentation
10532 associated with it is now always relative to the class opening brace.
10533 This means that the indentation behavior has changed in some
10534 circumstances, but only if you've put anything besides 0 on the
10535 class-open syntactic symbol (none of the default styles do that).
10537 ** Gnus changes.
10539 *** New functionality for using Gnus as an offline newsreader has been
10540 added.  A plethora of new commands and modes have been added.  See the
10541 Gnus manual for the full story.
10543 *** The nndraft backend has returned, but works differently than
10544 before.  All Message buffers are now also articles in the nndraft
10545 group, which is created automatically.
10547 *** `gnus-alter-header-function' can now be used to alter header
10548 values.
10550 *** `gnus-summary-goto-article' now accept Message-ID's.
10552 *** A new Message command for deleting text in the body of a message
10553 outside the region: `C-c C-v'.
10555 *** You can now post to component group in nnvirtual groups with
10556 `C-u C-c C-c'.
10558 *** `nntp-rlogin-program' -- new variable to ease customization.
10560 *** `C-u C-c C-c' in `gnus-article-edit-mode' will now inhibit
10561 re-highlighting of the article buffer.
10563 *** New element in `gnus-boring-article-headers' -- `long-to'.
10565 *** `M-i' symbolic prefix command.  See the section "Symbolic
10566 Prefixes" in the Gnus manual for details.
10568 *** `L' and `I' in the summary buffer now take the symbolic prefix
10569 `a' to add the score rule to the "all.SCORE" file.
10571 *** `gnus-simplify-subject-functions' variable to allow greater
10572 control over simplification.
10574 *** `A T' -- new command for fetching the current thread.
10576 *** `/ T' -- new command for including the current thread in the
10577 limit.
10579 *** `M-RET' is a new Message command for breaking cited text.
10581 *** \\1-expressions are now valid in `nnmail-split-methods'.
10583 *** The `custom-face-lookup' function has been removed.
10584 If you used this function in your initialization files, you must
10585 rewrite them to use `face-spec-set' instead.
10587 *** Canceling now uses the current select method.  Symbolic prefix
10588 `a' forces normal posting method.
10590 *** New command to translate M******** sm*rtq**t*s into proper text
10591 -- `W d'.
10593 *** For easier debugging of nntp, you can set `nntp-record-commands'
10594 to a non-nil value.
10596 *** nntp now uses ~/.authinfo, a .netrc-like file, for controlling
10597 where and how to send AUTHINFO to NNTP servers.
10599 *** A command for editing group parameters from the summary buffer
10600 has been added.
10602 *** A history of where mails have been split is available.
10604 *** A new article date command has been added -- `article-date-iso8601'.
10606 *** Subjects can be simplified when threading by setting
10607 `gnus-score-thread-simplify'.
10609 *** A new function for citing in Message has been added --
10610 `message-cite-original-without-signature'.
10612 *** `article-strip-all-blank-lines' -- new article command.
10614 *** A new Message command to kill to the end of the article has
10615 been added.
10617 *** A minimum adaptive score can be specified by using the
10618 `gnus-adaptive-word-minimum' variable.
10620 *** The "lapsed date" article header can be kept continually
10621 updated by the `gnus-start-date-timer' command.
10623 *** Web listserv archives can be read with the nnlistserv backend.
10625 *** Old dejanews archives can now be read by nnweb.
10627 *** `gnus-posting-styles' has been re-activated.
10629 ** Changes to TeX and LaTeX mode
10631 *** The new variable `tex-start-options-string' can be used to give
10632 options for the TeX run.  The default value causes TeX to run in
10633 nonstopmode.  For an interactive TeX run set it to nil or "".
10635 *** The command `tex-feed-input' sends input to the Tex Shell.  In a
10636 TeX buffer it is bound to the keys C-RET, C-c RET, and C-c C-m (some
10637 of these keys may not work on all systems).  For instance, if you run
10638 TeX interactively and if the TeX run stops because of an error, you
10639 can continue it without leaving the TeX buffer by typing C-RET.
10641 *** The Tex Shell Buffer is now in `compilation-shell-minor-mode'.
10642 All error-parsing commands of the Compilation major mode are available
10643 but bound to keys that don't collide with the shell.  Thus you can use
10644 the Tex Shell for command line executions like a usual shell.
10646 *** The commands `tex-validate-region' and `tex-validate-buffer' check
10647 the matching of braces and $'s.  The errors are listed in a *Occur*
10648 buffer and you can use C-c C-c or mouse-2 to go to a particular
10649 mismatch.
10651 ** Changes to RefTeX mode
10653 *** The table of contents buffer can now also display labels and
10654 file boundaries in addition to sections. Use `l', `i', and `c' keys.
10656 *** Labels derived from context (the section heading) are now
10657 lowercase by default.  To make the label legal in LaTeX, latin-1
10658 characters will lose their accent.  All Mule characters will be
10659 removed from the label.
10661 *** The automatic display of cross reference information can also use
10662 a window instead of the echo area.  See variable `reftex-auto-view-crossref'.
10664 *** kpsewhich can be used by RefTeX to find TeX and BibTeX files.  See the
10665 customization group `reftex-finding-files'.
10667 *** The option `reftex-bibfile-ignore-list' has been renamed to
10668 `reftex-bibfile-ignore-regexps' and indeed can be fed with regular
10669 expressions.
10671 *** Multiple Selection buffers are now hidden buffers.
10673 ** New/deleted modes and packages
10675 *** The package snmp-mode.el provides major modes for editing SNMP and
10676 SNMPv2 MIBs.  It has entries on `auto-mode-alist'.
10678 *** The package sql.el provides a major mode, M-x sql-mode, for
10679 editing SQL files, and M-x sql-interactive-mode for interacting with
10680 SQL interpreters.  It has an entry on `auto-mode-alist'.
10682 *** M-x highlight-changes-mode provides a minor mode displaying buffer
10683 changes with a special face.
10685 *** ispell4.el has been deleted.  It got in the way of ispell.el and
10686 this was hard to fix reliably.  It has long been obsolete -- use
10687 Ispell 3.1 and ispell.el.
10689 * MS-DOS changes in Emacs 20.4
10691 ** Emacs compiled for MS-DOS now supports MULE features better.
10692 This includes support for display of all ISO 8859-N character sets,
10693 conversion to and from IBM codepage encoding of non-ASCII characters,
10694 and automatic setup of the MULE environment at startup.  For details,
10695 check out the section `MS-DOS and MULE' in the manual.
10697 The MS-DOS installation procedure automatically configures and builds
10698 Emacs with input method support if it finds an unpacked Leim
10699 distribution when the config.bat script is run.
10701 ** Formerly, the value of lpr-command did not affect printing on
10702 MS-DOS unless print-region-function was set to nil, but now it
10703 controls whether an external program is invoked or output is written
10704 directly to a printer port.  Similarly, in the previous version of
10705 Emacs, the value of ps-lpr-command did not affect PostScript printing
10706 on MS-DOS unless ps-printer-name was set to something other than a
10707 string (eg. t or `pipe'), but now it controls whether an external
10708 program is used.  (These changes were made so that configuration of
10709 printing variables would be almost identical across all platforms.)
10711 ** In the previous version of Emacs, PostScript and non-PostScript
10712 output was piped to external programs, but because most print programs
10713 available for MS-DOS and MS-Windows cannot read data from their standard
10714 input, on those systems the data to be output is now written to a
10715 temporary file whose name is passed as the last argument to the external
10716 program.
10718 An exception is made for `print', a standard program on Windows NT,
10719 and `nprint', a standard program on Novell Netware.  For both of these
10720 programs, the command line is constructed in the appropriate syntax
10721 automatically, using only the value of printer-name or ps-printer-name
10722 as appropriate--the value of the relevant `-switches' variable is
10723 ignored, as both programs have no useful switches.
10725 ** The value of the variable dos-printer (cf. dos-ps-printer), if it has
10726 a value, overrides the value of printer-name (cf. ps-printer-name), on
10727 MS-DOS and MS-Windows only.  This has been true since version 20.3, but
10728 was not documented clearly before.
10730 ** All the Emacs games now work on MS-DOS terminals.
10731 This includes Tetris and Snake.
10733 * Lisp changes in Emacs 20.4
10735 ** New functions line-beginning-position and line-end-position
10736 return the position of the beginning or end of the current line.
10737 They both accept an optional argument, which has the same
10738 meaning as the argument to beginning-of-line or end-of-line.
10740 ** find-file and allied functions now have an optional argument
10741 WILDCARD.  If this is non-nil, they do wildcard processing,
10742 and visit all files that match the wildcard pattern.
10744 ** Changes in the file-attributes function.
10746 *** The file size returned by file-attributes may be an integer or a float.
10747 It is an integer if the size fits in a Lisp integer, float otherwise.
10749 *** The inode number returned by file-attributes may be an integer (if
10750 the number fits in a Lisp integer) or a cons cell containing two
10751 integers.
10753 ** The new function directory-files-and-attributes returns a list of
10754 files in a directory and their attributes.  It accepts the same
10755 arguments as directory-files and has similar semantics, except that
10756 file names and attributes are returned.
10758 ** The new function file-attributes-lessp is a helper function for
10759 sorting the list generated by directory-files-and-attributes.  It
10760 accepts two arguments, each a list of a file name and its attributes.
10761 It compares the file names of each according to string-lessp and
10762 returns the result.
10764 ** The new function file-expand-wildcards expands a wildcard-pattern
10765 to produce a list of existing files that match the pattern.
10767 ** New functions for base64 conversion:
10769 The function base64-encode-region converts a part of the buffer
10770 into the base64 code used in MIME.  base64-decode-region
10771 performs the opposite conversion.  Line-breaking is supported
10772 optionally.
10774 Functions base64-encode-string and base64-decode-string do a similar
10775 job on the text in a string.  They return the value as a new string.
10778 The new function process-running-child-p
10779 will tell you if a subprocess has given control of its
10780 terminal to its own child process.
10782 ** interrupt-process and such functions have a new feature:
10783 when the second argument is `lambda', they send a signal
10784 to the running child of the subshell, if any, but if the shell
10785 itself owns its terminal, no signal is sent.
10787 ** There are new widget types `plist' and `alist' which can
10788 be used for customizing variables whose values are plists or alists.
10790 ** easymenu.el now understands `:key-sequence' and `:style button'.
10791 :included is an alias for :visible.
10793 easy-menu-add-item now understands the values returned by
10794 easy-menu-remove-item and easy-menu-item-present-p.  This can be used
10795 to move or copy menu entries.
10797 ** Multibyte editing changes
10799 *** The definitions of sref and char-bytes are changed.  Now, sref is
10800 an alias of aref and char-bytes always returns 1.  This change is to
10801 make some Emacs Lisp code which works on 20.2 and earlier also
10802 work on the latest Emacs.  Such code uses a combination of sref and
10803 char-bytes in a loop typically as below:
10804         (setq char (sref str idx)
10805               idx (+ idx (char-bytes idx)))
10806 The byte-compiler now warns that this is obsolete.
10808 If you want to know how many bytes a specific multibyte character
10809 (say, CH) occupies in a multibyte buffer, use this code:
10810         (charset-bytes (char-charset ch))
10812 *** In multibyte mode, when you narrow a buffer to some region, and the
10813 region is preceded or followed by non-ASCII codes, inserting or
10814 deleting at the head or the end of the region may signal this error:
10816     Byte combining across boundary of accessible buffer text inhibited
10818 This is to avoid some bytes being combined together into a character
10819 across the boundary.
10821 *** The functions find-charset-region and find-charset-string include
10822 `unknown' in the returned list in the following cases:
10823     o The current buffer or the target string is unibyte and
10824       contains 8-bit characters.
10825     o The current buffer or the target string is multibyte and
10826       contains invalid characters.
10828 *** The functions decode-coding-region and encode-coding-region remove
10829 text properties of the target region.  Ideally, they should correctly
10830 preserve text properties, but for the moment, it's hard.  Removing
10831 text properties is better than preserving them in a less-than-correct
10832 way.
10834 *** prefer-coding-system sets EOL conversion of default coding systems.
10835 If the argument to prefer-coding-system specifies a certain type of
10836 end of line conversion, the default coding systems set by
10837 prefer-coding-system will specify that conversion type for end of line.
10839 *** The new function thai-compose-string can be used to properly
10840 compose Thai characters in a string.
10842 ** The primitive `define-prefix-command' now takes an optional third
10843 argument NAME, which should be a string.  It supplies the menu name
10844 for the created keymap.  Keymaps created in order to be displayed as
10845 menus should always use the third argument.
10847 ** The meanings of optional second arguments for read-char,
10848 read-event, and read-char-exclusive are flipped.  Now the second
10849 arguments are INHERIT-INPUT-METHOD.  These functions use the current
10850 input method (if any) if and only if INHERIT-INPUT-METHOD is non-nil.
10852 ** The new function clear-this-command-keys empties out the contents
10853 of the vector that (this-command-keys) returns.  This is useful in
10854 programs that read passwords, to prevent the passwords from echoing
10855 inadvertently as part of the next command in certain cases.
10857 ** The new macro `with-temp-message' displays a temporary message in
10858 the echo area, while executing some Lisp code.  Like `progn', it
10859 returns the value of the last form, but it also restores the previous
10860 echo area contents.
10862    (with-temp-message MESSAGE &rest BODY)
10864 ** The function `require' now takes an optional third argument
10865 NOERROR.  If it is non-nil, then there is no error if the
10866 requested feature cannot be loaded.
10868 ** In the function modify-face, an argument of (nil) for the
10869 foreground color, background color or stipple pattern
10870 means to clear out that attribute.
10872 ** The `outer-window-id' frame property of an X frame
10873 gives the window number of the outermost X window for the frame.
10875 ** Temporary buffers made with with-output-to-temp-buffer are now
10876 read-only by default, and normally use the major mode Help mode
10877 unless you put them in some other non-Fundamental mode before the
10878 end of with-output-to-temp-buffer.
10880 ** The new functions gap-position and gap-size return information on
10881 the gap of the current buffer.
10883 ** The new functions position-bytes and byte-to-position provide a way
10884 to convert between character positions and byte positions in the
10885 current buffer.
10887 ** vc.el defines two new macros, `edit-vc-file' and `with-vc-file', to
10888 facilitate working with version-controlled files from Lisp programs.
10889 These macros check out a given file automatically if needed, and check
10890 it back in after any modifications have been made.
10892 * Installation Changes in Emacs 20.3
10894 ** The default value of load-path now includes most subdirectories of
10895 the site-specific directories /usr/local/share/emacs/site-lisp and
10896 /usr/local/share/emacs/VERSION/site-lisp, in addition to those
10897 directories themselves.  Both immediate subdirectories and
10898 subdirectories multiple levels down are added to load-path.
10900 Not all subdirectories are included, though.  Subdirectories whose
10901 names do not start with a letter or digit are excluded.
10902 Subdirectories named RCS or CVS are excluded.  Also, a subdirectory
10903 which contains a file named `.nosearch' is excluded.  You can use
10904 these methods to prevent certain subdirectories from being searched.
10906 Emacs finds these subdirectories and adds them to load-path when it
10907 starts up.  While it would be cleaner to find the subdirectories each
10908 time Emacs loads a file, that would be much slower.
10910 This feature is an incompatible change.  If you have stored some Emacs
10911 Lisp files in a subdirectory of the site-lisp directory specifically
10912 to prevent them from being used, you will need to rename the
10913 subdirectory to start with a non-alphanumeric character, or create a
10914 `.nosearch' file in it, in order to continue to achieve the desired
10915 results.
10917 ** Emacs no longer includes an old version of the C preprocessor from
10918 GCC.  This was formerly used to help compile Emacs with C compilers
10919 that had limits on the significant length of an identifier, but in
10920 fact we stopped supporting such compilers some time ago.
10922 * Changes in Emacs 20.3
10924 ** The new command C-x z (repeat) repeats the previous command
10925 including its argument.  If you repeat the z afterward,
10926 it repeats the command additional times; thus, you can
10927 perform many repetitions with one keystroke per repetition.
10929 ** Emacs now supports "selective undo" which undoes only within a
10930 specified region.  To do this, set point and mark around the desired
10931 region and type C-u C-x u (or C-u C-_).  You can then continue undoing
10932 further, within the same region, by repeating the ordinary undo
10933 command C-x u or C-_.  This will keep undoing changes that were made
10934 within the region you originally specified, until either all of them
10935 are undone, or it encounters a change which crosses the edge of that
10936 region.
10938 In Transient Mark mode, undoing when a region is active requests
10939 selective undo.
10941 ** If you specify --unibyte when starting Emacs, then all buffers are
10942 unibyte, except when a Lisp program specifically creates a multibyte
10943 buffer.  Setting the environment variable EMACS_UNIBYTE has the same
10944 effect.  The --no-unibyte option overrides EMACS_UNIBYTE and directs
10945 Emacs to run normally in multibyte mode.
10947 The option --unibyte does not affect the reading of Emacs Lisp files,
10948 though.  If you want a Lisp file to be read in unibyte mode, use
10949 -*-unibyte: t;-*- on its first line.  That will force Emacs to
10950 load that file in unibyte mode, regardless of how Emacs was started.
10952 ** toggle-enable-multibyte-characters no longer has a key binding and
10953 no longer appears in the menu bar.  We've realized that changing the
10954 enable-multibyte-characters variable in an existing buffer is
10955 something that most users not do.
10957 ** You can specify a coding system to use for the next cut or paste
10958 operations through the window system with the command C-x RET X.
10959 The coding system can make a difference for communication with other
10960 applications.
10962 C-x RET x specifies a coding system for all subsequent cutting and
10963 pasting operations.
10965 ** You can specify the printer to use for commands that do printing by
10966 setting the variable `printer-name'.  Just what a printer name looks
10967 like depends on your operating system.  You can specify a different
10968 printer for the Postscript printing commands by setting
10969 `ps-printer-name'.
10971 ** Emacs now supports on-the-fly spell checking by the means of a
10972 minor mode.  It is called M-x flyspell-mode.  You don't have to remember
10973 any other special commands to use it, and you will hardly notice it
10974 except when you make a spelling error.  Flyspell works by highlighting
10975 incorrect words as soon as they are completed or as soon as the cursor
10976 hits a new word.
10978 Flyspell mode works with whichever dictionary you have selected for
10979 Ispell in Emacs.  In TeX mode, it understands TeX syntax so as not
10980 to be confused by TeX commands.
10982 You can correct a misspelled word by editing it into something
10983 correct.  You can also correct it, or accept it as correct, by
10984 clicking on the word with Mouse-2; that gives you a pop-up menu
10985 of various alternative replacements and actions.
10987 Flyspell mode also proposes "automatic" corrections.  M-TAB replaces
10988 the current misspelled word with a possible correction.  If several
10989 corrections are made possible, M-TAB cycles through them in
10990 alphabetical order, or in order of decreasing likelihood if
10991 flyspell-sort-corrections is nil.
10993 Flyspell mode also flags an error when a word is repeated, if
10994 flyspell-mark-duplications-flag is non-nil.
10996 ** Changes in input method usage.
10998 Now you can use arrow keys (right, left, down, up) for selecting among
10999 the alternatives just the same way as you do by C-f, C-b, C-n, and C-p
11000 respectively.
11002 You can use the ENTER key to accept the current conversion.
11004 If you type TAB to display a list of alternatives, you can select one
11005 of the alternatives with Mouse-2.
11007 The meaning of the variable `input-method-verbose-flag' is changed so
11008 that you can set it to t, nil, `default', or `complex-only'.
11010   If the value is nil, extra guidance is never given.
11012   If the value is t, extra guidance is always given.
11014   If the value is `complex-only', extra guidance is always given only
11015   when you are using complex input methods such as chinese-py.
11017   If the value is `default' (this is the default), extra guidance is
11018   given in the following case:
11019     o When you are using a complex input method.
11020     o When you are using a simple input method but not in the minibuffer.
11022 If you are using Emacs through a very slow line, setting
11023 input-method-verbose-flag to nil or to complex-only is a good choice,
11024 and if you are using an input method you are not familiar with,
11025 setting it to t is helpful.
11027 The old command select-input-method is now called set-input-method.
11029 In the language environment "Korean", you can use the following
11030 keys:
11031         Shift-SPC       toggle-korean-input-method
11032         C-F9            quail-hangul-switch-symbol-ksc
11033         F9              quail-hangul-switch-hanja
11034 These key bindings are canceled when you switch to another language
11035 environment.
11037 ** The minibuffer history of file names now records the specified file
11038 names, not the entire minibuffer input.  For example, if the
11039 minibuffer starts out with /usr/foo/, you might type in /etc/passwd to
11042      /usr/foo//etc/passwd
11044 which stands for the file /etc/passwd.
11046 Formerly, this used to put /usr/foo//etc/passwd in the history list.
11047 Now this puts just /etc/passwd in the history list.
11049 ** If you are root, Emacs sets backup-by-copying-when-mismatch to t
11050 at startup, so that saving a file will be sure to preserve
11051 its owner and group.
11053 ** find-func.el can now also find the place of definition of Emacs
11054 Lisp variables in user-loaded libraries.
11056 ** C-x r t (string-rectangle) now deletes the existing rectangle
11057 contents before inserting the specified string on each line.
11059 ** There is a new command delete-whitespace-rectangle
11060 which deletes whitespace starting from a particular column
11061 in all the lines on a rectangle.  The column is specified
11062 by the left edge of the rectangle.
11064 ** You can now store a number into a register with C-u NUMBER C-x r n REG,
11065 increment it by INC with C-u INC C-x r + REG (to increment by one, omit
11066 C-u INC), and insert it in the buffer with C-x r g REG.  This is useful
11067 for writing keyboard macros.
11069 ** The new command M-x speedbar displays a frame in which directories,
11070 files, and tags can be displayed, manipulated, and jumped to.  The
11071 frame defaults to 20 characters in width, and is the same height as
11072 the frame that it was started from.  Some major modes define
11073 additional commands for the speedbar, including Rmail, GUD/GDB, and
11074 info.
11076 ** query-replace-regexp is now bound to C-M-%.
11078 ** In Transient Mark mode, when the region is active, M-x
11079 query-replace and the other replace commands now operate on the region
11080 contents only.
11082 ** M-x write-region, when used interactively, now asks for
11083 confirmation before overwriting an existing file.  When you call
11084 the function from a Lisp program, a new optional argument CONFIRM
11085 says whether to ask for confirmation in this case.
11087 ** If you use find-file-literally and the file is already visited
11088 non-literally, the command asks you whether to revisit the file
11089 literally.  If you say no, it signals an error.
11091 ** Major modes defined with the "derived mode" feature
11092 now use the proper name for the mode hook: WHATEVER-mode-hook.
11093 Formerly they used the name WHATEVER-mode-hooks, but that is
11094 inconsistent with Emacs conventions.
11096 ** shell-command-on-region (and shell-command) reports success or
11097 failure if the command produces no output.
11099 ** Set focus-follows-mouse to nil if your window system or window
11100 manager does not transfer focus to another window when you just move
11101 the mouse.
11103 ** mouse-menu-buffer-maxlen has been renamed to
11104 mouse-buffer-menu-maxlen to be consistent with the other related
11105 function and variable names.
11107 ** The new variable auto-coding-alist specifies coding systems for
11108 reading specific files.  This has higher priority than
11109 file-coding-system-alist.
11111 ** If you set the variable unibyte-display-via-language-environment to
11112 t, then Emacs displays non-ASCII characters are displayed by
11113 converting them to the equivalent multibyte characters according to
11114 the current language environment.  As a result, they are displayed
11115 according to the current fontset.
11117 ** C-q's handling of codes in the range 0200 through 0377 is changed.
11119 The codes in the range 0200 through 0237 are inserted as one byte of
11120 that code regardless of the values of nonascii-translation-table and
11121 nonascii-insert-offset.
11123 For the codes in the range 0240 through 0377, if
11124 enable-multibyte-characters is non-nil and nonascii-translation-table
11125 nor nonascii-insert-offset can't convert them to valid multibyte
11126 characters, they are converted to Latin-1 characters.
11128 ** If you try to find a file that is not read-accessible, you now get
11129 an error, rather than an empty buffer and a warning.
11131 ** In the minibuffer history commands M-r and M-s, an upper case
11132 letter in the regular expression forces case-sensitive search.
11134 ** In the *Help* buffer, cross-references to commands and variables
11135 are inferred and hyperlinked.  Use C-h m in Help mode for the relevant
11136 command keys.
11138 ** M-x apropos-command, with a prefix argument, no longer looks for
11139 user option variables--instead it looks for noninteractive functions.
11141 Meanwhile, the command apropos-variable normally searches for
11142 user option variables; with a prefix argument, it looks at
11143 all variables that have documentation.
11145 ** When you type a long line in the minibuffer, and the minibuffer
11146 shows just one line, automatically scrolling works in a special way
11147 that shows you overlap with the previous line of text.  The variable
11148 minibuffer-scroll-overlap controls how many characters of overlap
11149 it should show; the default is 20.
11151 Meanwhile, Resize Minibuffer mode is still available; in that mode,
11152 the minibuffer grows taller (up to a point) as needed to show the whole
11153 of your input.
11155 ** The new command M-x customize-changed-options lets you customize
11156 all the options whose meanings or default values have changed in
11157 recent Emacs versions.  You specify a previous Emacs version number as
11158 argument, and the command creates a customization buffer showing all
11159 the customizable options which were changed since that version.
11160 Newly added options are included as well.
11162 If you don't specify a particular version number argument,
11163 then the customization buffer shows all the customizable options
11164 for which Emacs versions of changes are recorded.
11166 This function is also bound to the Changed Options entry in the
11167 Customize menu.
11169 ** When you run M-x grep with a prefix argument, it figures out
11170 the tag around point and puts that into the default grep command.
11172 ** The new command M-* (pop-tag-mark) pops back through a history of
11173 buffer positions from which M-. or other tag-finding commands were
11174 invoked.
11176 ** The new variable comment-padding specifies the number of spaces
11177 that `comment-region' will insert before the actual text of the comment.
11178 The default is 1.
11180 ** In Fortran mode the characters `.', `_' and `$' now have symbol
11181 syntax, not word syntax.  Fortran mode now supports `imenu' and has
11182 new commands fortran-join-line (M-^) and fortran-narrow-to-subprogram
11183 (C-x n d).  M-q can be used to fill a statement or comment block
11184 sensibly.
11186 ** GUD now supports jdb, the Java debugger, and pdb, the Python debugger.
11188 ** If you set the variable add-log-keep-changes-together to a non-nil
11189 value, the command `C-x 4 a' will automatically notice when you make
11190 two entries in one day for one file, and combine them.
11192 ** You can use the command M-x diary-mail-entries to mail yourself a
11193 reminder about upcoming diary entries.  See the documentation string
11194 for a sample shell script for calling this function automatically
11195 every night.
11197 ** Desktop changes
11199 *** All you need to do to enable use of the Desktop package, is to set
11200 the variable desktop-enable to t with Custom.
11202 *** Minor modes are now restored.  Which minor modes are restored
11203 and how modes are restored is controlled by `desktop-minor-mode-table'.
11205 ** There is no need to do anything special, now, to enable Gnus to
11206 read and post multi-lingual articles.
11208 ** Outline mode has now support for showing hidden outlines when
11209 doing an isearch.  In order for this to happen search-invisible should
11210 be set to open (the default).  If an isearch match is inside a hidden
11211 outline the outline is made visible.  If you continue pressing C-s and
11212 the match moves outside the formerly invisible outline, the outline is
11213 made invisible again.
11215 ** Mail reading and sending changes
11217 *** The Rmail e command now switches to displaying the whole header of
11218 the message before it lets you edit the message.  This is so that any
11219 changes you make in the header will not be lost if you subsequently
11220 toggle.
11222 *** The w command in Rmail, which writes the message body into a file,
11223 now works in the summary buffer as well.  (The command to delete the
11224 summary buffer is now Q.)  The default file name for the w command, if
11225 the message has no subject, is stored in the variable
11226 rmail-default-body-file.
11228 *** Most of the commands and modes that operate on mail and netnews no
11229 longer depend on the value of mail-header-separator.  Instead, they
11230 handle whatever separator the buffer happens to use.
11232 *** If you set mail-signature to a value which is not t, nil, or a string,
11233 it should be an expression.  When you send a message, this expression
11234 is evaluated to insert the signature.
11236 *** The new Lisp library feedmail.el (version 8) enhances processing of
11237 outbound email messages.  It works in coordination with other email
11238 handling packages (e.g., rmail, VM, gnus) and is responsible for
11239 putting final touches on messages and actually submitting them for
11240 transmission.  Users of the emacs program "fakemail" might be
11241 especially interested in trying feedmail.
11243 feedmail is not enabled by default.  See comments at the top of
11244 feedmail.el for set-up instructions.  Among the bigger features
11245 provided by feedmail are:
11247 **** you can park outgoing messages into a disk-based queue and
11248 stimulate sending some or all of them later (handy for laptop users);
11249 there is also a queue for draft messages
11251 **** you can get one last look at the prepped outbound message and
11252 be prompted for confirmation
11254 **** does smart filling of address headers
11256 **** can generate a MESSAGE-ID: line and a DATE: line; the date can be
11257 the time the message was written or the time it is being sent; this
11258 can make FCC copies more closely resemble copies that recipients get
11260 **** you can specify an arbitrary function for actually transmitting
11261 the message; included in feedmail are interfaces for /bin/[r]mail,
11262 /usr/lib/sendmail, and Emacs Lisp smtpmail; it's easy to write a new
11263 function for something else (10-20 lines of Lisp code).
11265 ** Dired changes
11267 *** The Dired function dired-do-toggle, which toggles marked and unmarked
11268 files, is now bound to "t" instead of "T".
11270 *** dired-at-point has been added to ffap.el.  It allows one to easily
11271 run Dired on the directory name at point.
11273 *** Dired has a new command: %g.  It searches the contents of
11274 files in the directory and marks each file that contains a match
11275 for a specified regexp.
11277 ** VC Changes
11279 *** New option vc-ignore-vc-files lets you turn off version control
11280 conveniently.
11282 *** VC Dired has been completely rewritten.  It is now much
11283 faster, especially for CVS, and works very similar to ordinary
11284 Dired.
11286 VC Dired is invoked by typing C-x v d and entering the name of the
11287 directory to display.  By default, VC Dired gives you a recursive
11288 listing of all files at or below the given directory which are
11289 currently locked (for CVS, all files not up-to-date are shown).
11291 You can change the listing format by setting vc-dired-recurse to nil,
11292 then it shows only the given directory, and you may also set
11293 vc-dired-terse-display to nil, then it shows all files under version
11294 control plus the names of any subdirectories, so that you can type `i'
11295 on such lines to insert them manually, as in ordinary Dired.
11297 All Dired commands operate normally in VC Dired, except for `v', which
11298 is redefined as the version control prefix.  That means you may type
11299 `v l', `v =' etc. to invoke `vc-print-log', `vc-diff' and the like on
11300 the file named in the current Dired buffer line.  `v v' invokes
11301 `vc-next-action' on this file, or on all files currently marked.
11303 The new command `v t' (vc-dired-toggle-terse-mode) allows you to
11304 toggle between terse display (only locked files) and full display (all
11305 VC files plus subdirectories).  There is also a special command,
11306 `* l', to mark all files currently locked.
11308 Giving a prefix argument to C-x v d now does the same thing as in
11309 ordinary Dired: it allows you to supply additional options for the ls
11310 command in the minibuffer, to fine-tune VC Dired's output.
11312 *** Under CVS, if you merge changes from the repository into a working
11313 file, and CVS detects conflicts, VC now offers to start an ediff
11314 session to resolve them.
11316 Alternatively, you can use the new command `vc-resolve-conflicts' to
11317 resolve conflicts in a file at any time.  It works in any buffer that
11318 contains conflict markers as generated by rcsmerge (which is what CVS
11319 uses as well).
11321 *** You can now transfer changes between branches, using the new
11322 command vc-merge (C-x v m).  It is implemented for RCS and CVS.  When
11323 you invoke it in a buffer under version-control, you can specify
11324 either an entire branch or a pair of versions, and the changes on that
11325 branch or between the two versions are merged into the working file.
11326 If this results in any conflicts, they may be resolved interactively,
11327 using ediff.
11329 ** Changes in Font Lock
11331 *** The face and variable previously known as font-lock-reference-face
11332 are now called font-lock-constant-face to better reflect their typical
11333 use for highlighting constants and labels.  (Its face properties are
11334 unchanged.)  The variable font-lock-reference-face remains for now for
11335 compatibility reasons, but its value is font-lock-constant-face.
11337 ** Frame name display changes
11339 *** The command set-frame-name lets you set the name of the current
11340 frame.  You can use the new command select-frame-by-name to select and
11341 raise a frame; this is mostly useful on character-only terminals, or
11342 when many frames are invisible or iconified.
11344 *** On character-only terminal (not a window system), changing the
11345 frame name is now reflected on the mode line and in the Buffers/Frames
11346 menu.
11348 ** Comint (subshell) changes
11350 *** In Comint modes, the commands to kill, stop or interrupt a
11351 subjob now also kill pending input.  This is for compatibility
11352 with ordinary shells, where the signal characters do this.
11354 *** There are new commands in Comint mode.
11356 C-c C-x fetches the "next" line from the input history;
11357 that is, the line after the last line you got.
11358 You can use this command to fetch successive lines, one by one.
11360 C-c SPC accumulates lines of input.  More precisely, it arranges to
11361 send the current line together with the following line, when you send
11362 the following line.
11364 C-c C-a if repeated twice consecutively now moves to the process mark,
11365 which separates the pending input from the subprocess output and the
11366 previously sent input.
11368 C-c M-r now runs comint-previous-matching-input-from-input;
11369 it searches for a previous command, using the current pending input
11370 as the search string.
11372 *** New option compilation-scroll-output can be set to scroll
11373 automatically in compilation-mode windows.
11375 ** C mode changes
11377 *** Multiline macros are now handled, both as they affect indentation,
11378 and as recognized syntax.  New syntactic symbol cpp-macro-cont is
11379 assigned to second and subsequent lines of a multiline macro
11380 definition.
11382 *** A new style "user" which captures all non-hook-ified
11383 (i.e. top-level) .emacs file variable settings and customizations.
11384 Style "cc-mode" is an alias for "user" and is deprecated.  "gnu"
11385 style is still the default however.
11387 *** "java" style now conforms to Sun's JDK coding style.
11389 *** There are new commands c-beginning-of-defun, c-end-of-defun which
11390 are alternatives which you could bind to C-M-a and C-M-e if you prefer
11391 them.  They do not have key bindings by default.
11393 *** New and improved implementations of M-a (c-beginning-of-statement)
11394 and M-e (c-end-of-statement).
11396 *** C++ namespace blocks are supported, with new syntactic symbols
11397 namespace-open, namespace-close, and innamespace.
11399 *** File local variable settings of c-file-style and c-file-offsets
11400 makes the style variables local to that buffer only.
11402 *** New indentation functions c-lineup-close-paren,
11403 c-indent-one-line-block, c-lineup-dont-change.
11405 *** Improvements (hopefully!) to the way CC Mode is loaded.  You
11406 should now be able to do a (require 'cc-mode) to get the entire
11407 package loaded properly for customization in your .emacs file.  A new
11408 variable c-initialize-on-load controls this and is t by default.
11410 ** Changes to hippie-expand.
11412 *** New customization variable `hippie-expand-dabbrev-skip-space'. If
11413 non-nil, trailing spaces may be included in the abbreviation to search for,
11414 which then gives the same behavior as the original `dabbrev-expand'.
11416 *** New customization variable `hippie-expand-dabbrev-as-symbol'. If
11417 non-nil, characters of syntax '_' is considered part of the word when
11418 expanding dynamically.
11420 *** New customization variable `hippie-expand-no-restriction'. If
11421 non-nil, narrowed buffers are widened before they are searched.
11423 *** New customization variable `hippie-expand-only-buffers'. If
11424 non-empty, buffers searched are restricted to the types specified in
11425 this list. Useful for example when constructing new special-purpose
11426 expansion functions with `make-hippie-expand-function'.
11428 *** Text properties of the expansion are no longer copied.
11430 ** Changes in BibTeX mode.
11432 *** Any titleword matching a regexp in the new variable
11433 bibtex-autokey-titleword-ignore (case sensitive) is ignored during
11434 automatic key generation.  This replaces variable
11435 bibtex-autokey-titleword-first-ignore, which only checked for matches
11436 against the first word in the title.
11438 *** Autokey generation now uses all words from the title, not just
11439 capitalized words.  To avoid conflicts with existing customizations,
11440 bibtex-autokey-titleword-ignore is set up such that words starting with
11441 lowerkey characters will still be ignored.  Thus, if you want to use
11442 lowercase words from the title, you will have to overwrite the
11443 bibtex-autokey-titleword-ignore standard setting.
11445 *** Case conversion of names and title words for automatic key
11446 generation is more flexible.  Variable bibtex-autokey-preserve-case is
11447 replaced by bibtex-autokey-titleword-case-convert and
11448 bibtex-autokey-name-case-convert.
11450 ** Changes in vcursor.el.
11452 *** Support for character terminals is available: there is a new keymap
11453 and the vcursor will appear as an arrow between buffer text.  A
11454 variable `vcursor-interpret-input' allows input from the vcursor to be
11455 entered exactly as if typed.  Numerous functions, including
11456 `vcursor-compare-windows', have been rewritten to improve consistency
11457 in the selection of windows and corresponding keymaps.
11459 *** vcursor options can now be altered with M-x customize under the
11460 Editing group once the package is loaded.
11462 *** Loading vcursor now does not define keys by default, as this is
11463 generally a bad side effect.  Use M-x customize to set
11464 vcursor-key-bindings to t to restore the old behavior.
11466 *** vcursor-auto-disable can be `copy', which turns off copying from the
11467 vcursor, but doesn't disable it, after any non-vcursor command.
11469 ** Ispell changes.
11471 *** You can now spell check comments and strings in the current
11472 buffer with M-x ispell-comments-and-strings.  Comments and strings
11473 are identified by syntax tables in effect.
11475 *** Generic region skipping implemented.
11476 A single buffer can be broken into a number of regions where text will
11477 and will not be checked.  The definitions of the regions can be user
11478 defined.  New applications and improvements made available by this
11479 include:
11481     o URLs are automatically skipped
11482     o EMail message checking is vastly improved.
11484 *** Ispell can highlight the erroneous word even on non-window terminals.
11486 ** Changes to RefTeX mode
11488 RefTeX has been updated in order to make it more usable with very
11489 large projects (like a several volume math book).  The parser has been
11490 re-written from scratch.  To get maximum speed from RefTeX, check the
11491 section `Optimizations' in the manual.
11493 *** New recursive parser.
11495 The old version of RefTeX created a single large buffer containing the
11496 entire multifile document in order to parse the document.  The new
11497 recursive parser scans the individual files.
11499 *** Parsing only part of a document.
11501 Reparsing of changed document parts can now be made faster by enabling
11502 partial scans.  To use this feature, read the documentation string of
11503 the variable `reftex-enable-partial-scans' and set the variable to t.
11505     (setq reftex-enable-partial-scans t)
11507 *** Storing parsing information in a file.
11509 This can improve startup times considerably.  To turn it on, use
11511     (setq reftex-save-parse-info t)
11513 *** Using multiple selection buffers
11515 If the creation of label selection buffers is too slow (this happens
11516 for large documents), you can reuse these buffers by setting
11518     (setq reftex-use-multiple-selection-buffers t)
11520 *** References to external documents.
11522 The LaTeX package `xr' allows to cross-reference labels in external
11523 documents.  RefTeX can provide information about the external
11524 documents as well.  To use this feature, set up the \externaldocument
11525 macros required by the `xr' package and rescan the document with
11526 RefTeX.  The external labels can then be accessed with the `x' key in
11527 the selection buffer provided by `reftex-reference' (bound to `C-c )').
11528 The `x' key also works in the table of contents buffer.
11530 *** Many more labeled LaTeX environments are recognized by default.
11532 The built-in command list now covers all the standard LaTeX commands,
11533 and all of the major packages included in the LaTeX distribution.
11535 Also, RefTeX now understands the \appendix macro and changes
11536 the enumeration of sections in the *toc* buffer accordingly.
11538 *** Mouse support for selection and *toc* buffers
11540 The mouse can now be used to select items in the selection and *toc*
11541 buffers.  See also the new option `reftex-highlight-selection'.
11543 *** New keymaps for selection and table of contents modes.
11545 The selection processes for labels and citation keys, and the table of
11546 contents buffer now have their own keymaps: `reftex-select-label-map',
11547 `reftex-select-bib-map', `reftex-toc-map'.  The selection processes
11548 have a number of new keys predefined.  In particular, TAB lets you
11549 enter a label with completion.  Check the on-the-fly help (press `?'
11550 at the selection prompt) or read the Info documentation to find out
11551 more.
11553 *** Support for the varioref package
11555 The `v' key in the label selection buffer toggles \ref versus \vref.
11557 *** New hooks
11559 Three new hooks can be used to redefine the way labels, references,
11560 and citations are created. These hooks are
11561 `reftex-format-label-function', `reftex-format-ref-function',
11562 `reftex-format-cite-function'.
11564 *** Citations outside LaTeX
11566 The command `reftex-citation' may also be used outside LaTeX (e.g. in
11567 a mail buffer).  See the Info documentation for details.
11569 *** Short context is no longer fontified.
11571 The short context in the label menu no longer copies the
11572 fontification from the text in the buffer.  If you prefer it to be
11573 fontified, use
11575    (setq reftex-refontify-context t)
11577 ** file-cache-minibuffer-complete now accepts a prefix argument.
11578 With a prefix argument, it does not try to do completion of
11579 the file name within its directory; it only checks for other
11580 directories that contain the same file name.
11582 Thus, given the file name Makefile, and assuming that a file
11583 Makefile.in exists in the same directory, ordinary
11584 file-cache-minibuffer-complete will try to complete Makefile to
11585 Makefile.in and will therefore never look for other directories that
11586 have Makefile.  A prefix argument tells it not to look for longer
11587 names such as Makefile.in, so that instead it will look for other
11588 directories--just as if the name were already complete in its present
11589 directory.
11591 ** New modes and packages
11593 *** There is a new alternative major mode for Perl, Cperl mode.
11594 It has many more features than Perl mode, and some people prefer
11595 it, but some do not.
11597 *** There is a new major mode, M-x vhdl-mode, for editing files of VHDL
11598 code.
11600 *** M-x which-function-mode enables a minor mode that displays the
11601 current function name continuously in the mode line, as you move
11602 around in a buffer.
11604 Which Function mode is effective in major modes which support Imenu.
11606 *** Gametree is a major mode for editing game analysis trees.  The author
11607 uses it for keeping notes about his postal Chess games, but it should
11608 be helpful for other two-player games as well, as long as they have an
11609 established system of notation similar to Chess.
11611 *** The new minor mode checkdoc-minor-mode provides Emacs Lisp
11612 documentation string checking for style and spelling.  The style
11613 guidelines are found in the Emacs Lisp programming manual.
11615 *** The net-utils package makes some common networking features
11616 available in Emacs.  Some of these functions are wrappers around
11617 system utilities (ping, nslookup, etc); others are implementations of
11618 simple protocols (finger, whois) in Emacs Lisp.  There are also
11619 functions to make simple connections to TCP/IP ports for debugging and
11620 the like.
11622 *** highlight-changes-mode is a minor mode that uses colors to
11623 identify recently changed parts of the buffer text.
11625 *** The new package `midnight' lets you specify things to be done
11626 within Emacs at midnight--by default, kill buffers that you have not
11627 used in a considerable time.  To use this feature, customize
11628 the user option `midnight-mode' to t.
11630 *** The file generic-x.el defines a number of simple major modes.
11632   apache-generic-mode: For Apache and NCSA httpd configuration files
11633   samba-generic-mode: Samba configuration files
11634   fvwm-generic-mode: For fvwm initialization files
11635   x-resource-generic-mode: For X resource files
11636   hosts-generic-mode: For hosts files (.rhosts, /etc/hosts, etc)
11637   mailagent-rules-generic-mode: For mailagent .rules files
11638   javascript-generic-mode: For JavaScript files
11639   vrml-generic-mode: For VRML files
11640   java-manifest-generic-mode: For Java MANIFEST files
11641   java-properties-generic-mode: For Java property files
11642   mailrc-generic-mode: For .mailrc files
11644   Platform-specific modes:
11646   prototype-generic-mode: For Solaris/Sys V prototype files
11647   pkginfo-generic-mode: For Solaris/Sys V pkginfo files
11648   alias-generic-mode: For C shell alias files
11649   inf-generic-mode: For MS-Windows INF files
11650   ini-generic-mode: For MS-Windows INI files
11651   reg-generic-mode: For MS-Windows Registry files
11652   bat-generic-mode: For MS-Windows BAT scripts
11653   rc-generic-mode: For MS-Windows Resource files
11654   rul-generic-mode: For InstallShield scripts
11656 * Lisp changes in Emacs 20.3 since the Emacs Lisp Manual was published
11658 ** If you want a Lisp file to be read in unibyte mode,
11659 use -*-unibyte: t;-*- on its first line.
11660 That will force Emacs to read that file in unibyte mode.
11661 Otherwise, the file will be loaded and byte-compiled in multibyte mode.
11663 Thus, each lisp file is read in a consistent way regardless of whether
11664 you started Emacs with --unibyte, so that a Lisp program gives
11665 consistent results regardless of how Emacs was started.
11667 ** The new function assoc-default is useful for searching an alist,
11668 and using a default value if the key is not found there.  You can
11669 specify a comparison predicate, so this function is useful for
11670 searching comparing a string against an alist of regular expressions.
11672 ** The functions unibyte-char-to-multibyte and
11673 multibyte-char-to-unibyte convert between unibyte and multibyte
11674 character codes, in a way that is appropriate for the current language
11675 environment.
11677 ** The functions read-event, read-char and read-char-exclusive now
11678 take two optional arguments.  PROMPT, if non-nil, specifies a prompt
11679 string.  SUPPRESS-INPUT-METHOD, if non-nil, says to disable the
11680 current input method for reading this one event.
11682 ** Two new variables print-escape-nonascii and print-escape-multibyte
11683 now control whether to output certain characters as
11684 backslash-sequences.  print-escape-nonascii applies to single-byte
11685 non-ASCII characters; print-escape-multibyte applies to multibyte
11686 characters.  Both of these variables are used only when printing
11687 in readable fashion (prin1 uses them, princ does not).
11689 * Lisp changes in Emacs 20.3 before the Emacs Lisp Manual was published
11691 ** Compiled Emacs Lisp files made with the modified "MBSK" version
11692 of Emacs 20.2 do not work in Emacs 20.3.
11694 ** Buffer positions are now measured in characters, as they were
11695 in Emacs 19 and before.  This means that (forward-char 1)
11696 always increases point by 1.
11698 The function chars-in-region now just subtracts its arguments.  It is
11699 considered obsolete.  The function char-boundary-p has been deleted.
11701 See below for additional changes relating to multibyte characters.
11703 ** defcustom, defface and defgroup now accept the keyword `:version'.
11704 Use this to specify in which version of Emacs a certain variable's
11705 default value changed.  For example,
11707    (defcustom foo-max 34 "*Maximum number of foo's allowed."
11708      :type 'integer
11709      :group 'foo
11710      :version "20.3")
11712    (defgroup foo-group nil "The foo group."
11713      :version "20.3")
11715 If an entire new group is added or the variables in it have the
11716 default values changed, then just add a `:version' to that group. It
11717 is recommended that new packages added to the distribution contain a
11718 `:version' in the top level group.
11720 This information is used to control the customize-changed-options command.
11722 ** It is now an error to change the value of a symbol whose name
11723 starts with a colon--if it is interned in the standard obarray.
11725 However, setting such a symbol to its proper value, which is that
11726 symbol itself, is not an error.  This is for the sake of programs that
11727 support previous Emacs versions by explicitly setting these variables
11728 to themselves.
11730 If you set the variable keyword-symbols-constant-flag to nil,
11731 this error is suppressed, and you can set these symbols to any
11732 values whatever.
11734 ** There is a new debugger command, R.
11735 It evaluates an expression like e, but saves the result
11736 in the buffer *Debugger-record*.
11738 ** Frame-local variables.
11740 You can now make a variable local to various frames.  To do this, call
11741 the function make-variable-frame-local; this enables frames to have
11742 local bindings for that variable.
11744 These frame-local bindings are actually frame parameters: you create a
11745 frame-local binding in a specific frame by calling
11746 modify-frame-parameters and specifying the variable name as the
11747 parameter name.
11749 Buffer-local bindings take precedence over frame-local bindings.
11750 Thus, if the current buffer has a buffer-local binding, that binding is
11751 active; otherwise, if the selected frame has a frame-local binding,
11752 that binding is active; otherwise, the default binding is active.
11754 It would not be hard to implement window-local bindings, but it is not
11755 clear that this would be very useful; windows tend to come and go in a
11756 very transitory fashion, so that trying to produce any specific effect
11757 through a window-local binding would not be very robust.
11759 ** `sregexq' and `sregex' are two new functions for constructing
11760 "symbolic regular expressions."  These are Lisp expressions that, when
11761 evaluated, yield conventional string-based regexps.  The symbolic form
11762 makes it easier to construct, read, and maintain complex patterns.
11763 See the documentation in sregex.el.
11765 ** parse-partial-sexp's return value has an additional element which
11766 is used to pass information along if you pass it to another call to
11767 parse-partial-sexp, starting its scan where the first call ended.
11768 The contents of this field are not yet finalized.
11770 ** eval-region now accepts a fourth optional argument READ-FUNCTION.
11771 If it is non-nil, that function is used instead of `read'.
11773 ** unload-feature by default removes the feature's functions from
11774 known hooks to avoid trouble, but a package providing FEATURE can
11775 define a hook FEATURE-unload-hook to be run by unload-feature instead.
11777 ** read-from-minibuffer no longer returns the argument DEFAULT-VALUE
11778 when the user enters empty input.  It now returns the null string, as
11779 it did in Emacs 19.  The default value is made available in the
11780 history via M-n, but it is not applied here as a default.
11782 The other, more specialized minibuffer-reading functions continue to
11783 return the default value (not the null string) when the user enters
11784 empty input.
11786 ** The new variable read-buffer-function controls which routine to use
11787 for selecting buffers.  For example, if you set this variable to
11788 `iswitchb-read-buffer', iswitchb will be used to read buffer names.
11789 Other functions can also be used if they accept the same arguments as
11790 `read-buffer' and return the selected buffer name as a string.
11792 ** The new function read-passwd reads a password from the terminal,
11793 echoing a period for each character typed.  It takes three arguments:
11794 a prompt string, a flag which says "read it twice to make sure", and a
11795 default password to use if the user enters nothing.
11797 ** The variable fill-nobreak-predicate gives major modes a way to
11798 specify not to break a line at certain places.  Its value is a
11799 function which is called with no arguments, with point located at the
11800 place where a break is being considered.  If the function returns
11801 non-nil, then the line won't be broken there.
11803 ** window-end now takes an optional second argument, UPDATE.
11804 If this is non-nil, then the function always returns an accurate
11805 up-to-date value for the buffer position corresponding to the
11806 end of the window, even if this requires computation.
11808 ** other-buffer now takes an optional argument FRAME
11809 which specifies which frame's buffer list to use.
11810 If it is nil, that means use the selected frame's buffer list.
11812 ** The new variable buffer-display-time, always local in every buffer,
11813 holds the value of (current-time) as of the last time that a window
11814 was directed to display this buffer.
11816 ** It is now meaningful to compare two window-configuration objects
11817 with `equal'.  Two window-configuration objects are equal if they
11818 describe equivalent arrangements of windows, in the same frame--in
11819 other words, if they would give the same results if passed to
11820 set-window-configuration.
11822 ** compare-window-configurations is a new function that compares two
11823 window configurations loosely.  It ignores differences in saved buffer
11824 positions and scrolling, and considers only the structure and sizes of
11825 windows and the choice of buffers to display.
11827 ** The variable minor-mode-overriding-map-alist allows major modes to
11828 override the key bindings of a minor mode.  The elements of this alist
11829 look like the elements of minor-mode-map-alist: (VARIABLE . KEYMAP).
11831 If the VARIABLE in an element of minor-mode-overriding-map-alist has a
11832 non-nil value, the paired KEYMAP is active, and totally overrides the
11833 map (if any) specified for the same variable in minor-mode-map-alist.
11835 minor-mode-overriding-map-alist is automatically local in all buffers,
11836 and it is meant to be set by major modes.
11838 ** The function match-string-no-properties is like match-string
11839 except that it discards all text properties from the result.
11841 ** The function load-average now accepts an optional argument
11842 USE-FLOATS.  If it is non-nil, the load average values are returned as
11843 floating point numbers, rather than as integers to be divided by 100.
11845 ** The new variable temporary-file-directory specifies the directory
11846 to use for creating temporary files.  The default value is determined
11847 in a reasonable way for your operating system; on GNU and Unix systems
11848 it is based on the TMP and TMPDIR environment variables.
11850 ** Menu changes
11852 *** easymenu.el now uses the new menu item format and supports the
11853 keywords :visible and :filter.  The existing keyword :keys is now
11854 better supported.
11856 The variable `easy-menu-precalculate-equivalent-keybindings' controls
11857 a new feature which calculates keyboard equivalents for the menu when
11858 you define the menu.  The default is t.  If you rarely use menus, you
11859 can set the variable to nil to disable this precalculation feature;
11860 then the calculation is done only if you use the menu bar.
11862 *** A new format for menu items is supported.
11864 In a keymap, a key binding that has the format
11865  (STRING . REAL-BINDING) or (STRING HELP-STRING . REAL-BINDING)
11866 defines a menu item. Now a menu item definition may also be a list that
11867 starts with the symbol `menu-item'.
11869 The format is:
11870  (menu-item ITEM-NAME) or
11871  (menu-item ITEM-NAME REAL-BINDING . ITEM-PROPERTY-LIST)
11872 where ITEM-NAME is an expression which evaluates to the menu item
11873 string, and ITEM-PROPERTY-LIST has the form of a property list.
11874 The supported properties include
11876 :enable FORM      Evaluate FORM to determine whether the
11877                   item is enabled.
11878 :visible FORM     Evaluate FORM to determine whether the
11879                   item should appear in the menu.
11880 :filter FILTER-FN
11881                   FILTER-FN is a function of one argument,
11882                   which will be REAL-BINDING.
11883                   It should return a binding to use instead.
11884 :keys DESCRIPTION
11885                   DESCRIPTION is a string that describes an equivalent keyboard
11886                   binding for REAL-BINDING.  DESCRIPTION is expanded with
11887                   `substitute-command-keys' before it is used.
11888 :key-sequence KEY-SEQUENCE
11889                   KEY-SEQUENCE is a key-sequence for an equivalent
11890                   keyboard binding.
11891 :key-sequence nil
11892                   This means that the command normally has no
11893                   keyboard equivalent.
11894 :help HELP        HELP is the extra help string (not currently used).
11895 :button (TYPE . SELECTED)
11896                   TYPE is :toggle or :radio.
11897                   SELECTED is a form, to be evaluated, and its
11898                   value says whether this button is currently selected.
11900 Buttons are at the moment only simulated by prefixes in the menu.
11901 Eventually ordinary X-buttons may be supported.
11903 (menu-item ITEM-NAME) defines unselectable item.
11905 ** New event types
11907 *** The new event type `mouse-wheel' is generated by a wheel on a
11908 mouse (such as the MS Intellimouse).  The event contains a delta that
11909 corresponds to the amount and direction that the wheel is rotated,
11910 which is typically used to implement a scroll or zoom.  The format is:
11912   (mouse-wheel POSITION DELTA)
11914 where POSITION is a list describing the position of the event in the
11915 same format as a mouse-click event, and DELTA is a signed number
11916 indicating the number of increments by which the wheel was rotated.  A
11917 negative DELTA indicates that the wheel was rotated backwards, towards
11918 the user, and a positive DELTA indicates that the wheel was rotated
11919 forward, away from the user.
11921 As of now, this event type is generated only on MS Windows.
11923 *** The new event type `drag-n-drop' is generated when a group of
11924 files is selected in an application outside of Emacs, and then dragged
11925 and dropped onto an Emacs frame.  The event contains a list of
11926 filenames that were dragged and dropped, which are then typically
11927 loaded into Emacs.  The format is:
11929   (drag-n-drop POSITION FILES)
11931 where POSITION is a list describing the position of the event in the
11932 same format as a mouse-click event, and FILES is the list of filenames
11933 that were dragged and dropped.
11935 As of now, this event type is generated only on MS Windows.
11937 ** Changes relating to multibyte characters.
11939 *** The variable enable-multibyte-characters is now read-only;
11940 any attempt to set it directly signals an error.  The only way
11941 to change this value in an existing buffer is with set-buffer-multibyte.
11943 *** In a string constant, `\ ' now stands for "nothing at all".  You
11944 can use it to terminate a hex escape which is followed by a character
11945 that could otherwise be read as part of the hex escape.
11947 *** String indices are now measured in characters, as they were
11948 in Emacs 19 and before.
11950 The function chars-in-string has been deleted.
11951 The function concat-chars has been renamed to `string'.
11953 *** The function set-buffer-multibyte sets the flag in the current
11954 buffer that says whether the buffer uses multibyte representation or
11955 unibyte representation.  If the argument is nil, it selects unibyte
11956 representation.  Otherwise it selects multibyte representation.
11958 This function does not change the contents of the buffer, viewed
11959 as a sequence of bytes.  However, it does change the contents
11960 viewed as characters; a sequence of two bytes which is treated as
11961 one character when the buffer uses multibyte representation
11962 will count as two characters using unibyte representation.
11964 This function sets enable-multibyte-characters to record which
11965 representation is in use.  It also adjusts various data in the buffer
11966 (including its markers, overlays and text properties) so that they are
11967 consistent with the new representation.
11969 *** string-make-multibyte takes a string and converts it to multibyte
11970 representation.  Most of the time, you don't need to care
11971 about the representation, because Emacs converts when necessary;
11972 however, it makes a difference when you compare strings.
11974 The conversion of non-ASCII characters works by adding the value of
11975 nonascii-insert-offset to each character, or by translating them
11976 using the table nonascii-translation-table.
11978 *** string-make-unibyte takes a string and converts it to unibyte
11979 representation.  Most of the time, you don't need to care about the
11980 representation, but it makes a difference when you compare strings.
11982 The conversion from multibyte to unibyte representation
11983 loses information; the only time Emacs performs it automatically
11984 is when inserting a multibyte string into a unibyte buffer.
11986 *** string-as-multibyte takes a string, and returns another string
11987 which contains the same bytes, but treats them as multibyte.
11989 *** string-as-unibyte takes a string, and returns another string
11990 which contains the same bytes, but treats them as unibyte.
11992 *** The new function compare-strings lets you compare
11993 portions of two strings.  Unibyte strings are converted to multibyte,
11994 so that a unibyte string can match a multibyte string.
11995 You can specify whether to ignore case or not.
11997 *** assoc-ignore-case now uses compare-strings so that
11998 it can treat unibyte and multibyte strings as equal.
12000 *** Regular expression operations and buffer string searches now
12001 convert the search pattern to multibyte or unibyte to accord with the
12002 buffer or string being searched.
12004 One consequence is that you cannot always use \200-\377 inside of
12005 [...] to match all non-ASCII characters.  This does still work when
12006 searching or matching a unibyte buffer or string, but not when
12007 searching or matching a multibyte string.  Unfortunately, there is no
12008 obvious choice of syntax to use within [...] for that job.  But, what
12009 you want is just to match all non-ASCII characters, the regular
12010 expression [^\0-\177] works for it.
12012 *** Structure of coding system changed.
12014 All coding systems (including aliases and subsidiaries) are named
12015 by symbols; the symbol's `coding-system' property is a vector
12016 which defines the coding system.  Aliases share the same vector
12017 as the principal name, so that altering the contents of this
12018 vector affects the principal name and its aliases.  You can define
12019 your own alias name of a coding system by the function
12020 define-coding-system-alias.
12022 The coding system definition includes a property list of its own.  Use
12023 the new functions `coding-system-get' and `coding-system-put' to
12024 access such coding system properties as post-read-conversion,
12025 pre-write-conversion, character-translation-table-for-decode,
12026 character-translation-table-for-encode, mime-charset, and
12027 safe-charsets.  For instance, (coding-system-get 'iso-latin-1
12028 'mime-charset) gives the corresponding MIME-charset parameter
12029 `iso-8859-1'.
12031 Among the coding system properties listed above, safe-charsets is new.
12032 The value of this property is a list of character sets which this
12033 coding system can correctly encode and decode.  For instance:
12034 (coding-system-get 'iso-latin-1 'safe-charsets) => (ascii latin-iso8859-1)
12036 Here, "correctly encode" means that the encoded character sets can
12037 also be handled safely by systems other than Emacs as far as they
12038 are capable of that coding system.  Though, Emacs itself can encode
12039 the other character sets and read it back correctly.
12041 *** The new function select-safe-coding-system can be used to find a
12042 proper coding system for encoding the specified region or string.
12043 This function requires a user interaction.
12045 *** The new functions find-coding-systems-region and
12046 find-coding-systems-string are helper functions used by
12047 select-safe-coding-system.  They return a list of all proper coding
12048 systems to encode a text in some region or string.  If you don't want
12049 a user interaction, use one of these functions instead of
12050 select-safe-coding-system.
12052 *** The explicit encoding and decoding functions, such as
12053 decode-coding-region and encode-coding-string, now set
12054 last-coding-system-used to reflect the actual way encoding or decoding
12055 was done.
12057 *** The new function detect-coding-with-language-environment can be
12058 used to detect a coding system of text according to priorities of
12059 coding systems used by some specific language environment.
12061 *** The functions detect-coding-region and detect-coding-string always
12062 return a list if the arg HIGHEST is nil.  Thus, if only ASCII
12063 characters are found, they now return a list of single element
12064 `undecided' or its subsidiaries.
12066 *** The new functions coding-system-change-eol-conversion and
12067 coding-system-change-text-conversion can be used to get a different
12068 coding system than what specified only in how end-of-line or text is
12069 converted.
12071 *** The new function set-selection-coding-system can be used to set a
12072 coding system for communicating with other X clients.
12074 *** The function `map-char-table' now passes as argument only valid
12075 character codes, plus generic characters that stand for entire
12076 character sets or entire subrows of a character set.  In other words,
12077 each time `map-char-table' calls its FUNCTION argument, the key value
12078 either will be a valid individual character code, or will stand for a
12079 range of characters.
12081 *** The new function `char-valid-p' can be used for checking whether a
12082 Lisp object is a valid character code or not.
12084 *** The new function `charset-after' returns a charset of a character
12085 in the current buffer at position POS.
12087 *** Input methods are now implemented using the variable
12088 input-method-function.  If this is non-nil, its value should be a
12089 function; then, whenever Emacs reads an input event that is a printing
12090 character with no modifier bits, it calls that function, passing the
12091 event as an argument.  Often this function will read more input, first
12092 binding input-method-function to nil.
12094 The return value should be a list of the events resulting from input
12095 method processing.  These events will be processed sequentially as
12096 input, before resorting to unread-command-events.  Events returned by
12097 the input method function are not passed to the input method function,
12098 not even if they are printing characters with no modifier bits.
12100 The input method function is not called when reading the second and
12101 subsequent events of a key sequence.
12103 *** You can customize any language environment by using
12104 set-language-environment-hook and exit-language-environment-hook.
12106 The hook `exit-language-environment-hook' should be used to undo
12107 customizations that you made with set-language-environment-hook.  For
12108 instance, if you set up a special key binding for a specific language
12109 environment by set-language-environment-hook, you should set up
12110 exit-language-environment-hook to restore the normal key binding.
12112 * Changes in Emacs 20.1
12114 ** Emacs has a new facility for customization of its many user
12115 options.  It is called M-x customize.  With this facility you can look
12116 at the many user options in an organized way; they are grouped into a
12117 tree structure.
12119 M-x customize also knows what sorts of values are legitimate for each
12120 user option and ensures that you don't use invalid values.
12122 With M-x customize, you can set options either for the present Emacs
12123 session or permanently.  (Permanent settings are stored automatically
12124 in your .emacs file.)
12126 ** Scroll bars are now on the left side of the window.
12127 You can change this with M-x customize-option scroll-bar-mode.
12129 ** The mode line no longer includes the string `Emacs'.
12130 This makes more space in the mode line for other information.
12132 ** When you select a region with the mouse, it is highlighted
12133 immediately afterward.  At that time, if you type the DELETE key, it
12134 kills the region.
12136 The BACKSPACE key, and the ASCII character DEL, do not do this; they
12137 delete the character before point, as usual.
12139 ** In an incremental search the whole current match is highlighted
12140 on terminals which support this.  (You can disable this feature
12141 by setting search-highlight to nil.)
12143 ** In the minibuffer, in some cases, you can now use M-n to
12144 insert the default value into the minibuffer as text.  In effect,
12145 the default value (if the minibuffer routines know it) is tacked
12146 onto the history "in the future".  (The more normal use of the
12147 history list is to use M-p to insert minibuffer input used in the
12148 past.)
12150 ** In Text mode, now only blank lines separate paragraphs.
12151 This makes it possible to get the full benefit of Adaptive Fill mode
12152 in Text mode, and other modes derived from it (such as Mail mode).
12153 TAB in Text mode now runs the command indent-relative; this
12154 makes a practical difference only when you use indented paragraphs.
12156 As a result, the old Indented Text mode is now identical to Text mode,
12157 and is an alias for it.
12159 If you want spaces at the beginning of a line to start a paragraph,
12160 use the new mode, Paragraph Indent Text mode.
12162 ** Scrolling changes
12164 *** Scroll commands to scroll a whole screen now preserve the screen
12165 position of the cursor, if scroll-preserve-screen-position is non-nil.
12167 In this mode, if you scroll several screens back and forth, finishing
12168 on the same screen where you started, the cursor goes back to the line
12169 where it started.
12171 *** If you set scroll-conservatively to a small number, then when you
12172 move point a short distance off the screen, Emacs will scroll the
12173 screen just far enough to bring point back on screen, provided that
12174 does not exceed `scroll-conservatively' lines.
12176 *** The new variable scroll-margin says how close point can come to the
12177 top or bottom of a window.  It is a number of screen lines; if point
12178 comes within that many lines of the top or bottom of the window, Emacs
12179 recenters the window.
12181 ** International character set support (MULE)
12183 Emacs now supports a wide variety of international character sets,
12184 including European variants of the Latin alphabet, as well as Chinese,
12185 Devanagari (Hindi and Marathi), Ethiopian, Greek, IPA, Japanese,
12186 Korean, Lao, Russian, Thai, Tibetan, and Vietnamese scripts.  These
12187 features have been merged from the modified version of Emacs known as
12188 MULE (for "MULti-lingual Enhancement to GNU Emacs")
12190 Users of these scripts have established many more-or-less standard
12191 coding systems for storing files.  Emacs uses a single multibyte
12192 character encoding within Emacs buffers; it can translate from a wide
12193 variety of coding systems when reading a file and can translate back
12194 into any of these coding systems when saving a file.
12196 Keyboards, even in the countries where these character sets are used,
12197 generally don't have keys for all the characters in them.  So Emacs
12198 supports various "input methods", typically one for each script or
12199 language, to make it possible to type them.
12201 The Emacs internal multibyte encoding represents a non-ASCII
12202 character as a sequence of bytes in the range 0200 through 0377.
12204 The new prefix key C-x RET is used for commands that pertain
12205 to multibyte characters, coding systems, and input methods.
12207 You can disable multibyte character support as follows:
12209   (setq-default enable-multibyte-characters nil)
12211 Calling the function standard-display-european turns off multibyte
12212 characters, unless you specify a non-nil value for the second
12213 argument, AUTO.  This provides compatibility for people who are
12214 already using standard-display-european to continue using unibyte
12215 characters for their work until they want to change.
12217 *** Input methods
12219 An input method is a kind of character conversion which is designed
12220 specifically for interactive input.  In Emacs, typically each language
12221 has its own input method (though sometimes several languages which use
12222 the same characters can share one input method).  Some languages
12223 support several input methods.
12225 The simplest kind of input method works by mapping ASCII letters into
12226 another alphabet.  This is how the Greek and Russian input methods
12227 work.
12229 A more powerful technique is composition: converting sequences of
12230 characters into one letter.  Many European input methods use
12231 composition to produce a single non-ASCII letter from a sequence which
12232 consists of a letter followed by diacritics.  For example, a' is one
12233 sequence of two characters that might be converted into a single
12234 letter.
12236 The input methods for syllabic scripts typically use mapping followed
12237 by conversion.  The input methods for Thai and Korean work this way.
12238 First, letters are mapped into symbols for particular sounds or tone
12239 marks; then, sequences of these which make up a whole syllable are
12240 mapped into one syllable sign--most often a "composite character".
12242 None of these methods works very well for Chinese and Japanese, so
12243 they are handled specially.  First you input a whole word using
12244 phonetic spelling; then, after the word is in the buffer, Emacs
12245 converts it into one or more characters using a large dictionary.
12247 Since there is more than one way to represent a phonetically spelled
12248 word using Chinese characters, Emacs can only guess which one to use;
12249 typically these input methods give you a way to say "guess again" if
12250 the first guess is wrong.
12252 *** The command C-x RET m (toggle-enable-multibyte-characters)
12253 turns multibyte character support on or off for the current buffer.
12255 If multibyte character support is turned off in a buffer, then each
12256 byte is a single character, even codes 0200 through 0377--exactly as
12257 they did in Emacs 19.34.  This includes the features for support for
12258 the European characters, ISO Latin-1 and ISO Latin-2.
12260 However, there is no need to turn off multibyte character support to
12261 use ISO Latin-1 or ISO Latin-2; the Emacs multibyte character set
12262 includes all the characters in these character sets, and Emacs can
12263 translate automatically to and from either one.
12265 *** Visiting a file in unibyte mode.
12267 Turning off multibyte character support in the buffer after visiting a
12268 file with multibyte code conversion will display the multibyte
12269 sequences already in the buffer, byte by byte.  This is probably not
12270 what you want.
12272 If you want to edit a file of unibyte characters (Latin-1, for
12273 example), you can do it by specifying `no-conversion' as the coding
12274 system when reading the file.  This coding system also turns off
12275 multibyte characters in that buffer.
12277 If you turn off multibyte character support entirely, this turns off
12278 character conversion as well.
12280 *** Displaying international characters on X Windows.
12282 A font for X typically displays just one alphabet or script.
12283 Therefore, displaying the entire range of characters Emacs supports
12284 requires using many fonts.
12286 Therefore, Emacs now supports "fontsets".  Each fontset is a
12287 collection of fonts, each assigned to a range of character codes.
12289 A fontset has a name, like a font.  Individual fonts are defined by
12290 the X server; fontsets are defined within Emacs itself.  But once you
12291 have defined a fontset, you can use it in a face or a frame just as
12292 you would use a font.
12294 If a fontset specifies no font for a certain character, or if it
12295 specifies a font that does not exist on your system, then it cannot
12296 display that character.  It will display an empty box instead.
12298 The fontset height and width are determined by the ASCII characters
12299 (that is, by the font in the fontset which is used for ASCII
12300 characters).
12302 *** Defining fontsets.
12304 Emacs does not use any fontset by default.  Its default font is still
12305 chosen as in previous versions.  You can tell Emacs to use a fontset
12306 with the `-fn' option or the `Font' X resource.
12308 Emacs creates a standard fontset automatically according to the value
12309 of standard-fontset-spec.  This fontset's short name is
12310 `fontset-standard'.  Bold, italic, and bold-italic variants of the
12311 standard fontset are created automatically.
12313 If you specify a default ASCII font with the `Font' resource or `-fn'
12314 argument, a fontset is generated from it.  This works by replacing the
12315 FOUNDARY, FAMILY, ADD_STYLE, and AVERAGE_WIDTH fields of the font name
12316 with `*' then using this to specify a fontset.  This fontset's short
12317 name is `fontset-startup'.
12319 Emacs checks resources of the form Fontset-N where N is 0, 1, 2...
12320 The resource value should have this form:
12321         FONTSET-NAME, [CHARSET-NAME:FONT-NAME]...
12322 FONTSET-NAME should have the form of a standard X font name, except:
12323         * most fields should be just the wild card "*".
12324         * the CHARSET_REGISTRY field should be "fontset"
12325         * the CHARSET_ENCODING field can be any nickname of the fontset.
12326 The construct CHARSET-NAME:FONT-NAME can be repeated any number
12327 of times; each time specifies the font for one character set.
12328 CHARSET-NAME should be the name of a character set, and FONT-NAME
12329 should specify an actual font to use for that character set.
12331 Each of these fontsets has an alias which is made from the
12332 last two font name fields, CHARSET_REGISTRY and CHARSET_ENCODING.
12333 You can refer to the fontset by that alias or by its full name.
12335 For any character sets that you don't mention, Emacs tries to choose a
12336 font by substituting into FONTSET-NAME.  For instance, with the
12337 following resource,
12338         Emacs*Fontset-0: -*-fixed-medium-r-normal-*-24-*-*-*-*-*-fontset-24
12339 the font for ASCII is generated as below:
12340         -*-fixed-medium-r-normal-*-24-*-ISO8859-1
12341 Here is the substitution rule:
12342     Change CHARSET_REGISTRY and CHARSET_ENCODING to that of the charset
12343     defined in the variable x-charset-registries.  For instance, ASCII has
12344     the entry (ascii . "ISO8859-1") in this variable.  Then, reduce
12345     sequences of wild cards -*-...-*- with a single wildcard -*-.
12346     (This is to prevent use of auto-scaled fonts.)
12348 The function which processes the fontset resource value to create the
12349 fontset is called create-fontset-from-fontset-spec.  You can also call
12350 that function explicitly to create a fontset.
12352 With the X resource Emacs.Font, you can specify a fontset name just
12353 like an actual font name.  But be careful not to specify a fontset
12354 name in a wildcard resource like Emacs*Font--that tries to specify the
12355 fontset for other purposes including menus, and they cannot handle
12356 fontsets.
12358 *** The command M-x set-language-environment sets certain global Emacs
12359 defaults for a particular choice of language.
12361 Selecting a language environment typically specifies a default input
12362 method and which coding systems to recognize automatically when
12363 visiting files.  However, it does not try to reread files you have
12364 already visited; the text in those buffers is not affected.  The
12365 language environment may also specify a default choice of coding
12366 system for new files that you create.
12368 It makes no difference which buffer is current when you use
12369 set-language-environment, because these defaults apply globally to the
12370 whole Emacs session.
12372 For example, M-x set-language-environment RET Latin-1 RET
12373 chooses the Latin-1 character set.  In the .emacs file, you can do this
12374 with (set-language-environment "Latin-1").
12376 *** The command C-x RET f (set-buffer-file-coding-system)
12377 specifies the file coding system for the current buffer.  This
12378 specifies what sort of character code translation to do when saving
12379 the file.  As an argument, you must specify the name of one of the
12380 coding systems that Emacs supports.
12382 *** The command C-x RET c (universal-coding-system-argument)
12383 lets you specify a coding system when you read or write a file.
12384 This command uses the minibuffer to read a coding system name.
12385 After you exit the minibuffer, the specified coding system
12386 is used for *the immediately following command*.
12388 So if the immediately following command is a command to read or
12389 write a file, it uses the specified coding system for that file.
12391 If the immediately following command does not use the coding system,
12392 then C-x RET c ultimately has no effect.
12394 For example, C-x RET c iso-8859-1 RET C-x C-f temp RET
12395 visits the file `temp' treating it as ISO Latin-1.
12397 *** You can specify the coding system for a file using the -*-
12398 construct.  Include `coding: CODINGSYSTEM;' inside the -*-...-*-
12399 to specify use of coding system CODINGSYSTEM.  You can also
12400 specify the coding system in a local variable list at the end
12401 of the file.
12403 *** The command C-x RET t (set-terminal-coding-system) specifies
12404 the coding system for terminal output.  If you specify a character
12405 code for terminal output, all characters output to the terminal are
12406 translated into that character code.
12408 This feature is useful for certain character-only terminals built in
12409 various countries to support the languages of those countries.
12411 By default, output to the terminal is not translated at all.
12413 *** The command C-x RET k (set-keyboard-coding-system) specifies
12414 the coding system for keyboard input.
12416 Character code translation of keyboard input is useful for terminals
12417 with keys that send non-ASCII graphic characters--for example,
12418 some terminals designed for ISO Latin-1 or subsets of it.
12420 By default, keyboard input is not translated at all.
12422 Character code translation of keyboard input is similar to using an
12423 input method, in that both define sequences of keyboard input that
12424 translate into single characters.  However, input methods are designed
12425 to be convenient for interactive use, while the code translations are
12426 designed to work with terminals.
12428 *** The command C-x RET p (set-buffer-process-coding-system)
12429 specifies the coding system for input and output to a subprocess.
12430 This command applies to the current buffer; normally, each subprocess
12431 has its own buffer, and thus you can use this command to specify
12432 translation to and from a particular subprocess by giving the command
12433 in the corresponding buffer.
12435 By default, process input and output are not translated at all.
12437 *** The variable file-name-coding-system specifies the coding system
12438 to use for encoding file names before operating on them.
12439 It is also used for decoding file names obtained from the system.
12441 *** The command C-\ (toggle-input-method) activates or deactivates
12442 an input method.  If no input method has been selected before, the
12443 command prompts for you to specify the language and input method you
12444 want to use.
12446 C-u C-\ (select-input-method) lets you switch to a different input
12447 method.  C-h C-\ (or C-h I) describes the current input method.
12449 *** Some input methods remap the keyboard to emulate various keyboard
12450 layouts commonly used for particular scripts.  How to do this
12451 remapping properly depends on your actual keyboard layout.  To specify
12452 which layout your keyboard has, use M-x quail-set-keyboard-layout.
12454 *** The command C-h C (describe-coding-system) displays
12455 the coding systems currently selected for various purposes, plus
12456 related information.
12458 *** The command C-h h (view-hello-file) displays a file called
12459 HELLO, which has examples of text in many languages, using various
12460 scripts.
12462 *** The command C-h L (describe-language-support) displays
12463 information about the support for a particular language.
12464 You specify the language as an argument.
12466 *** The mode line now contains a letter or character that identifies
12467 the coding system used in the visited file.  It normally follows the
12468 first dash.
12470 A dash indicates the default state of affairs: no code conversion
12471 (except CRLF => newline if appropriate).  `=' means no conversion
12472 whatsoever.  The ISO 8859 coding systems are represented by digits
12473 1 through 9.  Other coding systems are represented by letters:
12475     A alternativnyj (Russian)
12476     B big5 (Chinese)
12477     C cn-gb-2312 (Chinese)
12478     C iso-2022-cn (Chinese)
12479     D in-is13194-devanagari (Indian languages)
12480     E euc-japan (Japanese)
12481     I iso-2022-cjk or iso-2022-ss2 (Chinese, Japanese, Korean)
12482     J junet (iso-2022-7) or old-jis (iso-2022-jp-1978-irv)  (Japanese)
12483     K euc-korea (Korean)
12484     R koi8 (Russian)
12485     Q tibetan
12486     S shift_jis (Japanese)
12487     T lao
12488     T tis620 (Thai)
12489     V viscii or vscii (Vietnamese)
12490     i iso-2022-lock (Chinese, Japanese, Korean)
12491     k iso-2022-kr (Korean)
12492     v viqr (Vietnamese)
12493     z hz (Chinese)
12495 When you are using a character-only terminal (not a window system),
12496 two additional characters appear in between the dash and the file
12497 coding system.  These two characters describe the coding system for
12498 keyboard input, and the coding system for terminal output.
12500 *** The new variable rmail-file-coding-system specifies the code
12501 conversion to use for RMAIL files.  The default value is nil.
12503 When you read mail with Rmail, each message is decoded automatically
12504 into Emacs' internal format.  This has nothing to do with
12505 rmail-file-coding-system.  That variable controls reading and writing
12506 Rmail files themselves.
12508 *** The new variable sendmail-coding-system specifies the code
12509 conversion for outgoing mail.  The default value is nil.
12511 Actually, there are three different ways of specifying the coding system
12512 for sending mail:
12514 - If you use C-x RET f in the mail buffer, that takes priority.
12515 - Otherwise, if you set sendmail-coding-system non-nil, that specifies it.
12516 - Otherwise, the default coding system for new files is used,
12517   if that is non-nil.  That comes from your language environment.
12518 - Otherwise, Latin-1 is used.
12520 *** The command C-h t (help-with-tutorial) accepts a prefix argument
12521 to specify the language for the tutorial file.  Currently, English,
12522 Japanese, Korean and Thai are supported.  We welcome additional
12523 translations.
12525 ** An easy new way to visit a file with no code or format conversion
12526 of any kind: Use M-x find-file-literally.  There is also a command
12527 insert-file-literally which inserts a file into the current buffer
12528 without any conversion.
12530 ** C-q's handling of octal character codes is changed.
12531 You can now specify any number of octal digits.
12532 RET terminates the digits and is discarded;
12533 any other non-digit terminates the digits and is then used as input.
12535 ** There are new commands for looking up Info documentation for
12536 functions, variables and file names used in your programs.
12538 Type M-x info-lookup-symbol to look up a symbol in the buffer at point.
12539 Type M-x info-lookup-file to look up a file in the buffer at point.
12541 Precisely which Info files are used to look it up depends on the major
12542 mode.  For example, in C mode, the GNU libc manual is used.
12544 ** M-TAB in most programming language modes now runs the command
12545 complete-symbol.  This command performs completion on the symbol name
12546 in the buffer before point.
12548 With a numeric argument, it performs completion based on the set of
12549 symbols documented in the Info files for the programming language that
12550 you are using.
12552 With no argument, it does completion based on the current tags tables,
12553 just like the old binding of M-TAB (complete-tag).
12555 ** File locking works with NFS now.
12557 The lock file for FILENAME is now a symbolic link named .#FILENAME,
12558 in the same directory as FILENAME.
12560 This means that collision detection between two different machines now
12561 works reasonably well; it also means that no file server or directory
12562 can become a bottleneck.
12564 The new method does have drawbacks.  It means that collision detection
12565 does not operate when you edit a file in a directory where you cannot
12566 create new files.  Collision detection also doesn't operate when the
12567 file server does not support symbolic links.  But these conditions are
12568 rare, and the ability to have collision detection while using NFS is
12569 so useful that the change is worth while.
12571 When Emacs or a system crashes, this may leave behind lock files which
12572 are stale.  So you may occasionally get warnings about spurious
12573 collisions.  When you determine that the collision is spurious, just
12574 tell Emacs to go ahead anyway.
12576 ** If you wish to use Show Paren mode to display matching parentheses,
12577 it is no longer sufficient to load paren.el.  Instead you must call
12578 show-paren-mode.
12580 ** If you wish to use Delete Selection mode to replace a highlighted
12581 selection when you insert new text, it is no longer sufficient to load
12582 delsel.el.  Instead you must call the function delete-selection-mode.
12584 ** If you wish to use Partial Completion mode to complete partial words
12585 within symbols or filenames, it is no longer sufficient to load
12586 complete.el.  Instead you must call the function partial-completion-mode.
12588 ** If you wish to use uniquify to rename buffers for you,
12589 it is no longer sufficient to load uniquify.el.  You must also
12590 set uniquify-buffer-name-style to one of the non-nil legitimate values.
12592 ** Changes in View mode.
12594 *** Several new commands are available in View mode.
12595 Do H in view mode for a list of commands.
12597 *** There are two new commands for entering View mode:
12598 view-file-other-frame and view-buffer-other-frame.
12600 *** Exiting View mode does a better job of restoring windows to their
12601 previous state.
12603 *** New customization variable view-scroll-auto-exit. If non-nil,
12604 scrolling past end of buffer makes view mode exit.
12606 *** New customization variable view-exits-all-viewing-windows.  If
12607 non-nil, view-mode will at exit restore all windows viewing buffer,
12608 not just the selected window.
12610 *** New customization variable view-read-only.  If non-nil, visiting a
12611 read-only file automatically enters View mode, and toggle-read-only
12612 turns View mode on or off.
12614 *** New customization variable view-remove-frame-by-deleting controls
12615 how to remove a not needed frame at view mode exit. If non-nil,
12616 delete the frame, if nil make an icon of it.
12618 ** C-x v l, the command to print a file's version control log,
12619 now positions point at the entry for the file's current branch version.
12621 ** C-x v =, the command to compare a file with the last checked-in version,
12622 has a new feature.  If the file is currently not locked, so that it is
12623 presumably identical to the last checked-in version, the command now asks
12624 which version to compare with.
12626 ** When using hideshow.el, incremental search can temporarily show hidden
12627 blocks if a match is inside the block.
12629 The block is hidden again if the search is continued and the next match
12630 is outside the block.  By customizing the variable
12631 isearch-hide-immediately you can choose to hide all the temporarily
12632 shown blocks only when exiting from incremental search.
12634 By customizing the variable hs-isearch-open you can choose what kind
12635 of blocks to temporarily show during isearch: comment blocks, code
12636 blocks, all of them or none.
12638 ** The new command C-x 4 0 (kill-buffer-and-window) kills the
12639 current buffer and deletes the selected window.  It asks for
12640 confirmation first.
12642 ** C-x C-w, which saves the buffer into a specified file name,
12643 now changes the major mode according to that file name.
12644 However, the mode will not be changed if
12645 (1) a local variables list or the `-*-' line specifies a major mode, or
12646 (2) the current major mode is a "special" mode,
12647     not suitable for ordinary files, or
12648 (3) the new file name does not particularly specify any mode.
12650 This applies to M-x set-visited-file-name as well.
12652 However, if you set change-major-mode-with-file-name to nil, then
12653 these commands do not change the major mode.
12655 ** M-x occur changes.
12657 *** If the argument to M-x occur contains upper case letters,
12658 it performs a case-sensitive search.
12660 *** In the *Occur* buffer made by M-x occur,
12661 if you type g or M-x revert-buffer, this repeats the search
12662 using the same regular expression and the same buffer as before.
12664 ** In Transient Mark mode, the region in any one buffer is highlighted
12665 in just one window at a time.  At first, it is highlighted in the
12666 window where you set the mark.  The buffer's highlighting remains in
12667 that window unless you select to another window which shows the same
12668 buffer--then the highlighting moves to that window.
12670 ** The feature to suggest key bindings when you use M-x now operates
12671 after the command finishes.  The message suggesting key bindings
12672 appears temporarily in the echo area.  The previous echo area contents
12673 come back after a few seconds, in case they contain useful information.
12675 ** Each frame now independently records the order for recently
12676 selected buffers, so that the default for C-x b is now based on the
12677 buffers recently selected in the selected frame.
12679 ** Outline mode changes.
12681 *** Outline mode now uses overlays (this is the former noutline.el).
12683 *** Incremental searches skip over invisible text in Outline mode.
12685 ** When a minibuffer window is active but not the selected window, if
12686 you try to use the minibuffer, you used to get a nested minibuffer.
12687 Now, this not only gives an error, it also cancels the minibuffer that
12688 was already active.
12690 The motive for this change is so that beginning users do not
12691 unknowingly move away from minibuffers, leaving them active, and then
12692 get confused by it.
12694 If you want to be able to have recursive minibuffers, you must
12695 set enable-recursive-minibuffers to non-nil.
12697 ** Changes in dynamic abbrevs.
12699 *** Expanding dynamic abbrevs with M-/ is now smarter about case
12700 conversion.  If the expansion has mixed case not counting the first
12701 character, and the abbreviation matches the beginning of the expansion
12702 including case, then the expansion is copied verbatim.
12704 The expansion is also copied verbatim if the abbreviation itself has
12705 mixed case.  And using SPC M-/ to copy an additional word always
12706 copies it verbatim except when the previous copied word is all caps.
12708 *** The values of `dabbrev-case-replace' and `dabbrev-case-fold-search'
12709 are no longer Lisp expressions.  They have simply three possible
12710 values.
12712 `dabbrev-case-replace' has these three values: nil (don't preserve
12713 case), t (do), or `case-replace' (do like M-x query-replace).
12714 `dabbrev-case-fold-search' has these three values: nil (don't ignore
12715 case), t (do), or `case-fold-search' (do like search).
12717 ** Minibuffer history lists are truncated automatically now to a
12718 certain length.  The variable history-length specifies how long they
12719 can be.  The default value is 30.
12721 ** Changes in Mail mode.
12723 *** The key C-x m no longer runs the `mail' command directly.
12724 Instead, it runs the command `compose-mail', which invokes the mail
12725 composition mechanism you have selected with the variable
12726 `mail-user-agent'.  The default choice of user agent is
12727 `sendmail-user-agent', which gives behavior compatible with the old
12728 behavior.
12730 C-x 4 m now runs compose-mail-other-window, and C-x 5 m runs
12731 compose-mail-other-frame.
12733 *** While composing a reply to a mail message, from Rmail, you can use
12734 the command C-c C-r to cite just the region from the message you are
12735 replying to.  This copies the text which is the selected region in the
12736 buffer that shows the original message.
12738 *** The command C-c C-i inserts a file at the end of the message,
12739 with separator lines around the contents.
12741 *** The command M-x expand-mail-aliases expands all mail aliases
12742 in suitable mail headers.  Emacs automatically extracts mail alias
12743 definitions from your mail alias file (e.g., ~/.mailrc).  You do not
12744 need to expand mail aliases yourself before sending mail.
12746 *** New features in the mail-complete command.
12748 **** The mail-complete command now inserts the user's full name,
12749 for local users or if that is known.  The variable mail-complete-style
12750 controls the style to use, and whether to do this at all.
12751 Its values are like those of mail-from-style.
12753 **** The variable mail-passwd-command lets you specify a shell command
12754 to run to fetch a set of password-entries that add to the ones in
12755 /etc/passwd.
12757 **** The variable mail-passwd-file now specifies a list of files to read
12758 to get the list of user ids.  By default, one file is used:
12759 /etc/passwd.
12761 ** You can "quote" a file name to inhibit special significance of
12762 special syntax, by adding `/:' to the beginning.  Thus, if you have a
12763 directory named `/foo:', you can prevent it from being treated as a
12764 reference to a remote host named `foo' by writing it as `/:/foo:'.
12766 Emacs uses this new construct automatically when necessary, such as
12767 when you start it with a working directory whose name might otherwise
12768 be taken to be magic.
12770 ** There is a new command M-x grep-find which uses find to select
12771 files to search through, and grep to scan them.  The output is
12772 available in a Compile mode buffer, as with M-x grep.
12774 M-x grep now uses the -e option if the grep program supports that.
12775 (-e prevents problems if the search pattern starts with a dash.)
12777 ** In Dired, the & command now flags for deletion the files whose names
12778 suggest they are probably not needed in the long run.
12780 In Dired, * is now a prefix key for mark-related commands.
12782 new key         dired.el binding                old key
12783 -------         ----------------                -------
12784   * c           dired-change-marks              c
12785   * m           dired-mark                      m
12786   * *           dired-mark-executables          *  (binding deleted)
12787   * /           dired-mark-directories          /  (binding deleted)
12788   * @           dired-mark-symlinks             @  (binding deleted)
12789   * u           dired-unmark                    u
12790   * DEL         dired-unmark-backward           DEL
12791   * ?           dired-unmark-all-files          C-M-?
12792   * !           dired-unmark-all-marks
12793   * %           dired-mark-files-regexp         % m
12794   * C-n         dired-next-marked-file          M-}
12795   * C-p         dired-prev-marked-file          M-{
12797 ** Rmail changes.
12799 *** When Rmail cannot convert your incoming mail into Babyl format, it
12800 saves the new mail in the file RMAILOSE.n, where n is an integer
12801 chosen to make a unique name.  This way, Rmail will not keep crashing
12802 each time you run it.
12804 *** In Rmail, the variable rmail-summary-line-count-flag now controls
12805 whether to include the line count in the summary.  Non-nil means yes.
12807 *** In Rmail summary buffers, d and C-d (the commands to delete
12808 messages) now take repeat counts as arguments.  A negative argument
12809 means to move in the opposite direction.
12811 *** In Rmail, the t command now takes an optional argument which lets
12812 you specify whether to show the message headers in full or pruned.
12814 *** In Rmail, the new command w (rmail-output-body-to-file) writes
12815 just the body of the current message into a file, without the headers.
12816 It takes the file name from the message subject, by default, but you
12817 can edit that file name in the minibuffer before it is actually used
12818 for output.
12820 ** Gnus changes.
12822 *** nntp.el has been totally rewritten in an asynchronous fashion.
12824 *** Article prefetching functionality has been moved up into
12825 Gnus.
12827 *** Scoring can now be performed with logical operators like
12828 `and', `or', `not', and parent redirection.
12830 *** Article washing status can be displayed in the
12831 article mode line.
12833 *** gnus.el has been split into many smaller files.
12835 *** Suppression of duplicate articles based on Message-ID.
12837 (setq gnus-suppress-duplicates t)
12839 *** New variables for specifying what score and adapt files
12840 are to be considered home score and adapt files.  See
12841 `gnus-home-score-file' and `gnus-home-adapt-files'.
12843 *** Groups can inherit group parameters from parent topics.
12845 *** Article editing has been revamped and is now usable.
12847 *** Signatures can be recognized in more intelligent fashions.
12848 See `gnus-signature-separator' and `gnus-signature-limit'.
12850 *** Summary pick mode has been made to look more nn-like.
12851 Line numbers are displayed and the `.' command can be
12852 used to pick articles.
12854 *** Commands for moving the .newsrc.eld from one server to
12855 another have been added.
12857     `M-x gnus-change-server'
12859 *** A way to specify that "uninteresting" fields be suppressed when
12860 generating lines in buffers.
12862 *** Several commands in the group buffer can be undone with
12863 `C-M-_'.
12865 *** Scoring can be done on words using the new score type `w'.
12867 *** Adaptive scoring can be done on a Subject word-by-word basis:
12869     (setq gnus-use-adaptive-scoring '(word))
12871 *** Scores can be decayed.
12873     (setq gnus-decay-scores t)
12875 *** Scoring can be performed using a regexp on the Date header.  The
12876 Date is normalized to compact ISO 8601 format first.
12878 *** A new command has been added to remove all data on articles from
12879 the native server.
12881    `M-x gnus-group-clear-data-on-native-groups'
12883 *** A new command for reading collections of documents
12884 (nndoc with nnvirtual on top) has been added -- `C-M-d'.
12886 *** Process mark sets can be pushed and popped.
12888 *** A new mail-to-news backend makes it possible to post
12889 even when the NNTP server doesn't allow posting.
12891 *** A new backend for reading searches from Web search engines
12892 (DejaNews, Alta Vista, InReference) has been added.
12894     Use the `G w' command in the group buffer to create such
12895     a group.
12897 *** Groups inside topics can now be sorted using the standard
12898 sorting functions, and each topic can be sorted independently.
12900     See the commands under the `T S' submap.
12902 *** Subsets of the groups can be sorted independently.
12904     See the commands under the `G P' submap.
12906 *** Cached articles can be pulled into the groups.
12908     Use the `Y c' command.
12910 *** Score files are now applied in a more reliable order.
12912 *** Reports on where mail messages end up can be generated.
12914     `M-x nnmail-split-history'
12916 *** More hooks and functions have been added to remove junk
12917 from incoming mail before saving the mail.
12919     See `nnmail-prepare-incoming-header-hook'.
12921 *** The nnml mail backend now understands compressed article files.
12923 *** To enable Gnus to read/post multi-lingual articles, you must execute
12924 the following code, for instance, in your .emacs.
12926         (add-hook 'gnus-startup-hook 'gnus-mule-initialize)
12928 Then, when you start Gnus, it will decode non-ASCII text automatically
12929 and show appropriate characters.  (Note: if you are using gnus-mime
12930 from the SEMI package, formerly known as TM, you should NOT add this
12931 hook to gnus-startup-hook; gnus-mime has its own method of handling
12932 this issue.)
12934 Since it is impossible to distinguish all coding systems
12935 automatically, you may need to specify a choice of coding system for a
12936 particular news group.  This can be done by:
12938         (gnus-mule-add-group NEWSGROUP 'CODING-SYSTEM)
12940 Here NEWSGROUP should be a string which names a newsgroup or a tree
12941 of newsgroups.  If NEWSGROUP is "XXX.YYY", all news groups under
12942 "XXX.YYY" (including "XXX.YYY.ZZZ") will use the specified coding
12943 system.  CODING-SYSTEM specifies which coding system to use (for both
12944 for reading and posting).
12946 CODING-SYSTEM can also be a cons cell of the form
12947   (READ-CODING-SYSTEM . POST-CODING-SYSTEM)
12948 Then READ-CODING-SYSTEM is used when you read messages from the
12949 newsgroups, while POST-CODING-SYSTEM is used when you post messages
12950 there.
12952 Emacs knows the right coding systems for certain newsgroups by
12953 default.  Here are some of these default settings:
12955         (gnus-mule-add-group "fj" 'iso-2022-7)
12956         (gnus-mule-add-group "alt.chinese.text" 'hz-gb-2312)
12957         (gnus-mule-add-group "alt.hk" 'hz-gb-2312)
12958         (gnus-mule-add-group "alt.chinese.text.big5" 'cn-big5)
12959         (gnus-mule-add-group "soc.culture.vietnamese" '(nil . viqr))
12961 When you reply by mail to an article, these settings are ignored;
12962 the mail is encoded according to sendmail-coding-system, as usual.
12964 ** CC mode changes.
12966 *** If you edit primarily one style of C (or C++, Objective-C, Java)
12967 code, you may want to make the CC Mode style variables have global
12968 values so that you can set them directly in your .emacs file.  To do
12969 this, set c-style-variables-are-local-p to nil in your .emacs file.
12970 Note that this only takes effect if you do it *before* cc-mode.el is
12971 loaded.
12973 If you typically edit more than one style of C (or C++, Objective-C,
12974 Java) code in a single Emacs session, you may want to make the CC Mode
12975 style variables have buffer local values.  By default, all buffers
12976 share the same style variable settings; to make them buffer local, set
12977 c-style-variables-are-local-p to t in your .emacs file.  Note that you
12978 must do this *before* CC Mode is loaded.
12980 *** The new variable c-indentation-style holds the C style name
12981 of the current buffer.
12983 *** The variable c-block-comments-indent-p has been deleted, because
12984 it is no longer necessary.  C mode now handles all the supported styles
12985 of block comments, with no need to say which one you will use.
12987 *** There is a new indentation style "python", which specifies the C
12988 style that the Python developers like.
12990 *** There is a new c-cleanup-list option: brace-elseif-brace.
12991 This says to put ...} else if (...) {... on one line,
12992 just as brace-else-brace says to put ...} else {... on one line.
12994 ** VC Changes [new]
12996 *** In vc-retrieve-snapshot (C-x v r), if you don't specify a snapshot
12997 name, it retrieves the *latest* versions of all files in the current
12998 directory and its subdirectories (aside from files already locked).
13000 This feature is useful if your RCS directory is a link to a common
13001 master directory, and you want to pick up changes made by other
13002 developers.
13004 You can do the same thing for an individual file by typing C-u C-x C-q
13005 RET in a buffer visiting that file.
13007 *** VC can now handle files under CVS that are being "watched" by
13008 other developers.  Such files are made read-only by CVS.  To get a
13009 writable copy, type C-x C-q in a buffer visiting such a file.  VC then
13010 calls "cvs edit", which notifies the other developers of it.
13012 *** vc-version-diff (C-u C-x v =) now suggests reasonable defaults for
13013 version numbers, based on the current state of the file.
13015 ** Calendar changes.
13017 *** A new function, list-holidays, allows you list holidays or
13018 subclasses of holidays for ranges of years.  Related menu items allow
13019 you do this for the year of the selected date, or the
13020 following/previous years.
13022 *** There is now support for the Baha'i calendar system.  Use `pb' in
13023 the *Calendar* buffer to display the current Baha'i date.  The Baha'i
13024 calendar, or "Badi calendar" is a system of 19 months with 19 days
13025 each, and 4 intercalary days (5 during a Gregorian leap year).  The
13026 calendar begins May 23, 1844, with each of the months named after a
13027 supposed attribute of God.
13029 ** ps-print changes
13031 There are some new user variables and subgroups for customizing the page
13032 layout.
13034 *** Headers & Footers (subgroup)
13036 Some printer systems print a header page and force the first page to
13037 be printed on the back of the header page when using duplex.  If your
13038 printer system has this behavior, set variable
13039 `ps-banner-page-when-duplexing' to t.
13041 If variable `ps-banner-page-when-duplexing' is non-nil, it prints a
13042 blank page as the very first printed page.  So, it behaves as if the
13043 very first character of buffer (or region) were a form feed ^L (\014).
13045 The variable `ps-spool-config' specifies who is responsible for
13046 setting duplex mode and page size.  Valid values are:
13048  lpr-switches    duplex and page size are configured by `ps-lpr-switches'.
13049                  Don't forget to set `ps-lpr-switches' to select duplex
13050                  printing for your printer.
13052  setpagedevice   duplex and page size are configured by ps-print using the
13053                  setpagedevice PostScript operator.
13055  nil             duplex and page size are configured by ps-print *not* using
13056                  the setpagedevice PostScript operator.
13058 The variable `ps-spool-tumble' specifies how the page images on
13059 opposite sides of a sheet are oriented with respect to each other.  If
13060 `ps-spool-tumble' is nil, ps-print produces output suitable for
13061 bindings on the left or right.  If `ps-spool-tumble' is non-nil,
13062 ps-print produces output suitable for bindings at the top or bottom.
13063 This variable takes effect only if `ps-spool-duplex' is non-nil.
13064 The default value is nil.
13066 The variable `ps-header-frame-alist' specifies a header frame
13067 properties alist.  Valid frame properties are:
13069   fore-color    Specify the foreground frame color.
13070                 Value should be a float number between 0.0 (black
13071                 color) and 1.0 (white color), or a string which is a
13072                 color name, or a list of 3 float numbers which
13073                 correspond to the Red Green Blue color scale, each
13074                 float number between 0.0 (dark color) and 1.0 (bright
13075                 color).  The default is 0 ("black").
13077   back-color    Specify the background frame color (similar to fore-color).
13078                 The default is 0.9 ("gray90").
13080   shadow-color  Specify the shadow color (similar to fore-color).
13081                 The default is 0 ("black").
13083   border-color  Specify the border color (similar to fore-color).
13084                 The default is 0 ("black").
13086   border-width  Specify the border width.
13087                 The default is 0.4.
13089 Any other property is ignored.
13091 Don't change this alist directly; instead use Custom, or the
13092 `ps-value', `ps-get', `ps-put' and `ps-del' functions (see there for
13093 documentation).
13095 Ps-print can also print footers.  The footer variables are:
13096 `ps-print-footer', `ps-footer-offset', `ps-print-footer-frame',
13097 `ps-footer-font-family', `ps-footer-font-size', `ps-footer-line-pad',
13098 `ps-footer-lines', `ps-left-footer', `ps-right-footer' and
13099 `ps-footer-frame-alist'.  These variables are similar to those
13100 controlling headers.
13102 *** Color management (subgroup)
13104 If `ps-print-color-p' is non-nil, the buffer's text will be printed in
13105 color.
13107 *** Face Management (subgroup)
13109 If you need to print without worrying about face background colors,
13110 set the variable `ps-use-face-background' which specifies if face
13111 background should be used.  Valid values are:
13113  t              always use face background color.
13114  nil            never use face background color.
13115  (face...)      list of faces whose background color will be used.
13117 *** N-up printing (subgroup)
13119 The variable `ps-n-up-printing' specifies the number of pages per
13120 sheet of paper.
13122 The variable `ps-n-up-margin' specifies the margin in points (pt)
13123 between the sheet border and the n-up printing.
13125 If variable `ps-n-up-border-p' is non-nil, a border is drawn around
13126 each page.
13128 The variable `ps-n-up-filling' specifies how the page matrix is filled
13129 on each sheet of paper.  Following are the valid values for
13130 `ps-n-up-filling' with a filling example using a 3x4 page matrix:
13132    `left-top'   1  2  3  4         `left-bottom'    9  10 11 12
13133                 5  6  7  8                          5  6  7  8
13134                 9  10 11 12                         1  2  3  4
13136    `right-top'  4  3  2  1         `right-bottom'   12 11 10 9
13137                 8  7  6  5                          8  7  6  5
13138                 12 11 10 9                          4  3  2  1
13140    `top-left'   1  4  7  10        `bottom-left'    3  6  9  12
13141                 2  5  8  11                         2  5  8  11
13142                 3  6  9  12                         1  4  7  10
13144    `top-right'  10 7  4  1         `bottom-right'   12 9  6  3
13145                 11 8  5  2                          11 8  5  2
13146                 12 9  6  3                          10 7  4  1
13148 Any other value is treated as `left-top'.
13150 *** Zebra stripes (subgroup)
13152 The variable `ps-zebra-color' controls the zebra stripes grayscale or
13153 RGB color.
13155 The variable `ps-zebra-stripe-follow' specifies how zebra stripes
13156 continue on next page.  Visually, valid values are (the character `+'
13157 to the right of each column indicates that a line is printed):
13159                    `nil'        `follow'        `full'        `full-follow'
13160    Current Page --------     -----------     ---------     ----------------
13161                 1  XXXXX +   1  XXXXXXXX +   1  XXXXXX +   1  XXXXXXXXXXXXX +
13162                 2  XXXXX +   2  XXXXXXXX +   2  XXXXXX +   2  XXXXXXXXXXXXX +
13163                 3  XXXXX +   3  XXXXXXXX +   3  XXXXXX +   3  XXXXXXXXXXXXX +
13164                 4        +   4           +   4         +   4                +
13165                 5        +   5           +   5         +   5                +
13166                 6        +   6           +   6         +   6                +
13167                 7  XXXXX +   7  XXXXXXXX +   7  XXXXXX +   7  XXXXXXXXXXXXX +
13168                 8  XXXXX +   8  XXXXXXXX +   8  XXXXXX +   8  XXXXXXXXXXXXX +
13169                 9  XXXXX +   9  XXXXXXXX +   9  XXXXXX +   9  XXXXXXXXXXXXX +
13170                 10       +   10          +
13171                 11       +   11          +
13172                 --------     -----------     ---------     ----------------
13173       Next Page --------     -----------     ---------     ----------------
13174                 12 XXXXX +   12          +   10 XXXXXX +   10               +
13175                 13 XXXXX +   13 XXXXXXXX +   11 XXXXXX +   11               +
13176                 14 XXXXX +   14 XXXXXXXX +   12 XXXXXX +   12               +
13177                 15       +   15 XXXXXXXX +   13        +   13 XXXXXXXXXXXXX +
13178                 16       +   16          +   14        +   14 XXXXXXXXXXXXX +
13179                 17       +   17          +   15        +   15 XXXXXXXXXXXXX +
13180                 18 XXXXX +   18          +   16 XXXXXX +   16               +
13181                 19 XXXXX +   19 XXXXXXXX +   17 XXXXXX +   17               +
13182                 20 XXXXX +   20 XXXXXXXX +   18 XXXXXX +   18               +
13183                 21       +   21 XXXXXXXX +
13184                 22       +   22          +
13185                 --------     -----------     ---------     ----------------
13187 Any other value is treated as `nil'.
13190 *** Printer management (subgroup)
13192 The variable `ps-printer-name-option' determines the option used by
13193 some utilities to indicate the printer name; it's used only when
13194 `ps-printer-name' is a non-empty string.  If you're using the lpr
13195 utility to print, for example, `ps-printer-name-option' should be set
13196 to "-P".
13198 The variable `ps-manual-feed' indicates if the printer requires manual
13199 paper feeding.  If it's nil, automatic feeding takes place.  If it's
13200 non-nil, manual feeding takes place.
13202 The variable `ps-end-with-control-d' specifies whether C-d (\x04)
13203 should be inserted at end of the generated PostScript.  Non-nil means
13204 do so.
13206 *** Page settings (subgroup)
13208 If variable `ps-warn-paper-type' is nil, it's *not* treated as an
13209 error if the PostScript printer doesn't have a paper with the size
13210 indicated by `ps-paper-type'; the default paper size will be used
13211 instead.  If `ps-warn-paper-type' is non-nil, an error is signaled if
13212 the PostScript printer doesn't support a paper with the size indicated
13213 by `ps-paper-type'.  This is used when `ps-spool-config' is set to
13214 `setpagedevice'.
13216 The variable `ps-print-upside-down' determines the orientation for
13217 printing pages: nil means `normal' printing, non-nil means
13218 `upside-down' printing (that is, the page is rotated by 180 degrees).
13220 The variable `ps-selected-pages' specifies which pages to print.  If
13221 it's nil, all pages are printed.  If it's a list, list elements may be
13222 integers specifying a single page to print, or cons cells (FROM . TO)
13223 specifying to print from page FROM to TO.  Invalid list elements, that
13224 is integers smaller than one, or elements whose FROM is greater than
13225 its TO, are ignored.
13227 The variable `ps-even-or-odd-pages' specifies how to print even/odd
13228 pages.  Valid values are:
13230    nil          print all pages.
13232    `even-page'  print only even pages.
13234    `odd-page'   print only odd pages.
13236    `even-sheet' print only even sheets.
13237                 That is, if `ps-n-up-printing' is 1, it behaves like
13238                 `even-page', but for values greater than 1, it'll
13239                 print only the even sheet of paper.
13241    `odd-sheet'  print only odd sheets.
13242                 That is, if `ps-n-up-printing' is 1, it behaves like
13243                 `odd-page'; but for values greater than 1, it'll print
13244                 only the odd sheet of paper.
13246 Any other value is treated as nil.
13248 If you set `ps-selected-pages' (see there for documentation), pages
13249 are filtered by `ps-selected-pages', and then by
13250 `ps-even-or-odd-pages'.  For example, if we have:
13252    (setq ps-selected-pages '(1 4 (6 . 10) (12 . 16) 20))
13254 and we combine this with `ps-even-or-odd-pages' and
13255 `ps-n-up-printing', we get:
13257 `ps-n-up-printing' = 1:
13258    `ps-even-or-odd-pages'       PAGES PRINTED
13259         nil                     1, 4, 6, 7, 8, 9, 10, 12, 13, 14, 15, 16, 20
13260         even-page               4, 6, 8, 10, 12, 14, 16, 20
13261         odd-page                1, 7, 9, 13, 15
13262         even-sheet              4, 6, 8, 10, 12, 14, 16, 20
13263         odd-sheet               1, 7, 9, 13, 15
13265 `ps-n-up-printing' = 2:
13266    `ps-even-or-odd-pages'       PAGES PRINTED
13267         nil                     1/4, 6/7, 8/9, 10/12, 13/14, 15/16, 20
13268         even-page               4/6, 8/10, 12/14, 16/20
13269         odd-page                1/7, 9/13, 15
13270         even-sheet              6/7, 10/12, 15/16
13271         odd-sheet               1/4, 8/9, 13/14, 20
13273 *** Miscellany (subgroup)
13275 The variable `ps-error-handler-message' specifies where error handler
13276 messages should be sent.
13278 It is also possible to add a user-defined PostScript prologue code in
13279 front of all generated prologue code by setting the variable
13280 `ps-user-defined-prologue'.
13282 The variable `ps-line-number-font' specifies the font for line numbers.
13284 The variable `ps-line-number-font-size' specifies the font size in
13285 points for line numbers.
13287 The variable `ps-line-number-color' specifies the color for line
13288 numbers.  See `ps-zebra-color' for documentation.
13290 The variable `ps-line-number-step' specifies the interval in which
13291 line numbers are printed.  For example, if `ps-line-number-step' is set
13292 to 2, the printing will look like:
13294    1 one line
13295      one line
13296    3 one line
13297      one line
13298    5 one line
13299      one line
13300      ...
13302 Valid values are:
13304 integer         an integer specifying the interval in which line numbers are
13305                 printed.  If it's smaller than or equal to zero, 1
13306                 is used.
13308 `zebra'         specifies that only the line number of the first line in a
13309                 zebra stripe is to be printed.
13311 Any other value is treated as `zebra'.
13313 The variable `ps-line-number-start' specifies the starting point in
13314 the interval given by `ps-line-number-step'.  For example, if
13315 `ps-line-number-step' is set to 3, and `ps-line-number-start' is set to
13316 3, the output will look like:
13318      one line
13319      one line
13320    3 one line
13321      one line
13322      one line
13323    6 one line
13324      one line
13325      one line
13326    9 one line
13327      one line
13328      ...
13330 The variable `ps-postscript-code-directory' specifies the directory
13331 where the PostScript prologue file used by ps-print is found.
13333 The variable `ps-line-spacing' determines the line spacing in points,
13334 for ordinary text, when generating PostScript (similar to
13335 `ps-font-size').
13337 The variable `ps-paragraph-spacing' determines the paragraph spacing,
13338 in points, for ordinary text, when generating PostScript (similar to
13339 `ps-font-size').
13341 The variable `ps-paragraph-regexp' specifies the paragraph delimiter.
13343 The variable `ps-begin-cut-regexp' and `ps-end-cut-regexp' specify the
13344 start and end of a region to cut out when printing.
13346 ** hideshow changes.
13348 *** now supports hiding of blocks of single line comments (like // for
13349 C++, ; for lisp).
13351 *** Support for java-mode added.
13353 *** When doing `hs-hide-all' it is now possible to also hide the comments
13354 in the file if `hs-hide-comments-when-hiding-all' is set.
13356 *** The new function `hs-hide-initial-comment' hides the comments at
13357 the beginning of the files.  Finally those huge RCS logs don't stay in your
13358 way!  This is run by default when entering the `hs-minor-mode'.
13360 *** Now uses overlays instead of `selective-display', so is more
13361 robust and a lot faster.
13363 *** A block beginning can span multiple lines.
13365 *** The new variable `hs-show-hidden-short-form' if t, directs hideshow
13366 to show only the beginning of a block when it is hidden.  See the
13367 documentation for more details.
13369 ** Changes in Enriched mode.
13371 *** When you visit a file in enriched-mode, Emacs will make sure it is
13372 filled to the current fill-column.  This behavior is now independent
13373 of the size of the window.  When you save the file, the fill-column in
13374 use is stored as well, so that the whole buffer need not be refilled
13375 the next time unless the fill-column is different.
13377 *** use-hard-newlines is now a minor mode.  When it is enabled, Emacs
13378 distinguishes between hard and soft newlines, and treats hard newlines
13379 as paragraph boundaries.  Otherwise all newlines inserted are marked
13380 as soft, and paragraph boundaries are determined solely from the text.
13382 ** Font Lock mode
13384 *** Custom support
13386 The variables font-lock-face-attributes, font-lock-display-type and
13387 font-lock-background-mode are now obsolete; the recommended way to specify
13388 the faces to use for Font Lock mode is with M-x customize-group on the new
13389 custom group font-lock-faces.  If you set font-lock-face-attributes in your
13390 ~/.emacs file, Font Lock mode will respect its value.  However, you should
13391 consider converting from setting that variable to using M-x customize.
13393 You can still use X resources to specify Font Lock face appearances.
13395 *** Maximum decoration
13397 Fontification now uses the maximum level of decoration supported by
13398 default.  Previously, fontification used a mode-specific default level
13399 of decoration, which is typically the minimum level of decoration
13400 supported.  You can set font-lock-maximum-decoration to nil
13401 to get the old behavior.
13403 *** New support
13405 Support is now provided for Java, Objective-C, AWK and SIMULA modes.
13407 Note that Font Lock mode can be turned on without knowing exactly what modes
13408 support Font Lock mode, via the command global-font-lock-mode.
13410 *** Configurable support
13412 Support for C, C++, Objective-C and Java can be more easily configured for
13413 additional types and classes via the new variables c-font-lock-extra-types,
13414 c++-font-lock-extra-types, objc-font-lock-extra-types and, you guessed it,
13415 java-font-lock-extra-types.  These value of each of these variables should be a
13416 list of regexps matching the extra type names.  For example, the default value
13417 of c-font-lock-extra-types is ("\\sw+_t") which means fontification follows the
13418 convention that C type names end in _t.  This results in slower fontification.
13420 Of course, you can change the variables that specify fontification in whatever
13421 way you wish, typically by adding regexps.  However, these new variables make
13422 it easier to make specific and common changes for the fontification of types.
13424 *** Adding highlighting patterns to existing support
13426 You can use the new function font-lock-add-keywords to add your own
13427 highlighting patterns, such as for project-local or user-specific constructs,
13428 for any mode.
13430 For example, to highlight `FIXME:' words in C comments, put:
13432  (font-lock-add-keywords 'c-mode '(("\\<FIXME:" 0 font-lock-warning-face t)))
13434 in your ~/.emacs.
13436 *** New faces
13438 Font Lock now defines two new faces, font-lock-builtin-face and
13439 font-lock-warning-face.  These are intended to highlight builtin keywords,
13440 distinct from a language's normal keywords, and objects that should be brought
13441 to user attention, respectively.  Various modes now use these new faces.
13443 *** Changes to fast-lock support mode
13445 The fast-lock package, one of the two Font Lock support modes, can now process
13446 cache files silently.  You can use the new variable fast-lock-verbose, in the
13447 same way as font-lock-verbose, to control this feature.
13449 *** Changes to lazy-lock support mode
13451 The lazy-lock package, one of the two Font Lock support modes, can now fontify
13452 according to the true syntactic context relative to other lines.  You can use
13453 the new variable lazy-lock-defer-contextually to control this feature.  If
13454 non-nil, changes to the buffer will cause subsequent lines in the buffer to be
13455 refontified after lazy-lock-defer-time seconds of idle time.  If nil, then only
13456 the modified lines will be refontified; this is the same as the previous Lazy
13457 Lock mode behavior and the behavior of Font Lock mode.
13459 This feature is useful in modes where strings or comments can span lines.
13460 For example, if a string or comment terminating character is deleted, then if
13461 this feature is enabled subsequent lines in the buffer will be correctly
13462 refontified to reflect their new syntactic context.  Previously, only the line
13463 containing the deleted character would be refontified and you would have to use
13464 the command M-o M-o (font-lock-fontify-block) to refontify some lines.
13466 As a consequence of this new feature, two other variables have changed:
13468 Variable `lazy-lock-defer-driven' is renamed `lazy-lock-defer-on-scrolling'.
13469 Variable `lazy-lock-defer-time' can now only be a time, i.e., a number.
13470 Buffer modes for which on-the-fly deferral applies can be specified via the
13471 new variable `lazy-lock-defer-on-the-fly'.
13473 If you set these variables in your ~/.emacs, then you may have to change those
13474 settings.
13476 ** Ada mode changes.
13478 *** There is now better support for using find-file.el with Ada mode.
13479 If you switch between spec and body, the cursor stays in the same
13480 procedure (modulo overloading).  If a spec has no body file yet, but
13481 you try to switch to its body file, Ada mode now generates procedure
13482 stubs.
13484 *** There are two new commands:
13485  - `ada-make-local'   : invokes gnatmake on the current buffer
13486  - `ada-check-syntax' : check syntax of current buffer.
13488 The user options `ada-compiler-make', `ada-make-options',
13489 `ada-language-version', `ada-compiler-syntax-check', and
13490 `ada-compile-options' are used within these commands.
13492 *** Ada mode can now work with Outline minor mode.  The outline level
13493 is calculated from the indenting, not from syntactic constructs.
13494 Outlining does not work if your code is not correctly indented.
13496 *** The new function `ada-gnat-style' converts the buffer to the style of
13497 formatting used in GNAT.  It places two blanks after a comment start,
13498 places one blank between a word end and an opening '(', and puts one
13499 space between a comma and the beginning of a word.
13501 ** Scheme mode changes.
13503 *** Scheme mode indentation now uses many of the facilities of Lisp
13504 mode; therefore, the variables to customize it are the variables used
13505 for Lisp mode which have names starting with `lisp-'.  The variables
13506 with names starting with `scheme-' which used to do this no longer
13507 have any effect.
13509 If you want to use different indentation for Scheme and Lisp, this is
13510 still possible, but now you must do it by adding a hook to
13511 scheme-mode-hook, which could work by setting the `lisp-' indentation
13512 variables as buffer-local variables.
13514 *** DSSSL mode is a variant of Scheme mode, for editing DSSSL scripts.
13515 Use M-x dsssl-mode.
13517 ** Changes to the emacsclient program
13519 *** If a socket can't be found, and environment variables LOGNAME or
13520 USER are set, emacsclient now looks for a socket based on the UID
13521 associated with the name.  That is an emacsclient running as root
13522 can connect to an Emacs server started by a non-root user.
13524 *** The emacsclient program now accepts an option --no-wait which tells
13525 it to return immediately without waiting for you to "finish" the
13526 buffer in Emacs.
13528 *** The new option --alternate-editor allows to specify an editor to
13529 use if Emacs is not running.  The environment variable
13530 ALTERNATE_EDITOR can be used for the same effect; the command line
13531 option takes precedence.
13533 ** M-x eldoc-mode enables a minor mode in which the echo area
13534 constantly shows the parameter list for function being called at point
13535 (in Emacs Lisp and Lisp Interaction modes only).
13537 ** C-x n d now runs the new command narrow-to-defun,
13538 which narrows the accessible parts of the buffer to just
13539 the current defun.
13541 ** Emacs now handles the `--' argument in the standard way; all
13542 following arguments are treated as ordinary file names.
13544 ** On MSDOS and Windows, the bookmark file is now called _emacs.bmk,
13545 and the saved desktop file is now called _emacs.desktop (truncated if
13546 necessary).
13548 ** When you kill a buffer that visits a file,
13549 if there are any registers that save positions in the file,
13550 these register values no longer become completely useless.
13551 If you try to go to such a register with C-x j, then you are
13552 asked whether to visit the file again.  If you say yes,
13553 it visits the file and then goes to the same position.
13555 ** When you visit a file that changes frequently outside Emacs--for
13556 example, a log of output from a process that continues to run--it may
13557 be useful for Emacs to revert the file without querying you whenever
13558 you visit the file afresh with C-x C-f.
13560 You can request this behavior for certain files by setting the
13561 variable revert-without-query to a list of regular expressions.  If a
13562 file's name matches any of these regular expressions, find-file and
13563 revert-buffer revert the buffer without asking for permission--but
13564 only if you have not edited the buffer text yourself.
13566 ** set-default-font has been renamed to set-frame-font
13567 since it applies only to the current frame.
13569 ** In TeX mode, you can use the variable tex-main-file to specify the
13570 file for tex-file to run TeX on.  (By default, tex-main-file is nil,
13571 and tex-file runs TeX on the current visited file.)
13573 This is useful when you are editing a document that consists of
13574 multiple files.  In each of the included files, you can set up a local
13575 variable list which specifies the top-level file of your document for
13576 tex-main-file.  Then tex-file will run TeX on the whole document
13577 instead of just the file you are editing.
13579 ** RefTeX mode
13581 RefTeX mode is a new minor mode with special support for \label, \ref
13582 and \cite macros in LaTeX documents.  RefTeX distinguishes labels of
13583 different environments (equation, figure, ...) and has full support for
13584 multifile documents.  To use it, select a buffer with a LaTeX document and
13585 turn the mode on with M-x reftex-mode.  Here are the main user commands:
13587 C-c (    reftex-label
13588    Creates a label semi-automatically.  RefTeX is context sensitive and
13589    knows which kind of label is needed.
13591 C-c )    reftex-reference
13592    Offers in a menu all labels in the document, along with context of the
13593    label definition.  The selected label is referenced as \ref{LABEL}.
13595 C-c [    reftex-citation
13596    Prompts for a regular expression and displays a list of matching BibTeX
13597    database entries.  The selected entry is cited with a \cite{KEY} macro.
13599 C-c &    reftex-view-crossref
13600    Views the cross reference of a \ref or \cite command near point.
13602 C-c =    reftex-toc
13603    Shows a table of contents of the (multifile) document.  From there you
13604    can quickly jump to every section.
13606 Under X, RefTeX installs a "Ref" menu in the menu bar, with additional
13607 commands.  Press `?' to get help when a prompt mentions this feature.
13608 Full documentation and customization examples are in the file
13609 reftex.el.  You can use the finder to view the file documentation:
13610 C-h p --> tex --> reftex.el
13612 ** Changes in BibTeX mode.
13614 *** Info documentation is now available.
13616 *** Don't allow parentheses in string constants anymore.  This confused
13617 both the BibTeX program and Emacs BibTeX mode.
13619 *** Renamed variable bibtex-mode-user-optional-fields to
13620 bibtex-user-optional-fields.
13622 *** Removed variable bibtex-include-OPTannote
13623 (use bibtex-user-optional-fields instead).
13625 *** New interactive functions to copy and kill fields and complete
13626 entries to the BibTeX kill ring, from where they can be yanked back by
13627 appropriate functions.
13629 *** New interactive functions for repositioning and marking of
13630 entries. They are bound by default to C-M-l and C-M-h.
13632 *** New hook bibtex-clean-entry-hook. It is called after entry has
13633 been cleaned.
13635 *** New variable bibtex-field-delimiters, which replaces variables
13636 bibtex-field-{left|right}-delimiter.
13638 *** New variable bibtex-entry-delimiters to determine how entries
13639 shall be delimited.
13641 *** Allow preinitialization of fields. See documentation of
13642 bibtex-user-optional-fields, bibtex-entry-field-alist, and
13643 bibtex-include-OPTkey for details.
13645 *** Book and InBook entries require either an author or an editor
13646 field. This is now supported by bibtex.el. Alternative fields are
13647 prefixed with `ALT'.
13649 *** New variable bibtex-entry-format, which replaces variable
13650 bibtex-clean-entry-zap-empty-opts and allows specification of many
13651 formatting options performed on cleaning an entry (see variable
13652 documentation).
13654 *** Even more control on how automatic keys are generated. See
13655 documentation of bibtex-generate-autokey for details. Transcriptions
13656 for foreign languages other than German are now handled, too.
13658 *** New boolean user option bibtex-comma-after-last-field to decide if
13659 comma should be inserted at end of last field.
13661 *** New boolean user option bibtex-align-at-equal-sign to determine if
13662 alignment should be made at left side of field contents or at equal
13663 signs. New user options to control entry layout (e.g. indentation).
13665 *** New function bibtex-fill-entry to realign entries.
13667 *** New function bibtex-reformat to reformat region or buffer.
13669 *** New function bibtex-convert-alien to convert a BibTeX database
13670 from alien sources.
13672 *** New function bibtex-complete-key (similar to bibtex-complete-string)
13673 to complete prefix to a key defined in buffer. Mainly useful in
13674 crossref entries.
13676 *** New function bibtex-count-entries to count entries in buffer or
13677 region.
13679 *** Added support for imenu.
13681 *** The function `bibtex-validate' now checks current region instead
13682 of buffer if mark is active. Now it shows all errors of buffer in a
13683 `compilation mode' buffer. You can use the normal commands (e.g.
13684 `next-error') for compilation modes to jump to errors.
13686 *** New variable `bibtex-string-file-path' to determine where the files
13687 from `bibtex-string-files' are searched.
13689 ** Iso Accents mode now supports Latin-3 as an alternative.
13691 ** The command next-error now opens blocks hidden by hideshow.
13693 ** The function using-unix-filesystems has been replaced by the
13694 functions add-untranslated-filesystem and remove-untranslated-filesystem.
13695 Each of these functions takes the name of a drive letter or directory
13696 as an argument.
13698 When a filesystem is added as untranslated, all files on it are read
13699 and written in binary mode (no cr/lf translation is performed).
13701 ** browse-url changes
13703 *** New methods for: Grail (browse-url-generic), MMM (browse-url-mmm),
13704 Lynx in a separate xterm (browse-url-lynx-xterm) or in an Emacs window
13705 (browse-url-lynx-emacs), remote W3 (browse-url-w3-gnudoit), generic
13706 non-remote-controlled browsers (browse-url-generic) and associated
13707 customization variables.
13709 *** New commands `browse-url-of-region' and `browse-url'.
13711 *** URLs marked up with <URL:...> (RFC1738) work if broken across
13712 lines.  Browsing methods can be associated with URL regexps
13713 (e.g. mailto: URLs) via `browse-url-browser-function'.
13715 ** Changes in Ediff
13717 *** Clicking Mouse-2 on a brief command description in Ediff control panel
13718 pops up the Info file for this command.
13720 *** There is now a variable, ediff-autostore-merges, which controls whether
13721 the result of a merge is saved in a file. By default, this is done only when
13722 merge is done from a session group (eg, when merging files in two different
13723 directories).
13725 *** Since Emacs 19.31 (this hasn't been announced before), Ediff can compare
13726 and merge groups of files residing in different directories, or revisions of
13727 files in the same directory.
13729 *** Since Emacs 19.31, Ediff can apply multi-file patches interactively.
13730 The patches must be in the context format or GNU unified format.  (The bug
13731 related to the GNU format has now been fixed.)
13733 ** Changes in Viper
13735 *** The startup file is now .viper instead of .vip
13736 *** All variable/function names have been changed to start with viper-
13737     instead of vip-.
13738 *** C-\ now simulates the meta-key in all Viper states.
13739 *** C-z in Insert state now escapes to Vi for the duration of the next
13740 Viper command. In Vi and Insert states, C-z behaves as before.
13741 *** C-c \ escapes to Vi for one command if Viper is in Insert or Emacs states.
13742 *** _ is no longer the meta-key in Vi state.
13743 *** The variable viper-insert-state-cursor-color can be used to change cursor
13744 color when Viper is in insert state.
13745 *** If search lands the cursor near the top or the bottom of the window,
13746 Viper pulls the window up or down to expose more context. The variable
13747 viper-adjust-window-after-search controls this behavior.
13749 ** Etags changes.
13751 *** In C, C++, Objective C and Java, Etags tags global variables by
13752 default.  The resulting tags files are inflated by 30% on average.
13753 Use --no-globals to turn this feature off.  Etags can also tag
13754 variables which are members of structure-like constructs, but it does
13755 not by default.  Use --members to turn this feature on.
13757 *** C++ member functions are now recognized as tags.
13759 *** Java is tagged like C++.  In addition, "extends" and "implements"
13760 constructs are tagged.  Files are recognized by the extension .java.
13762 *** Etags can now handle programs written in Postscript.  Files are
13763 recognized by the extensions .ps and .pdb (Postscript with C syntax).
13764 In Postscript, tags are lines that start with a slash.
13766 *** Etags now handles Objective C and Objective C++ code.  The usual C and
13767 C++ tags are recognized in these languages; in addition, etags
13768 recognizes special Objective C syntax for classes, class categories,
13769 methods and protocols.
13771 *** Etags also handles Cobol.  Files are recognized by the extension
13772 .cobol.  The tagged lines are those containing a word that begins in
13773 column 8 and ends in a full stop, i.e. anything that could be a
13774 paragraph name.
13776 *** Regexps in Etags now support intervals, as in ed or grep.  The syntax of
13777 an interval is \{M,N\}, and it means to match the preceding expression
13778 at least M times and as many as N times.
13780 ** The format for specifying a custom format for time-stamp to insert
13781 in files has changed slightly.
13783 With the new enhancements to the functionality of format-time-string,
13784 time-stamp-format will change to be eventually compatible with it.
13785 This conversion is being done in two steps to maintain compatibility
13786 with old time-stamp-format values.
13788 In the new scheme, alternate case is signified by the number-sign
13789 (`#') modifier, rather than changing the case of the format character.
13790 This feature is as yet incompletely implemented for compatibility
13791 reasons.
13793 In the old time-stamp-format, all numeric fields defaulted to their
13794 natural width.  (With format-time-string, each format has a
13795 fixed-width default.)  In this version, you can specify the colon
13796 (`:') modifier to a numeric conversion to mean "give me the historical
13797 time-stamp-format width default."  Do not use colon if you are
13798 specifying an explicit width, as in "%02d".
13800 Numbers are no longer truncated to the requested width, except in the
13801 case of "%02y", which continues to give a two-digit year.  Digit
13802 truncation probably wasn't being used for anything else anyway.
13804 The new formats will work with old versions of Emacs.  New formats are
13805 being recommended now to allow time-stamp-format to change in the
13806 future to be compatible with format-time-string.  The new forms being
13807 recommended now will continue to work then.
13809 See the documentation string for the variable time-stamp-format for
13810 details.
13812 ** There are some additional major modes:
13814 dcl-mode, for editing VMS DCL files.
13815 m4-mode, for editing files of m4 input.
13816 meta-mode, for editing MetaFont and MetaPost source files.
13818 ** In Shell mode, the command shell-copy-environment-variable lets you
13819 copy the value of a specified environment variable from the subshell
13820 into Emacs.
13822 ** New Lisp packages include:
13824 *** battery.el displays battery status for laptops.
13826 *** M-x bruce (named after Lenny Bruce) is a program that might
13827 be used for adding some indecent words to your email.
13829 *** M-x crisp-mode enables an emulation for the CRiSP editor.
13831 *** M-x dirtrack arranges for better tracking of directory changes
13832 in shell buffers.
13834 *** The new library elint.el provides for linting of Emacs Lisp code.
13835 See the documentation for `elint-initialize', `elint-current-buffer'
13836 and `elint-defun'.
13838 *** M-x expand-add-abbrevs defines a special kind of abbrev which is
13839 meant for programming constructs.  These abbrevs expand like ordinary
13840 ones, when you type SPC, but only at the end of a line and not within
13841 strings or comments.
13843 These abbrevs can act as templates: you can define places within an
13844 abbrev for insertion of additional text.  Once you expand the abbrev,
13845 you can then use C-x a p and C-x a n to move back and forth to these
13846 insertion points.  Thus you can conveniently insert additional text
13847 at these points.
13849 *** filecache.el remembers the location of files so that you
13850 can visit them by short forms of their names.
13852 *** find-func.el lets you find the definition of the user-loaded
13853 Emacs Lisp function at point.
13855 *** M-x handwrite converts text to a "handwritten" picture.
13857 *** M-x iswitchb-buffer is a command for switching to a buffer, much like
13858 switch-buffer, but it reads the argument in a more helpful way.
13860 *** M-x landmark implements a neural network for landmark learning.
13862 *** M-x locate provides a convenient interface to the `locate' program.
13864 *** M4 mode is a new mode for editing files of m4 input.
13866 *** mantemp.el creates C++ manual template instantiations
13867 from the GCC error messages which indicate which instantiations are needed.
13869 *** mouse-copy.el provides a one-click copy and move feature.
13870 You can drag a region with M-mouse-1, and it is automatically
13871 inserted at point.  M-Shift-mouse-1 deletes the text from its
13872 original place after inserting the copy.
13874 *** mouse-drag.el lets you do scrolling by dragging Mouse-2
13875 on the buffer.
13877 You click the mouse and move; that distance either translates into the
13878 velocity to scroll (with mouse-drag-throw) or the distance to scroll
13879 (with mouse-drag-drag).  Horizontal scrolling is enabled when needed.
13881 Enable mouse-drag with:
13882     (global-set-key [down-mouse-2] 'mouse-drag-throw)
13883 -or-
13884     (global-set-key [down-mouse-2] 'mouse-drag-drag)
13886 *** mspools.el is useful for determining which mail folders have
13887 mail waiting to be read in them.  It works with procmail.
13889 *** Octave mode is a major mode for editing files of input for Octave.
13890 It comes with a facility for communicating with an Octave subprocess.
13892 *** ogonek
13894 The ogonek package provides functions for changing the coding of
13895 Polish diacritic characters in buffers.  Codings known from various
13896 platforms are supported such as ISO8859-2, Mazovia, IBM Latin2, and
13897 TeX.  For example, you can change the coding from Mazovia to
13898 ISO8859-2.  Another example is a change of coding from ISO8859-2 to
13899 prefix notation (in which `/a' stands for the aogonek character, for
13900 instance) and vice versa.
13902 To use this package load it using
13903     M-x load-library [enter] ogonek
13904 Then, you may get an explanation by calling one of
13905     M-x ogonek-jak        -- in Polish
13906     M-x ogonek-how        -- in English
13907 The info specifies the commands and variables provided as well as the
13908 ways of customization in `.emacs'.
13910 *** Interface to ph.
13912 Emacs provides a client interface to CCSO Nameservers (ph/qi)
13914 The CCSO nameserver is used in many universities to provide directory
13915 services about people.  ph.el provides a convenient Emacs interface to
13916 these servers.
13918 *** uce.el is useful for replying to unsolicited commercial email.
13920 *** vcursor.el implements a "virtual cursor" feature.
13921 You can move the virtual cursor with special commands
13922 while the real cursor does not move.
13924 *** webjump.el is a "hot list" package which you can set up
13925 for visiting your favorite web sites.
13927 *** M-x winner-mode is a minor mode which saves window configurations,
13928 so you can move back to other configurations that you have recently used.
13930 ** movemail change
13932 Movemail no longer needs to be installed setuid root in order for POP
13933 mail retrieval to function properly.  This is because it no longer
13934 supports the RPOP (reserved-port POP) protocol; instead, it uses the
13935 user's POP password to authenticate to the mail server.
13937 This change was made earlier, but not reported in NEWS before.
13939 * Emacs 20.1 changes for MS-DOS and MS-Windows.
13941 ** Changes in handling MS-DOS/MS-Windows text files.
13943 Emacs handles three different conventions for representing
13944 end-of-line: CRLF for MSDOS, LF for Unix and GNU, and CR (used on the
13945 Macintosh).  Emacs determines which convention is used in a specific
13946 file based on the contents of that file (except for certain special
13947 file names), and when it saves the file, it uses the same convention.
13949 To save the file and change the end-of-line convention, you can use
13950 C-x RET f (set-buffer-file-coding-system) to specify a different
13951 coding system for the buffer.  Then, when you save the file, the newly
13952 specified coding system will take effect.  For example, to save with
13953 LF, specify undecided-unix (or some other ...-unix coding system); to
13954 save with CRLF, specify undecided-dos.
13956 * Lisp Changes in Emacs 20.1
13958 ** Byte-compiled files made with Emacs 20 will, in general, work in
13959 Emacs 19 as well, as long as the source code runs in Emacs 19.  And
13960 vice versa: byte-compiled files made with Emacs 19 should also run in
13961 Emacs 20, as long as the program itself works in Emacs 20.
13963 ** Windows-specific functions and variables have been renamed
13964 to start with w32- instead of win32-.
13966 In hacker language, calling something a "win" is a form of praise.  We
13967 don't want to praise a non-free Microsoft system, so we don't call it
13968 "win".
13970 ** Basic Lisp changes
13972 *** A symbol whose name starts with a colon now automatically
13973 evaluates to itself.  Therefore such a symbol can be used as a constant.
13975 *** The defined purpose of `defconst' has been changed.  It should now
13976 be used only for values that should not be changed whether by a program
13977 or by the user.
13979 The actual behavior of defconst has not been changed.
13981 *** There are new macros `when' and `unless'
13983 (when CONDITION BODY...)  is short for  (if CONDITION (progn BODY...))
13984 (unless CONDITION BODY...)  is short for  (if CONDITION nil BODY...)
13986 *** Emacs now defines functions caar, cadr, cdar and cddr with their
13987 usual Lisp meanings.  For example, caar returns the car of the car of
13988 its argument.
13990 *** equal, when comparing strings, now ignores their text properties.
13992 *** The new function `functionp' tests whether an object is a function.
13994 *** arrayp now returns t for char-tables and bool-vectors.
13996 *** Certain primitives which use characters (as integers) now get an
13997 error if the integer is not a valid character code.  These primitives
13998 include insert-char, char-to-string, and the %c construct in the
13999 `format' function.
14001 *** The `require' function now insists on adding a suffix, either .el
14002 or .elc, to the file name.  Thus, (require 'foo) will not use a file
14003 whose name is just foo.  It insists on foo.el or foo.elc.
14005 *** The `autoload' function, when the file name does not contain
14006 either a directory name or the suffix .el or .elc, insists on
14007 adding one of these suffixes.
14009 *** string-to-number now takes an optional second argument BASE
14010 which specifies the base to use when converting an integer.
14011 If BASE is omitted, base 10 is used.
14013 We have not implemented other radices for floating point numbers,
14014 because that would be much more work and does not seem useful.
14016 *** substring now handles vectors as well as strings.
14018 *** The Common Lisp function eql is no longer defined normally.
14019 You must load the `cl' library to define it.
14021 *** The new macro `with-current-buffer' lets you evaluate an expression
14022 conveniently with a different current buffer.  It looks like this:
14024   (with-current-buffer BUFFER BODY-FORMS...)
14026 BUFFER is the expression that says which buffer to use.
14027 BODY-FORMS say what to do in that buffer.
14029 *** The new primitive `save-current-buffer' saves and restores the
14030 choice of current buffer, like `save-excursion', but without saving or
14031 restoring the value of point or the mark.  `with-current-buffer'
14032 works using `save-current-buffer'.
14034 *** The new macro `with-temp-file' lets you do some work in a new buffer and
14035 write the output to a specified file.  Like `progn', it returns the value
14036 of the last form.
14038 *** The new macro `with-temp-buffer' lets you do some work in a new buffer,
14039 which is discarded after use.  Like `progn', it returns the value of the
14040 last form.  If you wish to return the buffer contents, use (buffer-string)
14041 as the last form.
14043 *** The new function split-string takes a string, splits it at certain
14044 characters, and returns a list of the substrings in between the
14045 matches.
14047 For example, (split-string "foo bar lose" " +") returns ("foo" "bar" "lose").
14049 *** The new macro with-output-to-string executes some Lisp expressions
14050 with standard-output set up so that all output feeds into a string.
14051 Then it returns that string.
14053 For example, if the current buffer name is `foo',
14055 (with-output-to-string
14056   (princ "The buffer is ")
14057   (princ (buffer-name)))
14059 returns "The buffer is foo".
14061 ** Non-ASCII characters are now supported, if enable-multibyte-characters
14062 is non-nil.
14064 These characters have character codes above 256.  When inserted in the
14065 buffer or stored in a string, they are represented as multibyte
14066 characters that occupy several buffer positions each.
14068 *** When enable-multibyte-characters is non-nil, a single character in
14069 a buffer or string can be two or more bytes (as many as four).
14071 Buffers and strings are still made up of unibyte elements;
14072 character positions and string indices are always measured in bytes.
14073 Therefore, moving forward one character can increase the buffer
14074 position by 2, 3 or 4.  The function forward-char moves by whole
14075 characters, and therefore is no longer equivalent to
14076   (lambda (n) (goto-char (+ (point) n))).
14078 ASCII characters (codes 0 through 127) are still single bytes, always.
14079 Sequences of byte values 128 through 255 are used to represent
14080 non-ASCII characters.  These sequences are called "multibyte
14081 characters".
14083 The first byte of a multibyte character is always in the range 128
14084 through 159 (octal 0200 through 0237).  These values are called
14085 "leading codes".  The second and subsequent bytes are always in the
14086 range 160 through 255 (octal 0240 through 0377).  The first byte, the
14087 leading code, determines how many bytes long the sequence is.
14089 *** The function forward-char moves over characters, and therefore
14090 (forward-char 1) may increase point by more than 1 if it moves over a
14091 multibyte character.  Likewise, delete-char always deletes a
14092 character, which may be more than one buffer position.
14094 This means that some Lisp programs, which assume that a character is
14095 always one buffer position, need to be changed.
14097 However, all ASCII characters are always one buffer position.
14099 *** The regexp [\200-\377] no longer matches all non-ASCII characters,
14100 because when enable-multibyte-characters is non-nil, these characters
14101 have codes that are not in the range octal 200 to octal 377.  However,
14102 the regexp [^\000-\177] does match all non-ASCII characters,
14103 guaranteed.
14105 *** The function char-boundary-p returns non-nil if position POS is
14106 between two characters in the buffer (not in the middle of a
14107 character).
14109 When the value is non-nil, it says what kind of character follows POS:
14111  0 if POS is at an ASCII character or at the end of range,
14112  1 if POS is before a 2-byte length multi-byte form,
14113  2 if POS is at a head of 3-byte length multi-byte form,
14114  3 if POS is at a head of 4-byte length multi-byte form,
14115  4 if POS is at a head of multi-byte form of a composite character.
14117 *** The function char-bytes returns how many bytes the character CHAR uses.
14119 *** Strings can contain multibyte characters.  The function
14120 `length' returns the string length counting bytes, which may be
14121 more than the number of characters.
14123 You can include a multibyte character in a string constant by writing
14124 it literally.  You can also represent it with a hex escape,
14125 \xNNNNNNN..., using as many digits as necessary.  Any character which
14126 is not a valid hex digit terminates this construct.  If you want to
14127 follow it with a character that is a hex digit, write backslash and
14128 newline in between; that will terminate the hex escape.
14130 *** The function concat-chars takes arguments which are characters
14131 and returns a string containing those characters.
14133 *** The function sref access a multibyte character in a string.
14134 (sref STRING INDX) returns the character in STRING at INDEX.  INDEX
14135 counts from zero.  If INDEX is at a position in the middle of a
14136 character, sref signals an error.
14138 *** The function chars-in-string returns the number of characters
14139 in a string.  This is less than the length of the string, if the
14140 string contains multibyte characters (the length counts bytes).
14142 *** The function chars-in-region returns the number of characters
14143 in a region from BEG to END.  This is less than (- END BEG) if the
14144 region contains multibyte characters (the length counts bytes).
14146 *** The function string-to-list converts a string to a list of
14147 the characters in it.  string-to-vector converts a string
14148 to a vector of the characters in it.
14150 *** The function store-substring alters part of the contents
14151 of a string.  You call it as follows:
14153    (store-substring STRING IDX OBJ)
14155 This says to alter STRING, by storing OBJ starting at index IDX in
14156 STRING.  OBJ may be either a character or a (smaller) string.
14157 This function really does alter the contents of STRING.
14158 Since it is impossible to change the length of an existing string,
14159 it is an error if OBJ doesn't fit within STRING's actual length.
14161 *** char-width returns the width (in columns) of the character CHAR,
14162 if it were displayed in the current buffer and the selected window.
14164 *** string-width returns the width (in columns) of the text in STRING,
14165 if it were displayed in the current buffer and the selected window.
14167 *** truncate-string-to-width shortens a string, if necessary,
14168 to fit within a certain number of columns.  (Of course, it does
14169 not alter the string that you give it; it returns a new string
14170 which contains all or just part of the existing string.)
14172 (truncate-string-to-width STR END-COLUMN &optional START-COLUMN PADDING)
14174 This returns the part of STR up to column END-COLUMN.
14176 The optional argument START-COLUMN specifies the starting column.
14177 If this is non-nil, then the first START-COLUMN columns of the string
14178 are not included in the resulting value.
14180 The optional argument PADDING, if non-nil, is a padding character to be added
14181 at the beginning and end the resulting string, to extend it to exactly
14182 WIDTH columns.  If PADDING is nil, that means do not pad; then, if STRING
14183 is narrower than WIDTH, the value is equal to STRING.
14185 If PADDING and START-COLUMN are both non-nil, and if there is no clean
14186 place in STRING that corresponds to START-COLUMN (because one
14187 character extends across that column), then the padding character
14188 PADDING is added one or more times at the beginning of the result
14189 string, so that its columns line up as if it really did start at
14190 column START-COLUMN.
14192 *** When the functions in the list after-change-functions are called,
14193 the third argument is the number of bytes in the pre-change text, not
14194 necessarily the number of characters.  It is, in effect, the
14195 difference in buffer position between the beginning and the end of the
14196 changed text, before the change.
14198 *** The characters Emacs uses are classified in various character
14199 sets, each of which has a name which is a symbol.  In general there is
14200 one character set for each script, not for each language.
14202 **** The function charsetp tests whether an object is a character set name.
14204 **** The variable charset-list holds a list of character set names.
14206 **** char-charset, given a character code, returns the name of the character
14207 set that the character belongs to.  (The value is a symbol.)
14209 **** split-char, given a character code, returns a list containing the
14210 name of the character set, followed by one or two byte-values
14211 which identify the character within that character set.
14213 **** make-char, given a character set name and one or two subsequent
14214 byte-values, constructs a character code.  This is roughly the
14215 opposite of split-char.
14217 **** find-charset-region returns a list of the character sets
14218 of all the characters between BEG and END.
14220 **** find-charset-string returns a list of the character sets
14221 of all the characters in a string.
14223 *** Here are the Lisp facilities for working with coding systems
14224 and specifying coding systems.
14226 **** The function coding-system-list returns a list of all coding
14227 system names (symbols).  With optional argument t, it returns a list
14228 of all distinct base coding systems, not including variants.
14229 (Variant coding systems are those like latin-1-dos, latin-1-unix
14230 and latin-1-mac which specify the end-of-line conversion as well
14231 as what to do about code conversion.)
14233 **** coding-system-p tests a symbol to see if it is a coding system
14234 name.  It returns t if so, nil if not.
14236 **** file-coding-system-alist specifies which coding systems to use
14237 for certain file names.  It works like network-coding-system-alist,
14238 except that the PATTERN is matched against the file name.
14240 Each element has the format (PATTERN . VAL), where PATTERN determines
14241 which file names the element applies to.  PATTERN should be a regexp
14242 to match against a file name.
14244 VAL is a coding system, a cons cell containing two coding systems, or
14245 a function symbol.  If VAL is a coding system, it is used for both
14246 decoding what received from the network stream and encoding what sent
14247 to the network stream.  If VAL is a cons cell containing two coding
14248 systems, the car specifies the coding system for decoding, and the cdr
14249 specifies the coding system for encoding.
14251 If VAL is a function symbol, the function must return a coding system
14252 or a cons cell containing two coding systems, which is used as above.
14254 **** The variable network-coding-system-alist specifies
14255 the coding system to use for network sockets.
14257 Each element has the format (PATTERN . VAL), where PATTERN determines
14258 which network sockets the element applies to.  PATTERN should be
14259 either a port number or a regular expression matching some network
14260 service names.
14262 VAL is a coding system, a cons cell containing two coding systems, or
14263 a function symbol.  If VAL is a coding system, it is used for both
14264 decoding what received from the network stream and encoding what sent
14265 to the network stream.  If VAL is a cons cell containing two coding
14266 systems, the car specifies the coding system for decoding, and the cdr
14267 specifies the coding system for encoding.
14269 If VAL is a function symbol, the function must return a coding system
14270 or a cons cell containing two coding systems, which is used as above.
14272 **** process-coding-system-alist specifies which coding systems to use
14273 for certain subprocess.  It works like network-coding-system-alist,
14274 except that the PATTERN is matched against the program name used to
14275 start the subprocess.
14277 **** The variable default-process-coding-system specifies the coding
14278 systems to use for subprocess (and net connection) input and output,
14279 when nothing else specifies what to do.  The value is a cons cell
14280 (OUTPUT-CODING . INPUT-CODING).  OUTPUT-CODING applies to output
14281 to the subprocess, and INPUT-CODING applies to input from it.
14283 **** The variable coding-system-for-write, if non-nil, specifies the
14284 coding system to use for writing a file, or for output to a synchronous
14285 subprocess.
14287 It also applies to any asynchronous subprocess or network connection,
14288 but in a different way: the value of coding-system-for-write when you
14289 start the subprocess or connection affects that subprocess or
14290 connection permanently or until overridden.
14292 The variable coding-system-for-write takes precedence over
14293 file-coding-system-alist, process-coding-system-alist and
14294 network-coding-system-alist, and all other methods of specifying a
14295 coding system for output.  But most of the time this variable is nil.
14296 It exists so that Lisp programs can bind it to a specific coding
14297 system for one operation at a time.
14299 **** coding-system-for-read applies similarly to input from
14300 files, subprocesses or network connections.
14302 **** The function process-coding-system tells you what
14303 coding systems(s) an existing subprocess is using.
14304 The value is a cons cell,
14305  (DECODING-CODING-SYSTEM . ENCODING-CODING-SYSTEM)
14306 where DECODING-CODING-SYSTEM is used for decoding output from
14307 the subprocess, and ENCODING-CODING-SYSTEM is used for encoding
14308 input to the subprocess.
14310 **** The function set-process-coding-system can be used to
14311 change the coding systems in use for an existing subprocess.
14313 ** Emacs has a new facility to help users manage the many
14314 customization options.  To make a Lisp program work with this facility,
14315 you need to use the new macros defgroup and defcustom.
14317 You use defcustom instead of defvar, for defining a user option
14318 variable.  The difference is that you specify two additional pieces of
14319 information (usually): the "type" which says what values are
14320 legitimate, and the "group" which specifies the hierarchy for
14321 customization.
14323 Thus, instead of writing
14325     (defvar foo-blurgoze nil
14326       "*Non-nil means that foo will act very blurgozely.")
14328 you would now write this:
14330     (defcustom foo-blurgoze nil
14331       "*Non-nil means that foo will act very blurgozely."
14332       :type 'boolean
14333       :group foo)
14335 The type `boolean' means that this variable has only
14336 two meaningful states: nil and non-nil.  Other type values
14337 describe other possibilities; see the manual for Custom
14338 for a description of them.
14340 The "group" argument is used to specify a group which the option
14341 should belong to.  You define a new group like this:
14343     (defgroup ispell nil
14344       "Spell checking using Ispell."
14345       :group 'processes)
14347 The "group" argument in defgroup specifies the parent group.  The root
14348 group is called `emacs'; it should not contain any variables itself,
14349 but only other groups.  The immediate subgroups of `emacs' correspond
14350 to the keywords used by C-h p.  Under these subgroups come
14351 second-level subgroups that belong to individual packages.
14353 Each Emacs package should have its own set of groups.  A simple
14354 package should have just one group; a more complex package should
14355 have a hierarchy of its own groups.  The sole or root group of a
14356 package should be a subgroup of one or more of the "keyword"
14357 first-level subgroups.
14359 ** New `widget' library for inserting UI components in buffers.
14361 This library, used by the new custom library, is documented in a
14362 separate manual that accompanies Emacs.
14364 ** easy-mmode
14366 The easy-mmode package provides macros and functions that make
14367 developing minor modes easier.  Roughly, the programmer has to code
14368 only the functionality of the minor mode.  All the rest--toggles,
14369 predicate, and documentation--can be done in one call to the macro
14370 `easy-mmode-define-minor-mode' (see the documentation).  See also
14371 `easy-mmode-define-keymap'.
14373 ** Text property changes
14375 *** The `intangible' property now works on overlays as well as on a
14376 text property.
14378 *** The new functions next-char-property-change and
14379 previous-char-property-change scan through the buffer looking for a
14380 place where either a text property or an overlay might change.  The
14381 functions take two arguments, POSITION and LIMIT.  POSITION is the
14382 starting position for the scan.  LIMIT says where to stop the scan.
14384 If no property change is found before LIMIT, the value is LIMIT.  If
14385 LIMIT is nil, scan goes to the beginning or end of the accessible part
14386 of the buffer.  If no property change is found, the value is the
14387 position of the beginning or end of the buffer.
14389 *** In the `local-map' text property or overlay property, the property
14390 value can now be a symbol whose function definition is a keymap.  This
14391 is an alternative to using the keymap itself.
14393 ** Changes in invisibility features
14395 *** Isearch can now temporarily show parts of the buffer which are
14396 hidden by an overlay with a invisible property, when the search match
14397 is inside that portion of the buffer.  To enable this the overlay
14398 should have a isearch-open-invisible property which is a function that
14399 would be called having the overlay as an argument, the function should
14400 make the overlay visible.
14402 During incremental search the overlays are shown by modifying the
14403 invisible and intangible properties, if beside this more actions are
14404 needed the overlay should have a isearch-open-invisible-temporary
14405 which is a function. The function is called with 2 arguments: one is
14406 the overlay and the second is nil when it should show the overlay and
14407 t when it should hide it.
14409 *** add-to-invisibility-spec, remove-from-invisibility-spec
14411 Modes that use overlays to hide portions of a buffer should set the
14412 invisible property of the overlay to the mode's name (or another symbol)
14413 and modify the `buffer-invisibility-spec' to include that symbol.
14414 Use  `add-to-invisibility-spec' and `remove-from-invisibility-spec' to
14415 manipulate the `buffer-invisibility-spec'.
14416 Here is an example of how to do this:
14418  ;; If we want to display an ellipsis:
14419  (add-to-invisibility-spec '(my-symbol . t))
14420  ;; If you don't want ellipsis:
14421  (add-to-invisibility-spec 'my-symbol)
14423   ...
14424  (overlay-put  (make-overlay beginning end)  'invisible 'my-symbol)
14426  ...
14427  ;; When done with the overlays:
14428  (remove-from-invisibility-spec '(my-symbol . t))
14429  ;; Or respectively:
14430  (remove-from-invisibility-spec 'my-symbol)
14432 ** Changes in syntax parsing.
14434 *** The syntax-directed buffer-scan functions (such as
14435 `parse-partial-sexp', `forward-word' and similar functions) can now
14436 obey syntax information specified by text properties, if the variable
14437 `parse-sexp-lookup-properties' is non-nil.
14439 If the value of `parse-sexp-lookup-properties' is nil, the behavior
14440 is as before: the syntax-table of the current buffer is always
14441 used to determine the syntax of the character at the position.
14443 When `parse-sexp-lookup-properties' is non-nil, the syntax of a
14444 character in the buffer is calculated thus:
14446         a) if the `syntax-table' text-property of that character
14447            is a cons, this cons becomes the syntax-type;
14449            Valid values of `syntax-table' text-property are: nil, a valid
14450            syntax-table, and a valid syntax-table element, i.e.,
14451            a cons cell of the form (SYNTAX-CODE . MATCHING-CHAR).
14453         b) if the character's `syntax-table' text-property
14454            is a syntax table, this syntax table is used
14455            (instead of the syntax-table of the current buffer) to
14456            determine the syntax type of the character.
14458         c) otherwise the syntax-type is determined by the syntax-table
14459            of the current buffer.
14461 *** The meaning of \s in regular expressions is also affected by the
14462 value of `parse-sexp-lookup-properties'.  The details are the same as
14463 for the syntax-directed buffer-scan functions.
14465 *** There are two new syntax-codes, `!' and `|' (numeric values 14
14466 and 15).  A character with a code `!' starts a comment which is ended
14467 only by another character with the same code (unless quoted).  A
14468 character with a code `|' starts a string which is ended only by
14469 another character with the same code (unless quoted).
14471 These codes are mainly meant for use as values of the `syntax-table'
14472 text property.
14474 *** The function `parse-partial-sexp' has new semantics for the sixth
14475 arg COMMENTSTOP.  If it is `syntax-table', parse stops after the start
14476 of a comment or a string, or after end of a comment or a string.
14478 *** The state-list which the return value from `parse-partial-sexp'
14479 (and can also be used as an argument) now has an optional ninth
14480 element: the character address of the start of last comment or string;
14481 nil if none.  The fourth and eighth elements have special values if the
14482 string/comment is started by a "!"  or "|" syntax-code.
14484 *** Since new features of `parse-partial-sexp' allow a complete
14485 syntactic parsing, `font-lock' no longer supports
14486 `font-lock-comment-start-regexp'.
14488 ** Changes in face features
14490 *** The face functions are now unconditionally defined in Emacs, even
14491 if it does not support displaying on a device that supports faces.
14493 *** The function face-documentation returns the documentation string
14494 of a face (or nil if it doesn't have one).
14496 *** The function face-bold-p returns t if a face should be bold.
14497 set-face-bold-p sets that flag.
14499 *** The function face-italic-p returns t if a face should be italic.
14500 set-face-italic-p sets that flag.
14502 *** You can now specify foreground and background colors for text
14503 by adding elements of the form (foreground-color . COLOR-NAME)
14504 and (background-color . COLOR-NAME) to the list of faces in
14505 the `face' property (either the character's text property or an
14506 overlay property).
14508 This means that you no longer need to create named faces to use
14509 arbitrary colors in a Lisp package.
14511 ** Changes in file-handling functions
14513 *** File-access primitive functions no longer discard an extra redundant
14514 directory name from the beginning of the file name.  In other words,
14515 they no longer do anything special with // or /~.  That conversion
14516 is now done only in substitute-in-file-name.
14518 This makes it possible for a Lisp program to open a file whose name
14519 begins with ~.
14521 *** If copy-file is unable to set the date of the output file,
14522 it now signals an error with the condition file-date-error.
14524 *** The inode number returned by file-attributes may be an integer (if
14525 the number fits in a Lisp integer) or a list of integers.
14527 *** insert-file-contents can now read from a special file,
14528 as long as the arguments VISIT and REPLACE are nil.
14530 *** The RAWFILE arg to find-file-noselect, if non-nil, now suppresses
14531 character code conversion as well as other things.
14533 Meanwhile, this feature does work with remote file names
14534 (formerly it did not).
14536 *** Lisp packages which create temporary files should use the TMPDIR
14537 environment variable to decide which directory to put them in.
14539 *** interpreter-mode-alist elements now specify regexps
14540 instead of constant strings.
14542 *** expand-file-name no longer treats `//' or `/~' specially.  It used
14543 to delete all the text of a file name up through the first slash of
14544 any `//' or `/~' sequence.  Now it passes them straight through.
14546 substitute-in-file-name continues to treat those sequences specially,
14547 in the same way as before.
14549 *** The variable `format-alist' is more general now.
14550 The FROM-FN and TO-FN in a format definition can now be strings
14551 which specify shell commands to use as filters to perform conversion.
14553 *** The new function access-file tries to open a file, and signals an
14554 error if that fails.  If the open succeeds, access-file does nothing
14555 else, and returns nil.
14557 *** The function insert-directory now signals an error if the specified
14558 directory cannot be listed.
14560 ** Changes in minibuffer input
14562 *** The functions read-buffer, read-variable, read-command, read-string
14563 read-file-name, read-from-minibuffer and completing-read now take an
14564 additional argument which specifies the default value.  If this
14565 argument is non-nil, it should be a string; that string is used in two
14566 ways:
14568   It is returned if the user enters empty input.
14569   It is available through the history command M-n.
14571 *** The functions read-string, read-from-minibuffer,
14572 read-no-blanks-input and completing-read now take an additional
14573 argument INHERIT-INPUT-METHOD.  If this is non-nil, then the
14574 minibuffer inherits the current input method and the setting of
14575 enable-multibyte-characters from the previously current buffer.
14577 In an interactive spec, you can use M instead of s to read an
14578 argument in this way.
14580 *** All minibuffer input functions discard text properties
14581 from the text you enter in the minibuffer, unless the variable
14582 minibuffer-allow-text-properties is non-nil.
14584 ** Echo area features
14586 *** Clearing the echo area now runs the normal hook
14587 echo-area-clear-hook.  Note that the echo area can be used while the
14588 minibuffer is active; in that case, the minibuffer is still active
14589 after the echo area is cleared.
14591 *** The function current-message returns the message currently displayed
14592 in the echo area, or nil if there is none.
14594 ** Keyboard input features
14596 *** tty-erase-char is a new variable that reports which character was
14597 set up as the terminal's erase character when time Emacs was started.
14599 *** num-nonmacro-input-events is the total number of input events
14600 received so far from the terminal.  It does not count those generated
14601 by keyboard macros.
14603 ** Frame-related changes
14605 *** make-frame runs the normal hook before-make-frame-hook just before
14606 creating a frame, and just after creating a frame it runs the abnormal
14607 hook after-make-frame-functions with the new frame as arg.
14609 *** The new hook window-configuration-change-hook is now run every time
14610 the window configuration has changed.  The frame whose configuration
14611 has changed is the selected frame when the hook is run.
14613 *** Each frame now independently records the order for recently
14614 selected buffers, in its buffer-list frame parameter, so that the
14615 value of other-buffer is now based on the buffers recently displayed
14616 in the selected frame.
14618 *** The value of the frame parameter vertical-scroll-bars
14619 is now `left', `right' or nil.  A non-nil value specifies
14620 which side of the window to put the scroll bars on.
14622 ** X Windows features
14624 *** You can examine X resources for other applications by binding
14625 x-resource-class around a call to x-get-resource.  The usual value of
14626 x-resource-class is "Emacs", which is the correct value for Emacs.
14628 *** In menus, checkboxes and radio buttons now actually work.
14629 The menu displays the current status of the box or button.
14631 *** The function x-list-fonts now takes an optional fourth argument
14632 MAXIMUM which sets a limit on how many matching fonts to return.
14633 A smaller value of MAXIMUM makes the function faster.
14635 If the only question is whether *any* font matches the pattern,
14636 it is good to supply 1 for this argument.
14638 ** Subprocess features
14640 *** A reminder: it is no longer necessary for subprocess filter
14641 functions and sentinels to do save-match-data, because Emacs does this
14642 automatically.
14644 *** The new function shell-command-to-string executes a shell command
14645 and returns the output from the command as a string.
14647 *** The new function process-contact returns t for a child process,
14648 and (HOSTNAME SERVICE) for a net connection.
14650 ** An error in running pre-command-hook or post-command-hook
14651 does clear the variable to nil.  The documentation was wrong before.
14653 ** In define-key-after, if AFTER is t, the new binding now always goes
14654 at the end of the keymap.  If the keymap is a menu, this means it
14655 goes after the other menu items.
14657 ** If you have a program that makes several changes in the same area
14658 of the buffer, you can use the macro combine-after-change-calls
14659 around that Lisp code to make it faster when after-change hooks
14660 are in use.
14662 The macro arranges to call the after-change functions just once for a
14663 series of several changes--if that seems safe.
14665 Don't alter the variables after-change-functions and
14666 after-change-function within the body of a combine-after-change-calls
14667 form.
14669 ** If you define an abbrev (with define-abbrev) whose EXPANSION
14670 is not a string, then the abbrev does not expand in the usual sense,
14671 but its hook is still run.
14673 ** Normally, the Lisp debugger is not used (even if you have enabled it)
14674 for errors that are handled by condition-case.
14676 If you set debug-on-signal to a non-nil value, then the debugger is called
14677 regardless of whether there is a handler for the condition.  This is
14678 useful for debugging problems that happen inside of a condition-case.
14680 This mode of operation seems to be unreliable in other ways.  Errors that
14681 are normal and ought to be handled, perhaps in timers or process
14682 filters, will instead invoke the debugger.  So don't say you weren't
14683 warned.
14685 ** The new variable ring-bell-function lets you specify your own
14686 way for Emacs to "ring the bell".
14688 ** If run-at-time's TIME argument is t, the action is repeated at
14689 integral multiples of REPEAT from the epoch; this is useful for
14690 functions like display-time.
14692 ** You can use the function locate-library to find the precise file
14693 name of a Lisp library.  This isn't new, but wasn't documented before.
14695 ** Commands for entering view mode have new optional arguments that
14696 can be used from Lisp.  Low-level entrance to and exit from view mode
14697 is done by functions view-mode-enter and view-mode-exit.
14699 ** batch-byte-compile-file now makes Emacs return a nonzero status code
14700 if there is an error in compilation.
14702 ** pop-to-buffer, switch-to-buffer-other-window and
14703 switch-to-buffer-other-frame now accept an additional optional
14704 argument NORECORD, much like switch-to-buffer.  If it is non-nil,
14705 they don't put the buffer at the front of the buffer list.
14707 ** If your .emacs file leaves the *scratch* buffer non-empty,
14708 Emacs does not display the startup message, so as to avoid changing
14709 the *scratch* buffer.
14711 ** The new function regexp-opt returns an efficient regexp to match a string.
14712 The arguments are STRINGS and (optionally) PAREN.  This function can be used
14713 where regexp matching or searching is intensively used and speed is important,
14714 e.g., in Font Lock mode.
14716 ** The variable buffer-display-count is local to each buffer,
14717 and is incremented each time the buffer is displayed in a window.
14718 It starts at 0 when the buffer is created.
14720 ** The new function compose-mail starts composing a mail message
14721 using the user's chosen mail composition agent (specified with the
14722 variable mail-user-agent).  It has variants compose-mail-other-window
14723 and compose-mail-other-frame.
14725 ** The `user-full-name' function now takes an optional parameter which
14726 can either be a number (the UID) or a string (the login name).  The
14727 full name of the specified user will be returned.
14729 ** Lisp packages that load files of customizations, or any other sort
14730 of user profile, should obey the variable init-file-user in deciding
14731 where to find it.  They should load the profile of the user name found
14732 in that variable.  If init-file-user is nil, meaning that the -q
14733 option was used, then Lisp packages should not load the customization
14734 files at all.
14736 ** format-time-string now allows you to specify the field width
14737 and type of padding.  This works as in printf: you write the field
14738 width as digits in the middle of a %-construct.  If you start
14739 the field width with 0, it means to pad with zeros.
14741 For example, %S normally specifies the number of seconds since the
14742 minute; %03S means to pad this with zeros to 3 positions, %_3S to pad
14743 with spaces to 3 positions.  Plain %3S pads with zeros, because that
14744 is how %S normally pads to two positions.
14746 ** thing-at-point now supports a new kind of "thing": url.
14748 ** imenu.el changes.
14750 You can now specify a function to be run when selecting an
14751 item from menu created by imenu.
14753 An example of using this feature: if we define imenu items for the
14754 #include directives in a C file, we can open the included file when we
14755 select one of those items.
14757 * For older news, see the file ONEWS
14759 ----------------------------------------------------------------------
14760 Copyright information:
14762 Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004,
14763    2005 Free Software Foundation, Inc.
14765    Permission is granted to anyone to make or distribute verbatim copies
14766    of this document as received, in any medium, provided that the
14767    copyright notice and this permission notice are preserved,
14768    thus giving the recipient permission to redistribute in turn.
14770    Permission is granted to distribute modified versions
14771    of this document, or of portions of it,
14772    under the above conditions, provided also that they
14773    carry prominent notices stating who last changed them.
14775 Local variables:
14776 mode: outline
14777 paragraph-separate: "[  \f]*$"
14778 end:
14780 arch-tag: 1aca9dfa-2ac4-4d14-bebf-0007cee12793