Better ELisp Reference instructions.
[bpt/emacs.git] / etc / NEWS
CommitLineData
a933dad1
DL
1GNU Emacs NEWS -- history of user-visible changes. 23 Jan 1999
2Copyright (C) 1996, 1997, 1998, 1999 Free Software Foundation, Inc.
3See the end for copying conditions.
4
5Please send Emacs bug reports to bug-gnu-emacs@gnu.org.
6For older news, see the file ONEWS.
7
8\f
251584f3
DL
9* Installation Changes in Emacs 21.1
10
11** `movemail' defaults to supporting POP. You can turn this off using
12the --without-pop configure option, should that be necessary.
13\f
a933dad1
DL
14* Changes in Emacs 21.1
15
df5a1902
GM
16** Reading from the mini-buffer now reads from standard input if Emacs
17is running in batch mode. For example,
18
19 (message "%s" (read t))
20
21will read a Lisp expression from standard input and print the result
22to standard output.
23
a933dad1
DL
24** Faces and frame parameters.
25
26There are four new faces `scroll-bar', `border', `cursor' and `mouse'.
27Setting the frame parameters `scroll-bar-foreground' and
28`scroll-bar-background' sets foreground and background color of face
29`scroll-bar' and vice versa. Setting frame parameter `border-color'
30sets the background color of face `border' and vice versa. Likewise
31for frame parameters `cursor-color' and face `cursor', and frame
32parameter `mouse-color' and face `mouse'.
33
34Changing frame parameter `font' sets font-related attributes of the
35`default' face and vice versa. Setting frame parameters
79214ddf 36`foreground-color' or `background-color' sets the colors of the
a933dad1
DL
37`default' face and vice versa.
38
f77a4a8a
GM
39** New face `menu'.
40
41The face `menu' can be used to change colors and font of Emacs' menus.
42Setting the font of LessTif/Motif menus is currently not supported;
43attempts to set the font are ignored in this case.
44
a933dad1
DL
45** New frame parameter `screen-gamma' for gamma correction.
46
47The new frame parameter `screen-gamma' specifies gamma-correction for
48colors. Its value may be nil, the default, in which case no gamma
49correction occurs, or a number > 0, usually a float, that specifies
50the screen gamma of a frame's display.
51
52PC monitors usually have a screen gamma of 2.2. smaller values result
53in darker colors. You might want to try a screen gamma of 1.5 for LCD
54color displays. The viewing gamma Emacs uses is 0.4545. (1/2.2).
55
56The X resource name of this parameter is `screenGamma', class
57`ScreenGamma'.
58
59** Emacs has a new redisplay engine.
60
61The new redisplay handles characters of variable width and height.
62Italic text can be used without redisplay problems. Fonts containing
63oversized characters, i.e. characters larger than the logical height
64of a font can be used. Images of various formats can be displayed in
65the text.
66
67** Emacs has a new face implementation.
68
69The new faces no longer fundamentally use X font names to specify the
70font. Instead, each face has several independent attributes--family,
71height, width, weight and slant--that it may or may not specify.
72These attributes can be merged from various faces, and then together
73specify a font.
74
75Faces are supported on terminals that can display color or fonts.
76These terminal capabilities are auto-detected. Details can be found
77under Lisp changes, below.
78
79** New default font is Courier 12pt.
80
81** When using a windowing terminal, Emacs window now has a cursor of
82its own. When the window is selected, the cursor is solid; otherwise,
83it is hollow.
84
85** Bitmap areas to the left and right of windows are used to display
86truncation marks, continuation marks, overlay arrows and alike. The
87foreground, background, and stipple of these areas can be changed by
88customizing face `fringe'.
89
90** The mode line under X is now drawn with shadows by default. You
91can change its appearance by modifying the face `modeline'.
92
93** LessTif support.
94
95Emacs now runs with LessTif (see <http://www.lesstif.org>). You will
96need a version 0.88.1 or later.
97
98** Toolkit scroll bars.
99
100Emacs now uses toolkit scrollbars if available. When configured for
101LessTif/Motif, it will use that toolkit's scrollbar. Otherwise, when
102configured for Lucid and Athena widgets, it will use the Xaw3d scroll
103bar if Xaw3d is available. You can turn off the use of toolkit scroll
104bars by specifying `--with-toolkit-scroll-bars=no' when configuring
105Emacs.
106
107When you encounter problems with the Xaw3d scroll bar, watch out how
108Xaw3d is compiled on your system. If the Makefile generated from
109Xaw3d's Imakefile contains a `-DNARROWPROTO' compiler option, and your
110Emacs system configuration file `s/your-system.h' does not contain a
111define for NARROWPROTO, you might consider adding it. Take
112`s/freebsd.h' as an example.
113
114Alternatively, if you don't have access to the Xaw3d source code, take
115a look at your system's imake configuration file, for example in the
116directory `/usr/X11R6/lib/X11/config' (paths are different on
117different systems). You will find files `*.cf' there. If your
118system's cf-file contains a line like `#define NeedWidePrototypes NO',
119add a `#define NARROWPROTO' to your Emacs system configuration file.
120
121The reason for this is that one Xaw3d function uses `double' or
122`float' function parameters depending on the setting of NARROWPROTO.
123This is not a problem when Imakefiles are used because each system's
124image configuration file contains the necessary information. Since
125Emacs doesn't use imake, this has do be done manually.
126
127** Toggle buttons and radio buttons in menus.
128
129When compiled with LessTif (or Motif) support, Emacs uses toolkit
130widgets for radio and toggle buttons in menus. When configured for
131Lucid, Emacs draws radio buttons and toggle buttons similar to Motif.
132
133** Highlighting of trailing whitespace.
134
135When `show-trailing-whitespace' is non-nil, Emacs displays trailing
136whitespace in the face `trailing-whitespace'. Trailing whitespace is
137defined as spaces or tabs at the end of a line. To avoid busy
138highlighting when entering new text, trailing whitespace is not
139displayed if point is at the end of the line containing the
140whitespace.
141
142** Busy-cursor.
143
144Emacs can optionally display a busy-cursor under X. You can turn the
145display on or off by customizing group `cursor'.
146
147** Blinking cursor
148
149M-x blink-cursor-mode toggles a blinking cursor under X and on
150terminals having terminal capabilities `vi', `vs', and `ve'. Blinking
151and related parameters like frequency and delay can be customized in
152the group `cursor'.
153
154** New font-lock support mode `jit-lock-mode'.
155
156This support mode is roughly equivalent to `lazy-lock' but is
157generally faster. It supports stealth and deferred fontification.
158See the documentation of the function `jit-lock-mode' for more
159details.
160
161Font-lock uses jit-lock-mode as default support mode, so you don't
162have to do anything to activate it.
163
164** Tabs and variable-width text.
165
166Tabs are now displayed with stretch properties; the width of a tab is
167defined as a multiple of the normal character width of a frame, and is
168independent of the fonts used in the text where the tab appears.
169Thus, tabs can be used to line up text in different fonts.
170
171** Enhancements of the Lucid menu bar
172
173*** The Lucid menu bar now supports the resource "margin".
174
175 emacs.pane.menubar.margin: 5
176
177The default margin is 4 which makes the menu bar appear like the Motif
178one.
179
180*** Arrows that indicate sub-menus are now drawn with shadows, like in
181Motif.
182
183** Hscrolling in C code.
184
185Horizontal scrolling now happens automatically.
186
187** Tool bar support.
188
189Emacs supports a tool bar at the top of a frame under X. For details
190how to define a tool bar, see the page describing Lisp-level changes.
191
192** Mouse-sensitive mode line.
193
194Different parts of the mode line under X have been made
195mouse-sensitive. Moving the mouse to a mouse-sensitive part in the mode
196line changes the appearance of the mouse pointer to an arrow, and help
197about available mouse actions is displayed either in the echo area, or
198in the tooltip window if you have enabled one.
199
200Currently, the following actions have been defined:
201
202- Mouse-1 on the buffer name in the mode line switches between two
203buffers.
204
205- Mouse-2 on the buffer-name switches to the next buffer, and
206M-mouse-2 switches to the previous buffer in the buffer list.
207
208- Mouse-3 on the buffer-name displays a buffer menu.
209
210- Mouse-1 on the read-only status in the mode line (`%' or `*')
211toggles the read-only status.
212
213- Mouse-3 on the mode name display a minor-mode menu.
214
215** LessTif/Motif file selection dialog.
216
217When Emacs is configured to use LessTif or Motif, reading a file name
218from a menu will pop up a file selection dialog if `use-dialogs' is
219non-nil.
220
221** Emacs can display faces on TTY frames.
222
223Emacs automatically detects terminals that are able to display colors.
224Faces with a weight greater than normal are displayed extra-bright, if
225the terminal supports it. Faces with a weight less than normal and
226italic faces are displayed dimmed, if the terminal supports it.
227Underlined faces are displayed underlined if possible. Other face
228attributes like overlines, strike-throught, box are ignored.
229
230** Sound support
231
232Emacs supports playing sound files on GNU/Linux and the free BSDs
233(Voxware driver and native BSD driver, aka as Luigi's driver).
234Currently supported file formats are RIFF-WAVE (*.wav) and Sun Audio
235(*.au). You must configure Emacs with the option `--with-sound=yes'
236to enable sound support.
237
238** A new variable, backup-by-copying-when-privileged-mismatch, gives
239the highest file uid for which backup-by-copying-when-mismatch will be
240forced on. The assumption is that uids less than or equal to this
241value are special uids (root, bin, daemon, etc.--not real system
242users) and that files owned by these users should not change ownership,
243even if your system policy allows users other than root to edit them.
244
245The default is 200; set the variable to nil to disable the feature.
246
247** A block cursor can be drawn as wide as the glyph under it under X.
248
249As an example: if a block cursor is over a tab character, it will be
250drawn as wide as that tab on the display. To do this, set
251`x-stretch-cursor' to a non-nil value.
252
253** Empty display lines at the end of a buffer may be marked with a
254bitmap (this is similar to the tilde displayed by vi).
255
256This behavior is activated by setting the buffer-local variable
257`indicate-empty-lines' to a non-nil value. The default value of this
258variable is found in `default-indicate-empty-lines'.
259
260** There is a new "aggressive" scrolling method.
261
262When scrolling up because point is above the window start, if the
263value of the buffer-local variable `scroll-up-aggessively' is a
264number, Emacs chooses a new window start so that point ends up that
265fraction of the window's height from the bottom of the window.
266
267When scrolling down because point is below the window end, if the
268value of the buffer-local variable `scroll-down-aggessively' is a
269number, Emacs chooses a new window start so that point ends up that
270fraction of the window's height from the top of the window.
271
272** The rectangle commands now avoid inserting undesirable spaces,
273notably at the end of lines.
274
275All these functions have been rewritten to avoid inserting unwanted
276spaces, and an optional prefix now allows them to behave the old way.
277
278** The new command M-x query-replace-regexp-eval acts like
279query-replace-regexp, but takes a Lisp expression which is evaluated
280after each match to get the replacement text.
281
282** Emacs now resizes mini-windows if appropriate.
283
284If a message is longer than one line, or mini-buffer contents are
285longer than one line, Emacs now resizes the mini-window unless it is
286on a frame of its own. You can control the maximum mini-window size
287by setting the following variable:
288
289- User option: max-mini-window-height
290
291Maximum height for resizing mini-windows. If a float, it specifies a
292fraction of the mini-window frame's height. If an integer, it
293specifies a number of lines. If nil, don't resize.
294
295Default is 0.25.
296
400a1ed0
GM
297** Changes to TeX mode
298
299The default mode has been changed from `plain-tex-mode' to
300`latex-mode'.
301
a933dad1
DL
302** Changes to RefTeX mode
303
304*** RefTeX has new support for index generation. Index entries can be
305 created with `C-c <', with completion available on index keys.
306 Pressing `C-c /' indexes the word at the cursor with a default
307 macro. `C-c >' compiles all index entries into an alphabetically
308 sorted *Index* buffer which looks like the final index. Entries
309 can be edited from that buffer.
310
311*** Label and citation key selection now allow to select several
312 items and reference them together (use `m' to mark items, `a' or
313 `A' to use all marked entries).
314
315*** reftex.el has been split into a number of smaller files to reduce
316 memory use when only a part of RefTeX is being used.
317
318*** a new command `reftex-view-crossref-from-bibtex' (bound to `C-c &'
319 in BibTeX-mode) can be called in a BibTeX database buffer in order
320 to show locations in LaTeX documents where a particular entry has
321 been cited.
322
323** The M-x time-stamp command (most commonly used on write-file-hooks)
324has the following new features:
325
326*** The patterns for finding the time stamp and for updating a pattern
327may match text spanning multiple lines. For example, some people like
328to have the filename and date on separate lines. The new variable
329time-stamp-inserts-lines controls the matching for multi-line patterns.
330
331*** More than one time stamp can be updated in the same file. This
332feature is useful if you need separate time stamps in a program source
333file to both include in formatted documentation and insert in the
334compiled binary. The same time-stamp will be written at each matching
335pattern. The variable time-stamp-count enables this new feature; it
336defaults to 1.
337
338** Tooltips.
339
340Tooltips are small X windows displaying a help string at the current
341mouse position. To use them, use the Lisp package `tooltip' which you
342can access via the user option `tooltip-mode'.
343
344Tooltips also provides support for GUD debugging. If activated,
345variable values can be displayed in tooltips by pointing at them with
346the mouse in source buffers. You can customize various aspects of the
347tooltip display in the group `tooltip'.
348
349** Customize changes
350
351*** Customize now supports comments about customized items. Use the
34f94cf9
DL
352`State' menu to add comments. Note that customization comments will
353cause the customizations to fail in earlier versions of Emacs.
a933dad1
DL
354
355*** The new option `custom-buffer-done-function' says whether to kill
356Custom buffers when you've done with them or just bury them (the
357default).
358
359** New features in evaluation commands
360
361The commands to evaluate Lisp expressions, such as C-M-x in Lisp
362modes, C-j in Lisp Interaction mode, and M-:, now bind the variables
363print-level, print-length, and debug-on-error based on the
364customizable variables eval-expression-print-level,
365eval-expression-print-length, and eval-expression-debug-on-error.
366
a933dad1
DL
367** Dired changes
368
369*** New variable `dired-recursive-deletes' determines if the delete
370command will delete non-empty directories recursively. The default
371is, delete only empty directories.
372
373*** New variable `dired-recursive-copies' determines if the copy
374command will copy directories recursively. The default is, do not
375copy directories recursively.
376
377** The variable mail-specify-envelope-from controls whether to
378use the -f option when sending mail.
379
87be76f6
GM
380** Isearch changes
381
382*** In Isearch mode, mouse-2 in the echo area now yanks the current
a933dad1
DL
383selection into the search string rather than giving an error.
384
87be76f6
GM
385*** There is a new lazy highlighting feature in incremental search.
386
387Lazy highlighting is activated by customizing variable
388`isearch-lazy-highlight'. When active, all matches for the current
389search string are highlighted. The current match is highlighted as
390before using face `isearch' or `region'. All other matches are
391highlighted using face `isearch-lazy-highlight-face' which defaults to
392`secondary-selection'.
393
394The extra highlighting makes it easier to anticipate where the cursor
395will end up each time you press C-s or C-r to repeat a pending search.
396Highlighting of these additional matches happens in a deferred fashion
397using "idle timers," so the cycles needed do not rob isearch of its
398usual snappy response.
399
400If `isearch-lazy-highlight-cleanup' is set to t, highlights for
401matches are automatically cleared when you end the search. If it is
402set to nil, you can remove the highlights manually with `M-x
403isearch-lazy-highlight-cleanup'.
404
405
d67f47e4
DL
406** Ange-ftp allows you to specify of a port number in remote file
407names cleanly. It is appended to the host name, separated by a hash
408sign, e.g. `/foo@bar.org#666:mumble'. (This syntax comes from EFS.)
409
4b9347b3
GM
410** Shell script mode changes.
411
412Shell script mode (sh-script) can now indent scripts for shells
413derived from sh and rc. The indentation style is customizeable, and
414sh-script can attempt to "learn" the current buffer's style.
415
79214ddf
FP
416** Etags changes.
417
418*** In DOS, etags looks for file.cgz if it cannot find file.c.
419
aca0be23 420*** New option --ignore-case-regex is an alternative to --regex. It is now
8dc78b52
FP
421possible to bind a regexp to a language, by prepending the regexp with
422{lang}, where lang is one of the languages that `etags --help' prints out.
423This feature is useful especially for regex files, where each line contains
424a regular expression. The manual contains details.
aca0be23 425
79214ddf
FP
426*** In C and derived languages, etags creates tags for function
427declarations when given the --declarations option.
428
429*** In C++, tags are created for "operator". The tags have the form
aca0be23 430"operator+", without spaces between the keyword and the operator.
79214ddf
FP
431
432*** New language Ada: tags are functions, procedures, packages, tasks, and
433types.
434
435*** In Fortran, procedure is no more tagged.
436
437*** In Java, tags are created for "interface".
438
439*** In Lisp, "(defstruct (foo", "(defun (operator" and similar constructs
440are now tagged.
441
442*** In Perl, the --globals option tags global variables. my and local
443variables are tagged.
444
445*** New language Python: def and class at the beginning of a line are tags.
446
8dc78b52
FP
447*** .ss files are Scheme files, .pdb is Postscript with C syntax, .psw is
448for PSWrap.
79214ddf 449
fbc164de
PE
450** Emacs now attempts to determine the initial language environment
451and preferred and locale coding systems systematically from the
452LC_ALL, LC_CTYPE, and LANG environment variables during startup.
453
59c1bf85
DL
454** New language environments `Latin-8' and `Latin-9'.
455These correspond respectively to the ISO character sets 8859-14
456(Celtic) and 8859-15 (updated Latin-1, with the Euro sign). There is
457currently no specific input method support for them.
458
a933dad1
DL
459** New modes and packages
460
461*** 5x5.el is a simple puzzle game.
462
463*** hl-line.el provides a minor mode to highlight the current line.
464
465*** ansi-color.el translates ANSI terminal escapes into text-properties.
466
467*** delphi.el provides a major mode for editing the Delphi (Object
468Pascal) language.
469
470*** quickurl.el provides a simple method of inserting a URL based on
471the text at point.
472
473*** sql.el provides an interface to SQL data bases.
474
8d54eb69
DL
475*** fortune.el uses the fortune program to create mail/news signatures.
476
a933dad1
DL
477*** whitespace.el ???
478
ebcfda83
GM
479*** PostScript mode (ps-mode) is a new major mode for editing PostScript
480files. It offers: interaction with a PostScript interpreter, including
481(very basic) error handling; fontification, easily customizable for
482interpreter messages; auto-indentation; insertion of EPSF templates and
483often used code snippets; viewing of BoundingBox; commenting out /
484uncommenting regions; conversion of 8bit characters to PostScript octal
485codes. All functionality is accessible through a menu.
486
487*** delim-col helps to prettify columns in a text region or rectangle.
488
489Here is an example of columns:
490
491horse apple bus
492dog pineapple car EXTRA
493porcupine strawberry airplane
494
495Doing the following settings:
496
497 (setq delimit-columns-str-before "[ ")
498 (setq delimit-columns-str-after " ]")
499 (setq delimit-columns-str-separator ", ")
500 (setq delimit-columns-separator "\t")
501
502
503Selecting the lines above and typing:
504
505 M-x delimit-columns-region
506
507It results:
508
509[ horse , apple , bus , ]
510[ dog , pineapple , car , EXTRA ]
511[ porcupine, strawberry, airplane, ]
512
513delim-col has the following options:
514
515 delimit-columns-str-before Specify a string to be inserted
516 before all columns.
517
518 delimit-columns-str-separator Specify a string to be inserted
519 between each column.
520
521 delimit-columns-str-after Specify a string to be inserted
522 after all columns.
523
524 delimit-columns-separator Specify a regexp which separates
525 each column.
526
527delim-col has the following commands:
528
529 delimit-columns-region Prettify all columns in a text region.
530 delimit-columns-rectangle Prettify all columns in a text rectangle.
531
f507826c
GM
532*** The package recentf.el maintains a menu for visiting files that
533were operated on recently. When enabled, a new "Open Recent" submenu
534is displayed in the "Files" menu.
535
536The recent files list is automatically saved across Emacs sessions.
537
538To enable/disable recentf use M-x recentf-mode.
539
540To enable recentf at Emacs startup use
541M-x customize-variable RET recentf-mode RET.
542
543To change the number of recent files displayed and others options use
544M-x customize-group RET recentf RET.
545
8062f458
DL
546*** elide-head.el provides a mechanism for eliding boilerplate header
547text.
548
a933dad1
DL
549** Withdrawn packages
550
551*** mldrag.el has been removed. mouse.el provides the same
552functionality with aliases for the mldrag functions.
25a81338
DL
553
554*** eval-reg.el has been obsoleted by changes to edebug.el.
18d6eea9
GM
555
556** Not new, but not mentioned before:
557M-w when Transient Mark mode is enabled disables the mark.
558
a933dad1
DL
559\f
560* Lisp changes in Emacs 21.1 (see following page for display-related features)
561
562Note that +++ before an item means the Lisp manual has been updated.
563--- means that I have decided it does not need to be in the Lisp manual.
564When you add a new item, please add it without either +++ or ---
565so I will know I still need to look at it -- rms.
566
dde9e75a
GM
567** The optional argument BUFFER of function file-local-copy has been
568removed since it wasn't used by anything.
569
9da30515
GM
570** The file name argument of function `file-locked-p' is now required
571instead of being optional.
572
d20679eb
GM
573** The new built-in error `text-read-only' is signaled when trying to
574modify read-only text.
575
fbc164de
PE
576** New functions and variables for locales.
577
578The new variable `locale-coding-system' specifies how to encode and
579decode strings passed to low-level message functions like strerror and
580time functions like strftime. The new variables `messages-locale' and
581`time-locale' give the system locales to be used during the next
582invocations of these two types of functions; the new variables
583`previous-messages-locale' and `previous-time-locale' give the locales
584most recently used.
585
586The new function `set-locale-environment' sets the language
587environment, preferred coding system, and locale coding system from
588the system locale as specified by the LC_ALL, LC_CTYPE, and LANG
589environment variables. It is normally invoked during startup. It
590uses the new variables `locale-language-names',
591`locale-charset-language-names', and `locale-preferred-coding-systems'
592to make its decisions.
593
863476d1
SM
594** syntax tables now understand nested comments.
595To declare a comment syntax as allowing nesting, just add an `n'
596modifier to either of the characters of the comment end and the comment
597start sequences.
598
ef6d912c
GM
599** The function `pixmap-spec-p' has been renamed `bitmap-spec-p'
600because `bitmap' is more in line with the usual X terminology.
601
a933dad1
DL
602** New function `propertize'
603
604The new function `propertize' can be used to conveniently construct
605strings with text properties.
606
607- Function: propertize STRING &rest PROPERTIES
608
609Value is a copy of STRING with text properties assigned as specified
610by PROPERTIES. PROPERTIES is a sequence of pairs PROPERTY VALUE, with
611PROPERTY being the name of a text property and VALUE being the
612specified value of that property. Example:
613
614 (propertize "foo" 'face 'bold 'read-only t)
615
616+++
617** push and pop macros.
618
619A simple version of the push and pop macros of Common Lisp
620is now defined in Emacs Lisp. These macros allow only symbols
621as the place that holds the list to be changed.
622
623(push NEWELT LISTNAME) add NEWELT to the front of LISTNAME's value.
624(pop LISTNAME) return first elt of LISTNAME, and remove it
625 (thus altering the value of LISTNAME).
626
627+++
628** Regular expressions now support Posix character classes such
629as [:alpha:], [:space:] and so on.
630
631[:digit:] matches 0 through 9
632[:cntrl:] matches ASCII control characters
633[:xdigit:] matches 0 through 9, a through f and A through F.
634[:blank:] matches space and tab only
635[:graph:] matches graphic characters--everything except ASCII control chars,
636 space, and DEL.
637[:print:] matches printing characters--everything except ASCII control chars
638 and DEL.
639[:alnum:] matches letters and digits.
640 (But at present, for multibyte characters,
641 it matches anything that has word syntax.)
642[:alpha:] matches letters.
643 (But at present, for multibyte characters,
644 it matches anything that has word syntax.)
645[:ascii:] matches ASCII (unibyte) characters.
646[:nonascii:] matches non-ASCII (multibyte) characters.
647[:lower:] matches anything lower-case.
648[:punct:] matches punctuation.
649 (But at present, for multibyte characters,
650 it matches anything that has non-word syntax.)
651[:space:] matches anything that has whitespace syntax.
652[:upper:] matches anything upper-case.
653[:word:] matches anything that has word syntax.
654
655+++
656** Emacs now has built-in hash tables.
657
658The following functions are defined for hash tables:
659
660- Function: make-hash-table ARGS
661
662The argument list ARGS consists of keyword/argument pairs. All arguments
663are optional. The following arguments are defined:
664
665:test TEST
666
667TEST must be a symbol specifying how to compare keys. Default is `eql'.
668Predefined are `eq', `eql' and `equal'. If TEST is not predefined,
669it must have been defined with `define-hash-table-test'.
670
671:size SIZE
672
673SIZE must be an integer > 0 giving a hint to the implementation how
674many elements will be put in the hash table. Default size is 65.
675
676:rehash-size REHASH-SIZE
677
678REHASH-SIZE specifies by how much to grow a hash table once it becomes
679full. If REHASH-SIZE is an integer, add that to the hash table's old
680size to get the new size. Otherwise, REHASH-SIZE must be a float >
6811.0, and the new size is computed by multiplying REHASH-SIZE with the
682old size. Default rehash size is 1.5.
683
684:rehash-threshold THRESHOLD
685
686THRESHOLD must be a float > 0 and <= 1.0 specifying when to resize the
687hash table. It is resized when the ratio of (number of entries) /
688(size of hash table) is >= THRESHOLD. Default threshold is 0.8.
689
690:weakness WEAK
691
692WEAK must be either nil, one of the symbols `key, `value', or t.
693Entries are removed from weak tables during garbage collection if
694their key and/or value are not referenced elsewhere outside of the
695hash table. Default are non-weak hash tables.
696
697- Function: makehash &optional TEST
698
699Similar to make-hash-table, but only TEST can be specified.
700
701- Function: hash-table-p TABLE
702
703Returns non-nil if TABLE is a hash table object.
704
705- Function: copy-hash-table TABLE
706
707Returns a copy of TABLE. Only the table itself is copied, keys and
708values are shared.
709
710- Function: hash-table-count TABLE
711
712Returns the number of entries in TABLE.
713
714- Function: hash-table-rehash-size TABLE
715
716Returns the rehash size of TABLE.
717
718- Function: hash-table-rehash-threshold TABLE
719
720Returns the rehash threshold of TABLE.
721
722- Function: hash-table-rehash-size TABLE
723
724Returns the size of TABLE.
725
726- Function: hash-table-rehash-test TABLE
727
728Returns the test TABLE uses to compare keys.
729
730- Function: hash-table-weakness TABLE
731
732Returns the weakness specified for TABLE.
733
734- Function: clrhash TABLE
735
736Clear TABLE.
737
738- Function: gethash KEY TABLE &optional DEFAULT
739
740Look up KEY in TABLE and return its associated VALUE or DEFAULT if
741not found.
742
79214ddf 743- Function: puthash KEY VALUE TABLE
a933dad1
DL
744
745Associate KEY with VALUE in TABLE. If KEY is already associated with
746another value, replace the old value with VALUE.
747
748- Function: remhash KEY TABLE
749
750Remove KEY from TABLE if it is there.
751
752- Function: maphash FUNCTION TABLE
753
754Call FUNCTION for all elements in TABLE. FUNCTION must take two
755arguments KEY and VALUE.
756
757- Function: sxhash OBJ
758
759Return a hash code for Lisp object OBJ.
760
761- Function: define-hash-table-test NAME TEST-FN HASH-FN
762
763Define a new hash table test named NAME. If NAME is specified as
764a test in `make-hash-table', the table created will use TEST-FN for
79214ddf 765comparing keys, and HASH-FN to compute hash codes for keys. Test
a933dad1
DL
766and hash function are stored as symbol property `hash-table-test'
767of NAME with a value of (TEST-FN HASH-FN).
768
769TEST-FN must take two arguments and return non-nil if they are the same.
770
771HASH-FN must take one argument and return an integer that is the hash
772code of the argument. The function should use the whole range of
773integer values for hash code computation, including negative integers.
774
775Example: The following creates a hash table whose keys are supposed to
776be strings that are compared case-insensitively.
777
778 (defun case-fold-string= (a b)
779 (compare-strings a nil nil b nil nil t))
780
781 (defun case-fold-string-hash (a)
782 (sxhash (upcase a)))
783
79214ddf 784 (define-hash-table-test 'case-fold 'case-fold-string=
a933dad1
DL
785 'case-fold-string-hash))
786
787 (make-hash-table :test 'case-fold)
788
789+++
790** The Lisp reader handles circular structure.
791
792It now works to use the #N= and #N# constructs to represent
793circular structures. For example, #1=(a . #1#) represents
794a cons cell which is its own cdr.
795
796+++
797** The Lisp printer handles circular structure.
798
799If you bind print-circle to a non-nil value, the Lisp printer outputs
800#N= and #N# constructs to represent circular and shared structure.
801
a933dad1
DL
802+++
803** If the second argument to `move-to-column' is anything but nil or
804t, that means replace a tab with spaces if necessary to reach the
805specified column, but do not add spaces at the end of the line if it
806is too short to reach that column.
807
808+++
809** perform-replace has a new feature: the REPLACEMENTS argument may
810now be a cons cell (FUNCTION . DATA). This means to call FUNCTION
811after each match to get the replacement text. FUNCTION is called with
812two arguments: DATA, and the number of replacements already made.
813
814If the FROM-STRING contains any upper-case letters,
815perform-replace also turns off `case-fold-search' temporarily
816and inserts the replacement text without altering case in it.
817
818+++
819** The function buffer-size now accepts an optional argument
820to specify which buffer to return the size of.
821
822+++
823** The calendar motion commands now run the normal hook
824calendar-move-hook after moving point.
825
826+++
827** The new variable small-temporary-file-directory specifies a
828directory to use for creating temporary files that are likely to be
829small. (Certain Emacs features use this directory.) If
830small-temporary-file-directory is nil, they use
831temporary-file-directory instead.
832
833+++
834** The variable `inhibit-modification-hooks', if non-nil, inhibits all
835the hooks that track changes in the buffer. This affects
836`before-change-functions' and `after-change-functions', as well as
837hooks attached to text properties and overlay properties.
838
839+++
840** assoc-delete-all is a new function that deletes all the
841elements of an alist which have a particular value as the car.
842
843+++
844** make-temp-file provides a more reliable way to create a temporary file.
845
846make-temp-file is used like make-temp-name, except that it actually
847creates the file before it returns. This prevents a timing error,
848ensuring that no other job can use the same name for a temporary file.
849
850+++
851** New exclusive-open feature in `write-region'
852
853The optional seventh arg is now called MUSTBENEW. If non-nil, it insists
854on a check for an existing file with the same name. If MUSTBENEW
855is `excl', that means to get an error if the file already exists;
856never overwrite. If MUSTBENEW is neither nil nor `excl', that means
857ask for confirmation before overwriting, but do go ahead and
858overwrite the file if the user gives confirmation.
859
860If the MUSTBENEW argument in `write-region' is `excl',
861that means to use a special feature in the `open' system call
862to get an error if the file exists at that time.
863The error reported is `file-already-exists'.
864
865+++
866** Function `format' now handles text properties.
867
868Text properties of the format string are applied to the result string.
869If the result string is longer than the format string, text properties
870ending at the end of the format string are extended to the end of the
871result string.
872
873Text properties from string arguments are applied to the result
874string where arguments appear in the result string.
875
876Example:
877
878 (let ((s1 "hello, %s")
879 (s2 "world"))
880 (put-text-property 0 (length s1) 'face 'bold s1)
881 (put-text-property 0 (length s2) 'face 'italic s2)
b246b1f6 882 (format s1 s2))
a933dad1
DL
883
884results in a bold-face string with an italic `world' at the end.
885
886+++
887** Messages can now be displayed with text properties.
888
889Text properties are handled as described above for function `format'.
890The following example displays a bold-face message with an italic
891argument in it.
892
893 (let ((msg "hello, %s!")
894 (arg "world"))
895 (put-text-property 0 (length msg) 'face 'bold msg)
896 (put-text-property 0 (length arg) 'face 'italic arg)
897 (message msg arg))
898
899+++
900** Sound support
901
902Emacs supports playing sound files on GNU/Linux and the free BSDs
903(Voxware driver and native BSD driver, aka as Luigi's driver).
904
905Currently supported file formats are RIFF-WAVE (*.wav) and Sun Audio
906(*.au). You must configure Emacs with the option `--with-sound=yes'
907to enable sound support.
908
909Sound files can be played by calling (play-sound SOUND). SOUND is a
910list of the form `(sound PROPERTY...)'. The function is only defined
911when sound support is present for the system on which Emacs runs. The
912functions runs `play-sound-functions' with one argument which is the
913sound to play, before playing the sound.
914
915The following sound properties are supported:
916
917- `:file FILE'
918
919FILE is a file name. If FILE isn't an absolute name, it will be
920searched relative to `data-directory'.
921
922- `:volume VOLUME'
923
924VOLUME must be an integer in the range 0..100 or a float in the range
9250..1. This property is optional.
926
927Other properties are ignored.
928
929** `multimedia' is a new Finder keyword and Custom group.
930\f
931* New Lisp-level Display features in Emacs 21.1
932
933Note that +++ before an item means the Lisp manual has been updated.
934--- means that I have decided it does not need to be in the Lisp manual.
935When you add a new item, please add it without either +++ or ---
936so I will know I still need to look at it -- rms.
937
938** New face implementation.
939
940Emacs faces have been reimplemented from scratch. They don't use XLFD
941font names anymore and face merging now works as expected.
942
943+++
944*** New faces.
945
946Each face can specify the following display attributes:
947
948 1. Font family or fontset alias name.
79214ddf 949
a933dad1
DL
950 2. Relative proportionate width, aka character set width or set
951 width (swidth), e.g. `semi-compressed'.
79214ddf 952
a933dad1 953 3. Font height in 1/10pt
79214ddf 954
a933dad1 955 4. Font weight, e.g. `bold'.
79214ddf 956
a933dad1 957 5. Font slant, e.g. `italic'.
79214ddf 958
a933dad1 959 6. Foreground color.
79214ddf 960
a933dad1
DL
961 7. Background color.
962
963 8. Whether or not characters should be underlined, and in what color.
964
965 9. Whether or not characters should be displayed in inverse video.
966
967 10. A background stipple, a bitmap.
968
969 11. Whether or not characters should be overlined, and in what color.
970
971 12. Whether or not characters should be strike-through, and in what
972 color.
973
974 13. Whether or not a box should be drawn around characters, its
975 color, the width of the box lines, and 3D appearance.
976
977Faces are frame-local by nature because Emacs allows to define the
978same named face (face names are symbols) differently for different
979frames. Each frame has an alist of face definitions for all named
980faces. The value of a named face in such an alist is a Lisp vector
981with the symbol `face' in slot 0, and a slot for each each of the face
982attributes mentioned above.
983
984There is also a global face alist `face-new-frame-defaults'. Face
985definitions from this list are used to initialize faces of newly
986created frames.
79214ddf 987
a933dad1
DL
988A face doesn't have to specify all attributes. Those not specified
989have a nil value. Faces specifying all attributes are called
990`fully-specified'.
991
992+++
993*** Face merging.
994
995The display style of a given character in the text is determined by
996combining several faces. This process is called `face merging'. Any
997aspect of the display style that isn't specified by overlays or text
998properties is taken from the `default' face. Since it is made sure
999that the default face is always fully-specified, face merging always
1000results in a fully-specified face.
1001
1002+++
1003*** Face realization.
1004
1005After all face attributes for a character have been determined by
1006merging faces of that character, that face is `realized'. The
1007realization process maps face attributes to what is physically
1008available on the system where Emacs runs. The result is a `realized
1009face' in form of an internal structure which is stored in the face
1010cache of the frame on which it was realized.
1011
1012Face realization is done in the context of the charset of the
1013character to display because different fonts and encodings are used
1014for different charsets. In other words, for characters of different
1015charsets, different realized faces are needed to display them.
1016
1017Except for composite characters, faces are always realized for a
1018specific character set and contain a specific font, even if the face
1019being realized specifies a fontset. The reason is that the result of
1020the new font selection stage is better than what can be done with
1021statically defined font name patterns in fontsets.
1022
1023In unibyte text, Emacs' charsets aren't applicable; function
1024`char-charset' reports ASCII for all characters, including those >
10250x7f. The X registry and encoding of fonts to use is determined from
1026the variable `face-default-registry' in this case. The variable is
1027initialized at Emacs startup time from the font the user specified for
1028Emacs.
1029
1030Currently all unibyte text, i.e. all buffers with
1031`enable-multibyte-characters' nil are displayed with fonts of the same
1032registry and encoding `face-default-registry'. This is consistent
1033with the fact that languages can also be set globally, only.
1034
1035++++
1036**** Clearing face caches.
1037
1038The Lisp function `clear-face-cache' can be called to clear face caches
1039on all frames. If called with a non-nil argument, it will also unload
1040unused fonts.
1041
1042+++
1043*** Font selection.
79214ddf 1044
a933dad1
DL
1045Font selection tries to find the best available matching font for a
1046given (charset, face) combination. This is done slightly differently
1047for faces specifying a fontset, or a font family name.
1048
1049If the face specifies a fontset name, that fontset determines a
1050pattern for fonts of the given charset. If the face specifies a font
1051family, a font pattern is constructed. Charset symbols have a
1052property `x-charset-registry' for that purpose that maps a charset to
1053an XLFD registry and encoding in the font pattern constructed.
1054
1055Available fonts on the system on which Emacs runs are then matched
1056against the font pattern. The result of font selection is the best
1057match for the given face attributes in this font list.
1058
1059Font selection can be influenced by the user.
1060
1061The user can specify the relative importance he gives the face
1062attributes width, height, weight, and slant by setting
1063face-font-selection-order (faces.el) to a list of face attribute
1064names. The default is (:width :height :weight :slant), and means
1065that font selection first tries to find a good match for the font
1066width specified by a face, then---within fonts with that width---tries
1067to find a best match for the specified font height, etc.
1068
1069Setting `face-alternative-font-family-alist' allows the user to
1070specify alternative font families to try if a family specified by a
1071face doesn't exist.
1072
1073+++
1074**** Scalable fonts
1075
1076Emacs can make use of scalable fonts but doesn't do so by default,
1077since the use of too many or too big scalable fonts may crash XFree86
1078servers.
1079
1080To enable scalable font use, set the variable
b246b1f6 1081`scalable-fonts-allowed'. A value of nil, the default, means never use
a933dad1
DL
1082scalable fonts. A value of t means any scalable font may be used.
1083Otherwise, the value must be a list of regular expressions. A
1084scalable font may then be used if it matches a regular expression from
1085that list. Example:
1086
1087 (setq scalable-fonts-allowed '("muleindian-2$"))
1088
1089allows the use of scalable fonts with registry `muleindian-2'.
1090
1091+++
1092*** Functions and variables related to font selection.
1093
1094- Function: x-family-fonts &optional FAMILY FRAME
1095
1096Return a list of available fonts of family FAMILY on FRAME. If FAMILY
1097is omitted or nil, list all families. Otherwise, FAMILY must be a
1098string, possibly containing wildcards `?' and `*'.
1099
1100If FRAME is omitted or nil, use the selected frame. Each element of
1101the result is a vector [FAMILY WIDTH POINT-SIZE WEIGHT SLANT FIXED-P
1102FULL REGISTRY-AND-ENCODING]. FAMILY is the font family name.
1103POINT-SIZE is the size of the font in 1/10 pt. WIDTH, WEIGHT, and
1104SLANT are symbols describing the width, weight and slant of the font.
1105These symbols are the same as for face attributes. FIXED-P is non-nil
1106if the font is fixed-pitch. FULL is the full name of the font, and
1107REGISTRY-AND-ENCODING is a string giving the registry and encoding of
1108the font. The result list is sorted according to the current setting
1109of the face font sort order.
1110
79214ddf 1111- Function: x-font-family-list
a933dad1
DL
1112
1113Return a list of available font families on FRAME. If FRAME is
1114omitted or nil, use the selected frame. Value is a list of conses
1115(FAMILY . FIXED-P) where FAMILY is a font family, and FIXED-P is
1116non-nil if fonts of that family are fixed-pitch.
1117
1118- Variable: font-list-limit
1119
1120Limit for font matching. If an integer > 0, font matching functions
1121won't load more than that number of fonts when searching for a
1122matching font. The default is currently 100.
1123
1124+++
1125*** Setting face attributes.
1126
1127For the most part, the new face implementation is interface-compatible
1128with the old one. Old face attribute related functions are now
1129implemented in terms of the new functions `set-face-attribute' and
1130`face-attribute'.
1131
1132Face attributes are identified by their names which are keyword
1133symbols. All attributes can be set to `unspecified'.
1134
1135The following attributes are recognized:
1136
1137`:family'
1138
1139VALUE must be a string specifying the font family, e.g. ``courier'',
1140or a fontset alias name. If a font family is specified, wild-cards `*'
1141and `?' are allowed.
1142
1143`:width'
1144
1145VALUE specifies the relative proportionate width of the font to use.
1146It must be one of the symbols `ultra-condensed', `extra-condensed',
1147`condensed', `semi-condensed', `normal', `semi-expanded', `expanded',
1148`extra-expanded', or `ultra-expanded'.
1149
1150`:height'
1151
1152VALUE must be an integer specifying the height of the font to use in
11531/10 pt.
1154
1155`:weight'
1156
1157VALUE specifies the weight of the font to use. It must be one of the
1158symbols `ultra-bold', `extra-bold', `bold', `semi-bold', `normal',
1159`semi-light', `light', `extra-light', `ultra-light'.
1160
1161`:slant'
1162
1163VALUE specifies the slant of the font to use. It must be one of the
1164symbols `italic', `oblique', `normal', `reverse-italic', or
1165`reverse-oblique'.
1166
1167`:foreground', `:background'
1168
1169VALUE must be a color name, a string.
1170
1171`:underline'
1172
1173VALUE specifies whether characters in FACE should be underlined. If
1174VALUE is t, underline with foreground color of the face. If VALUE is
1175a string, underline with that color. If VALUE is nil, explicitly
1176don't underline.
1177
1178`:overline'
1179
1180VALUE specifies whether characters in FACE should be overlined. If
1181VALUE is t, overline with foreground color of the face. If VALUE is a
1182string, overline with that color. If VALUE is nil, explicitly don't
1183overline.
1184
1185`:strike-through'
1186
1187VALUE specifies whether characters in FACE should be drawn with a line
1188striking through them. If VALUE is t, use the foreground color of the
1189face. If VALUE is a string, strike-through with that color. If VALUE
1190is nil, explicitly don't strike through.
1191
1192`:box'
1193
1194VALUE specifies whether characters in FACE should have a box drawn
1195around them. If VALUE is nil, explicitly don't draw boxes. If
1196VALUE is t, draw a box with lines of width 1 in the foreground color
1197of the face. If VALUE is a string, the string must be a color name,
1198and the box is drawn in that color with a line width of 1. Otherwise,
1199VALUE must be a property list of the form `(:line-width WIDTH
1200:color COLOR :style STYLE)'. If a keyword/value pair is missing from
1201the property list, a default value will be used for the value, as
1202specified below. WIDTH specifies the width of the lines to draw; it
1203defaults to 1. COLOR is the name of the color to draw in, default is
1204the foreground color of the face for simple boxes, and the background
1205color of the face for 3D boxes. STYLE specifies whether a 3D box
1206should be draw. If STYLE is `released-button', draw a box looking
1207like a released 3D button. If STYLE is `pressed-button' draw a box
1208that appears like a pressed button. If STYLE is nil, the default if
1209the property list doesn't contain a style specification, draw a 2D
1210box.
1211
1212`:inverse-video'
1213
1214VALUE specifies whether characters in FACE should be displayed in
1215inverse video. VALUE must be one of t or nil.
1216
1217`:stipple'
1218
1219If VALUE is a string, it must be the name of a file of pixmap data.
1220The directories listed in the `x-bitmap-file-path' variable are
1221searched. Alternatively, VALUE may be a list of the form (WIDTH
1222HEIGHT DATA) where WIDTH and HEIGHT are the size in pixels, and DATA
1223is a string containing the raw bits of the bitmap. VALUE nil means
1224explicitly don't use a stipple pattern.
1225
1226For convenience, attributes `:family', `:width', `:height', `:weight',
1227and `:slant' may also be set in one step from an X font name:
1228
1229`:font'
1230
1231Set font-related face attributes from VALUE. VALUE must be a valid
1232XLFD font name. If it is a font name pattern, the first matching font
1233is used--this is for compatibility with the behavior of previous
1234versions of Emacs.
1235
1236For compatibility with Emacs 20, keywords `:bold' and `:italic' can
1237be used to specify that a bold or italic font should be used. VALUE
1238must be t or nil in that case. A value of `unspecified' is not allowed."
1239
1240Please see also the documentation of `set-face-attribute' and
1241`defface'.
1242
1243*** Face attributes and X resources
1244
1245The following X resource names can be used to set face attributes
1246from X resources:
1247
1248 Face attribute X resource class
1249-----------------------------------------------------------------------
1250 :family attributeFamily . Face.AttributeFamily
1251 :width attributeWidth Face.AttributeWidth
1252 :height attributeHeight Face.AttributeHeight
1253 :weight attributeWeight Face.AttributeWeight
1254 :slant attributeSlant Face.AttributeSlant
1255 foreground attributeForeground Face.AttributeForeground
1256 :background attributeBackground . Face.AttributeBackground
1257 :overline attributeOverline Face.AttributeOverline
1258 :strike-through attributeStrikeThrough Face.AttributeStrikeThrough
1259 :box attributeBox Face.AttributeBox
1260 :underline attributeUnderline Face.AttributeUnderline
1261 :inverse-video attributeInverse Face.AttributeInverse
1262 :stipple attributeStipple Face.AttributeStipple
79214ddf 1263 or attributeBackgroundPixmap
a933dad1
DL
1264 Face.AttributeBackgroundPixmap
1265 :font attributeFont Face.AttributeFont
1266 :bold attributeBold Face.AttributeBold
1267 :italic attributeItalic . Face.AttributeItalic
1268 :font attributeFont Face.AttributeFont
1269
1270+++
1271*** Text property `face'.
1272
1273The value of the `face' text property can now be a single face
1274specification or a list of such specifications. Each face
1275specification can be
1276
12771. A symbol or string naming a Lisp face.
1278
12792. A property list of the form (KEYWORD VALUE ...) where each
1280 KEYWORD is a face attribute name, and VALUE is an appropriate value
1281 for that attribute. Please see the doc string of `set-face-attribute'
1282 for face attribute names.
1283
12843. Conses of the form (FOREGROUND-COLOR . COLOR) or
1285 (BACKGROUND-COLOR . COLOR) where COLOR is a color name. This is
1286 for compatibility with previous Emacs versions.
1287
1288+++
1289** Support functions for colors on text-only terminals.
1290
1291The function `face-register-tty-color' can be used to define colors
1292for use on TTY frames. It maps a color name to a color number on the
1293terminal. Emacs defines a couple of default color mappings by
1294default. You can get defined colors with a call to
1295`tty-defined-colors'. The function `face-clear-tty-colors' can be
1296used to clear the mapping table.
1297
1298+++
1299** The minibuffer prompt is now actually inserted in the minibuffer.
a933dad1 1300
463cac2d 1301This makes it possible to scroll through the prompt, if you want to.
a933dad1
DL
1302
1303The function minubuffer-prompt-end returns the current position of the
1304end of the minibuffer prompt, if the minibuffer is current.
1305Otherwise, it returns zero.
1306
463cac2d
GM
1307** New `field' abstraction in buffers.
1308
1309There is now code to support an abstraction called `fields' in emacs
1310buffers. A field is a contiguous region of text with the same `field'
1311text-property.
1312
9a9dfda8 1313Many emacs functions, such as forward-word, forward-sentence,
463cac2d 1314forward-paragraph, beginning-of-line, etc., stop moving when they come
9a9dfda8 1315to the boundary between fields; beginning-of-line and end-of-line will
463cac2d 1316not let the point move past the field boundary, but other movement
9a9dfda8 1317commands continue into the next field if repeated.
463cac2d
GM
1318
1319Now that the minibuffer prompt is inserted into the minibuffer, it is in
9a9dfda8 1320a separate field from the user-input part of the buffer, so that common
463cac2d 1321editing commands treat the user's text separately from the prompt.
a933dad1 1322
9a9dfda8
GM
1323The following functions are defined for operating on fields:
1324
1325- Function: constrain-to-field NEW-POS OLD-POS &optional ESCAPE-FROM-EDGE ONLY-IN-LINE
1326
1327Return the position closest to NEW-POS that is in the same field as OLD-POS.
1328A field is a region of text with the same `field' property.
1329If NEW-POS is nil, then the current point is used instead, and set to the
1330constrained position if that is is different.
1331
1332If OLD-POS is at the boundary of two fields, then the allowable
1333positions for NEW-POS depends on the value of the optional argument
1334ESCAPE-FROM-EDGE: If ESCAPE-FROM-EDGE is nil, then NEW-POS is
1335constrained to the field that has the same `field' text-property
1336as any new characters inserted at OLD-POS, whereas if ESCAPE-FROM-EDGE
1337is non-nil, NEW-POS is constrained to the union of the two adjacent
1338fields.
1339
1340If the optional argument ONLY-IN-LINE is non-nil and constraining
1341NEW-POS would move it to a different line, NEW-POS is returned
1342unconstrained. This useful for commands that move by line, like
1343C-n or C-a, which should generally respect field boundaries
1344only in the case where they can still move to the right line.
1345
1346- Function: erase-field &optional POS
1347
1348Erases the field surrounding POS.
1349A field is a region of text with the same `field' property.
1350If POS is nil, the position of the current buffer's point is used.
1351
1352- Function: field-beginning &optional POS ESCAPE-FROM-EDGE
1353
1354Return the beginning of the field surrounding POS.
1355A field is a region of text with the same `field' property.
1356If POS is nil, the position of the current buffer's point is used.
1357If ESCAPE-FROM-EDGE is non-nil and POS is already at beginning of an
1358field, then the beginning of the *previous* field is returned.
1359
1360- Function: field-end &optional POS ESCAPE-FROM-EDGE
1361
1362Return the end of the field surrounding POS.
1363A field is a region of text with the same `field' property.
1364If POS is nil, the position of the current buffer's point is used.
1365If ESCAPE-FROM-EDGE is non-nil and POS is already at end of a field,
1366then the end of the *following* field is returned.
1367
1368- Function: field-string &optional POS
1369
1370Return the contents of the field surrounding POS as a string.
1371A field is a region of text with the same `field' property.
1372If POS is nil, the position of the current buffer's point is used.
1373
1374- Function: field-string-no-properties &optional POS
1375
1376Return the contents of the field around POS, without text-properties.
1377A field is a region of text with the same `field' property.
1378If POS is nil, the position of the current buffer's point is used.
1379
a933dad1
DL
1380+++
1381** Image support.
1382
1383Emacs can now display images. Images are inserted into text by giving
1384strings or buffer text a `display' text property containing one of
1385(AREA IMAGE) or IMAGE. The display of the `display' property value
1386replaces the display of the characters having that property.
1387
1388If the property value has the form (AREA IMAGE), AREA must be one of
1389`(margin left-margin)', `(margin right-margin)' or `(margin nil)'. If
1390AREA is `(margin nil)', IMAGE will be displayed in the text area of a
1391window, otherwise it will be displayed in the left or right marginal
1392area.
1393
1394IMAGE is an image specification.
1395
1396*** Image specifications
1397
1398Image specifications are lists of the form `(image PROPS)' where PROPS
1399is a property list whose keys are keyword symbols. Each
1400specifications must contain a property `:type TYPE' with TYPE being a
35a5514b
GM
1401symbol specifying the image type, e.g. `xbm'. Properties not
1402described below are ignored.
a933dad1
DL
1403
1404The following is a list of properties all image types share.
1405
1406`:ascent ASCENT'
1407
1408ASCENT must be a number in the range 0..100, and specifies the percentage
1409of the image's height to use for its ascent. Default is 50.
1410
1411`:margin MARGIN'
1412
79214ddf 1413MARGIN must be a number >= 0 specifying how many pixels to put as
a933dad1
DL
1414margin around the image. Default is 0.
1415
1416`:relief RELIEF'
1417
1418RELIEF is analogous to the `:relief' attribute of faces. Puts a relief
1419around an image.
1420
1421`:algorithm ALGO'
1422
1423Apply an image algorithm to the image before displaying it. ALGO must
1424be a symbol specifying the algorithm. Currently only `laplace' is
1425supported which applies a Laplace edge detection algorithm to an image
1426which is intended to display images "disabled."
1427
1428`:heuristic-mask BG'
1429
1430If BG is not nil, build a clipping mask for the image, so that the
1431background of a frame is visible behind the image. If BG is t,
1432determine the background color of the image by looking at the 4
1433corners of the image, assuming the most frequently occuring color from
1434the corners is the background color of the image. Otherwise, BG must
1435be a list `(RED GREEN BLUE)' specifying the color to assume for the
1436background of the image.
1437
1438`:file FILE'
1439
1440Load image from FILE. If FILE is not absolute after expanding it,
1441search for the image in `data-directory'. Some image types support
1442building images from data. When this is done, no `:file' property
1443may be present in the image specification.
1444
a933dad1
DL
1445*** Supported image types
1446
b246b1f6 1447**** XBM, image type `xbm'.
a933dad1
DL
1448
1449XBM images don't require an external library. Additional image
1450properties supported are
1451
1452`:foreground FG'
1453
1454FG must be a string specifying the image foreground color. Default
1455is the frame's foreground.
1456
1457`:background FG'
1458
1459BG must be a string specifying the image foreground color. Default is
1460the frame's background color.
1461
1462XBM images can be constructed from data instead of file. In this
1463case, the image specification must contain the following properties
1464instead of a `:file' property.
1465
1466`:width WIDTH'
1467
1468WIDTH specifies the width of the image in pixels.
1469
1470`:height HEIGHT'
1471
1472HEIGHT specifies the height of the image in pixels.
1473
1474`:data DATA'
1475
1476DATA must be either
1477
1478 1. a string large enough to hold the bitmap data, i.e. it must
1479 have a size >= (WIDTH + 7) / 8 * HEIGHT
1480
1481 2. a bool-vector of size >= WIDTH * HEIGHT
1482
1483 3. a vector of strings or bool-vectors, one for each line of the
1484 bitmap.
1485
1486**** XPM, image type `xpm'
1487
1488XPM images require the external library `libXpm', package
1489`xpm-3.4k.tar.gz', version 3.4k or later. Make sure the library is
1490found when Emacs is configured by supplying appropriate paths via
1491`--x-includes' and `--x-libraries'.
1492
1493Additional image properties supported are:
1494
1495`:color-symbols SYMBOLS'
1496
1497SYMBOLS must be a list of pairs (NAME . COLOR), with NAME being the
1498name of color as it appears in an XPM file, and COLOR being an X color
1499name.
1500
1501XPM images can be built from memory instead of files. In that case,
1502add a `:data' property instead of a `:file' property.
1503
1504`:data DATA'
1505
79214ddf 1506DATA must be a string containing an XPM image. The contents of the
a933dad1
DL
1507string are of the same format as that of XPM files.
1508
1509The XPM library uses libz in its implementation so that it is able
1510to display compressed images.
1511
1512**** PBM, image type `pbm'
1513
1514PBM images don't require an external library. Color, gray-scale and
1515mono images are supported. There are no additional image properties
1516defined.
1517
1518**** JPEG, image type `jpeg'
1519
1520Support for JPEG images requires the external library `libjpeg',
1521package `jpegsrc.v6a.tar.gz', or later. There are no additional image
1522properties defined.
1523
1524**** TIFF, image type `tiff'
1525
1526Support for TIFF images requires the external library `libtiff',
1527package `tiff-v3.4-tar.gz', or later. There are no additional image
1528properties defined.
1529
1530**** GIF, image type `gif'
1531
1532Support for GIF images requires the external library `libungif', package
1533`libungif-4.1.0', or later.
1534
1535Additional image properties supported are:
1536
1537`:index INDEX'
1538
1539INDEX must be an integer >= 0. Load image number INDEX from a
1540multi-image GIF file. An error is signalled if INDEX is too large.
1541
1542This could be used to implement limited support for animated GIFs.
1543For example, the following function displays a multi-image GIF file
1544at point-min in the current buffer, switching between sub-images
1545every 0.1 seconds.
1546
1547(defun show-anim (file max)
1548 "Display multi-image GIF file FILE which contains MAX subimages."
1549 (display-anim (current-buffer) file 0 max t))
1550
1551(defun display-anim (buffer file idx max first-time)
1552 (when (= idx max)
1553 (setq idx 0))
1554 (let ((img (create-image file nil :index idx)))
1555 (save-excursion
1556 (set-buffer buffer)
1557 (goto-char (point-min))
1558 (unless first-time (delete-char 1))
1559 (insert-image img "x"))
1560 (run-with-timer 0.1 nil 'display-anim buffer file (1+ idx) max nil)))
1561
1562**** PNG, image type `png'
1563
1564Support for PNG images requires the external library `libpng',
1565package `libpng-1.0.2.tar.gz', or later. There are no additional image
1566properties defined.
1567
1568**** Ghostscript, image type `postscript'.
1569
1570Additional image properties supported are:
1571
1572`:pt-width WIDTH'
1573
1574WIDTH is width of the image in pt (1/72 inch). WIDTH must be an
b246b1f6 1575integer. This is a required property.
a933dad1
DL
1576
1577`:pt-height HEIGHT'
1578
1579HEIGHT specifies the height of the image in pt (1/72 inch). HEIGHT
b246b1f6 1580must be a integer. This is an required property.
a933dad1
DL
1581
1582`:bounding-box BOX'
1583
1584BOX must be a list or vector of 4 integers giving the bounding box of
1585the PS image, analogous to the `BoundingBox' comment found in PS
1586files. This is an required property.
1587
1588Part of the Ghostscript interface is implemented in Lisp. See
1589lisp/gs.el.
1590
1591*** Lisp interface.
1592
79214ddf
FP
1593The variable `image-types' contains a list of those image types
1594which are supported in the current configuration.
a933dad1
DL
1595
1596Images are stored in an image cache and removed from the cache when
1597they haven't been displayed for `image-cache-eviction-delay seconds.
1598The function `clear-image-cache' can be used to clear the image cache
1599manually.
1600
1601*** Simplified image API, image.el
1602
1603The new Lisp package image.el contains functions that simplify image
1604creation and putting images into text. The function `create-image'
1605can be used to create images. The macro `defimage' can be used to
1606define an image based on available image types. The functions
1607`put-image' and `insert-image' can be used to insert an image into a
1608buffer.
1609
1610+++
1611** Display margins.
1612
1613Windows can now have margins which are used for special text
1614and images.
1615
1616To give a window margins, either set the buffer-local variables
1617`left-margin-width' and `right-margin-width', or call
1618`set-window-margins'. The function `window-margins' can be used to
1619obtain the current settings. To make `left-margin-width' and
1620`right-margin-width' take effect, you must set them before displaying
1621the buffer in a window, or use `set-window-buffer' to force an update
1622of the display margins.
1623
1624You can put text in margins by giving it a `display' text property
1625containing a pair of the form `(LOCATION . VALUE)', where LOCATION is
1626one of `left-margin' or `right-margin' or nil. VALUE can be either a
1627string, an image specification or a stretch specification (see later
1628in this file).
1629
1630+++
1631** Help display
1632
1633Emacs displays short help messages in the echo area, when the mouse
1634moves over a tool-bar item or a piece of text that has a text property
1635`help-echo'. This feature also applies to strings in the mode line
1636that have a `help-echo' property.
1637
1638The value of the `help-echo' property must be a string. For tool-bar
1639items, their key definition is used to determine the help to display.
1640If their definition contains a property `:help FORM', FORM is
1641evaluated to determine the help string. Otherwise, the caption of the
1642tool-bar item is used.
1643
1644The hook `show-help-function' can be set to a function that displays
1645help differently. For example, enabling a tooltip window causes the
1646help display to appear there instead of in the echo area.
1647
1648+++
1649** Vertical fractional scrolling.
1650
1651The display of text in windows can be scrolled smoothly in pixels.
1652This is useful, for example, for making parts of large images visible.
1653
1654The function `window-vscroll' returns the current value of vertical
1655scrolling, a non-negative fraction of the canonical character height.
1656The function `set-window-vscroll' can be used to set the vertical
1657scrolling value. Here is an example of how these function might be
1658used.
1659
79214ddf
FP
1660 (global-set-key [A-down]
1661 #'(lambda ()
a933dad1 1662 (interactive)
79214ddf 1663 (set-window-vscroll (selected-window)
a933dad1 1664 (+ 0.5 (window-vscroll)))))
79214ddf 1665 (global-set-key [A-up]
a933dad1
DL
1666 #'(lambda ()
1667 (interactive)
79214ddf 1668 (set-window-vscroll (selected-window)
a933dad1
DL
1669 (- (window-vscroll) 0.5)))))
1670
1671+++
1672** New hook `fontification-functions'.
1673
1674Functions from `fontification-functions' are called from redisplay
1675when it encounters a region of text that is not yet fontified. This
1676variable automatically becomes buffer-local when set. Each function
1677is called with one argument, POS.
1678
1679At least one of the hook functions should fontify one or more
1680characters starting at POS in the current buffer. It should mark them
1681as fontified by giving them a non-nil value of the `fontified' text
1682property. It may be reasonable for these functions to check for the
1683`fontified' property and not put it back on, but they do not have to.
1684
1685+++
1686** Tool bar support.
1687
1688Emacs supports a tool bar at the top of a frame under X. The frame
1689parameter `tool-bar-lines' (X resource "toolBar", class "ToolBar")
1690controls how may lines to reserve for the tool bar. A zero value
1691suppresses the tool bar. If the value is non-zero and
1692`auto-resize-tool-bars' is non-nil the tool bar's size will be changed
1693automatically so that all tool bar items are visible.
1694
1695*** Tool bar item definitions
1696
1697Tool bar items are defined using `define-key' with a prefix-key
1698`tool-bar'. For example `(define-key global-map [tool-bar item1] ITEM)'
1699where ITEM is a list `(menu-item CAPTION BINDING PROPS...)'.
79214ddf 1700
a933dad1
DL
1701CAPTION is the caption of the item, If it's not a string, it is
1702evaluated to get a string. The caption is currently not displayed in
1703the tool bar, but it is displayed if the item doesn't have a `:help'
1704property (see below).
79214ddf 1705
a933dad1
DL
1706BINDING is the tool bar item's binding. Tool bar items with keymaps as
1707binding are currently ignored.
1708
1709The following properties are recognized:
1710
1711`:enable FORM'.
79214ddf 1712
a933dad1
DL
1713FORM is evaluated and specifies whether the tool bar item is enabled
1714or disabled.
79214ddf 1715
a933dad1 1716`:visible FORM'
79214ddf 1717
a933dad1 1718FORM is evaluated and specifies whether the tool bar item is displayed.
79214ddf 1719
a933dad1
DL
1720`:filter FUNCTION'
1721
1722FUNCTION is called with one parameter, the same list BINDING in which
1723FUNCTION is specified as the filter. The value FUNCTION returns is
1724used instead of BINDING to display this item.
79214ddf 1725
a933dad1
DL
1726`:button (TYPE SELECTED)'
1727
1728TYPE must be one of `:radio' or `:toggle'. SELECTED is evaluated
1729and specifies whether the button is selected (pressed) or not.
79214ddf 1730
a933dad1
DL
1731`:image IMAGES'
1732
1733IMAGES is either a single image specification or a vector of four
1734image specifications. If it is a vector, this table lists the
1735meaning of each of the four elements:
1736
1737 Index Use when item is
1738 ----------------------------------------
1739 0 enabled and selected
1740 1 enabled and deselected
1741 2 disabled and selected
1742 3 disabled and deselected
79214ddf 1743
a933dad1 1744`:help HELP-STRING'.
79214ddf 1745
a933dad1
DL
1746Gives a help string to display for the tool bar item. This help
1747is displayed when the mouse is moved over the item.
1748
1749*** Tool-bar-related variables.
1750
1751If `auto-resize-tool-bar' is non-nil, the tool bar will automatically
1752resize to show all defined tool bar items. It will never grow larger
1753than 1/4 of the frame's size.
1754
79214ddf 1755If `auto-raise-tool-bar-buttons' is non-nil, tool bar buttons will be
a933dad1
DL
1756raised when the mouse moves over them.
1757
1758You can add extra space between tool bar items by setting
1759`tool-bar-button-margin' to a positive integer specifying a number of
1760pixels. Default is 1.
1761
1762You can change the shadow thickness of tool bar buttons by setting
1763`tool-bar-button-relief' to an integer. Default is 3.
1764
1765*** Tool-bar clicks with modifiers.
1766
1767You can bind commands to clicks with control, shift, meta etc. on
79214ddf 1768a tool bar item. If
a933dad1
DL
1769
1770 (define-key global-map [tool-bar shell]
1771 '(menu-item "Shell" shell
1772 :image (image :type xpm :file "shell.xpm")))
1773
1774is the original tool bar item definition, then
1775
1776 (define-key global-map [tool-bar S-shell] 'some-command)
1777
1778makes a binding to run `some-command' for a shifted click on the same
1779item.
1780
1781** Mode line changes.
1782
1783+++
1784*** Mouse-sensitive mode line.
1785
1786The mode line can be made mouse-sensitive by displaying strings there
1787that have a `local-map' text property. There are three ways to display
1788a string with a `local-map' property in the mode line.
1789
17901. The mode line spec contains a variable whose string value has
1791a `local-map' text property.
1792
17932. The mode line spec contains a format specifier (e.g. `%12b'), and
1794that format specifier has a `local-map' property.
1795
17963. The mode line spec contains a list containing `:eval FORM'. FORM
1797is evaluated. If the result is a string, and that string has a
1798`local-map' property.
1799
1800The same mechanism is used to determine the `face' and `help-echo'
1801properties of strings in the mode line. See `bindings.el' for an
1802example.
1803
54522c9f
GM
1804*** If a mode line element has the form `(:eval FORM)', FORM is
1805evaluated and the result is used as mode line element.
1806
a933dad1
DL
1807+++
1808*** You can suppress mode-line display by setting the buffer-local
1809variable mode-line-format to nil.
1810
1811+++
1812*** A headerline can now be displayed at the top of a window.
1813
1814This mode line's contents are controlled by the new variable
1815`header-line-format' and `default-header-line-format' which are
1816completely analogous to `mode-line-format' and
1817`default-mode-line-format'. A value of nil means don't display a top
1818line.
1819
1820The appearance of top mode lines is controlled by the face
1821`header-line'.
1822
1823The function `coordinates-in-window-p' returns `header-line' for a
1824position in the header-line.
1825
1826+++
1827** Text property `display'
1828
1829The `display' text property is used to insert images into text, and
1830also control other aspects of how text displays. The value of the
1831`display' property should be a display specification, as described
1832below, or a list or vector containing display specifications.
1833
1834*** Variable width and height spaces
1835
1836To display a space of fractional width or height, use a display
1837specification of the form `(LOCATION STRECH)'. If LOCATION is
1838`(margin left-margin)', the space is displayed in the left marginal
1839area, if it is `(margin right-margin)', it is displayed in the right
1840marginal area, and if LOCATION is `(margin nil)' the space is
1841displayed in the text. In the latter case you can also use the
1842simpler form STRETCH as property value.
1843
1844The stretch specification STRETCH itself is a list of the form `(space
1845PROPS)', where PROPS is a property list which can contain the
1846properties described below.
1847
1848The display of the fractional space replaces the display of the
1849characters having the `display' property.
1850
1851- :width WIDTH
1852
1853Specifies that the space width should be WIDTH times the normal
1854character width. WIDTH can be an integer or floating point number.
1855
1856- :relative-width FACTOR
1857
1858Specifies that the width of the stretch should be computed from the
1859first character in a group of consecutive characters that have the
1860same `display' property. The computation is done by multiplying the
1861width of that character by FACTOR.
1862
1863- :align-to HPOS
1864
1865Specifies that the space should be wide enough to reach HPOS. The
1866value HPOS is measured in units of the normal character width.
1867
1868Exactly one of the above properties should be used.
1869
1870- :height HEIGHT
1871
1872Specifies the height of the space, as HEIGHT, measured in terms of the
1873normal line height.
1874
1875- :relative-height FACTOR
1876
1877The height of the space is computed as the product of the height
1878of the text having the `display' property and FACTOR.
1879
1880- :ascent ASCENT
1881
1882Specifies that ASCENT percent of the height of the stretch should be
1883used for the ascent of the stretch, i.e. for the part above the
1884baseline. The value of ASCENT must be a non-negative number less or
1885equal to 100.
1886
1887You should not use both `:height' and `:relative-height' together.
1888
1889*** Images
1890
1891A display specification for an image has the form `(LOCATION
1892. IMAGE)', where IMAGE is an image specification. The image replaces,
1893in the display, the characters having this display specification in
1894their `display' text property. If LOCATION is `(margin left-margin)',
1895the image will be displayed in the left marginal area, if it is
1896`(margin right-margin)' it will be displayed in the right marginal
1897area, and if LOCATION is `(margin nil)' the image will be displayed in
1898the text. In the latter case you can also use the simpler form IMAGE
1899as display specification.
1900
1901*** Other display properties
1902
1903- :space-width FACTOR
1904
1905Specifies that space characters in the text having that property
1906should be displayed FACTOR times as wide as normal; FACTOR must be an
1907integer or float.
1908
1909- :height HEIGHT
1910
1911Display text having this property in a font that is smaller or larger.
1912
1913If HEIGHT is a list of the form `(+ N)', where N is an integer, that
1914means to use a font that is N steps larger. If HEIGHT is a list of
1915the form `(- N)', that means to use a font that is N steps smaller. A
1916``step'' is defined by the set of available fonts; each size for which
1917a font is available counts as a step.
1918
1919If HEIGHT is a number, that means to use a font that is HEIGHT times
1920as tall as the frame's default font.
1921
1922If HEIGHT is a symbol, it is called as a function with the current
1923height as argument. The function should return the new height to use.
1924
1925Otherwise, HEIGHT is evaluated to get the new height, with the symbol
1926`height' bound to the current specified font height.
1927
1928- :raise FACTOR
1929
1930FACTOR must be a number, specifying a multiple of the current
1931font's height. If it is positive, that means to display the characters
1932raised. If it is negative, that means to display them lower down. The
1933amount of raising or lowering is computed without taking account of the
1934`:height' subproperty.
1935
1936*** Conditional display properties
1937
1938All display specifications can be conditionalized. If a specification
1939has the form `(:when CONDITION . SPEC)', the specification SPEC
1940applies only when CONDITION yields a non-nil value when evaluated.
1941During evaluattion, point is temporarily set to the end position of
1942the text having the `display' property.
1943
1944The normal specification consisting of SPEC only is equivalent to
1945`(:when t SPEC)'.
1946
1947+++
1948** New menu separator types.
1949
1950Emacs now supports more than one menu separator type. Menu items with
1951item names consisting of dashes only (including zero dashes) are
1952treated like before. In addition, the following item names are used
1953to specify other menu separator types.
1954
1955- `--no-line' or `--space', or `--:space', or `--:noLine'
1956
1957No separator lines are drawn, but a small space is inserted where the
1958separator occurs.
1959
1960- `--single-line' or `--:singleLine'
1961
1962A single line in the menu's foreground color.
1963
1964- `--double-line' or `--:doubleLine'
1965
1966A double line in the menu's foreground color.
1967
1968- `--single-dashed-line' or `--:singleDashedLine'
1969
1970A single dashed line in the menu's foreground color.
1971
1972- `--double-dashed-line' or `--:doubleDashedLine'
1973
1974A double dashed line in the menu's foreground color.
1975
1976- `--shadow-etched-in' or `--:shadowEtchedIn'
1977
1978A single line with 3D sunken appearance. This is the the form
1979displayed for item names consisting of dashes only.
1980
1981- `--shadow-etched-out' or `--:shadowEtchedOut'
1982
1983A single line with 3D raised appearance.
1984
1985- `--shadow-etched-in-dash' or `--:shadowEtchedInDash'
1986
1987A single dashed line with 3D sunken appearance.
1988
1989- `--shadow-etched-out-dash' or `--:shadowEtchedOutDash'
1990
1991A single dashed line with 3D raise appearance.
1992
1993- `--shadow-double-etched-in' or `--:shadowDoubleEtchedIn'
1994
1995Two lines with 3D sunken appearance.
1996
1997- `--shadow-double-etched-out' or `--:shadowDoubleEtchedOut'
1998
1999Two lines with 3D raised appearance.
2000
2001- `--shadow-double-etched-in-dash' or `--:shadowDoubleEtchedInDash'
2002
2003Two dashed lines with 3D sunken appearance.
2004
2005- `--shadow-double-etched-out-dash' or `--:shadowDoubleEtchedOutDash'
2006
2007Two dashed lines with 3D raised appearance.
2008
2009Under LessTif/Motif, the last four separator types are displayed like
2010the corresponding single-line separators.
2011
2012+++
2013** New frame parameters for scroll bar colors.
2014
2015The new frame parameters `scroll-bar-foreground' and
2016`scroll-bar-background' can be used to change scroll bar colors.
2017Their value must be either a color name, a string, or nil to specify
2018that scroll bars should use a default color. For toolkit scroll bars,
2019default colors are toolkit specific. For non-toolkit scroll bars, the
2020default background is the background color of the frame, and the
2021default foreground is black.
2022
2023The X resource name of these parameters are `scrollBarForeground'
2024(class ScrollBarForeground) and `scrollBarBackground' (class
2025`ScrollBarBackground').
2026
2027Setting these parameters overrides toolkit specific X resource
2028settings for scroll bar colors.
2029
2030+++
2031** You can set `redisplay-dont-pause' to a non-nil value to prevent
2032display updates from being interrupted when input is pending.
2033
2034---
2035** Changing a window's width may now change its window start if it
2036starts on a continuation line. The new window start is computed based
2037on the window's new width, starting from the start of the continued
2038line as the start of the screen line with the minimum distance from
2039the original window start.
2040
2041---
2042** The variable `hscroll-step' and the functions
2043`hscroll-point-visible' and `hscroll-window-column' have been removed
2044now that proper horizontal scrolling is implemented.
2045
2046+++
2047** Windows can now be made fixed-width and/or fixed-height.
2048
2049A window is fixed-size if its buffer has a buffer-local variable
2050`window-size-fixed' whose value is not nil. A value of `height' makes
2051windows fixed-height, a value of `width' makes them fixed-width, any
2052other non-nil value makes them both fixed-width and fixed-height.
2053
2054The following code makes all windows displaying the current buffer
2055fixed-width and fixed-height.
2056
2057 (set (make-local-variable 'window-size-fixed) t)
2058
2059A call to enlarge-window on a window gives an error if that window is
2060fixed-width and it is tried to change the window's width, or if the
2061window is fixed-height, and it is tried to change its height. To
2062change the size of a fixed-size window, bind `window-size-fixed'
2063temporarily to nil, for example
2064
2065 (let ((window-size-fixed nil))
2066 (enlarge-window 10))
2067
79214ddf 2068Likewise, an attempt to split a fixed-height window vertically,
a933dad1
DL
2069or a fixed-width window horizontally results in a error.
2070\f
2071* Changes in Emacs 20.4
2072
2073** Init file may be called .emacs.el.
2074
2075You can now call the Emacs init file `.emacs.el'.
2076Formerly the name had to be `.emacs'. If you use the name
2077`.emacs.el', you can byte-compile the file in the usual way.
2078
2079If both `.emacs' and `.emacs.el' exist, the latter file
2080is the one that is used.
2081
2082** shell-command, and shell-command-on-region, now return
2083the exit code of the command (unless it is asynchronous).
2084Also, you can specify a place to put the error output,
2085separate from the command's regular output.
2086Interactively, the variable shell-command-default-error-buffer
2087says where to put error output; set it to a buffer name.
2088In calls from Lisp, an optional argument ERROR-BUFFER specifies
2089the buffer name.
2090
2091When you specify a non-nil error buffer (or buffer name), any error
2092output is inserted before point in that buffer, with \f\n to separate
2093it from the previous batch of error output. The error buffer is not
2094cleared, so error output from successive commands accumulates there.
2095
2096** Setting the default value of enable-multibyte-characters to nil in
2097the .emacs file, either explicitly using setq-default, or via Custom,
2098is now essentially equivalent to using --unibyte: all buffers
2099created during startup will be made unibyte after loading .emacs.
2100
2101** C-x C-f now handles the wildcards * and ? in file names. For
2102example, typing C-x C-f c*.c RET visits all the files whose names
2103match c*.c. To visit a file whose name contains * or ?, add the
2104quoting sequence /: to the beginning of the file name.
2105
2106** The M-x commands keep-lines, flush-lines and count-matches
2107now have the same feature as occur and query-replace:
2108if the pattern contains any upper case letters, then
2109they never ignore case.
2110
2111** The end-of-line format conversion feature previously mentioned
2112under `* Emacs 20.1 changes for MS-DOS and MS-Windows' actually
2113applies to all operating systems. Emacs recognizes from the contents
2114of a file what convention it uses to separate lines--newline, CRLF, or
2115just CR--and automatically converts the contents to the normal Emacs
2116convention (using newline to separate lines) for editing. This is a
2117part of the general feature of coding system conversion.
2118
2119If you subsequently save the buffer, Emacs converts the text back to
2120the same format that was used in the file before.
2121
2122You can turn off end-of-line conversion by setting the variable
2123`inhibit-eol-conversion' to non-nil, e.g. with Custom in the MULE group.
2124
2125** The character set property `prefered-coding-system' has been
2126renamed to `preferred-coding-system', for the sake of correct spelling.
2127This is a fairly internal feature, so few programs should be affected.
2128
2129** Mode-line display of end-of-line format is changed.
2130The indication of the end-of-line format of the file visited by a
2131buffer is now more explicit when that format is not the usual one for
2132your operating system. For example, the DOS-style end-of-line format
2133is displayed as "(DOS)" on Unix and GNU/Linux systems. The usual
2134end-of-line format is still displayed as a single character (colon for
2135Unix, backslash for DOS and Windows, and forward slash for the Mac).
2136
2137The values of the variables eol-mnemonic-unix, eol-mnemonic-dos,
2138eol-mnemonic-mac, and eol-mnemonic-undecided, which are strings,
2139control what is displayed in the mode line for each end-of-line
2140format. You can now customize these variables.
2141
2142** In the previous version of Emacs, tar-mode didn't work well if a
2143filename contained non-ASCII characters. Now this is fixed. Such a
2144filename is decoded by file-name-coding-system if the default value of
2145enable-multibyte-characters is non-nil.
2146
2147** The command temp-buffer-resize-mode toggles a minor mode
2148in which temporary buffers (such as help buffers) are given
2149windows just big enough to hold the whole contents.
2150
2151** If you use completion.el, you must now run the function
2152dynamic-completion-mode to enable it. Just loading the file
2153doesn't have any effect.
2154
2155** In Flyspell mode, the default is now to make just one Ispell process,
2156not one per buffer.
2157
2158** If you use iswitchb but do not call (iswitchb-default-keybindings) to
2159use the default keybindings, you will need to add the following line:
2160 (add-hook 'minibuffer-setup-hook 'iswitchb-minibuffer-setup)
2161
2162** Auto-show mode is no longer enabled just by loading auto-show.el.
2163To control it, set `auto-show-mode' via Custom or use the
2164`auto-show-mode' command.
2165
2166** Handling of X fonts' ascent/descent parameters has been changed to
2167avoid redisplay problems. As a consequence, compared with previous
2168versions the line spacing and frame size now differ with some font
2169choices, typically increasing by a pixel per line. This change
2170occurred in version 20.3 but was not documented then.
2171
2172** If you select the bar cursor style, it uses the frame's
2173cursor-color, rather than the cursor foreground pixel.
2174
2175** In multibyte mode, Rmail decodes incoming MIME messages using the
2176character set specified in the message. If you want to disable this
2177feature, set the variable rmail-decode-mime-charset to nil.
2178
2179** Not new, but not mentioned previously in NEWS: when you use #! at
2180the beginning of a file to make it executable and specify an
2181interpreter program, Emacs looks on the second line for the -*- mode
2182and variable specification, as well as on the first line.
2183
2184** Support for IBM codepage encoding of non-ASCII characters.
2185
2186The new command M-x codepage-setup creates a special coding system
2187that can be used to convert text between a specific IBM codepage and
2188one of the character sets built into Emacs which matches that
2189codepage. For example, codepage 850 corresponds to Latin-1 character
2190set, codepage 855 corresponds to Cyrillic-ISO character set, etc.
2191
2192Windows codepages 1250, 1251 and some others, where Windows deviates
2193from the corresponding ISO character set, are also supported.
2194
2195IBM box-drawing characters and other glyphs which don't have
2196equivalents in the corresponding ISO character set, are converted to
2197a character defined by dos-unsupported-char-glyph on MS-DOS, and to
2198`?' on other systems.
2199
2200IBM codepages are widely used on MS-DOS and MS-Windows, so this
2201feature is most useful on those platforms, but it can also be used on
2202Unix.
2203
2204Emacs compiled for MS-DOS automatically loads the support for the
2205current codepage when it starts.
2206
2207** Mail changes
2208
2209*** The new variable default-sendmail-coding-system specifies the
2210default way to encode outgoing mail. This has higher priority than
2211default-buffer-file-coding-system but has lower priority than
2212sendmail-coding-system and the local value of
2213buffer-file-coding-system.
2214
2215You should not set this variable manually. Instead, set
2216sendmail-coding-system to specify a fixed encoding for all outgoing
2217mail.
2218
2219*** When you try to send a message that contains non-ASCII characters,
2220if the coding system specified by those variables doesn't handle them,
2221Emacs will ask you to select a suitable coding system while showing a
2222list of possible coding systems.
2223
2224** CC Mode changes
2225
2226*** c-default-style can now take an association list that maps major
2227modes to style names. When this variable is an alist, Java mode no
2228longer hardcodes a setting to "java" style. See the variable's
2229docstring for details.
2230
2231*** It's now possible to put a list as the offset on a syntactic
2232symbol. The list is evaluated recursively until a non-nil offset is
2233found. This is useful to combine several lineup functions to act in a
2234prioritized order on a single line. However, none of the supplied
2235lineup functions use this feature currently.
2236
2237*** New syntactic symbol catch-clause, which is used on the "catch" and
2238"finally" lines in try-catch constructs in C++ and Java.
2239
2240*** New cleanup brace-catch-brace on c-cleanup-list, which does for
2241"catch" lines what brace-elseif-brace does for "else if" lines.
2242
2243*** The braces of Java anonymous inner classes are treated separately
2244from the braces of other classes in auto-newline mode. Two new
2245symbols inexpr-class-open and inexpr-class-close may be used on
2246c-hanging-braces-alist to control the automatic newlines used for
2247anonymous classes.
2248
2249*** Support for the Pike language added, along with new Pike specific
2250syntactic symbols: inlambda, lambda-intro-cont
2251
2252*** Support for Java anonymous classes via new syntactic symbol
2253inexpr-class. New syntactic symbol inexpr-statement for Pike
2254support and gcc-style statements inside expressions. New lineup
2255function c-lineup-inexpr-block.
2256
2257*** New syntactic symbol brace-entry-open which is used in brace lists
2258(i.e. static initializers) when a list entry starts with an open
2259brace. These used to be recognized as brace-list-entry's.
2260c-electric-brace also recognizes brace-entry-open braces
2261(brace-list-entry's can no longer be electrified).
2262
2263*** New command c-indent-line-or-region, not bound by default.
2264
2265*** `#' is only electric when typed in the indentation of a line.
2266
2267*** Parentheses are now electric (via the new command c-electric-paren)
2268for auto-reindenting lines when parens are typed.
2269
2270*** In "gnu" style, inline-open offset is now set to zero.
2271
2272*** Uniform handling of the inclass syntactic symbol. The indentation
2273associated with it is now always relative to the class opening brace.
2274This means that the indentation behavior has changed in some
2275circumstances, but only if you've put anything besides 0 on the
2276class-open syntactic symbol (none of the default styles do that).
2277
2278** Gnus changes.
2279
2280*** New functionality for using Gnus as an offline newsreader has been
2281added. A plethora of new commands and modes have been added. See the
2282Gnus manual for the full story.
2283
2284*** The nndraft backend has returned, but works differently than
2285before. All Message buffers are now also articles in the nndraft
2286group, which is created automatically.
2287
2288*** `gnus-alter-header-function' can now be used to alter header
2289values.
2290
2291*** `gnus-summary-goto-article' now accept Message-ID's.
2292
2293*** A new Message command for deleting text in the body of a message
2294outside the region: `C-c C-v'.
2295
2296*** You can now post to component group in nnvirtual groups with
2297`C-u C-c C-c'.
2298
2299*** `nntp-rlogin-program' -- new variable to ease customization.
2300
2301*** `C-u C-c C-c' in `gnus-article-edit-mode' will now inhibit
2302re-highlighting of the article buffer.
2303
2304*** New element in `gnus-boring-article-headers' -- `long-to'.
2305
2306*** `M-i' symbolic prefix command. See the section "Symbolic
2307Prefixes" in the Gnus manual for details.
2308
2309*** `L' and `I' in the summary buffer now take the symbolic prefix
2310`a' to add the score rule to the "all.SCORE" file.
2311
2312*** `gnus-simplify-subject-functions' variable to allow greater
2313control over simplification.
2314
2315*** `A T' -- new command for fetching the current thread.
2316
2317*** `/ T' -- new command for including the current thread in the
2318limit.
2319
2320*** `M-RET' is a new Message command for breaking cited text.
2321
2322*** \\1-expressions are now valid in `nnmail-split-methods'.
2323
79214ddf 2324*** The `custom-face-lookup' function has been removed.
a933dad1
DL
2325If you used this function in your initialization files, you must
2326rewrite them to use `face-spec-set' instead.
2327
2328*** Cancelling now uses the current select method. Symbolic prefix
2329`a' forces normal posting method.
2330
2331*** New command to translate M******** sm*rtq**t*s into proper text
2332-- `W d'.
2333
2334*** For easier debugging of nntp, you can set `nntp-record-commands'
2335to a non-nil value.
2336
2337*** nntp now uses ~/.authinfo, a .netrc-like file, for controlling
2338where and how to send AUTHINFO to NNTP servers.
2339
2340*** A command for editing group parameters from the summary buffer
2341has been added.
2342
2343*** A history of where mails have been split is available.
2344
2345*** A new article date command has been added -- `article-date-iso8601'.
2346
2347*** Subjects can be simplified when threading by setting
2348`gnus-score-thread-simplify'.
2349
2350*** A new function for citing in Message has been added --
2351`message-cite-original-without-signature'.
2352
2353*** `article-strip-all-blank-lines' -- new article command.
2354
2355*** A new Message command to kill to the end of the article has
2356been added.
2357
2358*** A minimum adaptive score can be specified by using the
2359`gnus-adaptive-word-minimum' variable.
2360
2361*** The "lapsed date" article header can be kept continually
2362updated by the `gnus-start-date-timer' command.
2363
2364*** Web listserv archives can be read with the nnlistserv backend.
2365
2366*** Old dejanews archives can now be read by nnweb.
2367
2368*** `gnus-posting-styles' has been re-activated.
2369
2370** Changes to TeX and LaTeX mode
2371
2372*** The new variable `tex-start-options-string' can be used to give
2373options for the TeX run. The default value causes TeX to run in
2374nonstopmode. For an interactive TeX run set it to nil or "".
2375
2376*** The command `tex-feed-input' sends input to the Tex Shell. In a
2377TeX buffer it is bound to the keys C-RET, C-c RET, and C-c C-m (some
2378of these keys may not work on all systems). For instance, if you run
2379TeX interactively and if the TeX run stops because of an error, you
2380can continue it without leaving the TeX buffer by typing C-RET.
2381
2382*** The Tex Shell Buffer is now in `compilation-shell-minor-mode'.
2383All error-parsing commands of the Compilation major mode are available
2384but bound to keys that don't collide with the shell. Thus you can use
2385the Tex Shell for command line executions like a usual shell.
2386
2387*** The commands `tex-validate-region' and `tex-validate-buffer' check
2388the matching of braces and $'s. The errors are listed in a *Occur*
2389buffer and you can use C-c C-c or mouse-2 to go to a particular
2390mismatch.
2391
2392** Changes to RefTeX mode
2393
2394*** The table of contents buffer can now also display labels and
2395file boundaries in addition to sections. Use `l', `i', and `c' keys.
2396
2397*** Labels derived from context (the section heading) are now
2398lowercase by default. To make the label legal in LaTeX, latin-1
2399characters will lose their accent. All Mule characters will be
2400removed from the label.
2401
2402*** The automatic display of cross reference information can also use
2403a window instead of the echo area. See variable `reftex-auto-view-crossref'.
2404
2405*** kpsewhich can be used by RefTeX to find TeX and BibTeX files. See the
2406customization group `reftex-finding-files'.
2407
2408*** The option `reftex-bibfile-ignore-list' has been renamed to
2409`reftex-bibfile-ignore-regexps' and indeed can be fed with regular
79214ddf 2410expressions.
a933dad1
DL
2411
2412*** Multiple Selection buffers are now hidden buffers.
2413
2414** New/deleted modes and packages
2415
2416*** The package snmp-mode.el provides major modes for editing SNMP and
2417SNMPv2 MIBs. It has entries on `auto-mode-alist'.
2418
2419*** The package sql.el provides a major mode, M-x sql-mode, for
2420editing SQL files, and M-x sql-interactive-mode for interacting with
2421SQL interpreters. It has an entry on `auto-mode-alist'.
2422
2423*** M-x highlight-changes-mode provides a minor mode displaying buffer
2424changes with a special face.
2425
2426*** ispell4.el has been deleted. It got in the way of ispell.el and
2427this was hard to fix reliably. It has long been obsolete -- use
2428Ispell 3.1 and ispell.el.
2429\f
2430* MS-DOS changes in Emacs 20.4
2431
2432** Emacs compiled for MS-DOS now supports MULE features better.
2433This includes support for display of all ISO 8859-N character sets,
2434conversion to and from IBM codepage encoding of non-ASCII characters,
2435and automatic setup of the MULE environment at startup. For details,
2436check out the section `MS-DOS and MULE' in the manual.
2437
2438The MS-DOS installation procedure automatically configures and builds
2439Emacs with input method support if it finds an unpacked Leim
2440distribution when the config.bat script is run.
2441
2442** Formerly, the value of lpr-command did not affect printing on
2443MS-DOS unless print-region-function was set to nil, but now it
2444controls whether an external program is invoked or output is written
2445directly to a printer port. Similarly, in the previous version of
2446Emacs, the value of ps-lpr-command did not affect PostScript printing
2447on MS-DOS unless ps-printer-name was set to something other than a
2448string (eg. t or `pipe'), but now it controls whether an external
2449program is used. (These changes were made so that configuration of
2450printing variables would be almost identical across all platforms.)
2451
2452** In the previous version of Emacs, PostScript and non-PostScript
2453output was piped to external programs, but because most print programs
2454available for MS-DOS and MS-Windows cannot read data from their standard
2455input, on those systems the data to be output is now written to a
2456temporary file whose name is passed as the last argument to the external
2457program.
2458
2459An exception is made for `print', a standard program on Windows NT,
2460and `nprint', a standard program on Novell Netware. For both of these
2461programs, the command line is constructed in the appropriate syntax
2462automatically, using only the value of printer-name or ps-printer-name
2463as appropriate--the value of the relevant `-switches' variable is
2464ignored, as both programs have no useful switches.
2465
2466** The value of the variable dos-printer (cf. dos-ps-printer), if it has
2467a value, overrides the value of printer-name (cf. ps-printer-name), on
2468MS-DOS and MS-Windows only. This has been true since version 20.3, but
2469was not documented clearly before.
2470
2471** All the Emacs games now work on MS-DOS terminals.
2472This includes Tetris and Snake.
2473\f
2474* Lisp changes in Emacs 20.4
2475
2476** New functions line-beginning-position and line-end-position
2477return the position of the beginning or end of the current line.
2478They both accept an optional argument, which has the same
2479meaning as the argument to beginning-of-line or end-of-line.
2480
2481** find-file and allied functions now have an optional argument
2482WILDCARD. If this is non-nil, they do wildcard processing,
2483and visit all files that match the wildcard pattern.
2484
2485** Changes in the file-attributes function.
2486
2487*** The file size returned by file-attributes may be an integer or a float.
2488It is an integer if the size fits in a Lisp integer, float otherwise.
2489
2490*** The inode number returned by file-attributes may be an integer (if
2491the number fits in a Lisp integer) or a cons cell containing two
2492integers.
2493
2494** The new function directory-files-and-attributes returns a list of
2495files in a directory and their attributes. It accepts the same
2496arguments as directory-files and has similar semantics, except that
2497file names and attributes are returned.
2498
2499** The new function file-attributes-lessp is a helper function for
2500sorting the list generated by directory-files-and-attributes. It
2501accepts two arguments, each a list of a file name and its atttributes.
2502It compares the file names of each according to string-lessp and
2503returns the result.
2504
2505** The new function file-expand-wildcards expands a wildcard-pattern
2506to produce a list of existing files that match the pattern.
2507
2508** New functions for base64 conversion:
2509
2510The function base64-encode-region converts a part of the buffer
2511into the base64 code used in MIME. base64-decode-region
2512performs the opposite conversion. Line-breaking is supported
2513optionally.
2514
2515Functions base64-encode-string and base64-decode-string do a similar
2516job on the text in a string. They return the value as a new string.
2517
2518**
2519The new function process-running-child-p
2520will tell you if a subprocess has given control of its
2521terminal to its own child process.
2522
2523** interrupt-process and such functions have a new feature:
2524when the second argument is `lambda', they send a signal
2525to the running child of the subshell, if any, but if the shell
2526itself owns its terminal, no signal is sent.
2527
2528** There are new widget types `plist' and `alist' which can
2529be used for customizing variables whose values are plists or alists.
2530
2531** easymenu.el Now understands `:key-sequence' and `:style button'.
2532:included is an alias for :visible.
2533
2534easy-menu-add-item now understands the values returned by
2535easy-menu-remove-item and easy-menu-item-present-p. This can be used
2536to move or copy menu entries.
2537
2538** Multibyte editing changes
2539
2540*** The definitions of sref and char-bytes are changed. Now, sref is
2541an alias of aref and char-bytes always returns 1. This change is to
2542make some Emacs Lisp code which works on 20.2 and earlier also
2543work on the latest Emacs. Such code uses a combination of sref and
2544char-bytes in a loop typically as below:
2545 (setq char (sref str idx)
2546 idx (+ idx (char-bytes idx)))
2547The byte-compiler now warns that this is obsolete.
2548
2549If you want to know how many bytes a specific multibyte character
2550(say, CH) occupies in a multibyte buffer, use this code:
2551 (charset-bytes (char-charset ch))
2552
2553*** In multibyte mode, when you narrow a buffer to some region, and the
2554region is preceded or followed by non-ASCII codes, inserting or
2555deleting at the head or the end of the region may signal this error:
2556
2557 Byte combining across boundary of accessible buffer text inhibitted
2558
2559This is to avoid some bytes being combined together into a character
2560across the boundary.
2561
2562*** The functions find-charset-region and find-charset-string include
2563`unknown' in the returned list in the following cases:
2564 o The current buffer or the target string is unibyte and
2565 contains 8-bit characters.
2566 o The current buffer or the target string is multibyte and
2567 contains invalid characters.
2568
2569*** The functions decode-coding-region and encode-coding-region remove
2570text properties of the target region. Ideally, they should correctly
2571preserve text properties, but for the moment, it's hard. Removing
2572text properties is better than preserving them in a less-than-correct
2573way.
2574
2575*** prefer-coding-system sets EOL conversion of default coding systems.
2576If the argument to prefer-coding-system specifies a certain type of
2577end of line conversion, the default coding systems set by
2578prefer-coding-system will specify that conversion type for end of line.
2579
2580*** The new function thai-compose-string can be used to properly
2581compose Thai characters in a string.
2582
2583** The primitive `define-prefix-command' now takes an optional third
2584argument NAME, which should be a string. It supplies the menu name
2585for the created keymap. Keymaps created in order to be displayed as
2586menus should always use the third argument.
2587
2588** The meanings of optional second arguments for read-char,
2589read-event, and read-char-exclusive are flipped. Now the second
2590arguments are INHERIT-INPUT-METHOD. These functions use the current
2591input method (if any) if and only if INHERIT-INPUT-METHOD is non-nil.
2592
2593** The new function clear-this-command-keys empties out the contents
2594of the vector that (this-command-keys) returns. This is useful in
2595programs that read passwords, to prevent the passwords from echoing
2596inadvertently as part of the next command in certain cases.
2597
2598** The new macro `with-temp-message' displays a temporary message in
2599the echo area, while executing some Lisp code. Like `progn', it
2600returns the value of the last form, but it also restores the previous
2601echo area contents.
2602
2603 (with-temp-message MESSAGE &rest BODY)
2604
2605** The function `require' now takes an optional third argument
2606NOERROR. If it is non-nil, then there is no error if the
2607requested feature cannot be loaded.
2608
2609** In the function modify-face, an argument of (nil) for the
2610foreground color, background color or stipple pattern
79214ddf 2611means to clear out that attribute.
a933dad1
DL
2612
2613** The `outer-window-id' frame property of an X frame
2614gives the window number of the outermost X window for the frame.
2615
2616** Temporary buffers made with with-output-to-temp-buffer are now
2617read-only by default, and normally use the major mode Help mode
2618unless you put them in some other non-Fundamental mode before the
2619end of with-output-to-temp-buffer.
2620
2621** The new functions gap-position and gap-size return information on
2622the gap of the current buffer.
2623
2624** The new functions position-bytes and byte-to-position provide a way
2625to convert between character positions and byte positions in the
2626current buffer.
2627
2628** vc.el defines two new macros, `edit-vc-file' and `with-vc-file', to
2629facilitate working with version-controlled files from Lisp programs.
2630These macros check out a given file automatically if needed, and check
2631it back in after any modifications have been made.
2632\f
2633* Installation Changes in Emacs 20.3
2634
2635** The default value of load-path now includes most subdirectories of
2636the site-specific directories /usr/local/share/emacs/site-lisp and
2637/usr/local/share/emacs/VERSION/site-lisp, in addition to those
2638directories themselves. Both immediate subdirectories and
2639subdirectories multiple levels down are added to load-path.
2640
2641Not all subdirectories are included, though. Subdirectories whose
2642names do not start with a letter or digit are excluded.
2643Subdirectories named RCS or CVS are excluded. Also, a subdirectory
2644which contains a file named `.nosearch' is excluded. You can use
2645these methods to prevent certain subdirectories from being searched.
2646
2647Emacs finds these subdirectories and adds them to load-path when it
2648starts up. While it would be cleaner to find the subdirectories each
2649time Emacs loads a file, that would be much slower.
2650
2651This feature is an incompatible change. If you have stored some Emacs
2652Lisp files in a subdirectory of the site-lisp directory specifically
2653to prevent them from being used, you will need to rename the
2654subdirectory to start with a non-alphanumeric character, or create a
2655`.nosearch' file in it, in order to continue to achieve the desired
2656results.
2657
2658** Emacs no longer includes an old version of the C preprocessor from
2659GCC. This was formerly used to help compile Emacs with C compilers
2660that had limits on the significant length of an identifier, but in
2661fact we stopped supporting such compilers some time ago.
2662\f
2663* Changes in Emacs 20.3
2664
2665** The new command C-x z (repeat) repeats the previous command
2666including its argument. If you repeat the z afterward,
2667it repeats the command additional times; thus, you can
2668perform many repetitions with one keystroke per repetition.
2669
2670** Emacs now supports "selective undo" which undoes only within a
2671specified region. To do this, set point and mark around the desired
2672region and type C-u C-x u (or C-u C-_). You can then continue undoing
2673further, within the same region, by repeating the ordinary undo
2674command C-x u or C-_. This will keep undoing changes that were made
2675within the region you originally specified, until either all of them
2676are undone, or it encounters a change which crosses the edge of that
2677region.
2678
2679In Transient Mark mode, undoing when a region is active requests
2680selective undo.
2681
2682** If you specify --unibyte when starting Emacs, then all buffers are
2683unibyte, except when a Lisp program specifically creates a multibyte
2684buffer. Setting the environment variable EMACS_UNIBYTE has the same
2685effect. The --no-unibyte option overrides EMACS_UNIBYTE and directs
2686Emacs to run normally in multibyte mode.
2687
2688The option --unibyte does not affect the reading of Emacs Lisp files,
2689though. If you want a Lisp file to be read in unibyte mode, use
2690-*-unibyte: t;-*- on its first line. That will force Emacs to
2691load that file in unibyte mode, regardless of how Emacs was started.
2692
2693** toggle-enable-multibyte-characters no longer has a key binding and
2694no longer appears in the menu bar. We've realized that changing the
2695enable-multibyte-characters variable in an existing buffer is
2696something that most users not do.
2697
2698** You can specify a coding system to use for the next cut or paste
2699operations through the window system with the command C-x RET X.
2700The coding system can make a difference for communication with other
2701applications.
2702
2703C-x RET x specifies a coding system for all subsequent cutting and
2704pasting operations.
2705
2706** You can specify the printer to use for commands that do printing by
2707setting the variable `printer-name'. Just what a printer name looks
2708like depends on your operating system. You can specify a different
2709printer for the Postscript printing commands by setting
2710`ps-printer-name'.
2711
2712** Emacs now supports on-the-fly spell checking by the means of a
2713minor mode. It is called M-x flyspell-mode. You don't have to remember
2714any other special commands to use it, and you will hardly notice it
2715except when you make a spelling error. Flyspell works by highlighting
2716incorrect words as soon as they are completed or as soon as the cursor
2717hits a new word.
2718
2719Flyspell mode works with whichever dictionary you have selected for
2720Ispell in Emacs. In TeX mode, it understands TeX syntax so as not
2721to be confused by TeX commands.
2722
2723You can correct a misspelled word by editing it into something
2724correct. You can also correct it, or accept it as correct, by
2725clicking on the word with Mouse-2; that gives you a pop-up menu
2726of various alternative replacements and actions.
2727
2728Flyspell mode also proposes "automatic" corrections. M-TAB replaces
2729the current misspelled word with a possible correction. If several
2730corrections are made possible, M-TAB cycles through them in
2731alphabetical order, or in order of decreasing likelihood if
2732flyspell-sort-corrections is nil.
2733
2734Flyspell mode also flags an error when a word is repeated, if
2735flyspell-mark-duplications-flag is non-nil.
2736
2737** Changes in input method usage.
2738
2739Now you can use arrow keys (right, left, down, up) for selecting among
2740the alternatives just the same way as you do by C-f, C-b, C-n, and C-p
2741respectively.
2742
2743You can use the ENTER key to accept the current conversion.
2744
2745If you type TAB to display a list of alternatives, you can select one
2746of the alternatives with Mouse-2.
2747
2748The meaning of the variable `input-method-verbose-flag' is changed so
2749that you can set it to t, nil, `default', or `complex-only'.
2750
2751 If the value is nil, extra guidance is never given.
2752
2753 If the value is t, extra guidance is always given.
2754
2755 If the value is `complex-only', extra guidance is always given only
2756 when you are using complex input methods such as chinese-py.
2757
2758 If the value is `default' (this is the default), extra guidance is
79214ddf 2759 given in the following case:
a933dad1
DL
2760 o When you are using a complex input method.
2761 o When you are using a simple input method but not in the minibuffer.
2762
2763If you are using Emacs through a very slow line, setting
2764input-method-verbose-flag to nil or to complex-only is a good choice,
2765and if you are using an input method you are not familiar with,
2766setting it to t is helpful.
2767
2768The old command select-input-method is now called set-input-method.
2769
2770In the language environment "Korean", you can use the following
2771keys:
2772 Shift-SPC toggle-korean-input-method
2773 C-F9 quail-hangul-switch-symbol-ksc
2774 F9 quail-hangul-switch-hanja
2775These key bindings are canceled when you switch to another language
2776environment.
2777
2778** The minibuffer history of file names now records the specified file
2779names, not the entire minibuffer input. For example, if the
2780minibuffer starts out with /usr/foo/, you might type in /etc/passwd to
2781get
2782
2783 /usr/foo//etc/passwd
2784
2785which stands for the file /etc/passwd.
2786
2787Formerly, this used to put /usr/foo//etc/passwd in the history list.
2788Now this puts just /etc/passwd in the history list.
2789
2790** If you are root, Emacs sets backup-by-copying-when-mismatch to t
2791at startup, so that saving a file will be sure to preserve
2792its owner and group.
2793
2794** find-func.el can now also find the place of definition of Emacs
2795Lisp variables in user-loaded libraries.
2796
2797** C-x r t (string-rectangle) now deletes the existing rectangle
2798contents before inserting the specified string on each line.
2799
2800** There is a new command delete-whitespace-rectangle
2801which deletes whitespace starting from a particular column
2802in all the lines on a rectangle. The column is specified
2803by the left edge of the rectangle.
2804
2805** You can now store a number into a register with C-u NUMBER C-x r n REG,
2806increment it by INC with C-u INC C-x r + REG (to increment by one, omit
2807C-u INC), and insert it in the buffer with C-x r g REG. This is useful
2808for writing keyboard macros.
2809
2810** The new command M-x speedbar displays a frame in which directories,
2811files, and tags can be displayed, manipulated, and jumped to. The
2812frame defaults to 20 characters in width, and is the same height as
2813the frame that it was started from. Some major modes define
2814additional commands for the speedbar, including Rmail, GUD/GDB, and
2815info.
2816
2817** query-replace-regexp is now bound to C-M-%.
2818
2819** In Transient Mark mode, when the region is active, M-x
2820query-replace and the other replace commands now operate on the region
2821contents only.
2822
2823** M-x write-region, when used interactively, now asks for
2824confirmation before overwriting an existing file. When you call
2825the function from a Lisp program, a new optional argument CONFIRM
2826says whether to ask for confirmation in this case.
2827
2828** If you use find-file-literally and the file is already visited
2829non-literally, the command asks you whether to revisit the file
2830literally. If you say no, it signals an error.
2831
2832** Major modes defined with the "derived mode" feature
2833now use the proper name for the mode hook: WHATEVER-mode-hook.
2834Formerly they used the name WHATEVER-mode-hooks, but that is
2835inconsistent with Emacs conventions.
2836
2837** shell-command-on-region (and shell-command) reports success or
2838failure if the command produces no output.
2839
2840** Set focus-follows-mouse to nil if your window system or window
2841manager does not transfer focus to another window when you just move
2842the mouse.
2843
2844** mouse-menu-buffer-maxlen has been renamed to
2845mouse-buffer-menu-maxlen to be consistent with the other related
2846function and variable names.
2847
2848** The new variable auto-coding-alist specifies coding systems for
2849reading specific files. This has higher priority than
2850file-coding-system-alist.
2851
2852** If you set the variable unibyte-display-via-language-environment to
2853t, then Emacs displays non-ASCII characters are displayed by
2854converting them to the equivalent multibyte characters according to
2855the current language environment. As a result, they are displayed
2856according to the current fontset.
2857
2858** C-q's handling of codes in the range 0200 through 0377 is changed.
2859
2860The codes in the range 0200 through 0237 are inserted as one byte of
2861that code regardless of the values of nonascii-translation-table and
2862nonascii-insert-offset.
2863
2864For the codes in the range 0240 through 0377, if
2865enable-multibyte-characters is non-nil and nonascii-translation-table
2866nor nonascii-insert-offset can't convert them to valid multibyte
2867characters, they are converted to Latin-1 characters.
2868
2869** If you try to find a file that is not read-accessible, you now get
2870an error, rather than an empty buffer and a warning.
2871
2872** In the minibuffer history commands M-r and M-s, an upper case
2873letter in the regular expression forces case-sensitive search.
2874
2875** In the *Help* buffer, cross-references to commands and variables
2876are inferred and hyperlinked. Use C-h m in Help mode for the relevant
2877command keys.
2878
2879** M-x apropos-command, with a prefix argument, no longer looks for
2880user option variables--instead it looks for noninteractive functions.
2881
2882Meanwhile, the command apropos-variable normally searches for
2883user option variables; with a prefix argument, it looks at
2884all variables that have documentation.
2885
2886** When you type a long line in the minibuffer, and the minibuffer
2887shows just one line, automatically scrolling works in a special way
2888that shows you overlap with the previous line of text. The variable
2889minibuffer-scroll-overlap controls how many characters of overlap
2890it should show; the default is 20.
2891
2892Meanwhile, Resize Minibuffer mode is still available; in that mode,
2893the minibuffer grows taller (up to a point) as needed to show the whole
2894of your input.
2895
2896** The new command M-x customize-changed-options lets you customize
2897all the options whose meanings or default values have changed in
2898recent Emacs versions. You specify a previous Emacs version number as
2899argument, and the command creates a customization buffer showing all
2900the customizable options which were changed since that version.
2901Newly added options are included as well.
2902
2903If you don't specify a particular version number argument,
2904then the customization buffer shows all the customizable options
2905for which Emacs versions of changes are recorded.
2906
2907This function is also bound to the Changed Options entry in the
2908Customize menu.
2909
2910** When you run M-x grep with a prefix argument, it figures out
2911the tag around point and puts that into the default grep command.
2912
2913** The new command M-* (pop-tag-mark) pops back through a history of
2914buffer positions from which M-. or other tag-finding commands were
2915invoked.
2916
2917** The new variable comment-padding specifies the number of spaces
2918that `comment-region' will insert before the actual text of the comment.
2919The default is 1.
2920
2921** In Fortran mode the characters `.', `_' and `$' now have symbol
2922syntax, not word syntax. Fortran mode now supports `imenu' and has
2923new commands fortran-join-line (M-^) and fortran-narrow-to-subprogram
2924(C-x n d). M-q can be used to fill a statement or comment block
2925sensibly.
2926
2927** GUD now supports jdb, the Java debugger, and pdb, the Python debugger.
2928
2929** If you set the variable add-log-keep-changes-together to a non-nil
2930value, the command `C-x 4 a' will automatically notice when you make
2931two entries in one day for one file, and combine them.
2932
2933** You can use the command M-x diary-mail-entries to mail yourself a
2934reminder about upcoming diary entries. See the documentation string
2935for a sample shell script for calling this function automatically
2936every night.
2937
2938** All you need to do, to enable use of the Desktop package, is to set
2939the variable desktop-enable to t with Custom.
2940
2941** There is no need to do anything special, now, to enable Gnus to
2942read and post multi-lingual articles.
2943
2944** Outline mode has now support for showing hidden outlines when
2945doing an isearch. In order for this to happen search-invisible should
2946be set to open (the default). If an isearch match is inside a hidden
2947outline the outline is made visible. If you continue pressing C-s and
2948the match moves outside the formerly invisible outline, the outline is
79214ddf 2949made invisible again.
a933dad1
DL
2950
2951** Mail reading and sending changes
2952
2953*** The Rmail e command now switches to displaying the whole header of
2954the message before it lets you edit the message. This is so that any
2955changes you make in the header will not be lost if you subsequently
2956toggle.
2957
2958*** The w command in Rmail, which writes the message body into a file,
2959now works in the summary buffer as well. (The command to delete the
2960summary buffer is now Q.) The default file name for the w command, if
2961the message has no subject, is stored in the variable
2962rmail-default-body-file.
2963
2964*** Most of the commands and modes that operate on mail and netnews no
2965longer depend on the value of mail-header-separator. Instead, they
2966handle whatever separator the buffer happens to use.
2967
2968*** If you set mail-signature to a value which is not t, nil, or a string,
2969it should be an expression. When you send a message, this expression
2970is evaluated to insert the signature.
2971
2972*** The new Lisp library feedmail.el (version 8) enhances processing of
2973outbound email messages. It works in coordination with other email
2974handling packages (e.g., rmail, VM, gnus) and is responsible for
2975putting final touches on messages and actually submitting them for
2976transmission. Users of the emacs program "fakemail" might be
2977especially interested in trying feedmail.
2978
2979feedmail is not enabled by default. See comments at the top of
2980feedmail.el for set-up instructions. Among the bigger features
2981provided by feedmail are:
2982
2983**** you can park outgoing messages into a disk-based queue and
2984stimulate sending some or all of them later (handy for laptop users);
2985there is also a queue for draft messages
2986
2987**** you can get one last look at the prepped outbound message and
2988be prompted for confirmation
2989
2990**** does smart filling of address headers
2991
2992**** can generate a MESSAGE-ID: line and a DATE: line; the date can be
2993the time the message was written or the time it is being sent; this
2994can make FCC copies more closely resemble copies that recipients get
2995
2996**** you can specify an arbitrary function for actually transmitting
2997the message; included in feedmail are interfaces for /bin/[r]mail,
2998/usr/lib/sendmail, and elisp smtpmail; it's easy to write a new
2999function for something else (10-20 lines of elisp)
3000
3001** Dired changes
3002
3003*** The Dired function dired-do-toggle, which toggles marked and unmarked
3004files, is now bound to "t" instead of "T".
3005
3006*** dired-at-point has been added to ffap.el. It allows one to easily
3007run Dired on the directory name at point.
3008
3009*** Dired has a new command: %g. It searches the contents of
3010files in the directory and marks each file that contains a match
3011for a specified regexp.
3012
3013** VC Changes
3014
3015*** New option vc-ignore-vc-files lets you turn off version control
3016conveniently.
3017
3018*** VC Dired has been completely rewritten. It is now much
3019faster, especially for CVS, and works very similar to ordinary
3020Dired.
3021
3022VC Dired is invoked by typing C-x v d and entering the name of the
3023directory to display. By default, VC Dired gives you a recursive
3024listing of all files at or below the given directory which are
3025currently locked (for CVS, all files not up-to-date are shown).
3026
3027You can change the listing format by setting vc-dired-recurse to nil,
3028then it shows only the given directory, and you may also set
3029vc-dired-terse-display to nil, then it shows all files under version
3030control plus the names of any subdirectories, so that you can type `i'
3031on such lines to insert them manually, as in ordinary Dired.
3032
3033All Dired commands operate normally in VC Dired, except for `v', which
3034is redefined as the version control prefix. That means you may type
3035`v l', `v =' etc. to invoke `vc-print-log', `vc-diff' and the like on
3036the file named in the current Dired buffer line. `v v' invokes
3037`vc-next-action' on this file, or on all files currently marked.
3038
3039The new command `v t' (vc-dired-toggle-terse-mode) allows you to
3040toggle between terse display (only locked files) and full display (all
79214ddf 3041VC files plus subdirectories). There is also a special command,
a933dad1
DL
3042`* l', to mark all files currently locked.
3043
3044Giving a prefix argument to C-x v d now does the same thing as in
3045ordinary Dired: it allows you to supply additional options for the ls
3046command in the minibuffer, to fine-tune VC Dired's output.
3047
3048*** Under CVS, if you merge changes from the repository into a working
3049file, and CVS detects conflicts, VC now offers to start an ediff
3050session to resolve them.
3051
3052Alternatively, you can use the new command `vc-resolve-conflicts' to
3053resolve conflicts in a file at any time. It works in any buffer that
3054contains conflict markers as generated by rcsmerge (which is what CVS
3055uses as well).
3056
3057*** You can now transfer changes between branches, using the new
3058command vc-merge (C-x v m). It is implemented for RCS and CVS. When
3059you invoke it in a buffer under version-control, you can specify
3060either an entire branch or a pair of versions, and the changes on that
3061branch or between the two versions are merged into the working file.
3062If this results in any conflicts, they may be resolved interactively,
3063using ediff.
3064
3065** Changes in Font Lock
3066
3067*** The face and variable previously known as font-lock-reference-face
3068are now called font-lock-constant-face to better reflect their typical
3069use for highlighting constants and labels. (Its face properties are
3070unchanged.) The variable font-lock-reference-face remains for now for
3071compatibility reasons, but its value is font-lock-constant-face.
3072
3073** Frame name display changes
3074
3075*** The command set-frame-name lets you set the name of the current
3076frame. You can use the new command select-frame-by-name to select and
3077raise a frame; this is mostly useful on character-only terminals, or
3078when many frames are invisible or iconified.
3079
3080*** On character-only terminal (not a window system), changing the
3081frame name is now reflected on the mode line and in the Buffers/Frames
3082menu.
3083
3084** Comint (subshell) changes
3085
3086*** In Comint modes, the commands to kill, stop or interrupt a
3087subjob now also kill pending input. This is for compatibility
3088with ordinary shells, where the signal characters do this.
3089
3090*** There are new commands in Comint mode.
3091
3092C-c C-x fetches the "next" line from the input history;
3093that is, the line after the last line you got.
3094You can use this command to fetch successive lines, one by one.
3095
3096C-c SPC accumulates lines of input. More precisely, it arranges to
3097send the current line together with the following line, when you send
3098the following line.
3099
3100C-c C-a if repeated twice consecutively now moves to the process mark,
3101which separates the pending input from the subprocess output and the
3102previously sent input.
3103
3104C-c M-r now runs comint-previous-matching-input-from-input;
3105it searches for a previous command, using the current pending input
3106as the search string.
3107
3108*** New option compilation-scroll-output can be set to scroll
3109automatically in compilation-mode windows.
3110
3111** C mode changes
3112
3113*** Multiline macros are now handled, both as they affect indentation,
3114and as recognized syntax. New syntactic symbol cpp-macro-cont is
3115assigned to second and subsequent lines of a multiline macro
79214ddf 3116definition.
a933dad1
DL
3117
3118*** A new style "user" which captures all non-hook-ified
3119(i.e. top-level) .emacs file variable settings and customizations.
3120Style "cc-mode" is an alias for "user" and is deprecated. "gnu"
3121style is still the default however.
3122
3123*** "java" style now conforms to Sun's JDK coding style.
3124
3125*** There are new commands c-beginning-of-defun, c-end-of-defun which
3126are alternatives which you could bind to C-M-a and C-M-e if you prefer
3127them. They do not have key bindings by default.
3128
3129*** New and improved implementations of M-a (c-beginning-of-statement)
3130and M-e (c-end-of-statement).
3131
3132*** C++ namespace blocks are supported, with new syntactic symbols
3133namespace-open, namespace-close, and innamespace.
3134
3135*** File local variable settings of c-file-style and c-file-offsets
3136makes the style variables local to that buffer only.
3137
3138*** New indentation functions c-lineup-close-paren,
3139c-indent-one-line-block, c-lineup-dont-change.
3140
3141*** Improvements (hopefully!) to the way CC Mode is loaded. You
3142should now be able to do a (require 'cc-mode) to get the entire
3143package loaded properly for customization in your .emacs file. A new
3144variable c-initialize-on-load controls this and is t by default.
3145
3146** Changes to hippie-expand.
3147
79214ddf 3148*** New customization variable `hippie-expand-dabbrev-skip-space'. If
a933dad1
DL
3149non-nil, trailing spaces may be included in the abbreviation to search for,
3150which then gives the same behavior as the original `dabbrev-expand'.
3151
3152*** New customization variable `hippie-expand-dabbrev-as-symbol'. If
3153non-nil, characters of syntax '_' is considered part of the word when
3154expanding dynamically.
3155
3156*** New customization variable `hippie-expand-no-restriction'. If
3157non-nil, narrowed buffers are widened before they are searched.
3158
3159*** New customization variable `hippie-expand-only-buffers'. If
3160non-empty, buffers searched are restricted to the types specified in
3161this list. Useful for example when constructing new special-purpose
3162expansion functions with `make-hippie-expand-function'.
3163
3164*** Text properties of the expansion are no longer copied.
3165
3166** Changes in BibTeX mode.
3167
3168*** Any titleword matching a regexp in the new variable
3169bibtex-autokey-titleword-ignore (case sensitive) is ignored during
3170automatic key generation. This replaces variable
3171bibtex-autokey-titleword-first-ignore, which only checked for matches
3172against the first word in the title.
3173
3174*** Autokey generation now uses all words from the title, not just
3175capitalized words. To avoid conflicts with existing customizations,
3176bibtex-autokey-titleword-ignore is set up such that words starting with
79214ddf 3177lowerkey characters will still be ignored. Thus, if you want to use
a933dad1 3178lowercase words from the title, you will have to overwrite the
79214ddf 3179bibtex-autokey-titleword-ignore standard setting.
a933dad1
DL
3180
3181*** Case conversion of names and title words for automatic key
3182generation is more flexible. Variable bibtex-autokey-preserve-case is
3183replaced by bibtex-autokey-titleword-case-convert and
3184bibtex-autokey-name-case-convert.
3185
3186** Changes in vcursor.el.
3187
3188*** Support for character terminals is available: there is a new keymap
3189and the vcursor will appear as an arrow between buffer text. A
3190variable `vcursor-interpret-input' allows input from the vcursor to be
3191entered exactly as if typed. Numerous functions, including
3192`vcursor-compare-windows', have been rewritten to improve consistency
3193in the selection of windows and corresponding keymaps.
3194
3195*** vcursor options can now be altered with M-x customize under the
3196Editing group once the package is loaded.
3197
3198*** Loading vcursor now does not define keys by default, as this is
3199generally a bad side effect. Use M-x customize to set
3200vcursor-key-bindings to t to restore the old behaviour.
3201
3202*** vcursor-auto-disable can be `copy', which turns off copying from the
3203vcursor, but doesn't disable it, after any non-vcursor command.
3204
3205** Ispell changes.
3206
79214ddf
FP
3207*** You can now spell check comments and strings in the current
3208buffer with M-x ispell-comments-and-strings. Comments and strings
a933dad1
DL
3209are identified by syntax tables in effect.
3210
3211*** Generic region skipping implemented.
3212A single buffer can be broken into a number of regions where text will
3213and will not be checked. The definitions of the regions can be user
3214defined. New applications and improvements made available by this
79214ddf 3215include:
a933dad1
DL
3216
3217 o URLs are automatically skipped
3218 o EMail message checking is vastly improved.
3219
3220*** Ispell can highlight the erroneous word even on non-window terminals.
3221
3222** Changes to RefTeX mode
3223
3224RefTeX has been updated in order to make it more usable with very
3225large projects (like a several volume math book). The parser has been
3226re-written from scratch. To get maximum speed from RefTeX, check the
3227section `Optimizations' in the manual.
3228
3229*** New recursive parser.
3230
3231The old version of RefTeX created a single large buffer containing the
3232entire multifile document in order to parse the document. The new
3233recursive parser scans the individual files.
3234
3235*** Parsing only part of a document.
79214ddf 3236
a933dad1
DL
3237Reparsing of changed document parts can now be made faster by enabling
3238partial scans. To use this feature, read the documentation string of
3239the variable `reftex-enable-partial-scans' and set the variable to t.
3240
3241 (setq reftex-enable-partial-scans t)
3242
3243*** Storing parsing information in a file.
3244
3245This can improve startup times considerably. To turn it on, use
3246
3247 (setq reftex-save-parse-info t)
3248
3249*** Using multiple selection buffers
3250
3251If the creation of label selection buffers is too slow (this happens
3252for large documents), you can reuse these buffers by setting
3253
3254 (setq reftex-use-multiple-selection-buffers t)
3255
3256*** References to external documents.
3257
3258The LaTeX package `xr' allows to cross-reference labels in external
3259documents. RefTeX can provide information about the external
3260documents as well. To use this feature, set up the \externaldocument
3261macros required by the `xr' package and rescan the document with
3262RefTeX. The external labels can then be accessed with the `x' key in
3263the selection buffer provided by `reftex-reference' (bound to `C-c )').
3264The `x' key also works in the table of contents buffer.
3265
3266*** Many more labeled LaTeX environments are recognized by default.
3267
3268The builtin command list now covers all the standard LaTeX commands,
3269and all of the major packages included in the LaTeX distribution.
3270
3271Also, RefTeX now understands the \appendix macro and changes
3272the enumeration of sections in the *toc* buffer accordingly.
3273
3274*** Mouse support for selection and *toc* buffers
3275
3276The mouse can now be used to select items in the selection and *toc*
3277buffers. See also the new option `reftex-highlight-selection'.
3278
3279*** New keymaps for selection and table of contents modes.
3280
3281The selection processes for labels and citation keys, and the table of
3282contents buffer now have their own keymaps: `reftex-select-label-map',
3283`reftex-select-bib-map', `reftex-toc-map'. The selection processes
3284have a number of new keys predefined. In particular, TAB lets you
3285enter a label with completion. Check the on-the-fly help (press `?'
3286at the selection prompt) or read the Info documentation to find out
3287more.
3288
3289*** Support for the varioref package
3290
3291The `v' key in the label selection buffer toggles \ref versus \vref.
3292
3293*** New hooks
3294
3295Three new hooks can be used to redefine the way labels, references,
3296and citations are created. These hooks are
3297`reftex-format-label-function', `reftex-format-ref-function',
3298`reftex-format-cite-function'.
3299
3300*** Citations outside LaTeX
3301
3302The command `reftex-citation' may also be used outside LaTeX (e.g. in
3303a mail buffer). See the Info documentation for details.
3304
3305*** Short context is no longer fontified.
3306
3307The short context in the label menu no longer copies the
3308fontification from the text in the buffer. If you prefer it to be
3309fontified, use
3310
3311 (setq reftex-refontify-context t)
3312
3313** file-cache-minibuffer-complete now accepts a prefix argument.
3314With a prefix argument, it does not try to do completion of
3315the file name within its directory; it only checks for other
3316directories that contain the same file name.
3317
3318Thus, given the file name Makefile, and assuming that a file
3319Makefile.in exists in the same directory, ordinary
3320file-cache-minibuffer-complete will try to complete Makefile to
3321Makefile.in and will therefore never look for other directories that
3322have Makefile. A prefix argument tells it not to look for longer
3323names such as Makefile.in, so that instead it will look for other
3324directories--just as if the name were already complete in its present
3325directory.
3326
3327** New modes and packages
3328
3329*** There is a new alternative major mode for Perl, Cperl mode.
3330It has many more features than Perl mode, and some people prefer
3331it, but some do not.
3332
3333*** There is a new major mode, M-x vhdl-mode, for editing files of VHDL
3334code.
3335
3336*** M-x which-function-mode enables a minor mode that displays the
3337current function name continuously in the mode line, as you move
3338around in a buffer.
3339
3340Which Function mode is effective in major modes which support Imenu.
3341
3342*** Gametree is a major mode for editing game analysis trees. The author
3343uses it for keeping notes about his postal Chess games, but it should
3344be helpful for other two-player games as well, as long as they have an
3345established system of notation similar to Chess.
3346
3347*** The new minor mode checkdoc-minor-mode provides Emacs Lisp
3348documentation string checking for style and spelling. The style
3349guidelines are found in the Emacs Lisp programming manual.
3350
3351*** The net-utils package makes some common networking features
3352available in Emacs. Some of these functions are wrappers around
3353system utilities (ping, nslookup, etc); others are implementations of
3354simple protocols (finger, whois) in Emacs Lisp. There are also
3355functions to make simple connections to TCP/IP ports for debugging and
3356the like.
3357
3358*** highlight-changes-mode is a minor mode that uses colors to
3359identify recently changed parts of the buffer text.
3360
3361*** The new package `midnight' lets you specify things to be done
3362within Emacs at midnight--by default, kill buffers that you have not
3363used in a considerable time. To use this feature, customize
3364the user option `midnight-mode' to t.
3365
3366*** The file generic-x.el defines a number of simple major modes.
3367
3368 apache-generic-mode: For Apache and NCSA httpd configuration files
3369 samba-generic-mode: Samba configuration files
3370 fvwm-generic-mode: For fvwm initialization files
3371 x-resource-generic-mode: For X resource files
3372 hosts-generic-mode: For hosts files (.rhosts, /etc/hosts, etc)
3373 mailagent-rules-generic-mode: For mailagent .rules files
3374 javascript-generic-mode: For JavaScript files
3375 vrml-generic-mode: For VRML files
3376 java-manifest-generic-mode: For Java MANIFEST files
3377 java-properties-generic-mode: For Java property files
3378 mailrc-generic-mode: For .mailrc files
3379
3380 Platform-specific modes:
3381
3382 prototype-generic-mode: For Solaris/Sys V prototype files
3383 pkginfo-generic-mode: For Solaris/Sys V pkginfo files
3384 alias-generic-mode: For C shell alias files
3385 inf-generic-mode: For MS-Windows INF files
3386 ini-generic-mode: For MS-Windows INI files
3387 reg-generic-mode: For MS-Windows Registry files
3388 bat-generic-mode: For MS-Windows BAT scripts
3389 rc-generic-mode: For MS-Windows Resource files
3390 rul-generic-mode: For InstallShield scripts
3391\f
3392* Lisp changes in Emacs 20.3 since the Emacs Lisp Manual was published
3393
3394** If you want a Lisp file to be read in unibyte mode,
3395use -*-unibyte: t;-*- on its first line.
3396That will force Emacs to read that file in unibyte mode.
3397Otherwise, the file will be loaded and byte-compiled in multibyte mode.
3398
3399Thus, each lisp file is read in a consistent way regardless of whether
3400you started Emacs with --unibyte, so that a Lisp program gives
3401consistent results regardless of how Emacs was started.
3402
3403** The new function assoc-default is useful for searching an alist,
3404and using a default value if the key is not found there. You can
3405specify a comparison predicate, so this function is useful for
3406searching comparing a string against an alist of regular expressions.
3407
3408** The functions unibyte-char-to-multibyte and
3409multibyte-char-to-unibyte convert between unibyte and multibyte
3410character codes, in a way that is appropriate for the current language
3411environment.
3412
3413** The functions read-event, read-char and read-char-exclusive now
3414take two optional arguments. PROMPT, if non-nil, specifies a prompt
3415string. SUPPRESS-INPUT-METHOD, if non-nil, says to disable the
3416current input method for reading this one event.
3417
3418** Two new variables print-escape-nonascii and print-escape-multibyte
3419now control whether to output certain characters as
3420backslash-sequences. print-escape-nonascii applies to single-byte
3421non-ASCII characters; print-escape-multibyte applies to multibyte
3422characters. Both of these variables are used only when printing
3423in readable fashion (prin1 uses them, princ does not).
3424\f
3425* Lisp changes in Emacs 20.3 before the Emacs Lisp Manual was published
3426
3427** Compiled Emacs Lisp files made with the modified "MBSK" version
3428of Emacs 20.2 do not work in Emacs 20.3.
3429
3430** Buffer positions are now measured in characters, as they were
3431in Emacs 19 and before. This means that (forward-char 1)
3432always increases point by 1.
3433
3434The function chars-in-region now just subtracts its arguments. It is
3435considered obsolete. The function char-boundary-p has been deleted.
3436
3437See below for additional changes relating to multibyte characters.
3438
3439** defcustom, defface and defgroup now accept the keyword `:version'.
3440Use this to specify in which version of Emacs a certain variable's
3441default value changed. For example,
3442
3443 (defcustom foo-max 34 "*Maximum number of foo's allowed."
3444 :type 'integer
3445 :group 'foo
3446 :version "20.3")
3447
79214ddf 3448 (defgroup foo-group nil "The foo group."
a933dad1
DL
3449 :version "20.3")
3450
3451If an entire new group is added or the variables in it have the
3452default values changed, then just add a `:version' to that group. It
3453is recommended that new packages added to the distribution contain a
3454`:version' in the top level group.
3455
3456This information is used to control the customize-changed-options command.
3457
3458** It is now an error to change the value of a symbol whose name
3459starts with a colon--if it is interned in the standard obarray.
3460
3461However, setting such a symbol to its proper value, which is that
3462symbol itself, is not an error. This is for the sake of programs that
3463support previous Emacs versions by explicitly setting these variables
3464to themselves.
3465
3466If you set the variable keyword-symbols-constant-flag to nil,
3467this error is suppressed, and you can set these symbols to any
3468values whatever.
3469
3470** There is a new debugger command, R.
3471It evaluates an expression like e, but saves the result
3472in the buffer *Debugger-record*.
3473
3474** Frame-local variables.
3475
3476You can now make a variable local to various frames. To do this, call
3477the function make-variable-frame-local; this enables frames to have
3478local bindings for that variable.
3479
3480These frame-local bindings are actually frame parameters: you create a
3481frame-local binding in a specific frame by calling
3482modify-frame-parameters and specifying the variable name as the
3483parameter name.
3484
3485Buffer-local bindings take precedence over frame-local bindings.
3486Thus, if the current buffer has a buffer-local binding, that binding is
3487active; otherwise, if the selected frame has a frame-local binding,
3488that binding is active; otherwise, the default binding is active.
3489
3490It would not be hard to implement window-local bindings, but it is not
3491clear that this would be very useful; windows tend to come and go in a
3492very transitory fashion, so that trying to produce any specific effect
3493through a window-local binding would not be very robust.
3494
3495** `sregexq' and `sregex' are two new functions for constructing
3496"symbolic regular expressions." These are Lisp expressions that, when
3497evaluated, yield conventional string-based regexps. The symbolic form
3498makes it easier to construct, read, and maintain complex patterns.
3499See the documentation in sregex.el.
3500
3501** parse-partial-sexp's return value has an additional element which
3502is used to pass information along if you pass it to another call to
3503parse-partial-sexp, starting its scan where the first call ended.
3504The contents of this field are not yet finalized.
3505
3506** eval-region now accepts a fourth optional argument READ-FUNCTION.
3507If it is non-nil, that function is used instead of `read'.
3508
3509** unload-feature by default removes the feature's functions from
3510known hooks to avoid trouble, but a package providing FEATURE can
3511define a hook FEATURE-unload-hook to be run by unload-feature instead.
3512
3513** read-from-minibuffer no longer returns the argument DEFAULT-VALUE
3514when the user enters empty input. It now returns the null string, as
3515it did in Emacs 19. The default value is made available in the
3516history via M-n, but it is not applied here as a default.
3517
3518The other, more specialized minibuffer-reading functions continue to
3519return the default value (not the null string) when the user enters
3520empty input.
3521
3522** The new variable read-buffer-function controls which routine to use
3523for selecting buffers. For example, if you set this variable to
3524`iswitchb-read-buffer', iswitchb will be used to read buffer names.
3525Other functions can also be used if they accept the same arguments as
3526`read-buffer' and return the selected buffer name as a string.
3527
3528** The new function read-passwd reads a password from the terminal,
3529echoing a period for each character typed. It takes three arguments:
3530a prompt string, a flag which says "read it twice to make sure", and a
3531default password to use if the user enters nothing.
3532
3533** The variable fill-nobreak-predicate gives major modes a way to
3534specify not to break a line at certain places. Its value is a
3535function which is called with no arguments, with point located at the
3536place where a break is being considered. If the function returns
3537non-nil, then the line won't be broken there.
3538
3539** window-end now takes an optional second argument, UPDATE.
3540If this is non-nil, then the function always returns an accurate
3541up-to-date value for the buffer position corresponding to the
3542end of the window, even if this requires computation.
3543
3544** other-buffer now takes an optional argument FRAME
3545which specifies which frame's buffer list to use.
3546If it is nil, that means use the selected frame's buffer list.
3547
3548** The new variable buffer-display-time, always local in every buffer,
3549holds the value of (current-time) as of the last time that a window
3550was directed to display this buffer.
3551
3552** It is now meaningful to compare two window-configuration objects
3553with `equal'. Two window-configuration objects are equal if they
3554describe equivalent arrangements of windows, in the same frame--in
3555other words, if they would give the same results if passed to
3556set-window-configuration.
3557
3558** compare-window-configurations is a new function that compares two
3559window configurations loosely. It ignores differences in saved buffer
3560positions and scrolling, and considers only the structure and sizes of
3561windows and the choice of buffers to display.
3562
3563** The variable minor-mode-overriding-map-alist allows major modes to
3564override the key bindings of a minor mode. The elements of this alist
3565look like the elements of minor-mode-map-alist: (VARIABLE . KEYMAP).
3566
3567If the VARIABLE in an element of minor-mode-overriding-map-alist has a
3568non-nil value, the paired KEYMAP is active, and totally overrides the
3569map (if any) specified for the same variable in minor-mode-map-alist.
3570
3571minor-mode-overriding-map-alist is automatically local in all buffers,
3572and it is meant to be set by major modes.
3573
3574** The function match-string-no-properties is like match-string
3575except that it discards all text properties from the result.
3576
3577** The function load-average now accepts an optional argument
3578USE-FLOATS. If it is non-nil, the load average values are returned as
3579floating point numbers, rather than as integers to be divided by 100.
3580
3581** The new variable temporary-file-directory specifies the directory
3582to use for creating temporary files. The default value is determined
3583in a reasonable way for your operating system; on GNU and Unix systems
3584it is based on the TMP and TMPDIR environment variables.
3585
3586** Menu changes
3587
3588*** easymenu.el now uses the new menu item format and supports the
3589keywords :visible and :filter. The existing keyword :keys is now
3590better supported.
3591
3592The variable `easy-menu-precalculate-equivalent-keybindings' controls
3593a new feature which calculates keyboard equivalents for the menu when
3594you define the menu. The default is t. If you rarely use menus, you
3595can set the variable to nil to disable this precalculation feature;
3596then the calculation is done only if you use the menu bar.
3597
3598*** A new format for menu items is supported.
3599
3600In a keymap, a key binding that has the format
3601 (STRING . REAL-BINDING) or (STRING HELP-STRING . REAL-BINDING)
3602defines a menu item. Now a menu item definition may also be a list that
3603starts with the symbol `menu-item'.
3604
3605The format is:
3606 (menu-item ITEM-NAME) or
3607 (menu-item ITEM-NAME REAL-BINDING . ITEM-PROPERTY-LIST)
3608where ITEM-NAME is an expression which evaluates to the menu item
3609string, and ITEM-PROPERTY-LIST has the form of a property list.
3610The supported properties include
3611
3612:enable FORM Evaluate FORM to determine whether the
3613 item is enabled.
3614:visible FORM Evaluate FORM to determine whether the
3615 item should appear in the menu.
79214ddf 3616:filter FILTER-FN
a933dad1
DL
3617 FILTER-FN is a function of one argument,
3618 which will be REAL-BINDING.
3619 It should return a binding to use instead.
3620:keys DESCRIPTION
3621 DESCRIPTION is a string that describes an equivalent keyboard
3622 binding for for REAL-BINDING. DESCRIPTION is expanded with
3623 `substitute-command-keys' before it is used.
3624:key-sequence KEY-SEQUENCE
3625 KEY-SEQUENCE is a key-sequence for an equivalent
3626 keyboard binding.
3627:key-sequence nil
3628 This means that the command normally has no
3629 keyboard equivalent.
3630:help HELP HELP is the extra help string (not currently used).
3631:button (TYPE . SELECTED)
3632 TYPE is :toggle or :radio.
3633 SELECTED is a form, to be evaluated, and its
3634 value says whether this button is currently selected.
3635
3636Buttons are at the moment only simulated by prefixes in the menu.
3637Eventually ordinary X-buttons may be supported.
3638
3639(menu-item ITEM-NAME) defines unselectable item.
3640
3641** New event types
3642
3643*** The new event type `mouse-wheel' is generated by a wheel on a
3644mouse (such as the MS Intellimouse). The event contains a delta that
3645corresponds to the amount and direction that the wheel is rotated,
3646which is typically used to implement a scroll or zoom. The format is:
3647
3648 (mouse-wheel POSITION DELTA)
3649
3650where POSITION is a list describing the position of the event in the
3651same format as a mouse-click event, and DELTA is a signed number
3652indicating the number of increments by which the wheel was rotated. A
3653negative DELTA indicates that the wheel was rotated backwards, towards
3654the user, and a positive DELTA indicates that the wheel was rotated
3655forward, away from the user.
3656
3657As of now, this event type is generated only on MS Windows.
3658
3659*** The new event type `drag-n-drop' is generated when a group of
3660files is selected in an application outside of Emacs, and then dragged
3661and dropped onto an Emacs frame. The event contains a list of
3662filenames that were dragged and dropped, which are then typically
3663loaded into Emacs. The format is:
3664
3665 (drag-n-drop POSITION FILES)
3666
3667where POSITION is a list describing the position of the event in the
3668same format as a mouse-click event, and FILES is the list of filenames
3669that were dragged and dropped.
3670
3671As of now, this event type is generated only on MS Windows.
3672
3673** Changes relating to multibyte characters.
3674
3675*** The variable enable-multibyte-characters is now read-only;
3676any attempt to set it directly signals an error. The only way
3677to change this value in an existing buffer is with set-buffer-multibyte.
3678
3679*** In a string constant, `\ ' now stands for "nothing at all". You
3680can use it to terminate a hex escape which is followed by a character
3681that could otherwise be read as part of the hex escape.
3682
3683*** String indices are now measured in characters, as they were
3684in Emacs 19 and before.
3685
3686The function chars-in-string has been deleted.
3687The function concat-chars has been renamed to `string'.
3688
3689*** The function set-buffer-multibyte sets the flag in the current
3690buffer that says whether the buffer uses multibyte representation or
3691unibyte representation. If the argument is nil, it selects unibyte
3692representation. Otherwise it selects multibyte representation.
3693
3694This function does not change the contents of the buffer, viewed
3695as a sequence of bytes. However, it does change the contents
3696viewed as characters; a sequence of two bytes which is treated as
3697one character when the buffer uses multibyte representation
3698will count as two characters using unibyte representation.
3699
3700This function sets enable-multibyte-characters to record which
3701representation is in use. It also adjusts various data in the buffer
3702(including its markers, overlays and text properties) so that they are
3703consistent with the new representation.
3704
3705*** string-make-multibyte takes a string and converts it to multibyte
3706representation. Most of the time, you don't need to care
3707about the representation, because Emacs converts when necessary;
3708however, it makes a difference when you compare strings.
3709
3710The conversion of non-ASCII characters works by adding the value of
3711nonascii-insert-offset to each character, or by translating them
3712using the table nonascii-translation-table.
3713
3714*** string-make-unibyte takes a string and converts it to unibyte
3715representation. Most of the time, you don't need to care about the
3716representation, but it makes a difference when you compare strings.
3717
3718The conversion from multibyte to unibyte representation
3719loses information; the only time Emacs performs it automatically
3720is when inserting a multibyte string into a unibyte buffer.
3721
3722*** string-as-multibyte takes a string, and returns another string
3723which contains the same bytes, but treats them as multibyte.
3724
3725*** string-as-unibyte takes a string, and returns another string
3726which contains the same bytes, but treats them as unibyte.
3727
3728*** The new function compare-strings lets you compare
3729portions of two strings. Unibyte strings are converted to multibyte,
3730so that a unibyte string can match a multibyte string.
3731You can specify whether to ignore case or not.
3732
3733*** assoc-ignore-case now uses compare-strings so that
3734it can treat unibyte and multibyte strings as equal.
3735
3736*** Regular expression operations and buffer string searches now
3737convert the search pattern to multibyte or unibyte to accord with the
3738buffer or string being searched.
3739
3740One consequence is that you cannot always use \200-\377 inside of
3741[...] to match all non-ASCII characters. This does still work when
3742searching or matching a unibyte buffer or string, but not when
3743searching or matching a multibyte string. Unfortunately, there is no
3744obvious choice of syntax to use within [...] for that job. But, what
3745you want is just to match all non-ASCII characters, the regular
3746expression [^\0-\177] works for it.
3747
3748*** Structure of coding system changed.
3749
3750All coding systems (including aliases and subsidiaries) are named
3751by symbols; the symbol's `coding-system' property is a vector
3752which defines the coding system. Aliases share the same vector
3753as the principal name, so that altering the contents of this
3754vector affects the principal name and its aliases. You can define
3755your own alias name of a coding system by the function
3756define-coding-system-alias.
3757
3758The coding system definition includes a property list of its own. Use
3759the new functions `coding-system-get' and `coding-system-put' to
3760access such coding system properties as post-read-conversion,
3761pre-write-conversion, character-translation-table-for-decode,
3762character-translation-table-for-encode, mime-charset, and
3763safe-charsets. For instance, (coding-system-get 'iso-latin-1
3764'mime-charset) gives the corresponding MIME-charset parameter
3765`iso-8859-1'.
3766
3767Among the coding system properties listed above, safe-charsets is new.
3768The value of this property is a list of character sets which this
3769coding system can correctly encode and decode. For instance:
3770(coding-system-get 'iso-latin-1 'safe-charsets) => (ascii latin-iso8859-1)
3771
3772Here, "correctly encode" means that the encoded character sets can
3773also be handled safely by systems other than Emacs as far as they
3774are capable of that coding system. Though, Emacs itself can encode
3775the other character sets and read it back correctly.
3776
3777*** The new function select-safe-coding-system can be used to find a
3778proper coding system for encoding the specified region or string.
3779This function requires a user interaction.
3780
3781*** The new functions find-coding-systems-region and
3782find-coding-systems-string are helper functions used by
3783select-safe-coding-system. They return a list of all proper coding
3784systems to encode a text in some region or string. If you don't want
3785a user interaction, use one of these functions instead of
3786select-safe-coding-system.
3787
3788*** The explicit encoding and decoding functions, such as
3789decode-coding-region and encode-coding-string, now set
3790last-coding-system-used to reflect the actual way encoding or decoding
3791was done.
3792
3793*** The new function detect-coding-with-language-environment can be
3794used to detect a coding system of text according to priorities of
3795coding systems used by some specific language environment.
3796
3797*** The functions detect-coding-region and detect-coding-string always
3798return a list if the arg HIGHEST is nil. Thus, if only ASCII
3799characters are found, they now return a list of single element
3800`undecided' or its subsidiaries.
3801
3802*** The new functions coding-system-change-eol-conversion and
3803coding-system-change-text-conversion can be used to get a different
3804coding system than what specified only in how end-of-line or text is
3805converted.
3806
3807*** The new function set-selection-coding-system can be used to set a
3808coding system for communicating with other X clients.
3809
3810*** The function `map-char-table' now passes as argument only valid
3811character codes, plus generic characters that stand for entire
3812character sets or entire subrows of a character set. In other words,
3813each time `map-char-table' calls its FUNCTION argument, the key value
3814either will be a valid individual character code, or will stand for a
3815range of characters.
3816
3817*** The new function `char-valid-p' can be used for checking whether a
3818Lisp object is a valid character code or not.
3819
3820*** The new function `charset-after' returns a charset of a character
3821in the current buffer at position POS.
3822
3823*** Input methods are now implemented using the variable
3824input-method-function. If this is non-nil, its value should be a
3825function; then, whenever Emacs reads an input event that is a printing
3826character with no modifier bits, it calls that function, passing the
3827event as an argument. Often this function will read more input, first
3828binding input-method-function to nil.
3829
3830The return value should be a list of the events resulting from input
3831method processing. These events will be processed sequentially as
3832input, before resorting to unread-command-events. Events returned by
3833the input method function are not passed to the input method function,
3834not even if they are printing characters with no modifier bits.
3835
3836The input method function is not called when reading the second and
3837subsequent events of a key sequence.
3838
3839*** You can customize any language environment by using
3840set-language-environment-hook and exit-language-environment-hook.
3841
3842The hook `exit-language-environment-hook' should be used to undo
3843customizations that you made with set-language-environment-hook. For
3844instance, if you set up a special key binding for a specific language
3845environment by set-language-environment-hook, you should set up
3846exit-language-environment-hook to restore the normal key binding.
3847\f
3848* Changes in Emacs 20.1
3849
3850** Emacs has a new facility for customization of its many user
3851options. It is called M-x customize. With this facility you can look
3852at the many user options in an organized way; they are grouped into a
3853tree structure.
3854
3855M-x customize also knows what sorts of values are legitimate for each
3856user option and ensures that you don't use invalid values.
3857
3858With M-x customize, you can set options either for the present Emacs
3859session or permanently. (Permanent settings are stored automatically
3860in your .emacs file.)
3861
3862** Scroll bars are now on the left side of the window.
3863You can change this with M-x customize-option scroll-bar-mode.
3864
3865** The mode line no longer includes the string `Emacs'.
3866This makes more space in the mode line for other information.
3867
3868** When you select a region with the mouse, it is highlighted
3869immediately afterward. At that time, if you type the DELETE key, it
3870kills the region.
3871
3872The BACKSPACE key, and the ASCII character DEL, do not do this; they
3873delete the character before point, as usual.
3874
3875** In an incremental search the whole current match is highlighted
3876on terminals which support this. (You can disable this feature
3877by setting search-highlight to nil.)
3878
3879** In the minibuffer, in some cases, you can now use M-n to
3880insert the default value into the minibuffer as text. In effect,
3881the default value (if the minibuffer routines know it) is tacked
3882onto the history "in the future". (The more normal use of the
3883history list is to use M-p to insert minibuffer input used in the
3884past.)
3885
3886** In Text mode, now only blank lines separate paragraphs.
3887This makes it possible to get the full benefit of Adaptive Fill mode
3888in Text mode, and other modes derived from it (such as Mail mode).
3889TAB in Text mode now runs the command indent-relative; this
3890makes a practical difference only when you use indented paragraphs.
3891
3892As a result, the old Indented Text mode is now identical to Text mode,
3893and is an alias for it.
3894
3895If you want spaces at the beginning of a line to start a paragraph,
3896use the new mode, Paragraph Indent Text mode.
3897
3898** Scrolling changes
3899
3900*** Scroll commands to scroll a whole screen now preserve the screen
3901position of the cursor, if scroll-preserve-screen-position is non-nil.
3902
3903In this mode, if you scroll several screens back and forth, finishing
3904on the same screen where you started, the cursor goes back to the line
3905where it started.
3906
3907*** If you set scroll-conservatively to a small number, then when you
3908move point a short distance off the screen, Emacs will scroll the
3909screen just far enough to bring point back on screen, provided that
3910does not exceed `scroll-conservatively' lines.
3911
3912*** The new variable scroll-margin says how close point can come to the
3913top or bottom of a window. It is a number of screen lines; if point
3914comes within that many lines of the top or bottom of the window, Emacs
3915recenters the window.
3916
3917** International character set support (MULE)
3918
3919Emacs now supports a wide variety of international character sets,
3920including European variants of the Latin alphabet, as well as Chinese,
3921Devanagari (Hindi and Marathi), Ethiopian, Greek, IPA, Japanese,
3922Korean, Lao, Russian, Thai, Tibetan, and Vietnamese scripts. These
3923features have been merged from the modified version of Emacs known as
3924MULE (for "MULti-lingual Enhancement to GNU Emacs")
3925
3926Users of these scripts have established many more-or-less standard
3927coding systems for storing files. Emacs uses a single multibyte
3928character encoding within Emacs buffers; it can translate from a wide
3929variety of coding systems when reading a file and can translate back
3930into any of these coding systems when saving a file.
3931
3932Keyboards, even in the countries where these character sets are used,
3933generally don't have keys for all the characters in them. So Emacs
3934supports various "input methods", typically one for each script or
3935language, to make it possible to type them.
3936
3937The Emacs internal multibyte encoding represents a non-ASCII
3938character as a sequence of bytes in the range 0200 through 0377.
3939
3940The new prefix key C-x RET is used for commands that pertain
3941to multibyte characters, coding systems, and input methods.
3942
3943You can disable multibyte character support as follows:
3944
3945 (setq-default enable-multibyte-characters nil)
3946
3947Calling the function standard-display-european turns off multibyte
3948characters, unless you specify a non-nil value for the second
3949argument, AUTO. This provides compatibility for people who are
3950already using standard-display-european to continue using unibyte
3951characters for their work until they want to change.
3952
3953*** Input methods
3954
3955An input method is a kind of character conversion which is designed
3956specifically for interactive input. In Emacs, typically each language
3957has its own input method (though sometimes several languages which use
3958the same characters can share one input method). Some languages
3959support several input methods.
3960
3961The simplest kind of input method works by mapping ASCII letters into
3962another alphabet. This is how the Greek and Russian input methods
3963work.
3964
3965A more powerful technique is composition: converting sequences of
3966characters into one letter. Many European input methods use
3967composition to produce a single non-ASCII letter from a sequence which
3968consists of a letter followed by diacritics. For example, a' is one
3969sequence of two characters that might be converted into a single
3970letter.
3971
3972The input methods for syllabic scripts typically use mapping followed
3973by conversion. The input methods for Thai and Korean work this way.
3974First, letters are mapped into symbols for particular sounds or tone
3975marks; then, sequences of these which make up a whole syllable are
3976mapped into one syllable sign--most often a "composite character".
3977
3978None of these methods works very well for Chinese and Japanese, so
3979they are handled specially. First you input a whole word using
3980phonetic spelling; then, after the word is in the buffer, Emacs
3981converts it into one or more characters using a large dictionary.
3982
3983Since there is more than one way to represent a phonetically spelled
3984word using Chinese characters, Emacs can only guess which one to use;
3985typically these input methods give you a way to say "guess again" if
3986the first guess is wrong.
3987
3988*** The command C-x RET m (toggle-enable-multibyte-characters)
3989turns multibyte character support on or off for the current buffer.
3990
3991If multibyte character support is turned off in a buffer, then each
3992byte is a single character, even codes 0200 through 0377--exactly as
3993they did in Emacs 19.34. This includes the features for support for
3994the European characters, ISO Latin-1 and ISO Latin-2.
3995
3996However, there is no need to turn off multibyte character support to
3997use ISO Latin-1 or ISO Latin-2; the Emacs multibyte character set
3998includes all the characters in these character sets, and Emacs can
3999translate automatically to and from either one.
4000
4001*** Visiting a file in unibyte mode.
4002
4003Turning off multibyte character support in the buffer after visiting a
4004file with multibyte code conversion will display the multibyte
4005sequences already in the buffer, byte by byte. This is probably not
4006what you want.
4007
4008If you want to edit a file of unibyte characters (Latin-1, for
4009example), you can do it by specifying `no-conversion' as the coding
4010system when reading the file. This coding system also turns off
4011multibyte characters in that buffer.
4012
4013If you turn off multibyte character support entirely, this turns off
4014character conversion as well.
4015
4016*** Displaying international characters on X Windows.
4017
4018A font for X typically displays just one alphabet or script.
4019Therefore, displaying the entire range of characters Emacs supports
4020requires using many fonts.
4021
4022Therefore, Emacs now supports "fontsets". Each fontset is a
4023collection of fonts, each assigned to a range of character codes.
4024
4025A fontset has a name, like a font. Individual fonts are defined by
4026the X server; fontsets are defined within Emacs itself. But once you
4027have defined a fontset, you can use it in a face or a frame just as
4028you would use a font.
4029
4030If a fontset specifies no font for a certain character, or if it
4031specifies a font that does not exist on your system, then it cannot
4032display that character. It will display an empty box instead.
4033
4034The fontset height and width are determined by the ASCII characters
4035(that is, by the font in the fontset which is used for ASCII
4036characters). If another font in the fontset has a different height,
4037or the wrong width, then characters assigned to that font are clipped,
4038and displayed within a box if highlight-wrong-size-font is non-nil.
4039
4040*** Defining fontsets.
4041
4042Emacs does not use any fontset by default. Its default font is still
4043chosen as in previous versions. You can tell Emacs to use a fontset
4044with the `-fn' option or the `Font' X resource.
4045
4046Emacs creates a standard fontset automatically according to the value
4047of standard-fontset-spec. This fontset's short name is
4048`fontset-standard'. Bold, italic, and bold-italic variants of the
4049standard fontset are created automatically.
4050
4051If you specify a default ASCII font with the `Font' resource or `-fn'
4052argument, a fontset is generated from it. This works by replacing the
4053FOUNDARY, FAMILY, ADD_STYLE, and AVERAGE_WIDTH fields of the font name
4054with `*' then using this to specify a fontset. This fontset's short
4055name is `fontset-startup'.
4056
4057Emacs checks resources of the form Fontset-N where N is 0, 1, 2...
4058The resource value should have this form:
4059 FONTSET-NAME, [CHARSET-NAME:FONT-NAME]...
4060FONTSET-NAME should have the form of a standard X font name, except:
4061 * most fields should be just the wild card "*".
4062 * the CHARSET_REGISTRY field should be "fontset"
4063 * the CHARSET_ENCODING field can be any nickname of the fontset.
4064The construct CHARSET-NAME:FONT-NAME can be repeated any number
4065of times; each time specifies the font for one character set.
4066CHARSET-NAME should be the name name of a character set, and
4067FONT-NAME should specify an actual font to use for that character set.
4068
4069Each of these fontsets has an alias which is made from the
4070last two font name fields, CHARSET_REGISTRY and CHARSET_ENCODING.
4071You can refer to the fontset by that alias or by its full name.
4072
4073For any character sets that you don't mention, Emacs tries to choose a
4074font by substituting into FONTSET-NAME. For instance, with the
4075following resource,
4076 Emacs*Fontset-0: -*-fixed-medium-r-normal-*-24-*-*-*-*-*-fontset-24
4077the font for ASCII is generated as below:
4078 -*-fixed-medium-r-normal-*-24-*-ISO8859-1
4079Here is the substitution rule:
4080 Change CHARSET_REGISTRY and CHARSET_ENCODING to that of the charset
4081 defined in the variable x-charset-registries. For instance, ASCII has
4082 the entry (ascii . "ISO8859-1") in this variable. Then, reduce
4083 sequences of wild cards -*-...-*- with a single wildcard -*-.
4084 (This is to prevent use of auto-scaled fonts.)
4085
4086The function which processes the fontset resource value to create the
4087fontset is called create-fontset-from-fontset-spec. You can also call
4088that function explicitly to create a fontset.
4089
4090With the X resource Emacs.Font, you can specify a fontset name just
4091like an actual font name. But be careful not to specify a fontset
4092name in a wildcard resource like Emacs*Font--that tries to specify the
4093fontset for other purposes including menus, and they cannot handle
4094fontsets.
4095
4096*** The command M-x set-language-environment sets certain global Emacs
4097defaults for a particular choice of language.
4098
4099Selecting a language environment typically specifies a default input
4100method and which coding systems to recognize automatically when
4101visiting files. However, it does not try to reread files you have
4102already visited; the text in those buffers is not affected. The
4103language environment may also specify a default choice of coding
4104system for new files that you create.
4105
4106It makes no difference which buffer is current when you use
4107set-language-environment, because these defaults apply globally to the
4108whole Emacs session.
4109
4110For example, M-x set-language-environment RET Latin-1 RET
4111chooses the Latin-1 character set. In the .emacs file, you can do this
4112with (set-language-environment "Latin-1").
4113
4114*** The command C-x RET f (set-buffer-file-coding-system)
4115specifies the file coding system for the current buffer. This
4116specifies what sort of character code translation to do when saving
4117the file. As an argument, you must specify the name of one of the
4118coding systems that Emacs supports.
4119
4120*** The command C-x RET c (universal-coding-system-argument)
4121lets you specify a coding system when you read or write a file.
4122This command uses the minibuffer to read a coding system name.
4123After you exit the minibuffer, the specified coding system
4124is used for *the immediately following command*.
4125
4126So if the immediately following command is a command to read or
4127write a file, it uses the specified coding system for that file.
4128
4129If the immediately following command does not use the coding system,
4130then C-x RET c ultimately has no effect.
4131
4132For example, C-x RET c iso-8859-1 RET C-x C-f temp RET
4133visits the file `temp' treating it as ISO Latin-1.
4134
4135*** You can specify the coding system for a file using the -*-
4136construct. Include `coding: CODINGSYSTEM;' inside the -*-...-*-
4137to specify use of coding system CODINGSYSTEM. You can also
4138specify the coding system in a local variable list at the end
4139of the file.
4140
4141*** The command C-x RET t (set-terminal-coding-system) specifies
4142the coding system for terminal output. If you specify a character
4143code for terminal output, all characters output to the terminal are
4144translated into that character code.
4145
4146This feature is useful for certain character-only terminals built in
4147various countries to support the languages of those countries.
4148
4149By default, output to the terminal is not translated at all.
4150
4151*** The command C-x RET k (set-keyboard-coding-system) specifies
4152the coding system for keyboard input.
4153
4154Character code translation of keyboard input is useful for terminals
4155with keys that send non-ASCII graphic characters--for example,
4156some terminals designed for ISO Latin-1 or subsets of it.
4157
4158By default, keyboard input is not translated at all.
4159
4160Character code translation of keyboard input is similar to using an
4161input method, in that both define sequences of keyboard input that
4162translate into single characters. However, input methods are designed
4163to be convenient for interactive use, while the code translations are
4164designed to work with terminals.
4165
4166*** The command C-x RET p (set-buffer-process-coding-system)
4167specifies the coding system for input and output to a subprocess.
4168This command applies to the current buffer; normally, each subprocess
4169has its own buffer, and thus you can use this command to specify
4170translation to and from a particular subprocess by giving the command
4171in the corresponding buffer.
4172
4173By default, process input and output are not translated at all.
4174
4175*** The variable file-name-coding-system specifies the coding system
4176to use for encoding file names before operating on them.
4177It is also used for decoding file names obtained from the system.
4178
4179*** The command C-\ (toggle-input-method) activates or deactivates
4180an input method. If no input method has been selected before, the
4181command prompts for you to specify the language and input method you
4182want to use.
4183
4184C-u C-\ (select-input-method) lets you switch to a different input
4185method. C-h C-\ (or C-h I) describes the current input method.
4186
4187*** Some input methods remap the keyboard to emulate various keyboard
4188layouts commonly used for particular scripts. How to do this
4189remapping properly depends on your actual keyboard layout. To specify
4190which layout your keyboard has, use M-x quail-set-keyboard-layout.
4191
4192*** The command C-h C (describe-coding-system) displays
4193the coding systems currently selected for various purposes, plus
4194related information.
4195
4196*** The command C-h h (view-hello-file) displays a file called
4197HELLO, which has examples of text in many languages, using various
4198scripts.
4199
4200*** The command C-h L (describe-language-support) displays
4201information about the support for a particular language.
4202You specify the language as an argument.
4203
4204*** The mode line now contains a letter or character that identifies
4205the coding system used in the visited file. It normally follows the
4206first dash.
4207
4208A dash indicates the default state of affairs: no code conversion
4209(except CRLF => newline if appropriate). `=' means no conversion
4210whatsoever. The ISO 8859 coding systems are represented by digits
42111 through 9. Other coding systems are represented by letters:
4212
4213 A alternativnyj (Russian)
4214 B big5 (Chinese)
4215 C cn-gb-2312 (Chinese)
4216 C iso-2022-cn (Chinese)
4217 D in-is13194-devanagari (Indian languages)
4218 E euc-japan (Japanese)
4219 I iso-2022-cjk or iso-2022-ss2 (Chinese, Japanese, Korean)
4220 J junet (iso-2022-7) or old-jis (iso-2022-jp-1978-irv) (Japanese)
4221 K euc-korea (Korean)
4222 R koi8 (Russian)
4223 Q tibetan
4224 S shift_jis (Japanese)
4225 T lao
4226 T tis620 (Thai)
4227 V viscii or vscii (Vietnamese)
4228 i iso-2022-lock (Chinese, Japanese, Korean)
4229 k iso-2022-kr (Korean)
4230 v viqr (Vietnamese)
4231 z hz (Chinese)
4232
4233When you are using a character-only terminal (not a window system),
4234two additional characters appear in between the dash and the file
4235coding system. These two characters describe the coding system for
4236keyboard input, and the coding system for terminal output.
4237
4238*** The new variable rmail-file-coding-system specifies the code
4239conversion to use for RMAIL files. The default value is nil.
4240
4241When you read mail with Rmail, each message is decoded automatically
4242into Emacs' internal format. This has nothing to do with
4243rmail-file-coding-system. That variable controls reading and writing
4244Rmail files themselves.
4245
4246*** The new variable sendmail-coding-system specifies the code
4247conversion for outgoing mail. The default value is nil.
4248
4249Actually, there are three different ways of specifying the coding system
4250for sending mail:
4251
4252- If you use C-x RET f in the mail buffer, that takes priority.
4253- Otherwise, if you set sendmail-coding-system non-nil, that specifies it.
4254- Otherwise, the default coding system for new files is used,
4255 if that is non-nil. That comes from your language environment.
4256- Otherwise, Latin-1 is used.
4257
4258*** The command C-h t (help-with-tutorial) accepts a prefix argument
4259to specify the language for the tutorial file. Currently, English,
4260Japanese, Korean and Thai are supported. We welcome additional
4261translations.
4262
4263** An easy new way to visit a file with no code or format conversion
4264of any kind: Use M-x find-file-literally. There is also a command
4265insert-file-literally which inserts a file into the current buffer
4266without any conversion.
4267
4268** C-q's handling of octal character codes is changed.
4269You can now specify any number of octal digits.
4270RET terminates the digits and is discarded;
4271any other non-digit terminates the digits and is then used as input.
4272
4273** There are new commands for looking up Info documentation for
4274functions, variables and file names used in your programs.
4275
4276Type M-x info-lookup-symbol to look up a symbol in the buffer at point.
4277Type M-x info-lookup-file to look up a file in the buffer at point.
4278
4279Precisely which Info files are used to look it up depends on the major
4280mode. For example, in C mode, the GNU libc manual is used.
4281
4282** M-TAB in most programming language modes now runs the command
4283complete-symbol. This command performs completion on the symbol name
4284in the buffer before point.
4285
4286With a numeric argument, it performs completion based on the set of
4287symbols documented in the Info files for the programming language that
4288you are using.
4289
4290With no argument, it does completion based on the current tags tables,
4291just like the old binding of M-TAB (complete-tag).
4292
4293** File locking works with NFS now.
4294
4295The lock file for FILENAME is now a symbolic link named .#FILENAME,
4296in the same directory as FILENAME.
4297
4298This means that collision detection between two different machines now
4299works reasonably well; it also means that no file server or directory
4300can become a bottleneck.
4301
4302The new method does have drawbacks. It means that collision detection
4303does not operate when you edit a file in a directory where you cannot
4304create new files. Collision detection also doesn't operate when the
4305file server does not support symbolic links. But these conditions are
4306rare, and the ability to have collision detection while using NFS is
4307so useful that the change is worth while.
4308
4309When Emacs or a system crashes, this may leave behind lock files which
4310are stale. So you may occasionally get warnings about spurious
4311collisions. When you determine that the collision is spurious, just
4312tell Emacs to go ahead anyway.
4313
4314** If you wish to use Show Paren mode to display matching parentheses,
4315it is no longer sufficient to load paren.el. Instead you must call
4316show-paren-mode.
4317
4318** If you wish to use Delete Selection mode to replace a highlighted
4319selection when you insert new text, it is no longer sufficient to load
4320delsel.el. Instead you must call the function delete-selection-mode.
4321
4322** If you wish to use Partial Completion mode to complete partial words
4323within symbols or filenames, it is no longer sufficient to load
4324complete.el. Instead you must call the function partial-completion-mode.
4325
4326** If you wish to use uniquify to rename buffers for you,
4327it is no longer sufficient to load uniquify.el. You must also
4328set uniquify-buffer-name-style to one of the non-nil legitimate values.
4329
4330** Changes in View mode.
4331
4332*** Several new commands are available in View mode.
4333Do H in view mode for a list of commands.
4334
4335*** There are two new commands for entering View mode:
4336view-file-other-frame and view-buffer-other-frame.
4337
4338*** Exiting View mode does a better job of restoring windows to their
4339previous state.
4340
4341*** New customization variable view-scroll-auto-exit. If non-nil,
4342scrolling past end of buffer makes view mode exit.
4343
4344*** New customization variable view-exits-all-viewing-windows. If
4345non-nil, view-mode will at exit restore all windows viewing buffer,
4346not just the selected window.
4347
4348*** New customization variable view-read-only. If non-nil, visiting a
4349read-only file automatically enters View mode, and toggle-read-only
4350turns View mode on or off.
4351
4352*** New customization variable view-remove-frame-by-deleting controls
4353how to remove a not needed frame at view mode exit. If non-nil,
4354delete the frame, if nil make an icon of it.
4355
4356** C-x v l, the command to print a file's version control log,
4357now positions point at the entry for the file's current branch version.
4358
4359** C-x v =, the command to compare a file with the last checked-in version,
4360has a new feature. If the file is currently not locked, so that it is
4361presumably identical to the last checked-in version, the command now asks
4362which version to compare with.
4363
4364** When using hideshow.el, incremental search can temporarily show hidden
79214ddf 4365blocks if a match is inside the block.
a933dad1
DL
4366
4367The block is hidden again if the search is continued and the next match
4368is outside the block. By customizing the variable
4369isearch-hide-immediately you can choose to hide all the temporarily
4370shown blocks only when exiting from incremental search.
4371
4372By customizing the variable hs-isearch-open you can choose what kind
4373of blocks to temporarily show during isearch: comment blocks, code
4374blocks, all of them or none.
4375
4376** The new command C-x 4 0 (kill-buffer-and-window) kills the
4377current buffer and deletes the selected window. It asks for
4378confirmation first.
4379
4380** C-x C-w, which saves the buffer into a specified file name,
4381now changes the major mode according to that file name.
4382However, the mode will not be changed if
4383(1) a local variables list or the `-*-' line specifies a major mode, or
4384(2) the current major mode is a "special" mode,
4385 not suitable for ordinary files, or
4386(3) the new file name does not particularly specify any mode.
4387
4388This applies to M-x set-visited-file-name as well.
4389
4390However, if you set change-major-mode-with-file-name to nil, then
4391these commands do not change the major mode.
4392
4393** M-x occur changes.
4394
4395*** If the argument to M-x occur contains upper case letters,
4396it performs a case-sensitive search.
4397
4398*** In the *Occur* buffer made by M-x occur,
4399if you type g or M-x revert-buffer, this repeats the search
4400using the same regular expression and the same buffer as before.
4401
4402** In Transient Mark mode, the region in any one buffer is highlighted
4403in just one window at a time. At first, it is highlighted in the
4404window where you set the mark. The buffer's highlighting remains in
4405that window unless you select to another window which shows the same
4406buffer--then the highlighting moves to that window.
4407
4408** The feature to suggest key bindings when you use M-x now operates
4409after the command finishes. The message suggesting key bindings
4410appears temporarily in the echo area. The previous echo area contents
4411come back after a few seconds, in case they contain useful information.
4412
4413** Each frame now independently records the order for recently
4414selected buffers, so that the default for C-x b is now based on the
4415buffers recently selected in the selected frame.
4416
4417** Outline mode changes.
4418
4419*** Outline mode now uses overlays (this is the former noutline.el).
4420
4421*** Incremental searches skip over invisible text in Outline mode.
4422
4423** When a minibuffer window is active but not the selected window, if
4424you try to use the minibuffer, you used to get a nested minibuffer.
4425Now, this not only gives an error, it also cancels the minibuffer that
4426was already active.
4427
4428The motive for this change is so that beginning users do not
4429unknowingly move away from minibuffers, leaving them active, and then
4430get confused by it.
4431
4432If you want to be able to have recursive minibuffers, you must
4433set enable-recursive-minibuffers to non-nil.
4434
4435** Changes in dynamic abbrevs.
4436
4437*** Expanding dynamic abbrevs with M-/ is now smarter about case
4438conversion. If the expansion has mixed case not counting the first
4439character, and the abbreviation matches the beginning of the expansion
4440including case, then the expansion is copied verbatim.
4441
4442The expansion is also copied verbatim if the abbreviation itself has
4443mixed case. And using SPC M-/ to copy an additional word always
4444copies it verbatim except when the previous copied word is all caps.
4445
4446*** The values of `dabbrev-case-replace' and `dabbrev-case-fold-search'
4447are no longer Lisp expressions. They have simply three possible
4448values.
4449
4450`dabbrev-case-replace' has these three values: nil (don't preserve
4451case), t (do), or `case-replace' (do like M-x query-replace).
4452`dabbrev-case-fold-search' has these three values: nil (don't ignore
4453case), t (do), or `case-fold-search' (do like search).
4454
4455** Minibuffer history lists are truncated automatically now to a
4456certain length. The variable history-length specifies how long they
4457can be. The default value is 30.
4458
4459** Changes in Mail mode.
4460
4461*** The key C-x m no longer runs the `mail' command directly.
4462Instead, it runs the command `compose-mail', which invokes the mail
4463composition mechanism you have selected with the variable
4464`mail-user-agent'. The default choice of user agent is
4465`sendmail-user-agent', which gives behavior compatible with the old
4466behavior.
4467
4468C-x 4 m now runs compose-mail-other-window, and C-x 5 m runs
4469compose-mail-other-frame.
4470
4471*** While composing a reply to a mail message, from Rmail, you can use
4472the command C-c C-r to cite just the region from the message you are
4473replying to. This copies the text which is the selected region in the
4474buffer that shows the original message.
4475
4476*** The command C-c C-i inserts a file at the end of the message,
4477with separator lines around the contents.
4478
4479*** The command M-x expand-mail-aliases expands all mail aliases
4480in suitable mail headers. Emacs automatically extracts mail alias
4481definitions from your mail alias file (e.g., ~/.mailrc). You do not
4482need to expand mail aliases yourself before sending mail.
4483
4484*** New features in the mail-complete command.
4485
4486**** The mail-complete command now inserts the user's full name,
4487for local users or if that is known. The variable mail-complete-style
4488controls the style to use, and whether to do this at all.
4489Its values are like those of mail-from-style.
4490
4491**** The variable mail-passwd-command lets you specify a shell command
4492to run to fetch a set of password-entries that add to the ones in
4493/etc/passwd.
4494
4495**** The variable mail-passwd-file now specifies a list of files to read
4496to get the list of user ids. By default, one file is used:
4497/etc/passwd.
4498
4499** You can "quote" a file name to inhibit special significance of
4500special syntax, by adding `/:' to the beginning. Thus, if you have a
4501directory named `/foo:', you can prevent it from being treated as a
4502reference to a remote host named `foo' by writing it as `/:/foo:'.
4503
4504Emacs uses this new construct automatically when necessary, such as
4505when you start it with a working directory whose name might otherwise
4506be taken to be magic.
4507
4508** There is a new command M-x grep-find which uses find to select
4509files to search through, and grep to scan them. The output is
4510available in a Compile mode buffer, as with M-x grep.
4511
4512M-x grep now uses the -e option if the grep program supports that.
4513(-e prevents problems if the search pattern starts with a dash.)
4514
4515** In Dired, the & command now flags for deletion the files whose names
4516suggest they are probably not needed in the long run.
4517
4518In Dired, * is now a prefix key for mark-related commands.
4519
4520new key dired.el binding old key
4521------- ---------------- -------
4522 * c dired-change-marks c
4523 * m dired-mark m
4524 * * dired-mark-executables * (binding deleted)
4525 * / dired-mark-directories / (binding deleted)
4526 * @ dired-mark-symlinks @ (binding deleted)
4527 * u dired-unmark u
4528 * DEL dired-unmark-backward DEL
4529 * ? dired-unmark-all-files M-C-?
4530 * ! dired-unmark-all-marks
4531 * % dired-mark-files-regexp % m
4532 * C-n dired-next-marked-file M-}
4533 * C-p dired-prev-marked-file M-{
4534
4535** Rmail changes.
4536
4537*** When Rmail cannot convert your incoming mail into Babyl format, it
4538saves the new mail in the file RMAILOSE.n, where n is an integer
4539chosen to make a unique name. This way, Rmail will not keep crashing
4540each time you run it.
4541
4542*** In Rmail, the variable rmail-summary-line-count-flag now controls
4543whether to include the line count in the summary. Non-nil means yes.
4544
4545*** In Rmail summary buffers, d and C-d (the commands to delete
4546messages) now take repeat counts as arguments. A negative argument
4547means to move in the opposite direction.
4548
4549*** In Rmail, the t command now takes an optional argument which lets
4550you specify whether to show the message headers in full or pruned.
4551
4552*** In Rmail, the new command w (rmail-output-body-to-file) writes
4553just the body of the current message into a file, without the headers.
4554It takes the file name from the message subject, by default, but you
4555can edit that file name in the minibuffer before it is actually used
4556for output.
4557
4558** Gnus changes.
4559
4560*** nntp.el has been totally rewritten in an asynchronous fashion.
4561
79214ddf
FP
4562*** Article prefetching functionality has been moved up into
4563Gnus.
a933dad1 4564
79214ddf 4565*** Scoring can now be performed with logical operators like
a933dad1
DL
4566`and', `or', `not', and parent redirection.
4567
4568*** Article washing status can be displayed in the
4569article mode line.
4570
4571*** gnus.el has been split into many smaller files.
4572
4573*** Suppression of duplicate articles based on Message-ID.
4574
4575(setq gnus-suppress-duplicates t)
4576
4577*** New variables for specifying what score and adapt files
4578are to be considered home score and adapt files. See
4579`gnus-home-score-file' and `gnus-home-adapt-files'.
4580
4581*** Groups can inherit group parameters from parent topics.
4582
4583*** Article editing has been revamped and is now usable.
4584
4585*** Signatures can be recognized in more intelligent fashions.
4586See `gnus-signature-separator' and `gnus-signature-limit'.
4587
4588*** Summary pick mode has been made to look more nn-like.
4589Line numbers are displayed and the `.' command can be
4590used to pick articles.
4591
4592*** Commands for moving the .newsrc.eld from one server to
4593another have been added.
4594
4595 `M-x gnus-change-server'
4596
4597*** A way to specify that "uninteresting" fields be suppressed when
4598generating lines in buffers.
4599
4600*** Several commands in the group buffer can be undone with
4601`M-C-_'.
4602
4603*** Scoring can be done on words using the new score type `w'.
4604
4605*** Adaptive scoring can be done on a Subject word-by-word basis:
4606
4607 (setq gnus-use-adaptive-scoring '(word))
4608
4609*** Scores can be decayed.
79214ddf 4610
a933dad1
DL
4611 (setq gnus-decay-scores t)
4612
4613*** Scoring can be performed using a regexp on the Date header. The
4614Date is normalized to compact ISO 8601 format first.
4615
4616*** A new command has been added to remove all data on articles from
4617the native server.
4618
4619 `M-x gnus-group-clear-data-on-native-groups'
4620
4621*** A new command for reading collections of documents
4622(nndoc with nnvirtual on top) has been added -- `M-C-d'.
4623
4624*** Process mark sets can be pushed and popped.
4625
4626*** A new mail-to-news backend makes it possible to post
4627even when the NNTP server doesn't allow posting.
4628
4629*** A new backend for reading searches from Web search engines
4630(DejaNews, Alta Vista, InReference) has been added.
4631
4632 Use the `G w' command in the group buffer to create such
4633 a group.
4634
4635*** Groups inside topics can now be sorted using the standard
4636sorting functions, and each topic can be sorted independently.
4637
4638 See the commands under the `T S' submap.
4639
4640*** Subsets of the groups can be sorted independently.
4641
4642 See the commands under the `G P' submap.
4643
4644*** Cached articles can be pulled into the groups.
79214ddf 4645
a933dad1
DL
4646 Use the `Y c' command.
4647
4648*** Score files are now applied in a more reliable order.
4649
4650*** Reports on where mail messages end up can be generated.
4651
4652 `M-x nnmail-split-history'
4653
4654*** More hooks and functions have been added to remove junk
4655from incoming mail before saving the mail.
79214ddf 4656
a933dad1
DL
4657 See `nnmail-prepare-incoming-header-hook'.
4658
4659*** The nnml mail backend now understands compressed article files.
4660
4661*** To enable Gnus to read/post multi-lingual articles, you must execute
4662the following code, for instance, in your .emacs.
4663
4664 (add-hook 'gnus-startup-hook 'gnus-mule-initialize)
4665
4666Then, when you start Gnus, it will decode non-ASCII text automatically
4667and show appropriate characters. (Note: if you are using gnus-mime
4668from the SEMI package, formerly known as TM, you should NOT add this
4669hook to gnus-startup-hook; gnus-mime has its own method of handling
4670this issue.)
4671
4672Since it is impossible to distinguish all coding systems
4673automatically, you may need to specify a choice of coding system for a
4674particular news group. This can be done by:
4675
4676 (gnus-mule-add-group NEWSGROUP 'CODING-SYSTEM)
4677
4678Here NEWSGROUP should be a string which names a newsgroup or a tree
4679of newsgroups. If NEWSGROUP is "XXX.YYY", all news groups under
4680"XXX.YYY" (including "XXX.YYY.ZZZ") will use the specified coding
4681system. CODING-SYSTEM specifies which coding system to use (for both
4682for reading and posting).
4683
4684CODING-SYSTEM can also be a cons cell of the form
4685 (READ-CODING-SYSTEM . POST-CODING-SYSTEM)
4686Then READ-CODING-SYSTEM is used when you read messages from the
4687newsgroups, while POST-CODING-SYSTEM is used when you post messages
4688there.
4689
4690Emacs knows the right coding systems for certain newsgroups by
4691default. Here are some of these default settings:
4692
4693 (gnus-mule-add-group "fj" 'iso-2022-7)
4694 (gnus-mule-add-group "alt.chinese.text" 'hz-gb-2312)
4695 (gnus-mule-add-group "alt.hk" 'hz-gb-2312)
4696 (gnus-mule-add-group "alt.chinese.text.big5" 'cn-big5)
4697 (gnus-mule-add-group "soc.culture.vietnamese" '(nil . viqr))
4698
4699When you reply by mail to an article, these settings are ignored;
4700the mail is encoded according to sendmail-coding-system, as usual.
4701
4702** CC mode changes.
4703
4704*** If you edit primarily one style of C (or C++, Objective-C, Java)
4705code, you may want to make the CC Mode style variables have global
4706values so that you can set them directly in your .emacs file. To do
4707this, set c-style-variables-are-local-p to nil in your .emacs file.
4708Note that this only takes effect if you do it *before* cc-mode.el is
4709loaded.
4710
4711If you typically edit more than one style of C (or C++, Objective-C,
79214ddf 4712Java) code in a single Emacs session, you may want to make the CC Mode
a933dad1 4713style variables have buffer local values. By default, all buffers
79214ddf
FP
4714share the same style variable settings; to make them buffer local, set
4715c-style-variables-are-local-p to t in your .emacs file. Note that you
a933dad1
DL
4716must do this *before* CC Mode is loaded.
4717
4718*** The new variable c-indentation-style holds the C style name
4719of the current buffer.
4720
4721*** The variable c-block-comments-indent-p has been deleted, because
4722it is no longer necessary. C mode now handles all the supported styles
4723of block comments, with no need to say which one you will use.
4724
4725*** There is a new indentation style "python", which specifies the C
4726style that the Python developers like.
4727
4728*** There is a new c-cleanup-list option: brace-elseif-brace.
4729This says to put ...} else if (...) {... on one line,
4730just as brace-else-brace says to put ...} else {... on one line.
4731
4732** VC Changes [new]
4733
4734** In vc-retrieve-snapshot (C-x v r), if you don't specify a snapshot
4735name, it retrieves the *latest* versions of all files in the current
4736directory and its subdirectories (aside from files already locked).
4737
4738This feature is useful if your RCS directory is a link to a common
4739master directory, and you want to pick up changes made by other
4740developers.
4741
4742You can do the same thing for an individual file by typing C-u C-x C-q
4743RET in a buffer visiting that file.
4744
4745*** VC can now handle files under CVS that are being "watched" by
4746other developers. Such files are made read-only by CVS. To get a
4747writable copy, type C-x C-q in a buffer visiting such a file. VC then
4748calls "cvs edit", which notifies the other developers of it.
4749
4750*** vc-version-diff (C-u C-x v =) now suggests reasonable defaults for
4751version numbers, based on the current state of the file.
4752
4753** Calendar changes.
4754
4755A new function, list-holidays, allows you list holidays or subclasses
4756of holidays for ranges of years. Related menu items allow you do this
4757for the year of the selected date, or the following/previous years.
4758
4759** ps-print changes
4760
79214ddf 4761There are some new user variables for customizing the page layout.
a933dad1
DL
4762
4763*** Paper size, paper orientation, columns
4764
4765The variable `ps-paper-type' determines the size of paper ps-print
4766formats for; it should contain one of the symbols:
4767`a4' `a3' `letter' `legal' `letter-small' `tabloid'
4768`ledger' `statement' `executive' `a4small' `b4' `b5'
4769It defaults to `letter'.
4770If you need other sizes, see the variable `ps-page-dimensions-database'.
4771
4772The variable `ps-landscape-mode' determines the orientation
79214ddf 4773of the printing on the page. nil, the default, means "portrait" mode,
a933dad1
DL
4774non-nil means "landscape" mode.
4775
4776The variable `ps-number-of-columns' must be a positive integer.
4777It determines the number of columns both in landscape and portrait mode.
79214ddf 4778It defaults to 1.
a933dad1
DL
4779
4780*** Horizontal layout
4781
4782The horizontal layout is determined by the variables
4783`ps-left-margin', `ps-inter-column', and `ps-right-margin'.
4784All are measured in points.
4785
4786*** Vertical layout
4787
4788The vertical layout is determined by the variables
4789`ps-bottom-margin', `ps-top-margin', and `ps-header-offset'.
4790All are measured in points.
4791
4792*** Headers
4793
4794If the variable `ps-print-header' is nil, no header is printed. Then
4795`ps-header-offset' is not relevant and `ps-top-margin' represents the
4796margin above the text.
4797
79214ddf 4798If the variable `ps-print-header-frame' is non-nil, a gaudy
a933dad1
DL
4799framing box is printed around the header.
4800
4801The contents of the header are determined by `ps-header-lines',
4802`ps-show-n-of-n', `ps-left-header' and `ps-right-header'.
4803
79214ddf
FP
4804The height of the header is determined by `ps-header-line-pad',
4805`ps-header-font-family', `ps-header-title-font-size' and
a933dad1
DL
4806`ps-header-font-size'.
4807
4808*** Font managing
4809
4810The variable `ps-font-family' determines which font family is to be
4811used for ordinary text. Its value must be a key symbol in the alist
4812`ps-font-info-database'. You can add other font families by adding
4813elements to this alist.
4814
79214ddf 4815The variable `ps-font-size' determines the size of the font
a933dad1
DL
4816for ordinary text. It defaults to 8.5 points.
4817
4818** hideshow changes.
4819
4820*** now supports hiding of blocks of single line comments (like // for
79214ddf 4821C++, ; for lisp).
a933dad1
DL
4822
4823*** Support for java-mode added.
4824
4825*** When doing `hs-hide-all' it is now possible to also hide the comments
4826in the file if `hs-hide-comments-when-hiding-all' is set.
4827
4828*** The new function `hs-hide-initial-comment' hides the the comments at
4829the beginning of the files. Finally those huge RCS logs don't stay in your
4830way! This is run by default when entering the `hs-minor-mode'.
4831
4832*** Now uses overlays instead of `selective-display', so is more
4833robust and a lot faster.
4834
79214ddf 4835*** A block beginning can span multiple lines.
a933dad1
DL
4836
4837*** The new variable `hs-show-hidden-short-form' if t, directs hideshow
4838to show only the beginning of a block when it is hidden. See the
4839documentation for more details.
4840
4841** Changes in Enriched mode.
4842
4843*** When you visit a file in enriched-mode, Emacs will make sure it is
4844filled to the current fill-column. This behavior is now independent
4845of the size of the window. When you save the file, the fill-column in
4846use is stored as well, so that the whole buffer need not be refilled
4847the next time unless the fill-column is different.
4848
4849*** use-hard-newlines is now a minor mode. When it is enabled, Emacs
4850distinguishes between hard and soft newlines, and treats hard newlines
4851as paragraph boundaries. Otherwise all newlines inserted are marked
4852as soft, and paragraph boundaries are determined solely from the text.
4853
4854** Font Lock mode
4855
4856*** Custom support
4857
4858The variables font-lock-face-attributes, font-lock-display-type and
4859font-lock-background-mode are now obsolete; the recommended way to specify the
4860faces to use for Font Lock mode is with M-x customize-group on the new custom
4861group font-lock-highlighting-faces. If you set font-lock-face-attributes in
4862your ~/.emacs file, Font Lock mode will respect its value. However, you should
4863consider converting from setting that variable to using M-x customize.
4864
4865You can still use X resources to specify Font Lock face appearances.
4866
4867*** Maximum decoration
4868
4869Fontification now uses the maximum level of decoration supported by
4870default. Previously, fontification used a mode-specific default level
4871of decoration, which is typically the minimum level of decoration
4872supported. You can set font-lock-maximum-decoration to nil
4873to get the old behavior.
4874
4875*** New support
4876
4877Support is now provided for Java, Objective-C, AWK and SIMULA modes.
4878
4879Note that Font Lock mode can be turned on without knowing exactly what modes
4880support Font Lock mode, via the command global-font-lock-mode.
4881
4882*** Configurable support
4883
4884Support for C, C++, Objective-C and Java can be more easily configured for
4885additional types and classes via the new variables c-font-lock-extra-types,
4886c++-font-lock-extra-types, objc-font-lock-extra-types and, you guessed it,
4887java-font-lock-extra-types. These value of each of these variables should be a
4888list of regexps matching the extra type names. For example, the default value
4889of c-font-lock-extra-types is ("\\sw+_t") which means fontification follows the
4890convention that C type names end in _t. This results in slower fontification.
4891
4892Of course, you can change the variables that specify fontification in whatever
4893way you wish, typically by adding regexps. However, these new variables make
4894it easier to make specific and common changes for the fontification of types.
4895
4896*** Adding highlighting patterns to existing support
4897
4898You can use the new function font-lock-add-keywords to add your own
4899highlighting patterns, such as for project-local or user-specific constructs,
4900for any mode.
4901
4902For example, to highlight `FIXME:' words in C comments, put:
4903
4904 (font-lock-add-keywords 'c-mode '(("\\<FIXME:" 0 font-lock-warning-face t)))
4905
4906in your ~/.emacs.
4907
4908*** New faces
4909
4910Font Lock now defines two new faces, font-lock-builtin-face and
4911font-lock-warning-face. These are intended to highlight builtin keywords,
4912distinct from a language's normal keywords, and objects that should be brought
4913to user attention, respectively. Various modes now use these new faces.
4914
4915*** Changes to fast-lock support mode
4916
4917The fast-lock package, one of the two Font Lock support modes, can now process
4918cache files silently. You can use the new variable fast-lock-verbose, in the
4919same way as font-lock-verbose, to control this feature.
4920
4921*** Changes to lazy-lock support mode
4922
4923The lazy-lock package, one of the two Font Lock support modes, can now fontify
4924according to the true syntactic context relative to other lines. You can use
4925the new variable lazy-lock-defer-contextually to control this feature. If
4926non-nil, changes to the buffer will cause subsequent lines in the buffer to be
4927refontified after lazy-lock-defer-time seconds of idle time. If nil, then only
4928the modified lines will be refontified; this is the same as the previous Lazy
4929Lock mode behaviour and the behaviour of Font Lock mode.
4930
4931This feature is useful in modes where strings or comments can span lines.
4932For example, if a string or comment terminating character is deleted, then if
4933this feature is enabled subsequent lines in the buffer will be correctly
4934refontified to reflect their new syntactic context. Previously, only the line
4935containing the deleted character would be refontified and you would have to use
4936the command M-g M-g (font-lock-fontify-block) to refontify some lines.
4937
4938As a consequence of this new feature, two other variables have changed:
4939
4940Variable `lazy-lock-defer-driven' is renamed `lazy-lock-defer-on-scrolling'.
4941Variable `lazy-lock-defer-time' can now only be a time, i.e., a number.
4942Buffer modes for which on-the-fly deferral applies can be specified via the
4943new variable `lazy-lock-defer-on-the-fly'.
4944
4945If you set these variables in your ~/.emacs, then you may have to change those
4946settings.
4947
4948** Ada mode changes.
4949
4950*** There is now better support for using find-file.el with Ada mode.
4951If you switch between spec and body, the cursor stays in the same
4952procedure (modulo overloading). If a spec has no body file yet, but
4953you try to switch to its body file, Ada mode now generates procedure
4954stubs.
4955
4956*** There are two new commands:
4957 - `ada-make-local' : invokes gnatmake on the current buffer
4958 - `ada-check-syntax' : check syntax of current buffer.
4959
4960The user options `ada-compiler-make', `ada-make-options',
4961`ada-language-version', `ada-compiler-syntax-check', and
79214ddf 4962`ada-compile-options' are used within these commands.
a933dad1
DL
4963
4964*** Ada mode can now work with Outline minor mode. The outline level
4965is calculated from the indenting, not from syntactic constructs.
4966Outlining does not work if your code is not correctly indented.
4967
4968*** The new function `ada-gnat-style' converts the buffer to the style of
4969formatting used in GNAT. It places two blanks after a comment start,
4970places one blank between a word end and an opening '(', and puts one
4971space between a comma and the beginning of a word.
4972
4973** Scheme mode changes.
4974
4975*** Scheme mode indentation now uses many of the facilities of Lisp
4976mode; therefore, the variables to customize it are the variables used
4977for Lisp mode which have names starting with `lisp-'. The variables
4978with names starting with `scheme-' which used to do this no longer
4979have any effect.
4980
4981If you want to use different indentation for Scheme and Lisp, this is
4982still possible, but now you must do it by adding a hook to
4983scheme-mode-hook, which could work by setting the `lisp-' indentation
4984variables as buffer-local variables.
4985
4986*** DSSSL mode is a variant of Scheme mode, for editing DSSSL scripts.
4987Use M-x dsssl-mode.
4988
4989** The emacsclient program now accepts an option --no-wait which tells
4990it to return immediately without waiting for you to "finish" the
4991buffer in Emacs.
4992
4993** M-x eldoc-mode enables a minor mode in which the echo area
4994constantly shows the parameter list for function being called at point
4995(in Emacs Lisp and Lisp Interaction modes only).
4996
4997** C-x n d now runs the new command narrow-to-defun,
4998which narrows the accessible parts of the buffer to just
4999the current defun.
5000
5001** Emacs now handles the `--' argument in the standard way; all
5002following arguments are treated as ordinary file names.
5003
5004** On MSDOS and Windows, the bookmark file is now called _emacs.bmk,
5005and the saved desktop file is now called _emacs.desktop (truncated if
5006necessary).
5007
5008** When you kill a buffer that visits a file,
5009if there are any registers that save positions in the file,
5010these register values no longer become completely useless.
5011If you try to go to such a register with C-x j, then you are
5012asked whether to visit the file again. If you say yes,
5013it visits the file and then goes to the same position.
5014
5015** When you visit a file that changes frequently outside Emacs--for
5016example, a log of output from a process that continues to run--it may
5017be useful for Emacs to revert the file without querying you whenever
5018you visit the file afresh with C-x C-f.
5019
5020You can request this behavior for certain files by setting the
5021variable revert-without-query to a list of regular expressions. If a
5022file's name matches any of these regular expressions, find-file and
5023revert-buffer revert the buffer without asking for permission--but
5024only if you have not edited the buffer text yourself.
5025
5026** set-default-font has been renamed to set-frame-font
5027since it applies only to the current frame.
5028
5029** In TeX mode, you can use the variable tex-main-file to specify the
5030file for tex-file to run TeX on. (By default, tex-main-file is nil,
5031and tex-file runs TeX on the current visited file.)
5032
5033This is useful when you are editing a document that consists of
5034multiple files. In each of the included files, you can set up a local
5035variable list which specifies the top-level file of your document for
5036tex-main-file. Then tex-file will run TeX on the whole document
5037instead of just the file you are editing.
5038
5039** RefTeX mode
5040
5041RefTeX mode is a new minor mode with special support for \label, \ref
5042and \cite macros in LaTeX documents. RefTeX distinguishes labels of
5043different environments (equation, figure, ...) and has full support for
5044multifile documents. To use it, select a buffer with a LaTeX document and
5045turn the mode on with M-x reftex-mode. Here are the main user commands:
5046
79214ddf 5047C-c ( reftex-label
a933dad1
DL
5048 Creates a label semi-automatically. RefTeX is context sensitive and
5049 knows which kind of label is needed.
5050
5051C-c ) reftex-reference
5052 Offers in a menu all labels in the document, along with context of the
5053 label definition. The selected label is referenced as \ref{LABEL}.
5054
5055C-c [ reftex-citation
5056 Prompts for a regular expression and displays a list of matching BibTeX
5057 database entries. The selected entry is cited with a \cite{KEY} macro.
5058
5059C-c & reftex-view-crossref
5060 Views the cross reference of a \ref or \cite command near point.
5061
5062C-c = reftex-toc
5063 Shows a table of contents of the (multifile) document. From there you
5064 can quickly jump to every section.
79214ddf 5065
a933dad1
DL
5066Under X, RefTeX installs a "Ref" menu in the menu bar, with additional
5067commands. Press `?' to get help when a prompt mentions this feature.
5068Full documentation and customization examples are in the file
5069reftex.el. You can use the finder to view the file documentation:
5070C-h p --> tex --> reftex.el
5071
5072** Changes in BibTeX mode.
5073
5074*** Info documentation is now available.
5075
5076*** Don't allow parentheses in string constants anymore. This confused
5077both the BibTeX program and Emacs BibTeX mode.
5078
5079*** Renamed variable bibtex-mode-user-optional-fields to
5080bibtex-user-optional-fields.
5081
5082*** Removed variable bibtex-include-OPTannote
5083(use bibtex-user-optional-fields instead).
5084
5085*** New interactive functions to copy and kill fields and complete
5086entries to the BibTeX kill ring, from where they can be yanked back by
5087appropriate functions.
5088
5089*** New interactive functions for repositioning and marking of
5090entries. They are bound by default to M-C-l and M-C-h.
5091
5092*** New hook bibtex-clean-entry-hook. It is called after entry has
5093been cleaned.
5094
5095*** New variable bibtex-field-delimiters, which replaces variables
5096bibtex-field-{left|right}-delimiter.
5097
5098*** New variable bibtex-entry-delimiters to determine how entries
5099shall be delimited.
5100
5101*** Allow preinitialization of fields. See documentation of
5102bibtex-user-optional-fields, bibtex-entry-field-alist, and
5103bibtex-include-OPTkey for details.
5104
5105*** Book and InBook entries require either an author or an editor
5106field. This is now supported by bibtex.el. Alternative fields are
5107prefixed with `ALT'.
5108
5109*** New variable bibtex-entry-format, which replaces variable
5110bibtex-clean-entry-zap-empty-opts and allows specification of many
5111formatting options performed on cleaning an entry (see variable
5112documentation).
5113
5114*** Even more control on how automatic keys are generated. See
5115documentation of bibtex-generate-autokey for details. Transcriptions
5116for foreign languages other than German are now handled, too.
5117
5118*** New boolean user option bibtex-comma-after-last-field to decide if
5119comma should be inserted at end of last field.
5120
5121*** New boolean user option bibtex-align-at-equal-sign to determine if
5122alignment should be made at left side of field contents or at equal
5123signs. New user options to control entry layout (e.g. indentation).
5124
5125*** New function bibtex-fill-entry to realign entries.
5126
5127*** New function bibtex-reformat to reformat region or buffer.
5128
5129*** New function bibtex-convert-alien to convert a BibTeX database
5130from alien sources.
5131
5132*** New function bibtex-complete-key (similar to bibtex-complete-string)
5133to complete prefix to a key defined in buffer. Mainly useful in
5134crossref entries.
5135
5136*** New function bibtex-count-entries to count entries in buffer or
5137region.
5138
5139*** Added support for imenu.
5140
5141*** The function `bibtex-validate' now checks current region instead
5142of buffer if mark is active. Now it shows all errors of buffer in a
5143`compilation mode' buffer. You can use the normal commands (e.g.
5144`next-error') for compilation modes to jump to errors.
5145
5146*** New variable `bibtex-string-file-path' to determine where the files
5147from `bibtex-string-files' are searched.
5148
5149** Iso Accents mode now supports Latin-3 as an alternative.
5150
5151** The function using-unix-filesystems has been replaced by the
5152functions add-untranslated-filesystem and remove-untranslated-filesystem.
5153Each of these functions takes the name of a drive letter or directory
5154as an argument.
5155
5156When a filesystem is added as untranslated, all files on it are read
5157and written in binary mode (no cr/lf translation is performed).
5158
5159** browse-url changes
5160
5161*** New methods for: Grail (browse-url-generic), MMM (browse-url-mmm),
5162Lynx in a separate xterm (browse-url-lynx-xterm) or in an Emacs window
5163(browse-url-lynx-emacs), remote W3 (browse-url-w3-gnudoit), generic
5164non-remote-controlled browsers (browse-url-generic) and associated
5165customization variables.
5166
5167*** New commands `browse-url-of-region' and `browse-url'.
5168
5169*** URLs marked up with <URL:...> (RFC1738) work if broken across
5170lines. Browsing methods can be associated with URL regexps
5171(e.g. mailto: URLs) via `browse-url-browser-function'.
5172
5173** Changes in Ediff
5174
5175*** Clicking Mouse-2 on a brief command description in Ediff control panel
5176pops up the Info file for this command.
5177
5178*** There is now a variable, ediff-autostore-merges, which controls whether
5179the result of a merge is saved in a file. By default, this is done only when
5180merge is done from a session group (eg, when merging files in two different
5181directories).
5182
5183*** Since Emacs 19.31 (this hasn't been announced before), Ediff can compare
5184and merge groups of files residing in different directories, or revisions of
5185files in the same directory.
5186
5187*** Since Emacs 19.31, Ediff can apply multi-file patches interactively.
5188The patches must be in the context format or GNU unified format. (The bug
5189related to the GNU format has now been fixed.)
5190
5191** Changes in Viper
5192
5193*** The startup file is now .viper instead of .vip
79214ddf 5194*** All variable/function names have been changed to start with viper-
a933dad1
DL
5195 instead of vip-.
5196*** C-\ now simulates the meta-key in all Viper states.
79214ddf 5197*** C-z in Insert state now escapes to Vi for the duration of the next
a933dad1
DL
5198Viper command. In Vi and Insert states, C-z behaves as before.
5199*** C-c \ escapes to Vi for one command if Viper is in Insert or Emacs states.
5200*** _ is no longer the meta-key in Vi state.
5201*** The variable viper-insert-state-cursor-color can be used to change cursor
5202color when Viper is in insert state.
5203*** If search lands the cursor near the top or the bottom of the window,
5204Viper pulls the window up or down to expose more context. The variable
5205viper-adjust-window-after-search controls this behavior.
5206
5207** Etags changes.
5208
5209*** In C, C++, Objective C and Java, Etags tags global variables by
5210default. The resulting tags files are inflated by 30% on average.
5211Use --no-globals to turn this feature off. Etags can also tag
5212variables which are members of structure-like constructs, but it does
5213not by default. Use --members to turn this feature on.
5214
5215*** C++ member functions are now recognized as tags.
5216
5217*** Java is tagged like C++. In addition, "extends" and "implements"
5218constructs are tagged. Files are recognised by the extension .java.
5219
5220*** Etags can now handle programs written in Postscript. Files are
5221recognised by the extensions .ps and .pdb (Postscript with C syntax).
5222In Postscript, tags are lines that start with a slash.
5223
5224*** Etags now handles Objective C and Objective C++ code. The usual C and
5225C++ tags are recognized in these languages; in addition, etags
5226recognizes special Objective C syntax for classes, class categories,
5227methods and protocols.
5228
5229*** Etags also handles Cobol. Files are recognised by the extension
5230.cobol. The tagged lines are those containing a word that begins in
5231column 8 and ends in a full stop, i.e. anything that could be a
5232paragraph name.
5233
5234*** Regexps in Etags now support intervals, as in ed or grep. The syntax of
5235an interval is \{M,N\}, and it means to match the preceding expression
5236at least M times and as many as N times.
5237
5238** The format for specifying a custom format for time-stamp to insert
5239in files has changed slightly.
5240
5241With the new enhancements to the functionality of format-time-string,
5242time-stamp-format will change to be eventually compatible with it.
5243This conversion is being done in two steps to maintain compatibility
5244with old time-stamp-format values.
5245
5246In the new scheme, alternate case is signified by the number-sign
5247(`#') modifier, rather than changing the case of the format character.
5248This feature is as yet incompletely implemented for compatibility
5249reasons.
5250
5251In the old time-stamp-format, all numeric fields defaulted to their
5252natural width. (With format-time-string, each format has a
5253fixed-width default.) In this version, you can specify the colon
5254(`:') modifier to a numeric conversion to mean "give me the historical
5255time-stamp-format width default." Do not use colon if you are
5256specifying an explicit width, as in "%02d".
5257
5258Numbers are no longer truncated to the requested width, except in the
5259case of "%02y", which continues to give a two-digit year. Digit
5260truncation probably wasn't being used for anything else anyway.
5261
5262The new formats will work with old versions of Emacs. New formats are
5263being recommended now to allow time-stamp-format to change in the
5264future to be compatible with format-time-string. The new forms being
5265recommended now will continue to work then.
5266
5267See the documentation string for the variable time-stamp-format for
5268details.
5269
5270** There are some additional major modes:
5271
5272dcl-mode, for editing VMS DCL files.
5273m4-mode, for editing files of m4 input.
5274meta-mode, for editing MetaFont and MetaPost source files.
5275
5276** In Shell mode, the command shell-copy-environment-variable lets you
5277copy the value of a specified environment variable from the subshell
5278into Emacs.
5279
5280** New Lisp packages include:
5281
5282*** battery.el displays battery status for laptops.
5283
5284*** M-x bruce (named after Lenny Bruce) is a program that might
5285be used for adding some indecent words to your email.
5286
5287*** M-x crisp-mode enables an emulation for the CRiSP editor.
5288
5289*** M-x dirtrack arranges for better tracking of directory changes
5290in shell buffers.
5291
5292*** The new library elint.el provides for linting of Emacs Lisp code.
5293See the documentation for `elint-initialize', `elint-current-buffer'
5294and `elint-defun'.
5295
5296*** M-x expand-add-abbrevs defines a special kind of abbrev which is
5297meant for programming constructs. These abbrevs expand like ordinary
5298ones, when you type SPC, but only at the end of a line and not within
5299strings or comments.
5300
5301These abbrevs can act as templates: you can define places within an
5302abbrev for insertion of additional text. Once you expand the abbrev,
5303you can then use C-x a p and C-x a n to move back and forth to these
5304insertion points. Thus you can conveniently insert additional text
5305at these points.
5306
5307*** filecache.el remembers the location of files so that you
5308can visit them by short forms of their names.
5309
5310*** find-func.el lets you find the definition of the user-loaded
5311Emacs Lisp function at point.
5312
5313*** M-x handwrite converts text to a "handwritten" picture.
5314
5315*** M-x iswitchb-buffer is a command for switching to a buffer, much like
5316switch-buffer, but it reads the argument in a more helpful way.
5317
5318*** M-x landmark implements a neural network for landmark learning.
5319
5320*** M-x locate provides a convenient interface to the `locate' program.
5321
5322*** M4 mode is a new mode for editing files of m4 input.
5323
5324*** mantemp.el creates C++ manual template instantiations
5325from the GCC error messages which indicate which instantiations are needed.
5326
5327*** mouse-copy.el provides a one-click copy and move feature.
5328You can drag a region with M-mouse-1, and it is automatically
5329inserted at point. M-Shift-mouse-1 deletes the text from its
5330original place after inserting the copy.
5331
5332*** mouse-drag.el lets you do scrolling by dragging Mouse-2
5333on the buffer.
5334
5335You click the mouse and move; that distance either translates into the
5336velocity to scroll (with mouse-drag-throw) or the distance to scroll
5337(with mouse-drag-drag). Horizontal scrolling is enabled when needed.
5338
5339Enable mouse-drag with:
5340 (global-set-key [down-mouse-2] 'mouse-drag-throw)
5341-or-
5342 (global-set-key [down-mouse-2] 'mouse-drag-drag)
5343
5344*** mspools.el is useful for determining which mail folders have
5345mail waiting to be read in them. It works with procmail.
5346
5347*** Octave mode is a major mode for editing files of input for Octave.
5348It comes with a facility for communicating with an Octave subprocess.
5349
5350*** ogonek
5351
5352The ogonek package provides functions for changing the coding of
5353Polish diacritic characters in buffers. Codings known from various
5354platforms are supported such as ISO8859-2, Mazovia, IBM Latin2, and
5355TeX. For example, you can change the coding from Mazovia to
5356ISO8859-2. Another example is a change of coding from ISO8859-2 to
5357prefix notation (in which `/a' stands for the aogonek character, for
5358instance) and vice versa.
5359
5360To use this package load it using
5361 M-x load-library [enter] ogonek
5362Then, you may get an explanation by calling one of
79214ddf 5363 M-x ogonek-jak -- in Polish
a933dad1
DL
5364 M-x ogonek-how -- in English
5365The info specifies the commands and variables provided as well as the
5366ways of customization in `.emacs'.
5367
5368*** Interface to ph.
5369
5370Emacs provides a client interface to CCSO Nameservers (ph/qi)
5371
5372The CCSO nameserver is used in many universities to provide directory
5373services about people. ph.el provides a convenient Emacs interface to
5374these servers.
5375
5376*** uce.el is useful for replying to unsolicited commercial email.
5377
5378*** vcursor.el implements a "virtual cursor" feature.
5379You can move the virtual cursor with special commands
5380while the real cursor does not move.
5381
5382*** webjump.el is a "hot list" package which you can set up
5383for visiting your favorite web sites.
5384
5385*** M-x winner-mode is a minor mode which saves window configurations,
5386so you can move back to other configurations that you have recently used.
5387
5388** movemail change
5389
5390Movemail no longer needs to be installed setuid root in order for POP
5391mail retrieval to function properly. This is because it no longer
5392supports the RPOP (reserved-port POP) protocol; instead, it uses the
5393user's POP password to authenticate to the mail server.
5394
5395This change was made earlier, but not reported in NEWS before.
5396\f
5397* Emacs 20.1 changes for MS-DOS and MS-Windows.
5398
5399** Changes in handling MS-DOS/MS-Windows text files.
5400
5401Emacs handles three different conventions for representing
5402end-of-line: CRLF for MSDOS, LF for Unix and GNU, and CR (used on the
5403Macintosh). Emacs determines which convention is used in a specific
5404file based on the contents of that file (except for certain special
5405file names), and when it saves the file, it uses the same convention.
5406
5407To save the file and change the end-of-line convention, you can use
5408C-x RET f (set-buffer-file-coding-system) to specify a different
5409coding system for the buffer. Then, when you save the file, the newly
5410specified coding system will take effect. For example, to save with
5411LF, specify undecided-unix (or some other ...-unix coding system); to
5412save with CRLF, specify undecided-dos.
5413\f
5414* Lisp Changes in Emacs 20.1
5415
5416** Byte-compiled files made with Emacs 20 will, in general, work in
5417Emacs 19 as well, as long as the source code runs in Emacs 19. And
5418vice versa: byte-compiled files made with Emacs 19 should also run in
5419Emacs 20, as long as the program itself works in Emacs 20.
5420
5421** Windows-specific functions and variables have been renamed
5422to start with w32- instead of win32-.
5423
5424In hacker language, calling something a "win" is a form of praise. We
5425don't want to praise a non-free Microsoft system, so we don't call it
5426"win".
5427
5428** Basic Lisp changes
5429
5430*** A symbol whose name starts with a colon now automatically
5431evaluates to itself. Therefore such a symbol can be used as a constant.
5432
5433*** The defined purpose of `defconst' has been changed. It should now
5434be used only for values that should not be changed whether by a program
5435or by the user.
5436
5437The actual behavior of defconst has not been changed.
5438
5439*** There are new macros `when' and `unless'
5440
5441(when CONDITION BODY...) is short for (if CONDITION (progn BODY...))
5442(unless CONDITION BODY...) is short for (if CONDITION nil BODY...)
5443
5444*** Emacs now defines functions caar, cadr, cdar and cddr with their
5445usual Lisp meanings. For example, caar returns the car of the car of
5446its argument.
5447
5448*** equal, when comparing strings, now ignores their text properties.
5449
5450*** The new function `functionp' tests whether an object is a function.
5451
5452*** arrayp now returns t for char-tables and bool-vectors.
5453
5454*** Certain primitives which use characters (as integers) now get an
5455error if the integer is not a valid character code. These primitives
5456include insert-char, char-to-string, and the %c construct in the
5457`format' function.
5458
5459*** The `require' function now insists on adding a suffix, either .el
5460or .elc, to the file name. Thus, (require 'foo) will not use a file
5461whose name is just foo. It insists on foo.el or foo.elc.
5462
5463*** The `autoload' function, when the file name does not contain
5464either a directory name or the suffix .el or .elc, insists on
5465adding one of these suffixes.
5466
5467*** string-to-number now takes an optional second argument BASE
5468which specifies the base to use when converting an integer.
79214ddf 5469If BASE is omitted, base 10 is used.
a933dad1
DL
5470
5471We have not implemented other radices for floating point numbers,
5472because that would be much more work and does not seem useful.
5473
5474*** substring now handles vectors as well as strings.
5475
5476*** The Common Lisp function eql is no longer defined normally.
5477You must load the `cl' library to define it.
5478
5479*** The new macro `with-current-buffer' lets you evaluate an expression
5480conveniently with a different current buffer. It looks like this:
5481
5482 (with-current-buffer BUFFER BODY-FORMS...)
5483
5484BUFFER is the expression that says which buffer to use.
5485BODY-FORMS say what to do in that buffer.
5486
5487*** The new primitive `save-current-buffer' saves and restores the
5488choice of current buffer, like `save-excursion', but without saving or
5489restoring the value of point or the mark. `with-current-buffer'
5490works using `save-current-buffer'.
5491
5492*** The new macro `with-temp-file' lets you do some work in a new buffer and
5493write the output to a specified file. Like `progn', it returns the value
5494of the last form.
5495
5496*** The new macro `with-temp-buffer' lets you do some work in a new buffer,
5497which is discarded after use. Like `progn', it returns the value of the
5498last form. If you wish to return the buffer contents, use (buffer-string)
5499as the last form.
5500
5501*** The new function split-string takes a string, splits it at certain
5502characters, and returns a list of the substrings in between the
5503matches.
5504
5505For example, (split-string "foo bar lose" " +") returns ("foo" "bar" "lose").
5506
5507*** The new macro with-output-to-string executes some Lisp expressions
5508with standard-output set up so that all output feeds into a string.
5509Then it returns that string.
5510
5511For example, if the current buffer name is `foo',
5512
5513(with-output-to-string
5514 (princ "The buffer is ")
5515 (princ (buffer-name)))
5516
5517returns "The buffer is foo".
5518
5519** Non-ASCII characters are now supported, if enable-multibyte-characters
5520is non-nil.
5521
5522These characters have character codes above 256. When inserted in the
5523buffer or stored in a string, they are represented as multibyte
5524characters that occupy several buffer positions each.
5525
5526*** When enable-multibyte-characters is non-nil, a single character in
5527a buffer or string can be two or more bytes (as many as four).
5528
5529Buffers and strings are still made up of unibyte elements;
5530character positions and string indices are always measured in bytes.
5531Therefore, moving forward one character can increase the buffer
5532position by 2, 3 or 4. The function forward-char moves by whole
5533characters, and therefore is no longer equivalent to
5534 (lambda (n) (goto-char (+ (point) n))).
5535
5536ASCII characters (codes 0 through 127) are still single bytes, always.
5537Sequences of byte values 128 through 255 are used to represent
5538non-ASCII characters. These sequences are called "multibyte
5539characters".
5540
5541The first byte of a multibyte character is always in the range 128
5542through 159 (octal 0200 through 0237). These values are called
5543"leading codes". The second and subsequent bytes are always in the
5544range 160 through 255 (octal 0240 through 0377). The first byte, the
5545leading code, determines how many bytes long the sequence is.
5546
5547*** The function forward-char moves over characters, and therefore
5548(forward-char 1) may increase point by more than 1 if it moves over a
5549multibyte character. Likewise, delete-char always deletes a
5550character, which may be more than one buffer position.
5551
5552This means that some Lisp programs, which assume that a character is
5553always one buffer position, need to be changed.
5554
5555However, all ASCII characters are always one buffer position.
79214ddf 5556
a933dad1
DL
5557*** The regexp [\200-\377] no longer matches all non-ASCII characters,
5558because when enable-multibyte-characters is non-nil, these characters
5559have codes that are not in the range octal 200 to octal 377. However,
5560the regexp [^\000-\177] does match all non-ASCII characters,
5561guaranteed.
5562
5563*** The function char-boundary-p returns non-nil if position POS is
5564between two characters in the buffer (not in the middle of a
5565character).
5566
5567When the value is non-nil, it says what kind of character follows POS:
5568
5569 0 if POS is at an ASCII character or at the end of range,
5570 1 if POS is before a 2-byte length multi-byte form,
5571 2 if POS is at a head of 3-byte length multi-byte form,
5572 3 if POS is at a head of 4-byte length multi-byte form,
5573 4 if POS is at a head of multi-byte form of a composite character.
5574
5575*** The function char-bytes returns how many bytes the character CHAR uses.
5576
5577*** Strings can contain multibyte characters. The function
5578`length' returns the string length counting bytes, which may be
5579more than the number of characters.
5580
5581You can include a multibyte character in a string constant by writing
5582it literally. You can also represent it with a hex escape,
5583\xNNNNNNN..., using as many digits as necessary. Any character which
5584is not a valid hex digit terminates this construct. If you want to
5585follow it with a character that is a hex digit, write backslash and
5586newline in between; that will terminate the hex escape.
5587
5588*** The function concat-chars takes arguments which are characters
5589and returns a string containing those characters.
5590
5591*** The function sref access a multibyte character in a string.
5592(sref STRING INDX) returns the character in STRING at INDEX. INDEX
5593counts from zero. If INDEX is at a position in the middle of a
5594character, sref signals an error.
5595
5596*** The function chars-in-string returns the number of characters
5597in a string. This is less than the length of the string, if the
5598string contains multibyte characters (the length counts bytes).
5599
5600*** The function chars-in-region returns the number of characters
5601in a region from BEG to END. This is less than (- END BEG) if the
5602region contains multibyte characters (the length counts bytes).
5603
5604*** The function string-to-list converts a string to a list of
5605the characters in it. string-to-vector converts a string
5606to a vector of the characters in it.
5607
5608*** The function store-substring alters part of the contents
5609of a string. You call it as follows:
5610
5611 (store-substring STRING IDX OBJ)
5612
5613This says to alter STRING, by storing OBJ starting at index IDX in
5614STRING. OBJ may be either a character or a (smaller) string.
5615This function really does alter the contents of STRING.
5616Since it is impossible to change the length of an existing string,
5617it is an error if OBJ doesn't fit within STRING's actual length.
5618
5619*** char-width returns the width (in columns) of the character CHAR,
5620if it were displayed in the current buffer and the selected window.
5621
5622*** string-width returns the width (in columns) of the text in STRING,
5623if it were displayed in the current buffer and the selected window.
5624
5625*** truncate-string-to-width shortens a string, if necessary,
5626to fit within a certain number of columns. (Of course, it does
5627not alter the string that you give it; it returns a new string
5628which contains all or just part of the existing string.)
5629
5630(truncate-string-to-width STR END-COLUMN &optional START-COLUMN PADDING)
5631
5632This returns the part of STR up to column END-COLUMN.
5633
5634The optional argument START-COLUMN specifies the starting column.
5635If this is non-nil, then the first START-COLUMN columns of the string
5636are not included in the resulting value.
5637
5638The optional argument PADDING, if non-nil, is a padding character to be added
5639at the beginning and end the resulting string, to extend it to exactly
5640WIDTH columns. If PADDING is nil, that means do not pad; then, if STRING
5641is narrower than WIDTH, the value is equal to STRING.
5642
5643If PADDING and START-COLUMN are both non-nil, and if there is no clean
5644place in STRING that corresponds to START-COLUMN (because one
5645character extends across that column), then the padding character
5646PADDING is added one or more times at the beginning of the result
5647string, so that its columns line up as if it really did start at
5648column START-COLUMN.
5649
5650*** When the functions in the list after-change-functions are called,
5651the third argument is the number of bytes in the pre-change text, not
5652necessarily the number of characters. It is, in effect, the
5653difference in buffer position between the beginning and the end of the
5654changed text, before the change.
5655
5656*** The characters Emacs uses are classified in various character
5657sets, each of which has a name which is a symbol. In general there is
5658one character set for each script, not for each language.
5659
5660**** The function charsetp tests whether an object is a character set name.
5661
5662**** The variable charset-list holds a list of character set names.
5663
5664**** char-charset, given a character code, returns the name of the character
5665set that the character belongs to. (The value is a symbol.)
5666
5667**** split-char, given a character code, returns a list containing the
5668name of the character set, followed by one or two byte-values
5669which identify the character within that character set.
5670
5671**** make-char, given a character set name and one or two subsequent
5672byte-values, constructs a character code. This is roughly the
5673opposite of split-char.
5674
5675**** find-charset-region returns a list of the character sets
5676of all the characters between BEG and END.
5677
5678**** find-charset-string returns a list of the character sets
5679of all the characters in a string.
5680
5681*** Here are the Lisp facilities for working with coding systems
5682and specifying coding systems.
5683
5684**** The function coding-system-list returns a list of all coding
5685system names (symbols). With optional argument t, it returns a list
5686of all distinct base coding systems, not including variants.
5687(Variant coding systems are those like latin-1-dos, latin-1-unix
5688and latin-1-mac which specify the end-of-line conversion as well
5689as what to do about code conversion.)
5690
5691**** coding-system-p tests a symbol to see if it is a coding system
5692name. It returns t if so, nil if not.
5693
5694**** file-coding-system-alist specifies which coding systems to use
5695for certain file names. It works like network-coding-system-alist,
5696except that the PATTERN is matched against the file name.
5697
5698Each element has the format (PATTERN . VAL), where PATTERN determines
5699which file names the element applies to. PATTERN should be a regexp
5700to match against a file name.
5701
5702VAL is a coding system, a cons cell containing two coding systems, or
5703a function symbol. If VAL is a coding system, it is used for both
5704decoding what received from the network stream and encoding what sent
5705to the network stream. If VAL is a cons cell containing two coding
5706systems, the car specifies the coding system for decoding, and the cdr
5707specifies the coding system for encoding.
5708
5709If VAL is a function symbol, the function must return a coding system
5710or a cons cell containing two coding systems, which is used as above.
5711
5712**** The variable network-coding-system-alist specifies
5713the coding system to use for network sockets.
5714
5715Each element has the format (PATTERN . VAL), where PATTERN determines
5716which network sockets the element applies to. PATTERN should be
5717either a port number or a regular expression matching some network
5718service names.
5719
5720VAL is a coding system, a cons cell containing two coding systems, or
5721a function symbol. If VAL is a coding system, it is used for both
5722decoding what received from the network stream and encoding what sent
5723to the network stream. If VAL is a cons cell containing two coding
5724systems, the car specifies the coding system for decoding, and the cdr
5725specifies the coding system for encoding.
5726
5727If VAL is a function symbol, the function must return a coding system
5728or a cons cell containing two coding systems, which is used as above.
5729
5730**** process-coding-system-alist specifies which coding systems to use
5731for certain subprocess. It works like network-coding-system-alist,
5732except that the PATTERN is matched against the program name used to
5733start the subprocess.
5734
5735**** The variable default-process-coding-system specifies the coding
5736systems to use for subprocess (and net connection) input and output,
5737when nothing else specifies what to do. The value is a cons cell
5738(OUTPUT-CODING . INPUT-CODING). OUTPUT-CODING applies to output
5739to the subprocess, and INPUT-CODING applies to input from it.
5740
5741**** The variable coding-system-for-write, if non-nil, specifies the
5742coding system to use for writing a file, or for output to a synchronous
5743subprocess.
5744
5745It also applies to any asynchronous subprocess or network connection,
5746but in a different way: the value of coding-system-for-write when you
5747start the subprocess or connection affects that subprocess or
5748connection permanently or until overridden.
5749
5750The variable coding-system-for-write takes precedence over
5751file-coding-system-alist, process-coding-system-alist and
5752network-coding-system-alist, and all other methods of specifying a
5753coding system for output. But most of the time this variable is nil.
5754It exists so that Lisp programs can bind it to a specific coding
5755system for one operation at a time.
5756
5757**** coding-system-for-read applies similarly to input from
5758files, subprocesses or network connections.
5759
5760**** The function process-coding-system tells you what
5761coding systems(s) an existing subprocess is using.
5762The value is a cons cell,
5763 (DECODING-CODING-SYSTEM . ENCODING-CODING-SYSTEM)
5764where DECODING-CODING-SYSTEM is used for decoding output from
5765the subprocess, and ENCODING-CODING-SYSTEM is used for encoding
5766input to the subprocess.
5767
5768**** The function set-process-coding-system can be used to
5769change the coding systems in use for an existing subprocess.
5770
5771** Emacs has a new facility to help users manage the many
5772customization options. To make a Lisp program work with this facility,
5773you need to use the new macros defgroup and defcustom.
5774
5775You use defcustom instead of defvar, for defining a user option
5776variable. The difference is that you specify two additional pieces of
5777information (usually): the "type" which says what values are
5778legitimate, and the "group" which specifies the hierarchy for
5779customization.
5780
5781Thus, instead of writing
5782
5783 (defvar foo-blurgoze nil
5784 "*Non-nil means that foo will act very blurgozely.")
5785
5786you would now write this:
5787
5788 (defcustom foo-blurgoze nil
5789 "*Non-nil means that foo will act very blurgozely."
5790 :type 'boolean
5791 :group foo)
5792
5793The type `boolean' means that this variable has only
5794two meaningful states: nil and non-nil. Other type values
5795describe other possibilities; see the manual for Custom
5796for a description of them.
5797
5798The "group" argument is used to specify a group which the option
5799should belong to. You define a new group like this:
5800
5801 (defgroup ispell nil
5802 "Spell checking using Ispell."
5803 :group 'processes)
5804
5805The "group" argument in defgroup specifies the parent group. The root
5806group is called `emacs'; it should not contain any variables itself,
5807but only other groups. The immediate subgroups of `emacs' correspond
5808to the keywords used by C-h p. Under these subgroups come
5809second-level subgroups that belong to individual packages.
5810
5811Each Emacs package should have its own set of groups. A simple
5812package should have just one group; a more complex package should
5813have a hierarchy of its own groups. The sole or root group of a
5814package should be a subgroup of one or more of the "keyword"
5815first-level subgroups.
5816
5817** New `widget' library for inserting UI components in buffers.
5818
5819This library, used by the new custom library, is documented in a
5820separate manual that accompanies Emacs.
5821
5822** easy-mmode
5823
5824The easy-mmode package provides macros and functions that make
5825developing minor modes easier. Roughly, the programmer has to code
5826only the functionality of the minor mode. All the rest--toggles,
5827predicate, and documentation--can be done in one call to the macro
5828`easy-mmode-define-minor-mode' (see the documentation). See also
5829`easy-mmode-define-keymap'.
5830
5831** Text property changes
5832
5833*** The `intangible' property now works on overlays as well as on a
5834text property.
5835
5836*** The new functions next-char-property-change and
5837previous-char-property-change scan through the buffer looking for a
5838place where either a text property or an overlay might change. The
5839functions take two arguments, POSITION and LIMIT. POSITION is the
5840starting position for the scan. LIMIT says where to stop the scan.
5841
5842If no property change is found before LIMIT, the value is LIMIT. If
5843LIMIT is nil, scan goes to the beginning or end of the accessible part
5844of the buffer. If no property change is found, the value is the
5845position of the beginning or end of the buffer.
5846
5847*** In the `local-map' text property or overlay property, the property
5848value can now be a symbol whose function definition is a keymap. This
5849is an alternative to using the keymap itself.
5850
5851** Changes in invisibility features
5852
5853*** Isearch can now temporarily show parts of the buffer which are
5854hidden by an overlay with a invisible property, when the search match
5855is inside that portion of the buffer. To enable this the overlay
5856should have a isearch-open-invisible property which is a function that
5857would be called having the overlay as an argument, the function should
5858make the overlay visible.
5859
5860During incremental search the overlays are shown by modifying the
5861invisible and intangible properties, if beside this more actions are
5862needed the overlay should have a isearch-open-invisible-temporary
5863which is a function. The function is called with 2 arguments: one is
5864the overlay and the second is nil when it should show the overlay and
5865t when it should hide it.
5866
5867*** add-to-invisibility-spec, remove-from-invisibility-spec
5868
5869Modes that use overlays to hide portions of a buffer should set the
79214ddf
FP
5870invisible property of the overlay to the mode's name (or another symbol)
5871and modify the `buffer-invisibility-spec' to include that symbol.
a933dad1 5872Use `add-to-invisibility-spec' and `remove-from-invisibility-spec' to
79214ddf 5873manipulate the `buffer-invisibility-spec'.
a933dad1
DL
5874Here is an example of how to do this:
5875
5876 ;; If we want to display an ellipsis:
79214ddf 5877 (add-to-invisibility-spec '(my-symbol . t))
a933dad1 5878 ;; If you don't want ellipsis:
79214ddf 5879 (add-to-invisibility-spec 'my-symbol)
a933dad1
DL
5880
5881 ...
5882 (overlay-put (make-overlay beginning end) 'invisible 'my-symbol)
5883
5884 ...
5885 ;; When done with the overlays:
5886 (remove-from-invisibility-spec '(my-symbol . t))
5887 ;; Or respectively:
5888 (remove-from-invisibility-spec 'my-symbol)
5889
5890** Changes in syntax parsing.
5891
5892*** The syntax-directed buffer-scan functions (such as
5893`parse-partial-sexp', `forward-word' and similar functions) can now
5894obey syntax information specified by text properties, if the variable
5895`parse-sexp-lookup-properties' is non-nil.
5896
5897If the value of `parse-sexp-lookup-properties' is nil, the behavior
5898is as before: the syntax-table of the current buffer is always
5899used to determine the syntax of the character at the position.
5900
5901When `parse-sexp-lookup-properties' is non-nil, the syntax of a
5902character in the buffer is calculated thus:
5903
5904 a) if the `syntax-table' text-property of that character
5905 is a cons, this cons becomes the syntax-type;
5906
5907 Valid values of `syntax-table' text-property are: nil, a valid
5908 syntax-table, and a valid syntax-table element, i.e.,
5909 a cons cell of the form (SYNTAX-CODE . MATCHING-CHAR).
5910
5911 b) if the character's `syntax-table' text-property
5912 is a syntax table, this syntax table is used
5913 (instead of the syntax-table of the current buffer) to
5914 determine the syntax type of the character.
5915
5916 c) otherwise the syntax-type is determined by the syntax-table
5917 of the current buffer.
5918
5919*** The meaning of \s in regular expressions is also affected by the
5920value of `parse-sexp-lookup-properties'. The details are the same as
5921for the syntax-directed buffer-scan functions.
5922
5923*** There are two new syntax-codes, `!' and `|' (numeric values 14
5924and 15). A character with a code `!' starts a comment which is ended
5925only by another character with the same code (unless quoted). A
5926character with a code `|' starts a string which is ended only by
5927another character with the same code (unless quoted).
5928
5929These codes are mainly meant for use as values of the `syntax-table'
5930text property.
5931
5932*** The function `parse-partial-sexp' has new semantics for the sixth
5933arg COMMENTSTOP. If it is `syntax-table', parse stops after the start
5934of a comment or a string, or after end of a comment or a string.
5935
5936*** The state-list which the return value from `parse-partial-sexp'
5937(and can also be used as an argument) now has an optional ninth
5938element: the character address of the start of last comment or string;
5939nil if none. The fourth and eighth elements have special values if the
5940string/comment is started by a "!" or "|" syntax-code.
5941
5942*** Since new features of `parse-partial-sexp' allow a complete
5943syntactic parsing, `font-lock' no longer supports
5944`font-lock-comment-start-regexp'.
5945
5946** Changes in face features
5947
5948*** The face functions are now unconditionally defined in Emacs, even
5949if it does not support displaying on a device that supports faces.
5950
5951*** The function face-documentation returns the documentation string
5952of a face (or nil if it doesn't have one).
5953
5954*** The function face-bold-p returns t if a face should be bold.
5955set-face-bold-p sets that flag.
5956
5957*** The function face-italic-p returns t if a face should be italic.
5958set-face-italic-p sets that flag.
5959
5960*** You can now specify foreground and background colors for text
5961by adding elements of the form (foreground-color . COLOR-NAME)
5962and (background-color . COLOR-NAME) to the list of faces in
5963the `face' property (either the character's text property or an
5964overlay property).
5965
5966This means that you no longer need to create named faces to use
5967arbitrary colors in a Lisp package.
5968
5969** Changes in file-handling functions
5970
5971*** File-access primitive functions no longer discard an extra redundant
5972directory name from the beginning of the file name. In other words,
5973they no longer do anything special with // or /~. That conversion
5974is now done only in substitute-in-file-name.
5975
5976This makes it possible for a Lisp program to open a file whose name
5977begins with ~.
5978
5979*** If copy-file is unable to set the date of the output file,
5980it now signals an error with the condition file-date-error.
5981
5982*** The inode number returned by file-attributes may be an integer (if
5983the number fits in a Lisp integer) or a list of integers.
5984
5985*** insert-file-contents can now read from a special file,
5986as long as the arguments VISIT and REPLACE are nil.
5987
5988*** The RAWFILE arg to find-file-noselect, if non-nil, now suppresses
5989character code conversion as well as other things.
5990
5991Meanwhile, this feature does work with remote file names
5992(formerly it did not).
5993
5994*** Lisp packages which create temporary files should use the TMPDIR
5995environment variable to decide which directory to put them in.
5996
5997*** interpreter-mode-alist elements now specify regexps
5998instead of constant strings.
5999
6000*** expand-file-name no longer treats `//' or `/~' specially. It used
6001to delete all the text of a file name up through the first slash of
6002any `//' or `/~' sequence. Now it passes them straight through.
6003
6004substitute-in-file-name continues to treat those sequences specially,
6005in the same way as before.
6006
6007*** The variable `format-alist' is more general now.
6008The FROM-FN and TO-FN in a format definition can now be strings
6009which specify shell commands to use as filters to perform conversion.
6010
6011*** The new function access-file tries to open a file, and signals an
6012error if that fails. If the open succeeds, access-file does nothing
6013else, and returns nil.
6014
6015*** The function insert-directory now signals an error if the specified
6016directory cannot be listed.
6017
6018** Changes in minibuffer input
6019
6020*** The functions read-buffer, read-variable, read-command, read-string
6021read-file-name, read-from-minibuffer and completing-read now take an
6022additional argument which specifies the default value. If this
6023argument is non-nil, it should be a string; that string is used in two
6024ways:
6025
6026 It is returned if the user enters empty input.
6027 It is available through the history command M-n.
6028
6029*** The functions read-string, read-from-minibuffer,
6030read-no-blanks-input and completing-read now take an additional
6031argument INHERIT-INPUT-METHOD. If this is non-nil, then the
6032minibuffer inherits the current input method and the setting of
6033enable-multibyte-characters from the previously current buffer.
6034
6035In an interactive spec, you can use M instead of s to read an
6036argument in this way.
6037
6038*** All minibuffer input functions discard text properties
6039from the text you enter in the minibuffer, unless the variable
6040minibuffer-allow-text-properties is non-nil.
6041
6042** Echo area features
6043
6044*** Clearing the echo area now runs the normal hook
6045echo-area-clear-hook. Note that the echo area can be used while the
6046minibuffer is active; in that case, the minibuffer is still active
6047after the echo area is cleared.
6048
6049*** The function current-message returns the message currently displayed
6050in the echo area, or nil if there is none.
6051
6052** Keyboard input features
6053
6054*** tty-erase-char is a new variable that reports which character was
6055set up as the terminal's erase character when time Emacs was started.
6056
6057*** num-nonmacro-input-events is the total number of input events
6058received so far from the terminal. It does not count those generated
6059by keyboard macros.
6060
6061** Frame-related changes
6062
6063*** make-frame runs the normal hook before-make-frame-hook just before
6064creating a frame, and just after creating a frame it runs the abnormal
6065hook after-make-frame-functions with the new frame as arg.
6066
6067*** The new hook window-configuration-change-hook is now run every time
6068the window configuration has changed. The frame whose configuration
6069has changed is the selected frame when the hook is run.
6070
6071*** Each frame now independently records the order for recently
6072selected buffers, in its buffer-list frame parameter, so that the
6073value of other-buffer is now based on the buffers recently displayed
6074in the selected frame.
6075
6076*** The value of the frame parameter vertical-scroll-bars
6077is now `left', `right' or nil. A non-nil value specifies
6078which side of the window to put the scroll bars on.
6079
6080** X Windows features
6081
6082*** You can examine X resources for other applications by binding
6083x-resource-class around a call to x-get-resource. The usual value of
6084x-resource-class is "Emacs", which is the correct value for Emacs.
6085
6086*** In menus, checkboxes and radio buttons now actually work.
6087The menu displays the current status of the box or button.
6088
6089*** The function x-list-fonts now takes an optional fourth argument
6090MAXIMUM which sets a limit on how many matching fonts to return.
6091A smaller value of MAXIMUM makes the function faster.
6092
6093If the only question is whether *any* font matches the pattern,
6094it is good to supply 1 for this argument.
6095
6096** Subprocess features
6097
6098*** A reminder: it is no longer necessary for subprocess filter
6099functions and sentinels to do save-match-data, because Emacs does this
6100automatically.
6101
6102*** The new function shell-command-to-string executes a shell command
6103and returns the output from the command as a string.
6104
6105*** The new function process-contact returns t for a child process,
6106and (HOSTNAME SERVICE) for a net connection.
6107
6108** An error in running pre-command-hook or post-command-hook
6109does clear the variable to nil. The documentation was wrong before.
6110
6111** In define-key-after, if AFTER is t, the new binding now always goes
6112at the end of the keymap. If the keymap is a menu, this means it
6113goes after the other menu items.
6114
6115** If you have a program that makes several changes in the same area
79214ddf 6116of the buffer, you can use the macro combine-after-change-calls
a933dad1
DL
6117around that Lisp code to make it faster when after-change hooks
6118are in use.
6119
6120The macro arranges to call the after-change functions just once for a
6121series of several changes--if that seems safe.
6122
6123Don't alter the variables after-change-functions and
6124after-change-function within the body of a combine-after-change-calls
6125form.
6126
6127** If you define an abbrev (with define-abbrev) whose EXPANSION
6128is not a string, then the abbrev does not expand in the usual sense,
6129but its hook is still run.
6130
6131** Normally, the Lisp debugger is not used (even if you have enabled it)
6132for errors that are handled by condition-case.
6133
6134If you set debug-on-signal to a non-nil value, then the debugger is called
6135regardless of whether there is a handler for the condition. This is
6136useful for debugging problems that happen inside of a condition-case.
6137
6138This mode of operation seems to be unreliable in other ways. Errors that
6139are normal and ought to be handled, perhaps in timers or process
6140filters, will instead invoke the debugger. So don't say you weren't
6141warned.
6142
6143** The new variable ring-bell-function lets you specify your own
6144way for Emacs to "ring the bell".
6145
6146** If run-at-time's TIME argument is t, the action is repeated at
6147integral multiples of REPEAT from the epoch; this is useful for
6148functions like display-time.
6149
6150** You can use the function locate-library to find the precise file
6151name of a Lisp library. This isn't new, but wasn't documented before.
6152
6153** Commands for entering view mode have new optional arguments that
6154can be used from Lisp. Low-level entrance to and exit from view mode
6155is done by functions view-mode-enter and view-mode-exit.
6156
6157** batch-byte-compile-file now makes Emacs return a nonzero status code
6158if there is an error in compilation.
6159
6160** pop-to-buffer, switch-to-buffer-other-window and
6161switch-to-buffer-other-frame now accept an additional optional
6162argument NORECORD, much like switch-to-buffer. If it is non-nil,
6163they don't put the buffer at the front of the buffer list.
6164
6165** If your .emacs file leaves the *scratch* buffer non-empty,
6166Emacs does not display the startup message, so as to avoid changing
6167the *scratch* buffer.
6168
6169** The new function regexp-opt returns an efficient regexp to match a string.
6170The arguments are STRINGS and (optionally) PAREN. This function can be used
6171where regexp matching or searching is intensively used and speed is important,
6172e.g., in Font Lock mode.
6173
6174** The variable buffer-display-count is local to each buffer,
6175and is incremented each time the buffer is displayed in a window.
6176It starts at 0 when the buffer is created.
6177
6178** The new function compose-mail starts composing a mail message
6179using the user's chosen mail composition agent (specified with the
6180variable mail-user-agent). It has variants compose-mail-other-window
6181and compose-mail-other-frame.
6182
6183** The `user-full-name' function now takes an optional parameter which
6184can either be a number (the UID) or a string (the login name). The
6185full name of the specified user will be returned.
6186
6187** Lisp packages that load files of customizations, or any other sort
6188of user profile, should obey the variable init-file-user in deciding
6189where to find it. They should load the profile of the user name found
6190in that variable. If init-file-user is nil, meaning that the -q
6191option was used, then Lisp packages should not load the customization
6192files at all.
6193
6194** format-time-string now allows you to specify the field width
6195and type of padding. This works as in printf: you write the field
6196width as digits in the middle of a %-construct. If you start
6197the field width with 0, it means to pad with zeros.
6198
6199For example, %S normally specifies the number of seconds since the
6200minute; %03S means to pad this with zeros to 3 positions, %_3S to pad
6201with spaces to 3 positions. Plain %3S pads with zeros, because that
6202is how %S normally pads to two positions.
6203
6204** thing-at-point now supports a new kind of "thing": url.
6205
6206** imenu.el changes.
6207
6208You can now specify a function to be run when selecting an
79214ddf 6209item from menu created by imenu.
a933dad1
DL
6210
6211An example of using this feature: if we define imenu items for the
6212#include directives in a C file, we can open the included file when we
6213select one of those items.
6214\f
6215* Emacs 19.34 is a bug-fix release with no user-visible changes.
6216\f
6217* Changes in Emacs 19.33.
6218
6219** Bibtex mode no longer turns on Auto Fill automatically. (No major
6220mode should do that--it is the user's choice.)
6221
6222** The variable normal-auto-fill-function specifies the function to
6223use for auto-fill-function, if and when Auto Fill is turned on.
6224Major modes can set this locally to alter how Auto Fill works.
6225\f
6226* Editing Changes in Emacs 19.32
6227
6228** C-x f with no argument now signals an error.
6229To set the fill column at the current column, use C-u C-x f.
6230
6231** Expanding dynamic abbrevs with M-/ is now smarter about case
6232conversion. If you type the abbreviation with mixed case, and it
6233matches the beginning of the expansion including case, then the
6234expansion is copied verbatim. Using SPC M-/ to copy an additional
6235word always copies it verbatim except when the previous copied word is
6236all caps.
6237
6238** On a non-windowing terminal, which can display only one Emacs frame
6239at a time, creating a new frame with C-x 5 2 also selects that frame.
6240
6241When using a display that can show multiple frames at once, C-x 5 2
6242does make the frame visible, but does not select it. This is the same
6243as in previous Emacs versions.
6244
6245** You can use C-x 5 2 to create multiple frames on MSDOS, just as on a
6246non-X terminal on Unix. Of course, only one frame is visible at any
6247time, since your terminal doesn't have the ability to display multiple
6248frames.
6249
6250** On Windows, set win32-pass-alt-to-system to a non-nil value
6251if you would like tapping the Alt key to invoke the Windows menu.
6252This feature is not enabled by default; since the Alt key is also the
6253Meta key, it is too easy and painful to activate this feature by
6254accident.
6255
6256** The command apply-macro-to-region-lines repeats the last defined
6257keyboard macro once for each complete line within the current region.
6258It does this line by line, by moving point to the beginning of that
6259line and then executing the macro.
6260
6261This command is not new, but was never documented before.
6262
6263** You can now use Mouse-1 to place the region around a string constant
6264(something surrounded by doublequote characters or other delimiter
6265characters of like syntax) by double-clicking on one of the delimiting
6266characters.
6267
6268** Font Lock mode
6269
6270*** Font Lock support modes
6271
6272Font Lock can be configured to use Fast Lock mode and Lazy Lock mode (see
6273below) in a flexible way. Rather than adding the appropriate function to the
6274hook font-lock-mode-hook, you can use the new variable font-lock-support-mode
6275to control which modes have Fast Lock mode or Lazy Lock mode turned on when
6276Font Lock mode is enabled.
6277
6278For example, to use Fast Lock mode when Font Lock mode is turned on, put:
6279
6280 (setq font-lock-support-mode 'fast-lock-mode)
6281
6282in your ~/.emacs.
6283
6284*** lazy-lock
6285
6286The lazy-lock package speeds up Font Lock mode by making fontification occur
6287only when necessary, such as when a previously unfontified part of the buffer
6288becomes visible in a window. When you create a buffer with Font Lock mode and
6289Lazy Lock mode turned on, the buffer is not fontified. When certain events
6290occur (such as scrolling), Lazy Lock makes sure that the visible parts of the
6291buffer are fontified. Lazy Lock also defers on-the-fly fontification until
6292Emacs has been idle for a given amount of time.
6293
6294To use this package, put in your ~/.emacs:
6295
6296 (setq font-lock-support-mode 'lazy-lock-mode)
6297
6298To control the package behaviour, see the documentation for `lazy-lock-mode'.
6299
6300** Changes in BibTeX mode.
6301
6302*** For all entries allow spaces and tabs between opening brace or
6303paren and key.
6304
6305*** Non-escaped double-quoted characters (as in `Sch"of') are now
6306supported.
6307
6308** Gnus changes.
6309
6310Gnus, the Emacs news reader, has undergone further rewriting. Many new
6311commands and variables have been added. There should be no
6312significant incompatibilities between this Gnus version and the
6313previously released version, except in the message composition area.
6314
6315Below is a list of the more user-visible changes. Coding changes
6316between Gnus 5.1 and 5.2 are more extensive.
6317
79214ddf 6318*** A new message composition mode is used. All old customization
a933dad1
DL
6319variables for mail-mode, rnews-reply-mode and gnus-msg are now
6320obsolete.
6321
6322*** Gnus is now able to generate "sparse" threads -- threads where
6323missing articles are represented by empty nodes.
6324
6325 (setq gnus-build-sparse-threads 'some)
6326
6327*** Outgoing articles are stored on a special archive server.
6328
6329 To disable this: (setq gnus-message-archive-group nil)
6330
6331*** Partial thread regeneration now happens when articles are
79214ddf 6332referred.
a933dad1
DL
6333
6334*** Gnus can make use of GroupLens predictions:
6335
6336 (setq gnus-use-grouplens t)
6337
6338*** A trn-line tree buffer can be displayed.
6339
6340 (setq gnus-use-trees t)
6341
6342*** An nn-like pick-and-read minor mode is available for the summary
79214ddf 6343buffers.
a933dad1
DL
6344
6345 (add-hook 'gnus-summary-mode-hook 'gnus-pick-mode)
6346
6347*** In binary groups you can use a special binary minor mode:
6348
6349 `M-x gnus-binary-mode'
6350
6351*** Groups can be grouped in a folding topic hierarchy.
6352
6353 (add-hook 'gnus-group-mode-hook 'gnus-topic-mode)
6354
6355*** Gnus can re-send and bounce mail.
6356
6357 Use the `S D r' and `S D b'.
6358
6359*** Groups can now have a score, and bubbling based on entry frequency
6360is possible.
6361
6362 (add-hook 'gnus-summary-exit-hook 'gnus-summary-bubble-group)
6363
6364*** Groups can be process-marked, and commands can be performed on
6365groups of groups.
6366
6367*** Caching is possible in virtual groups.
6368
6369*** nndoc now understands all kinds of digests, mail boxes, rnews news
79214ddf 6370batches, ClariNet briefs collections, and just about everything else.
a933dad1
DL
6371
6372*** Gnus has a new backend (nnsoup) to create/read SOUP packets.
6373
6374*** The Gnus cache is much faster.
6375
6376*** Groups can be sorted according to many criteria.
6377
6378 For instance: (setq gnus-group-sort-function 'gnus-group-sort-by-rank)
6379
6380*** New group parameters have been introduced to set list-address and
6381expiration times.
6382
6383*** All formatting specs allow specifying faces to be used.
6384
6385*** There are several more commands for setting/removing/acting on
6386process marked articles on the `M P' submap.
6387
6388*** The summary buffer can be limited to show parts of the available
6389articles based on a wide range of criteria. These commands have been
6390bound to keys on the `/' submap.
6391
6392*** Articles can be made persistent -- as an alternative to saving
6393articles with the `*' command.
6394
6395*** All functions for hiding article elements are now toggles.
6396
6397*** Article headers can be buttonized.
6398
6399 (add-hook 'gnus-article-display-hook 'gnus-article-add-buttons-to-head)
6400
6401*** All mail backends support fetching articles by Message-ID.
6402
79214ddf 6403*** Duplicate mail can now be treated properly. See the
a933dad1
DL
6404`nnmail-treat-duplicates' variable.
6405
6406*** All summary mode commands are available directly from the article
79214ddf 6407buffer.
a933dad1
DL
6408
6409*** Frames can be part of `gnus-buffer-configuration'.
6410
6411*** Mail can be re-scanned by a daemonic process.
6412
6413*** Gnus can make use of NoCeM files to filter spam.
6414
6415 (setq gnus-use-nocem t)
6416
79214ddf 6417*** Groups can be made permanently visible.
a933dad1
DL
6418
6419 (setq gnus-permanently-visible-groups "^nnml:")
6420
79214ddf 6421*** Many new hooks have been introduced to make customizing easier.
a933dad1
DL
6422
6423*** Gnus respects the Mail-Copies-To header.
6424
79214ddf 6425*** Threads can be gathered by looking at the References header.
a933dad1 6426
79214ddf 6427 (setq gnus-summary-thread-gathering-function
a933dad1
DL
6428 'gnus-gather-threads-by-references)
6429
6430*** Read articles can be stored in a special backlog buffer to avoid
79214ddf 6431refetching.
a933dad1
DL
6432
6433 (setq gnus-keep-backlog 50)
6434
6435*** A clean copy of the current article is always stored in a separate
6436buffer to allow easier treatment.
6437
6438*** Gnus can suggest where to save articles. See `gnus-split-methods'.
6439
6440*** Gnus doesn't have to do as much prompting when saving.
6441
6442 (setq gnus-prompt-before-saving t)
6443
6444*** gnus-uu can view decoded files asynchronously while fetching
79214ddf 6445articles.
a933dad1
DL
6446
6447 (setq gnus-uu-grabbed-file-functions 'gnus-uu-grab-view)
6448
79214ddf 6449*** Filling in the article buffer now works properly on cited text.
a933dad1
DL
6450
6451*** Hiding cited text adds buttons to toggle hiding, and how much
6452cited text to hide is now customizable.
6453
6454 (setq gnus-cited-lines-visible 2)
6455
6456*** Boring headers can be hidden.
6457
6458 (add-hook 'gnus-article-display-hook 'gnus-article-hide-boring-headers)
6459
6460*** Default scoring values can now be set from the menu bar.
6461
6462*** Further syntax checking of outgoing articles have been added.
6463
6464The Gnus manual has been expanded. It explains all these new features
6465in greater detail.
6466\f
6467* Lisp Changes in Emacs 19.32
6468
6469** The function set-visited-file-name now accepts an optional
6470second argument NO-QUERY. If it is non-nil, then the user is not
6471asked for confirmation in the case where the specified file already
6472exists.
6473
6474** The variable print-length applies to printing vectors and bitvectors,
6475as well as lists.
6476
6477** The new function keymap-parent returns the parent keymap
6478of a given keymap.
6479
6480** The new function set-keymap-parent specifies a new parent for a
6481given keymap. The arguments are KEYMAP and PARENT. PARENT must be a
6482keymap or nil.
6483
6484** Sometimes menu keymaps use a command name, a symbol, which is really
6485an automatically generated alias for some other command, the "real"
6486name. In such a case, you should give that alias symbol a non-nil
6487menu-alias property. That property tells the menu system to look for
6488equivalent keys for the real name instead of equivalent keys for the
6489alias.
6490\f
6491* Editing Changes in Emacs 19.31
6492
6493** Freedom of the press restricted in the United States.
6494
6495Emacs has been censored in accord with the Communications Decency Act.
6496This includes removing some features of the doctor program. That law
6497was described by its supporters as a ban on pornography, but it bans
6498far more than that. The Emacs distribution has never contained any
6499pornography, but parts of it were nonetheless prohibited.
6500
6501For information on US government censorship of the Internet, and what
6502you can do to bring back freedom of the press, see the web site
6503`http://www.vtw.org/'.
6504
6505** A note about C mode indentation customization.
6506
6507The old (Emacs 19.29) ways of specifying a C indentation style
6508do not normally work in the new implementation of C mode.
6509It has its own methods of customizing indentation, which are
6510much more powerful than the old C mode. See the Editing Programs
6511chapter of the manual for details.
6512
6513However, you can load the library cc-compat to make the old
6514customization variables take effect.
6515
6516** Marking with the mouse.
6517
6518When you mark a region with the mouse, the region now remains
6519highlighted until the next input event, regardless of whether you are
6520using M-x transient-mark-mode.
6521
6522** Improved Windows NT/95 support.
6523
6524*** Emacs now supports scroll bars on Windows NT and Windows 95.
6525
6526*** Emacs now supports subprocesses on Windows 95. (Subprocesses used
6527to work on NT only and not on 95.)
6528
6529*** There are difficulties with subprocesses, though, due to problems
6530in Windows, beyond the control of Emacs. They work fine as long as
6531you run Windows applications. The problems arise when you run a DOS
6532application in a subprocesses. Since current shells run as DOS
6533applications, these problems are significant.
6534
6535If you run a DOS application in a subprocess, then the application is
6536likely to busy-wait, which means that your machine will be 100% busy.
6537However, if you don't mind the temporary heavy load, the subprocess
6538will work OK as long as you tell it to terminate before you start any
6539other DOS application as a subprocess.
6540
6541Emacs is unable to terminate or interrupt a DOS subprocess.
6542You have to do this by providing input directly to the subprocess.
6543
6544If you run two DOS applications at the same time in two separate
6545subprocesses, even if one of them is asynchronous, you will probably
6546have to reboot your machine--until then, it will remain 100% busy.
6547Windows simply does not cope when one Windows process tries to run two
6548separate DOS subprocesses. Typing CTL-ALT-DEL and then choosing
6549Shutdown seems to work although it may take a few minutes.
6550
6551** M-x resize-minibuffer-mode.
6552
6553This command, not previously mentioned in NEWS, toggles a mode in
6554which the minibuffer window expands to show as many lines as the
6555minibuffer contains.
6556
6557** `title' frame parameter and resource.
6558
6559The `title' X resource now specifies just the frame title, nothing else.
6560It does not affect the name used for looking up other X resources.
6561It works by setting the new `title' frame parameter, which likewise
6562affects just the displayed title of the frame.
6563
6564The `name' parameter continues to do what it used to do:
6565it specifies the frame name for looking up X resources,
6566and also serves as the default for the displayed title
6567when the `title' parameter is unspecified or nil.
6568
6569** Emacs now uses the X toolkit by default, if you have a new
6570enough version of X installed (X11R5 or newer).
6571
6572** When you compile Emacs with the Motif widget set, Motif handles the
6573F10 key by activating the menu bar. To avoid confusion, the usual
6574Emacs binding of F10 is replaced with a no-op when using Motif.
6575
6576If you want to be able to use F10 in Emacs, you can rebind the Motif
6577menubar to some other key which you don't use. To do so, add
6578something like this to your X resources file. This example rebinds
6579the Motif menu bar activation key to S-F12:
6580
6581 Emacs*defaultVirtualBindings: osfMenuBar : Shift<Key>F12
6582
6583** In overwrite mode, DEL now inserts spaces in most cases
6584to replace the characters it "deletes".
6585
6586** The Rmail summary now shows the number of lines in each message.
6587
6588** Rmail has a new command M-x unforward-rmail-message, which extracts
6589a forwarded message from the message that forwarded it. To use it,
6590select a message which contains a forwarded message and then type the command.
6591It inserts the forwarded message as a separate Rmail message
6592immediately after the selected one.
6593
6594This command also undoes the textual modifications that are standardly
6595made, as part of forwarding, by Rmail and other mail reader programs.
6596
6597** Turning off saving of .saves-... files in your home directory.
6598
6599Each Emacs session writes a file named .saves-... in your home
6600directory to record which files M-x recover-session should recover.
6601If you exit Emacs normally with C-x C-c, it deletes that file. If
6602Emacs or the operating system crashes, the file remains for M-x
6603recover-session.
6604
6605You can turn off the writing of these files by setting
6606auto-save-list-file-name to nil. If you do this, M-x recover-session
6607will not work.
6608
6609Some previous Emacs versions failed to delete these files even on
6610normal exit. This is fixed now. If you are thinking of turning off
6611this feature because of past experiences with versions that had this
6612bug, it would make sense to check whether you still want to do so
6613now that the bug is fixed.
6614
6615** Changes to Version Control (VC)
6616
6617There is a new variable, vc-follow-symlinks. It indicates what to do
6618when you visit a link to a file that is under version control.
6619Editing the file through the link bypasses the version control system,
6620which is dangerous and probably not what you want.
6621
6622If this variable is t, VC follows the link and visits the real file,
6623telling you about it in the echo area. If it is `ask' (the default),
6624VC asks for confirmation whether it should follow the link. If nil,
6625the link is visited and a warning displayed.
6626
6627** iso-acc.el now lets you specify a choice of language.
6628Languages include "latin-1" (the default) and "latin-2" (which
6629is designed for entering ISO Latin-2 characters).
6630
6631There are also choices for specific human languages such as French and
6632Portuguese. These are subsets of Latin-1, which differ in that they
6633enable only the accent characters needed for particular language.
6634The other accent characters, not needed for the chosen language,
6635remain normal.
6636
6637** Posting articles and sending mail now has M-TAB completion on various
6638header fields (Newsgroups, To, CC, ...).
6639
6640Completion in the Newsgroups header depends on the list of groups
6641known to your news reader. Completion in the Followup-To header
6642offers those groups which are in the Newsgroups header, since
6643Followup-To usually just holds one of those.
6644
6645Completion in fields that hold mail addresses works based on the list
6646of local users plus your aliases. Additionally, if your site provides
6647a mail directory or a specific host to use for any unrecognized user
6648name, you can arrange to query that host for completion also. (See the
6649documentation of variables `mail-directory-process' and
6650`mail-directory-stream'.)
6651
6652** A greatly extended sgml-mode offers new features such as (to be configured)
6653skeletons with completing read for tags and attributes, typing named
6654characters including optionally all 8bit characters, making tags invisible
6655with optional alternate display text, skipping and deleting tag(pair)s.
6656
6657Note: since Emacs' syntax feature cannot limit the special meaning of ', " and
6658- to inside <>, for some texts the result, especially of font locking, may be
6659wrong (see `sgml-specials' if you get wrong results).
6660
6661The derived html-mode configures this with tags and attributes more or
6662less HTML3ish. It also offers optional quick keys like C-c 1 for
6663headline or C-c u for unordered list (see `html-quick-keys'). Edit /
6664Text Properties / Face or M-g combinations create tags as applicable.
6665Outline minor mode is supported and level 1 font-locking tries to
6666fontify tag contents (which only works when they fit on one line, due
6667to a limitation in font-lock).
6668
6669External viewing via browse-url can occur automatically upon saving.
6670
6671** M-x imenu-add-to-menubar now adds to the menu bar for the current
6672buffer only. If you want to put an Imenu item in the menu bar for all
6673buffers that use a particular major mode, use the mode hook, as in
6674this example:
6675
6676 (add-hook 'emacs-lisp-mode-hook
6677 '(lambda () (imenu-add-to-menubar "Index")))
6678
6679** Changes in BibTeX mode.
6680
6681*** Field names may now contain digits, hyphens, and underscores.
6682
6683*** Font Lock mode is now supported.
6684
6685*** bibtex-make-optional-field is no longer interactive.
6686
6687*** If bibtex-maintain-sorted-entries is non-nil, inserting new
6688entries is now done with a faster algorithm. However, inserting
6689will fail in this case if the buffer contains invalid entries or
6690isn't in sorted order, so you should finish each entry with C-c C-c
6691(bibtex-close-entry) after you have inserted or modified it.
6692The default value of bibtex-maintain-sorted-entries is nil.
6693
6694*** Function `show-all' is no longer bound to a key, since C-u C-c C-q
6695does the same job.
6696
6697*** Entries with quotes inside quote-delimited fields (as `author =
6698"Stefan Sch{\"o}f"') are now supported.
6699
6700*** Case in field names doesn't matter anymore when searching for help
6701text.
6702
6703** Font Lock mode
6704
6705*** Global Font Lock mode
6706
6707Font Lock mode can be turned on globally, in buffers that support it, by the
6708new command global-font-lock-mode. You can use the new variable
6709font-lock-global-modes to control which modes have Font Lock mode automagically
6710turned on. By default, this variable is set so that Font Lock mode is turned
6711on globally where the buffer mode supports it.
6712
6713For example, to automagically turn on Font Lock mode where supported, put:
6714
6715 (global-font-lock-mode t)
6716
6717in your ~/.emacs.
6718
6719*** Local Refontification
6720
6721In Font Lock mode, editing a line automatically refontifies that line only.
6722However, if your change alters the syntactic context for following lines,
6723those lines remain incorrectly fontified. To refontify them, use the new
6724command M-g M-g (font-lock-fontify-block).
6725
6726In certain major modes, M-g M-g refontifies the entire current function.
6727(The variable font-lock-mark-block-function controls how to find the
6728current function.) In other major modes, M-g M-g refontifies 16 lines
6729above and below point.
6730
6731With a prefix argument N, M-g M-g refontifies N lines above and below point.
6732
6733** Follow mode
6734
6735Follow mode is a new minor mode combining windows showing the same
6736buffer into one tall "virtual window". The windows are typically two
6737side-by-side windows. Follow mode makes them scroll together as if
6738they were a unit. To use it, go to a frame with just one window,
6739split it into two side-by-side windows using C-x 3, and then type M-x
6740follow-mode.
6741
6742M-x follow-mode turns off Follow mode if it is already enabled.
6743
6744To display two side-by-side windows and activate Follow mode, use the
6745command M-x follow-delete-other-windows-and-split.
6746
6747** hide-show changes.
6748
6749The hooks hs-hide-hooks and hs-show-hooks have been renamed
6750to hs-hide-hook and hs-show-hook, to follow the convention for
6751normal hooks.
6752
6753** Simula mode now has a menu containing the most important commands.
6754The new command simula-indent-exp is bound to C-M-q.
6755
6756** etags can now handle programs written in Erlang. Files are
6757recognised by the extensions .erl and .hrl. The tagged lines are
6758those that begin a function, record, or macro.
6759
6760** MSDOS Changes
6761
6762*** It is now possible to compile Emacs with the version 2 of DJGPP.
6763Compilation with DJGPP version 1 also still works.
6764
6765*** The documentation of DOS-specific aspects of Emacs was rewritten
6766and expanded; see the ``MS-DOS'' node in the on-line docs.
6767
6768*** Emacs now uses ~ for backup file names, not .bak.
6769
6770*** You can simulate mouse-3 on two-button mice by simultaneously
6771pressing both mouse buttons.
6772
6773*** A number of packages and commands which previously failed or had
6774restricted functionality on MS-DOS, now work. The most important ones
79214ddf 6775are:
a933dad1
DL
6776
6777**** Printing (both with `M-x lpr-buffer' and with `ps-print' package)
6778now works.
6779
6780**** `Ediff' works (in a single-frame mode).
6781
6782**** `M-x display-time' can be used on MS-DOS (due to the new
6783implementation of Emacs timers, see below).
6784
6785**** `Dired' supports Unix-style shell wildcards.
6786
6787**** The `c-macro-expand' command now works as on other platforms.
6788
6789**** `M-x recover-session' works.
6790
6791**** `M-x list-colors-display' displays all the available colors.
6792
6793**** The `TPU-EDT' package works.
6794\f
6795* Lisp changes in Emacs 19.31.
6796
6797** The function using-unix-filesystems on Windows NT and Windows 95
6798tells Emacs to read and write files assuming that they reside on a
6799remote Unix filesystem. No CR/LF translation is done on any files in
6800this case. Invoking using-unix-filesystems with t activates this
6801behavior, and invoking it with any other value deactivates it.
6802
6803** Change in system-type and system-configuration values.
6804
6805The value of system-type on a Linux-based GNU system is now `lignux',
6806not `linux'. This means that some programs which use `system-type'
6807need to be changed. The value of `system-configuration' will also
6808be different.
6809
6810It is generally recommended to use `system-configuration' rather
6811than `system-type'.
6812
6813See the file LINUX-GNU in this directory for more about this.
6814
6815** The functions shell-command and dired-call-process
6816now run file name handlers for default-directory, if it has them.
6817
6818** Undoing the deletion of text now restores the positions of markers
6819that pointed into or next to the deleted text.
6820
6821** Timers created with run-at-time now work internally to Emacs, and
6822no longer use a separate process. Therefore, they now work more
6823reliably and can be used for shorter time delays.
6824
6825The new function run-with-timer is a convenient way to set up a timer
6826to run a specified amount of time after the present. A call looks
6827like this:
6828
6829 (run-with-timer SECS REPEAT FUNCTION ARGS...)
6830
6831SECS says how many seconds should elapse before the timer happens.
6832It may be an integer or a floating point number. When the timer
6833becomes ripe, the action is to call FUNCTION with arguments ARGS.
6834
6835REPEAT gives the interval for repeating the timer (measured in
6836seconds). It may be an integer or a floating point number. nil or 0
6837means don't repeat at all--call FUNCTION just once.
6838
6839*** with-timeout provides an easy way to do something but give
6840up if too much time passes.
6841
6842 (with-timeout (SECONDS TIMEOUT-FORMS...) BODY...)
6843
6844This executes BODY, but gives up after SECONDS seconds.
6845If it gives up, it runs the TIMEOUT-FORMS and returns the value
6846of the last one of them. Normally it returns the value of the last
6847form in BODY.
6848
6849*** You can now arrange to call a function whenever Emacs is idle for
6850a certain length of time. To do this, call run-with-idle-timer. A
6851call looks like this:
6852
6853 (run-with-idle-timer SECS REPEAT FUNCTION ARGS...)
6854
6855SECS says how many seconds of idleness should elapse before the timer
6856runs. It may be an integer or a floating point number. When the
6857timer becomes ripe, the action is to call FUNCTION with arguments
6858ARGS.
6859
6860Emacs becomes idle whenever it finishes executing a keyboard or mouse
6861command. It remains idle until it receives another keyboard or mouse
6862command.
6863
6864REPEAT, if non-nil, means this timer should be activated again each
6865time Emacs becomes idle and remains idle for SECS seconds The timer
6866does not repeat if Emacs *remains* idle; it runs at most once after
6867each time Emacs becomes idle.
6868
6869If REPEAT is nil, the timer runs just once, the first time Emacs is
6870idle for SECS seconds.
6871
6872*** post-command-idle-hook is now obsolete; you shouldn't use it at
6873all, because it interferes with the idle timer mechanism. If your
6874programs use post-command-idle-hook, convert them to use idle timers
6875instead.
6876
6877*** y-or-n-p-with-timeout lets you ask a question but give up if
6878there is no answer within a certain time.
6879
6880 (y-or-n-p-with-timeout PROMPT SECONDS DEFAULT-VALUE)
6881
6882asks the question PROMPT (just like y-or-n-p). If the user answers
6883within SECONDS seconds, it returns the answer that the user gave.
6884Otherwise it gives up after SECONDS seconds, and returns DEFAULT-VALUE.
6885
6886** Minor change to `encode-time': you can now pass more than seven
6887arguments. If you do that, the first six arguments have the usual
6888meaning, the last argument is interpreted as the time zone, and the
6889arguments in between are ignored.
6890
6891This means that it works to use the list returned by `decode-time' as
6892the list of arguments for `encode-time'.
6893
6894** The default value of load-path now includes the directory
6895/usr/local/share/emacs/VERSION/site-lisp In addition to
6896/usr/local/share/emacs/site-lisp. You can use this new directory for
6897site-specific Lisp packages that belong with a particular Emacs
6898version.
6899
6900It is not unusual for a Lisp package that works well in one Emacs
6901version to cause trouble in another. Sometimes packages need updating
6902for incompatible changes; sometimes they look at internal data that
6903has changed; sometimes the package has been installed in Emacs itself
6904and the installed version should be used. Whatever the reason for the
6905problem, this new feature makes it easier to solve.
6906
6907** When your program contains a fixed file name (like .completions or
6908.abbrev.defs), the file name usually needs to be different on operating
6909systems with limited file name syntax.
6910
6911Now you can avoid ad-hoc conditionals by using the function
6912convert-standard-filename to convert the file name to a proper form
6913for each operating system. Here is an example of use, from the file
6914completions.el:
6915
6916(defvar save-completions-file-name
6917 (convert-standard-filename "~/.completions")
6918 "*The filename to save completions to.")
6919
6920This sets the variable save-completions-file-name to a value that
6921depends on the operating system, because the definition of
6922convert-standard-filename depends on the operating system. On
6923Unix-like systems, it returns the specified file name unchanged. On
6924MS-DOS, it adapts the name to fit the limitations of that system.
6925
6926** The interactive spec N now returns the numeric prefix argument
6927rather than the raw prefix argument. (It still reads a number using the
6928minibuffer if there is no prefix argument at all.)
6929
6930** When a process is deleted, this no longer disconnects the process
6931marker from its buffer position.
6932
6933** The variable garbage-collection-messages now controls whether
6934Emacs displays a message at the beginning and end of garbage collection.
6935The default is nil, meaning there are no messages.
6936
6937** The variable debug-ignored-errors specifies certain kinds of errors
6938that should not enter the debugger. Its value is a list of error
6939condition symbols and/or regular expressions. If the error has any
6940of the condition symbols listed, or if any of the regular expressions
6941matches the error message, then that error does not enter the debugger,
6942regardless of the value of debug-on-error.
6943
6944This variable is initialized to match certain common but uninteresting
6945errors that happen often during editing.
6946
6947** The new function error-message-string converts an error datum
6948into its error message. The error datum is what condition-case
6949puts into the variable, to describe the error that happened.
6950
6951** Anything that changes which buffer appears in a given window
6952now runs the window-scroll-functions for that window.
6953
6954** The new function get-buffer-window-list returns a list of windows displaying
6955a buffer. The function is called with the buffer (a buffer object or a buffer
6956name) and two optional arguments specifying the minibuffer windows and frames
6957to search. Therefore this function takes optional args like next-window etc.,
6958and not get-buffer-window.
6959
6960** buffer-substring now runs the hook buffer-access-fontify-functions,
6961calling each function with two arguments--the range of the buffer
6962being accessed. buffer-substring-no-properties does not call them.
6963
6964If you use this feature, you should set the variable
6965buffer-access-fontified-property to a non-nil symbol, which is a
6966property name. Then, if all the characters in the buffer range have a
6967non-nil value for that property, the buffer-access-fontify-functions
6968are not called. When called, these functions should put a non-nil
6969property on the text that they fontify, so that they won't get called
6970over and over for the same text.
6971
6972** Changes in lisp-mnt.el
6973
6974*** The lisp-mnt package can now recognize file headers that are written
6975in the formats used by the `what' command and the RCS `ident' command:
6976
6977;; @(#) HEADER: text
6978;; $HEADER: text $
6979
6980in addition to the normal
6981
6982;; HEADER: text
6983
6984*** The commands lm-verify and lm-synopsis are now interactive. lm-verify
6985checks that the library file has proper sections and headers, and
6986lm-synopsis extracts first line "synopsis'"information.
6987\f
6988* For older news, see the file ONEWS.
6989
6990----------------------------------------------------------------------
6991Copyright information:
6992
6993Copyright (C) 1996, 1997, 1998, 1999 Free Software Foundation, Inc.
6994
6995 Permission is granted to anyone to make or distribute verbatim copies
6996 of this document as received, in any medium, provided that the
6997 copyright notice and this permission notice are preserved,
6998 thus giving the recipient permission to redistribute in turn.
6999
7000 Permission is granted to distribute modified versions
7001 of this document, or of portions of it,
7002 under the above conditions, provided also that they
7003 carry prominent notices stating who last changed them.
7004\f
7005Local variables:
7006mode: outline
7007paragraph-separate: "[ \f]*$"
7008end: