*** empty log message ***
[bpt/emacs.git] / etc / NEWS
1 GNU Emacs NEWS -- history of user-visible changes. 2003-05-21
2 Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
3 See the end for copying conditions.
4
5 Please send Emacs bug reports to bug-gnu-emacs@gnu.org.
6 For older news, see the file ONEWS
7 You can narrow news to the specific version by calling
8 `view-emacs-news' with a prefix argument or by typing C-u C-h C-n.
9
10 Temporary note:
11 +++ indicates that the appropriate manual has already been updated.
12 --- means no change in the manuals is called for.
13 When you add a new item, please add it without either +++ or ---
14 so we will look at it and add it to the manual.
15
16 \f
17 * Installation Changes in Emacs 21.4
18
19 ---
20 ** A Bulgarian translation of the Emacs Tutorial is available.
21
22 ** You can build Emacs with Gtk+ widgets by specifying `--with-x-toolkit=gtk'
23 when you run configure. This requires Gtk+ 2.0 or newer. This port
24 provides a way to display multilingual text in menus (with some caveats).
25
26 ---
27 ** Emacs can now be built without sound support.
28
29 ** The `emacsserver' program has been removed, replaced with elisp code.
30
31 ---
32 ** Emacs now supports new configure options `--program-prefix',
33 `--program-suffix' and `--program-transform-name' that affect the names of
34 installed programs.
35
36 ---
37 ** By default, Emacs now uses a setgid helper program to update game
38 scores. The directory ${localstatedir}/games/emacs is the normal
39 place for game scores to be stored. This may be controlled by the
40 configure option `--with-game-dir'. The specific user that Emacs uses
41 to own the game scores is controlled by `--with-game-user'. If access
42 to a game user is not available, then scores will be stored separately
43 in each user's home directory.
44
45 ---
46 ** Leim is now part of the Emacs distribution.
47 You no longer need to download a separate tarball in order to build
48 Emacs with Leim.
49
50 +++
51 ** The Emacs Lisp Reference Manual is now part of the distribution.
52
53 The ELisp reference manual in Info format is built as part of the
54 Emacs build procedure and installed together with the Emacs User
55 Manual. A menu item was added to the menu bar that makes it easy
56 accessible (Help->More Manuals->Emacs Lisp Reference).
57
58 ---
59 ** The Introduction to Programming in Emacs Lisp manual is now part of
60 the distribution.
61
62 This manual is now part of the standard distribution and is installed,
63 together with the Emacs User Manual, into the Info directory. A menu
64 item was added to the menu bar that makes it easy accessible
65 (Help->More Manuals->Introduction to Emacs Lisp).
66
67 ** Support for Cygwin was added.
68
69 ---
70 ** Support for FreeBSD/Alpha has been added.
71
72 ---
73 ** Support for GNU/Linux systems on S390 machines was added.
74
75 ---
76 ** Support for MacOS X was added.
77 See the files mac/README and mac/INSTALL for build instructions.
78
79 ---
80 ** Support for GNU/Linux systems on X86-64 machines was added.
81
82 ---
83 ** A French translation of the `Emacs Survival Guide' is available.
84
85 ---
86 ** A French translation of the Emacs Tutorial is available.
87 ** Building with -DENABLE_CHECKING does not automatically build with union
88 types any more. Add -DUSE_LISP_UNION_TYPE if you want union types.
89
90 \f
91 * Changes in Emacs 21.4
92
93 ---
94 ** The comint prompt can now be made read-only, using the new user
95 option `comint-prompt-read-only'. This is not enabled by default,
96 except in IELM buffers. The read-only status of IELM prompts can be
97 controlled with the new user option `ielm-prompt-read-only', which
98 overrides `comint-prompt-read-only'.
99
100 The new commands `comint-kill-whole-line' and `comint-kill-region'
101 support editing comint buffers with read-only prompts.
102
103 `comint-kill-whole-line' is like `kill-whole-line', but ignores both
104 read-only and field properties. Hence, it will always kill entire
105 lines, including any prompts.
106
107 `comint-kill-region' is like `kill-region', except that it ignores
108 read-only properties, if it is safe to do so. This means that if any
109 part of a prompt is deleted, then the entire prompt must be deleted
110 and that all prompts must stay at the beginning of a line. If this is
111 not the case, then `comint-kill-region' behaves just like
112 `kill-region' if read-only are involved: it copies the text to the
113 kill-ring, but does not delete it.
114
115 ** You can now use next-error (C-x `) and previous-error to advance to
116 the next/previous matching line found by M-x occur.
117
118 ** Telnet will now prompt you for a port number with C-u M-x telnet.
119
120 +++
121 ** New command line option -Q.
122
123 This is like using -q --no-site-file, but in addition it also disables
124 the menu-bar, the tool-bar, the scroll-bars, tool tips, the blinking
125 cursor, and the fancy startup screen.
126
127 ** C-h v and C-h f commands now include a hyperlink to the C source for
128 variables and functions defined in C (if the C source is available).
129
130 ** When used interactively, `format-write-file' now asks for confirmation
131 before overwriting an existing file, unless a prefix argument is
132 supplied. This behavior is analogous to `write-file'.
133
134 ** You can now use Auto Revert mode to `tail' a file.
135 If point is at the end of a file buffer before reverting, Auto Revert
136 mode keeps it at the end after reverting. Similarly if point is
137 displayed at the end of a file buffer in any window, it will stay at
138 the end of the buffer in that window. This allows to tail a file:
139 just put point at the end of the buffer and it will stay there. This
140 rule applies to file buffers. For non-file buffers, the behavior may
141 be mode dependent.
142
143 ** Auto Revert mode is now more careful to avoid excessive reverts and
144 other potential problems when deciding which non-file buffers to
145 revert. This matters especially if Global Auto Revert mode is enabled
146 and `global-auto-revert-non-file-buffers' is non-nil. Auto Revert
147 mode will only revert a non-file buffer if the buffer has a non-nil
148 `revert-buffer-function' and a non-nil `buffer-stale-function', which
149 decides whether the buffer should be reverted. Currently, this means
150 that auto reverting works for Dired buffers (although this may not
151 work properly on all operating systems) and for the Buffer Menu.
152
153 ** If the new user option `auto-revert-check-vc-info' is non-nil, Auto
154 Revert mode reliably updates version control info (such as the version
155 control number in the mode line), in all version controlled buffers in
156 which it is active. If the option is nil, the default, then this info
157 only gets updated whenever the buffer gets reverted.
158
159 ** New command `Buffer-menu-toggle-files-only' toggles display of file
160 buffers only in the Buffer Menu. It is bound to `T' in Buffer Menu
161 mode.
162
163 ** M-x compile has become more robust and reliable
164
165 Quite a few more kinds of messages are recognized. Messages that are
166 recognized as warnings or informational come in orange or green, instead of
167 red. Informational messages are by default skipped with `next-error'
168 (controlled by `compilation-skip-threshold').
169
170 Location data is collected on the fly as the *compilation* buffer changes.
171 This means you could modify messages to make them point to different files.
172 This also means you can not go to locations of messages you may have deleted.
173
174 The variable `compilation-error-regexp-alist' has now become customizable. If
175 you had added your own regexps to this, you'll probably need to include a
176 leading `^', otherwise they'll match anywhere on a line. There is now also a
177 `compilation-mode-font-lock-keywords' and it nicely handles all the checks
178 that configure outputs and -o options so you see at a glance where you are.
179
180 The new file etc/compilation.txt gives examples of each type of message.
181
182 ** M-x grep has been adapted to new compile
183
184 Hits are fontified in green, and hits in binary files in orange. Grep buffers
185 can be saved and will again be loaded with the new `grep-mode'.
186
187 ** M-x diff uses diff-mode instead of compilation-mode.
188
189 ** M-x compare-windows now can automatically skip non-matching text to
190 resync points in both windows.
191
192 ** New command `strokes-global-set-stroke-string'.
193 This is like `strokes-global-set-stroke', but it allows you to bind
194 the stroke directly to a string to insert. This is convenient for
195 using strokes as an input method.
196
197 ---
198 ** The saveplace.el package now filters out unreadable files.
199 When you exit Emacs, the saved positions in visited files no longer
200 include files that aren't readable, e.g. files that don't exist.
201 Customize the new option `save-place-forget-unreadable-files' to nil
202 to get the old behavior. The new options `save-place-save-skipped'
203 and `save-place-skip-check-regexp' allow further fine-tuning of this
204 feature.
205
206 ** You can have several Emacs servers on the same machine.
207
208 % emacs --eval '(setq server-name "foo")' -f server-start &
209 % emacs --eval '(setq server-name "bar")' -f server-start &
210 % emacsclient -s foo file1
211 % emacsclient -s bar file2
212
213 ** On window systems, lines which are exactly as wide as the window
214 (not counting the final newline character) are no longer broken into
215 two lines on the display (with just the newline on the second line).
216 Instead, the newline now "overflows" into the right fringe, and the
217 cursor will be displayed in the fringe when positioned on that newline.
218
219 The new user option 'overflow-newline-into-fringe' may be set to nil to
220 revert to the old behaviour of continuing such lines.
221
222 ** The buffer boundaries (i.e. first and last line in the buffer) may
223 now be marked with angle bitmaps in the fringes. In addition, up and
224 down arrow bitmaps may be shown at the top and bottom of the left or
225 right fringe if the window can be scrolled in either direction.
226
227 This behavior is activated by setting the buffer-local variable
228 `indicate-buffer-boundaries' to a non-nil value. The default value of
229 this variable is found in `default-indicate-buffer-boundaries'.
230
231 If value is `left' or `right', both angle and arrow bitmaps are
232 displayed in the left or right fringe, resp. Any other non-nil value
233 causes the bitmap on the top line to be displayed in the left fringe,
234 and the bitmap on the bottom line in the right fringe.
235
236 If value is a cons (ANGLES . ARROWS), the car specifies the position
237 of the angle bitmaps, and the cdr specifies the position of the arrow
238 bitmaps.
239
240 For example, (t . right) places the top angle bitmap in left fringe,
241 the bottom angle bitmap in right fringe, and both arrow bitmaps in
242 right fringe. To show just the angle bitmaps in the left fringe, but
243 no arrow bitmaps, use (left . nil).
244
245 ** New command `display-local-help' displays any local help at point
246 in the echo area. It is bound to `C-h .'. It normally displays the
247 same string that would be displayed on mouse-over using the
248 `help-echo' property, but, in certain cases, it can display a more
249 keyboard oriented alternative.
250
251 ** New user option `help-at-pt-display-when-idle' allows to
252 automatically show the help provided by `display-local-help' on
253 point-over, after suitable idle time. The amount of idle time is
254 determined by the user option `help-at-pt-timer-delay' and defaults
255 to one second. This feature is turned off by default.
256
257 ** New commands `scan-buf-next-region' and `scan-buf-previous-region'
258 move to the start of the next (previous, respectively) region with
259 non-nil help-echo property and display any help found there in the
260 echo area, using `display-local-help'.
261
262 +++
263 ** Help mode now only makes hyperlinks for faces when the face name is
264 preceded or followed by the word `face'. It no longer makes
265 hyperlinks for variables without variable documentation, unless
266 preceded by one of the words `variable' or `option'. It now makes
267 hyperlinks to Info anchors (or nodes) if the anchor (or node) name is
268 enclosed in single quotes and preceded by `info anchor' or `Info
269 anchor' (in addition to earlier `info node' and `Info node').
270
271 ** The max size of buffers and integers has been doubled.
272 On 32bit machines, it is now 256M (i.e. 268435455).
273
274 +++
275 ** The -f option, used from the command line to call a function,
276 now reads arguments for the function interactively if it is
277 an interactively callable function.
278
279
280 ** sql changes.
281
282 *** The variable `sql-product' controls the highlightng of different
283 SQL dialects. This variable can be set globally via Customize, on a
284 buffer-specific basis via local variable settings, or for the current
285 session using the new SQL->Product submenu. (This menu replaces the
286 SQL->Highlighting submenu.)
287
288 The following values are supported:
289
290 ansi ANSI Standard (default)
291 db2 DB2
292 informix Informix
293 ingres Ingres
294 interbase Interbase
295 linter Linter
296 ms Microsoft
297 mysql MySQL
298 oracle Oracle
299 postgres Postgres
300 solid Solid
301 sqlite SQLite
302 sybase Sybase
303
304 The current product name will be shown on the mode line following the
305 SQL mode indicator.
306
307 The technique of setting `sql-mode-font-lock-defaults' directly in
308 your .emacs will no longer establish the default highlighting -- Use
309 `sql-product' to accomplish this.
310
311 ANSI keywords are always highlighted.
312
313 *** The function `sql-add-product-keywords' can be used to add
314 font-lock rules to the product specific rules. For example, to have
315 all identifiers ending in "_t" under MS SQLServer treated as a type,
316 you would use the following line in your .emacs file:
317
318 (sql-add-product-keywords 'ms
319 '(("\\<\\w+_t\\>" . font-lock-type-face)))
320
321 *** Oracle support includes keyword highlighting for Oracle 9i. Most
322 SQL and PL/SQL keywords are implemented. SQL*Plus commands are
323 highlighted in `font-lock-doc-face'.
324
325 *** Microsoft SQLServer support has been significantly improved.
326 Keyword highlighting for SqlServer 2000 is implemented.
327 sql-interactive-mode defaults to use osql, rather than isql, because
328 osql flushes its error stream more frequently. Thus error messages
329 are displayed when they occur rather than when the session is
330 terminated.
331
332 If the username and password are not provided to `sql-ms', osql is
333 called with the -E command line argument to use the operating system
334 credentials to authenticate the user.
335
336 *** Postgres support is enhanced.
337 Keyword highlighting of Postgres 7.3 is implemented. Prompting for
338 the username and the pgsql `-U' option is added.
339
340 *** MySQL support is enhanced.
341 Keyword higlighting of MySql 4.0 is implemented.
342
343 *** Imenu support has been enhanced to locate tables, views, indexes,
344 packages, procedures, functions, triggers, sequences, rules, and
345 defaults.
346
347 *** Added SQL->Start SQLi Session menu entry which calls the
348 appropriate sql-interactive-mode wrapper for the current setting of
349 `sql-product'.
350
351 ** M-x view-file and commands that use it now avoid interfering
352 with special modes such as Tar mode.
353
354 ** Enhancements to apropos commands:
355
356 *** The apropos commands will now accept a list of words to match.
357 When more than one word is specified, at least two of those words must
358 be present for an item to match. Regular expression matching is still
359 available.
360
361 *** The new option `apropos-sort-by-scores' causes the matching items
362 to be sorted according to their score. The score for an item is a
363 number calculated to indicate how well the item matches the words or
364 regular expression that you entered to the apropos command. The best
365 match is listed first, and the calculated score is shown for each
366 matching item.
367
368 +++
369 ** The old bindings C-M-delete and C-M-backspace have been deleted,
370 since there are situations where one or the other will shut down
371 the operating system or your X server.
372
373 ** New minor mode, Visible mode, toggles invisibility in the current buffer.
374 When enabled, it makes all invisible text visible. When disabled, it
375 restores the previous value of `buffer-invisibility-spec'.
376
377 ** New command `kill-whole-line' kills an entire line at once.
378 By default, it is bound to C-S-<backspace>.
379
380 ** Dired mode:
381
382 *** New faces dired-header, dired-mark, dired-marked, dired-flagged,
383 dired-ignored, dired-directory, dired-symlink, dired-warning
384 introduced for Dired mode instead of font-lock faces.
385
386 *** New Dired command `dired-compare-directories' to mark files with
387 different file attributes in two dired buffers.
388
389 +++
390 *** In Dired's ! command (dired-do-shell-command), `*' and `?' now
391 control substitution of the file names only when they are surrounded
392 by whitespace. This means you can now use them as shell wildcards
393 too. If you want to use just plain `*' as a wildcard, type `*""'; the
394 doublequotes make no difference in the shell, but they prevent
395 special treatment in `dired-do-shell-command'.
396
397 +++
398 *** Dired's v command now runs external viewers to view certain
399 types of files. The variable `dired-view-command-alist' controls
400 what external viewers to use and when.
401
402 *** In Dired, the w command now copies the current line's file name
403 into the kill ring.
404
405 ** Info mode:
406 +++
407 *** Info now hides node names in menus and cross references by default.
408 If you prefer the old behavior, you can set the new user option
409 `Info-hide-note-references' to nil.
410
411 *** The new command `info-apropos' searches the indices of the known
412 Info files on your system for a string, and builds a menu of the
413 possible matches.
414
415 *** Images in Info pages are supported.
416 Info pages show embedded images, in Emacs frames with image support.
417 Info documentation that includes images, processed with makeinfo
418 version 4.7 or newer, compiles to Info pages with embedded images.
419
420 +++
421 *** The default value for `Info-scroll-prefer-subnodes' is now nil.
422
423 ---
424 *** Info-index offers completion.
425
426 ** Support for the SQLite interpreter has been added to sql.el by calling
427 'sql-sqlite'.
428
429 ** BibTeX mode:
430 *** The new command bibtex-entry-update (bound to C-c C-u) updates
431 an existing BibTeX entry.
432 *** New `bibtex-entry-format' option `required-fields', enabled by default.
433 *** bibtex-maintain-sorted-entries can take values `plain',
434 `crossref', and `entry-class' which control the sorting scheme used
435 for BibTeX entries. `bibtex-sort-entry-class' controls the sorting
436 scheme `entry-class'. TAB completion for reference keys and
437 automatic detection of duplicates does not require anymore that
438 bibtex-maintain-sorted-entries is non-nil.
439
440 *** If the new variable bibtex-parse-keys-fast is non-nil,
441 use fast but simplified algorithm for parsing BibTeX keys.
442
443 *** If the new variable bibtex-autoadd-commas is non-nil,
444 automatically add missing commas at end of BibTeX fields.
445
446 *** The new variable bibtex-autofill-types contains a list of entry
447 types for which fields are filled automatically (if possible).
448
449 *** The new command bibtex-complete completes word fragment before
450 point according to context (bound to M-tab).
451
452 *** The new commands bibtex-find-entry and bibtex-find-crossref
453 locate entries and crossref'd entries.
454
455 *** In BibTeX mode the command fill-paragraph (bound to M-q) fills
456 individual fields of a BibTeX entry.
457
458 ** When display margins are present in a window, the fringes are now
459 displayed between the margins and the buffer's text area, rather than
460 at the edges of the window.
461
462 ** A window may now have individual fringe and scroll-bar settings,
463 in addition to the individual display margin settings.
464
465 Such individual settings are now preserved when windows are split
466 horizontally or vertically, a saved window configuration is restored,
467 or when the frame is resized.
468
469 ** New functions frame-current-scroll-bars and window-current-scroll-bars.
470
471 These functions return the current locations of the vertical and
472 horizontal scroll bars in a frame or window.
473
474 ---
475 ** Emacs now supports drag and drop for X. Dropping a file on a window
476 opens it, dropping text inserts the text. Dropping a file on a dired
477 buffer copies or moves the file to that directory.
478
479 ** Under X, mouse-wheel-mode is turned on by default.
480
481 ** The X resource useXIM can be used to turn off use of XIM, which may
482 speed up Emacs with slow networking to the X server.
483
484 If the configure option `--without-xim' was used to turn off use of
485 XIM by default, the X resource useXIM can be used to turn it on.
486
487 ** `undo-only' does an undo which does not redo any previous undo.
488
489 ** `uniquify-strip-common-suffix' tells uniquify to prefer
490 `file|dir1' and `file|dir2' to `file|dir1/subdir' and `file|dir2/subdir'.
491
492 ** If the user visits a file larger than `large-file-warning-threshold',
493 Emacs will prompt her for confirmation.
494
495 ** A UTF-7 coding system is available in the library `utf-7'.
496
497 ** GUD mode has its own tool bar for controlling execution of the inferior
498 and other common debugger commands.
499
500 ** recentf changes.
501
502 The recent file list is now automatically cleanup when recentf mode is
503 enabled. The new option `recentf-auto-cleanup' controls when to do
504 automatic cleanup.
505
506 With the more advanced option: `recentf-filename-handler', you can
507 specify a function that transforms filenames handled by recentf. For
508 example, if set to `file-truename', the same file will not be in the
509 recent list with different symbolic links.
510
511 To follow naming convention, `recentf-keep-non-readable-files-flag'
512 and `recentf-menu-append-commands-flag' respectively replace the
513 misnamed options `recentf-keep-non-readable-files-p' and
514 `recentf-menu-append-commands-p'. The old names remain available as
515 aliases, but have been marked obsolete.
516
517 ** The default for the paper size (variable ps-paper-type) is taken
518 from the locale.
519
520 ** Init file changes
521
522 You can now put the init files .emacs and .emacs_SHELL under
523 ~/.emacs.d or directly under ~. Emacs will find them in either place.
524
525 ** partial-completion-mode now does partial completion on directory names.
526
527 ** skeleton.el now supports using - to mark the skeleton-point without
528 interregion interaction. @ has reverted to only setting
529 skeleton-positions and no longer sets skeleton-point. Skeletons
530 which used @ to mark skeleton-point independent of _ should now use -
531 instead. The updated skeleton-insert docstring explains these new
532 features along with other details of skeleton construction.
533
534 ** MH-E changes.
535
536 Upgraded to MH-E version 7.3. There have been major changes since
537 version 5.0.2; see MH-E-NEWS for details.
538
539 +++
540 ** The `emacsclient' command understands the options `--eval' and
541 `--display' which tell Emacs respectively to evaluate the given elisp
542 expression and to use the given display when visiting files.
543
544 ** User option `server-mode' can be used to start a server process.
545
546 +++
547 ** The mode line position information now comes before the major mode.
548 When the file is maintained under version control, that information
549 appears between the position information and the major mode.
550
551 ** C-x s (save-some-buffers) now offers an option `d' to diff a buffer
552 against its file, so you can see what changes you would be saving.
553
554 +++
555 ** You can now customize the use of window fringes. To control this
556 for all frames, use M-x fringe-mode or the Show/Hide submenu of the
557 top-level Options menu, or customize the `fringe-mode' variable. To
558 control this for a specific frame, use the command M-x
559 set-fringe-style.
560
561 +++
562 ** There is a new user option `mail-default-directory' that allows you
563 to specify the value of `default-directory' for mail buffers. This
564 directory is used for auto-save files of mail buffers. It defaults to
565 "~/".
566
567 +++
568 ** When you are root, and you visit a file whose modes specify
569 read-only, the Emacs buffer is now read-only too. Type C-x C-q if you
570 want to make the buffer writable. (As root, you will in fact be able
571 to alter the file.)
572
573 ** The new command `revert-buffer-with-coding-system' (C-x RET r)
574 revisits the current file using a coding system that you specify.
575
576 ** The new command `recode-file-name' changes the encoding of the name
577 of a file.
578
579 ---
580 ** `ps-print' can now print characters from the mule-unicode charsets.
581
582 Printing text with characters from the mule-unicode-* sets works with
583 ps-print, provided that you have installed the appropriate BDF fonts.
584 See the file INSTALL for URLs where you can find these fonts.
585
586 ---
587 ** The new options `buffers-menu-show-directories' and
588 `buffers-menu-show-status' let you control how buffers are displayed
589 in the menu dropped down when you click "Buffers" from the menu bar.
590
591 `buffers-menu-show-directories' controls whether the menu displays
592 leading directories as part of the file name visited by the buffer.
593 If its value is `unless-uniquify', the default, directories will be
594 shown unless uniquify-buffer-name-style' is non-nil. The value of nil
595 and t turn the display of directories off and on, respectively.
596
597 `buffers-menu-show-status' controls whether the Buffers menu includes
598 the modified and read-only status of the buffers. By default it is
599 t, and the status is shown.
600
601 Setting these variables directly does not take effect until next time
602 the Buffers menu is regenerated.
603
604 +++
605 ** The commands M-x customize-face and M-x customize-face-other-window
606 now look at the character after point. If a face or faces are
607 specified for that character, the commands by default customize those
608 faces.
609
610 ** New language environments: French, Ukrainian, Tajik,
611 Bulgarian, Belarusian, Ukrainian, UTF-8, Windows-1255, Welsh, Latin-6,
612 Latin-7, Lithuanian, Latvian, Swedish, Slovenian, Croatian, Georgian,
613 Italian, Russian, Malayalam, Tamil, Russian, Chinese-EUC-TW. (Set up
614 automatically according to the locale.)
615
616 ** Indian support has been updated.
617 The in-is13194 coding system is now Unicode-based. CDAC fonts are
618 assumed. There is a framework for supporting various
619 Indian scripts, but currently only Devanagari, Malayalam and Tamil are
620 supported.
621
622 ---
623 ** New input methods: latin-alt-postfix, latin-postfix, latin-prefix,
624 ukrainian-computer, belarusian, bulgarian-bds, russian-computer,
625 vietnamese-telex, lithuanian-numeric, lithuanian-keyboard,
626 latvian-keyboard, welsh, georgian, rfc1345, ucs, sgml,
627 bulgarian-phonetic, dutch, slovenian, croatian, malayalam-inscript,
628 tamil-inscript.
629
630 ---
631 ** A new coding system `euc-tw' has been added for traditional Chinese
632 in CNS encoding; it accepts both Big 5 and CNS as input; on saving,
633 Big 5 is then converted to CNS.
634
635 ---
636 ** Many new coding systems are available by loading the `code-pages'
637 library. These include complete versions of most of those in
638 codepage.el, based on Unicode mappings. `codepage-setup' is now
639 obsolete and is used only in the MS-DOS port of Emacs. windows-1252
640 and windows-1251 are preloaded since the former is so common and the
641 latter is used by GNU locales.
642
643 ** The utf-8/16 coding systems have been enhanced.
644 By default, untranslatable utf-8 sequences (mostly representing CJK
645 characters) are simply composed into single quasi-characters. User
646 option `utf-translate-cjk' arranges to translate many utf-8 CJK
647 character sequences into real Emacs characters in a similar way to the
648 Mule-UCS system. This uses significant space, so is not the default.
649 You can augment/amend the CJK translation via hash tables
650 `ucs-mule-cjk-to-unicode' and `ucs-unicode-to-mule-cjk'. The utf-8
651 coding system now also encodes characters from most of Emacs's
652 one-dimensional internal charsets, specifically the ISO-8859 ones.
653 The utf-16 coding system is affected similarly.
654
655 ** iso-10646-1 (`Unicode') fonts can be used to display any range of
656 characters encodable by the utf-8 coding system. Just specify the
657 fontset appropriately.
658
659 ** New command `ucs-insert' inserts a character specified by its
660 unicode.
661
662 +++
663 ** Limited support for character `unification' has been added.
664 Emacs now knows how to translate between different representations of
665 the same characters in various Emacs charsets according to standard
666 Unicode mappings. This applies mainly to characters in the ISO 8859
667 sets plus some other 8-bit sets, but can be extended. For instance,
668 translation works amongst the Emacs ...-iso8859-... charsets and the
669 mule-unicode-... ones.
670
671 By default this translation will happen automatically on encoding.
672 Self-inserting characters are translated to make the input conformant
673 with the encoding of the buffer in which it's being used, where
674 possible.
675
676 You can force a more complete unification with the user option
677 unify-8859-on-decoding-mode. That maps all the Latin-N character sets
678 into Unicode characters (from the latin-iso8859-1 and
679 mule-unicode-0100-24ff charsets) on decoding. Note that this mode
680 will often effectively clobber data with an iso-2022 encoding.
681
682 ** There is support for decoding Greek and Cyrillic characters into
683 either Unicode (the mule-unicode charsets) or the iso-8859 charsets,
684 when possible. The latter are more space-efficient. This is
685 controlled by user option utf-fragment-on-decoding.
686
687 ** The new command `set-file-name-coding-system' (C-x RET F) sets
688 coding system for encoding and decoding file names. A new menu item
689 (Options->Mule->Set Coding Systems->For File Name) invokes this
690 command.
691
692 ---
693 ** The scrollbar under LessTif or Motif has a smoother drag-scrolling.
694 On the other hand, the size of the thumb does not represent the actual
695 amount of text shown any more (only a crude approximation of it).
696
697 ---
698 ** The pop up menus for Lucid now stay up if you do a fast click and can
699 be navigated with the arrow keys (like Gtk+ and W32).
700
701 ---
702 ** Dialogs for Lucid/Athena and Lesstif/Motif pops down when pressing ESC.
703
704 +++
705 ** The file selection dialog for Gtk+, W32 and Motif/Lesstif can be
706 disabled by customizing the variable `use-file-dialog'.
707
708 +++
709 ** Emacs can produce an underscore-like (horizontal bar) cursor.
710 The underscore cursor is set by putting `(cursor-type . hbar)' in
711 default-frame-alist. It supports variable heights, like the `bar'
712 cursor does.
713
714 +++
715 ** On X, MS Windows, and Mac OS, the blinking cursor's "off" state is
716 now controlled by the variable `blink-cursor-alist'.
717
718 ** Filesets are collections of files. You can define a fileset in
719 various ways, such as based on a directory tree or based on
720 program files that include other program files.
721
722 Once you have defined a fileset, you can perform various operations on
723 all the files in it, such as visiting them or searching and replacing
724 in them.
725
726 ---
727 ** PO translation files are decoded according to their MIME headers
728 when Emacs visits them.
729
730 ---
731 ** The game `mpuz' is enhanced.
732
733 `mpuz' now allows the 2nd factor not to have two identical digits. By
734 default, all trivial operations involving whole lines are performed
735 automatically. The game uses faces for better visual feedback.
736
737 ** The new variable `x-select-request-type' controls how Emacs
738 requests X selection. The default value is nil, which means that
739 Emacs requests X selection with types COMPOUND_TEXT and UTF8_STRING,
740 and use the more appropriately result.
741
742 +++
743 ** The parameters of automatic hscrolling can now be customized.
744 The variable `hscroll-margin' determines how many columns away from
745 the window edge point is allowed to get before automatic hscrolling
746 will horizontally scroll the window. The default value is 5.
747
748 The variable `hscroll-step' determines how many columns automatic
749 hscrolling will scroll the window when point gets too close to the
750 window edge. If its value is zero, the default, Emacs scrolls the
751 window so as to center point. If its value is an integer, it says how
752 many columns to scroll. If the value is a floating-point number, it
753 gives the fraction of the window's width to scroll the window.
754
755 The variable `automatic-hscrolling' was renamed to
756 `auto-hscroll-mode'. The old name is still available as an alias.
757
758 ** TeX modes:
759 *** C-c C-c prompts for a command to run, and tries to offer a good default.
760 +++
761 *** The user option `tex-start-options-string' has been replaced
762 by two new user options: `tex-start-options', which should hold
763 command-line options to feed to TeX, and `tex-start-commands' which should hold
764 TeX commands to use at startup.
765 *** verbatim environments are now highlighted in courier by font-lock
766 and super/sub-scripts are made into super/sub-scripts.
767
768 *** New major mode doctex-mode for *.dtx files.
769
770 +++
771 ** New display feature: focus follows the mouse from one Emacs window
772 to another, even within a frame. If you set the variable
773 mouse-autoselect-window to non-nil value, moving the mouse to a
774 different Emacs window will select that window (minibuffer window can
775 be selected only when it is active). The default is nil, so that this
776 feature is not enabled.
777
778 ** On X, when the window manager requires that you click on a frame to
779 select it (give it focus), the selected window and cursor position
780 normally changes according to the mouse click position. If you set
781 the variable x-mouse-click-focus-ignore-position to t, the selected
782 window and cursor position do not change when you click on a frame
783 to give it focus.
784
785 +++
786 ** The new command `describe-char' (C-u C-x =) pops up a buffer with
787 description various information about a character, including its
788 encodings and syntax, its text properties, overlays, and widgets at
789 point. You can get more information about some of them, by clicking
790 on mouse-sensitive areas or moving there and pressing RET.
791
792 +++
793 ** The new command `multi-occur' is just like `occur', except it can
794 search multiple buffers. There is also a new command
795 `multi-occur-by-filename-regexp' which allows you to specify the
796 buffers to search by their filename. Internally, Occur mode has been
797 rewritten, and now uses font-lock, among other changes.
798
799 +++
800 ** Emacs normally highlights mouse sensitive text whenever the mouse
801 is over the text. By setting the new variable `mouse-highlight', you
802 can optionally enable mouse highlighting only after you move the
803 mouse, so that highlighting disappears when you press a key. You can
804 also disable mouse highlighting.
805
806 ** You can now customize if selecting a region by dragging the mouse
807 shall not copy the selected text to the kill-ring by setting the new
808 variable mouse-drag-copy-region to nil.
809
810 +++
811 ** font-lock: in modes like C and Lisp where the fontification assumes that
812 an open-paren in column 0 is always outside of any string or comment,
813 font-lock now highlights any such open-paren-in-column-zero in bold-red
814 if it is inside a string or a comment, to indicate that it can cause
815 trouble with fontification and/or indentation.
816
817 +++
818 ** There's a new face `minibuffer-prompt'.
819 Emacs adds this face to the list of text properties stored in the
820 variable `minibuffer-prompt-properties', which is used to display the
821 prompt string.
822
823 +++
824 ** The new face `mode-line-inactive' is used to display the mode line
825 of non-selected windows. The `mode-line' face is now used to display
826 the mode line of the currently selected window.
827
828 The new variable `mode-line-in-non-selected-windows' controls whether
829 the `mode-line-inactive' face is used.
830
831 ---
832 ** A menu item "Show/Hide" was added to the top-level menu "Options".
833 This menu allows you to turn various display features on and off (such
834 as the fringes, the tool bar, the speedbar, and the menu bar itself).
835 You can also move the vertical scroll bar to either side here or turn
836 it off completely. There is also a menu-item to toggle displaying of
837 current date and time, current line and column number in the
838 mode-line.
839
840 ---
841 ** Speedbar has moved from the "Tools" top level menu to "Show/Hide".
842
843 +++
844 ** Emacs can now indicate in the mode-line the presence of new e-mail
845 in a directory or in a file. See the documentation of the user option
846 `display-time-mail-directory'.
847
848 ---
849 ** LDAP support now defaults to ldapsearch from OpenLDAP version 2.
850
851 +++
852 ** You can now disable pc-selection-mode after enabling it.
853 M-x pc-selection-mode behaves like a proper minor mode, and with no
854 argument it toggles the mode.
855
856 Turning off PC-Selection mode restores the global key bindings
857 that were replaced by turning on the mode.
858
859 +++
860 ** Emacs now displays a splash screen by default even if command-line
861 arguments were given. The new command-line option --no-splash
862 disables the splash screen; see also the variable
863 `inhibit-startup-message' (which is also aliased as
864 `inhibit-splash-screen').
865
866 ** Changes in support of colors on character terminals
867
868 +++
869 *** The new command-line option --color=MODE lets you specify a standard
870 mode for a tty color support. It is meant to be used on character
871 terminals whose capabilities are not set correctly in the terminal
872 database, or with terminal emulators which support colors, but don't
873 set the TERM environment variable to a name of a color-capable
874 terminal. "emacs --color" uses the same color commands as GNU `ls'
875 when invoked with "ls --color", so if your terminal can support colors
876 in "ls --color", it will support "emacs --color" as well. See the
877 user manual for the possible values of the MODE parameter.
878
879 ---
880 *** Emacs now supports several character terminals which provide more
881 than 8 colors. For example, for `xterm', 16-color, 88-color, and
882 256-color modes are supported. Emacs automatically notes at startup
883 the extended number of colors, and defines the appropriate entries for
884 all of these colors.
885
886 +++
887 *** Emacs now uses the full range of available colors for the default
888 faces when running on a color terminal, including 16-, 88-, and
889 256-color xterms. This means that when you run "emacs -nw" on an
890 88-color or 256-color xterm, you will see essentially the same face
891 colors as on X.
892
893 ---
894 *** There's a new support for colors on `rxvt' terminal emulator.
895
896 +++
897 ** Emacs can now be invoked in full-screen mode on a windowed display.
898
899 When Emacs is invoked on a window system, the new command-line options
900 `--fullwidth', `--fullheight', and `--fullscreen' produce a frame
901 whose width, height, or both width and height take up the entire
902 screen size. (For now, this does not work with some window managers.)
903
904 ---
905 ** Emacs now tries to set up buffer coding systems for HTML/XML files
906 automatically.
907
908 +++
909 ** The new command `comint-insert-previous-argument' in comint-derived
910 modes (shell-mode etc) inserts arguments from previous command lines,
911 like bash's `ESC .' binding. It is bound by default to `C-c .', but
912 otherwise behaves quite similarly to the bash version.
913
914 +++
915 ** Changes in C-h bindings:
916
917 C-h e displays the *Messages* buffer.
918
919 C-h followed by a control character is used for displaying files
920 that do not change:
921
922 C-h C-f displays the FAQ.
923 C-h C-e displays the PROBLEMS file.
924
925 The info-search bindings on C-h C-f, C-h C-k and C-h C-i
926 have been moved to C-h F, C-h K and C-h S.
927
928 C-h c, C-h k, C-h w, and C-h f now handle remapped interactive commands.
929
930 - C-h c and C-h k report the actual command (after possible remapping)
931 run by the key sequence.
932
933 - C-h w and C-h f on a command which has been remapped now report the
934 command it is remapped to, and the keys which can be used to run
935 that command.
936
937 For example, if C-k is bound to kill-line, and kill-line is remapped
938 to new-kill-line, these commands now report:
939
940 - C-h c and C-h k C-k reports:
941 C-k runs the command new-kill-line
942
943 - C-h w and C-h f kill-line reports:
944 kill-line is remapped to new-kill-line which is on C-k, <deleteline>
945
946 - C-h w and C-h f new-kill-line reports:
947 new-kill-line is on C-k
948
949 +++
950 ** C-w in incremental search now grabs either a character or a word,
951 making the decision in a heuristic way. This new job is done by the
952 command `isearch-yank-word-or-char'. To restore the old behavior,
953 bind C-w to `isearch-yank-word' in `isearch-mode-map'.
954
955 +++
956 ** Yanking text now discards certain text properties that can
957 be inconvenient when you did not expect them. The variable
958 `yank-excluded-properties' specifies which ones. Insertion
959 of register contents and rectangles also discards these properties.
960
961 +++
962 ** Occur, Info, and comint-derived modes now support using
963 M-x font-lock-mode to toggle fontification. The variable
964 `Info-fontify' is no longer applicable; to disable fontification,
965 remove `turn-on-font-lock' from `Info-mode-hook'.
966
967 +++
968 ** M-x grep now tries to avoid appending `/dev/null' to the command line
969 by using GNU grep `-H' option instead. M-x grep will automatically
970 detect whether this is possible or not the first time it is invoked.
971 When `-H' is used, the grep command line supplied by the user is passed
972 unchanged to the system to execute, which allows more complicated
973 command lines to be used than was possible before.
974
975 ---
976 ** The face-customization widget has been reworked to be less confusing.
977 In particular, when you enable a face attribute using the corresponding
978 check-box, there's no longer a redundant `*' option in value selection
979 for that attribute; the values you can choose are only those which make
980 sense for the attribute. When an attribute is de-selected by unchecking
981 its check-box, then the (now ignored, but still present temporarily in
982 case you re-select the attribute) value is hidden.
983
984 +++
985 ** When you set or reset a variable's value in a Customize buffer,
986 the previous value becomes the "backup value" of the variable.
987 You can go back to that backup value by selecting "Use Backup Value"
988 under the "[State]" button.
989
990 ** The new customization type `float' specifies numbers with floating
991 point (no integers are allowed).
992
993 +++
994 ** In GUD mode, when talking to GDB, C-x C-a C-j "jumps" the program
995 counter to the specified source line (the one where point is).
996
997 ---
998 ** GUD mode improvements for jdb:
999
1000 *** Search for source files using jdb classpath and class
1001 information. Fast startup since there is no need to scan all
1002 source files up front. There is also no need to create and maintain
1003 lists of source directories to scan. Look at `gud-jdb-use-classpath'
1004 and `gud-jdb-classpath' customization variables documentation.
1005
1006 *** Supports the standard breakpoint (gud-break, gud-clear)
1007 set/clear operations from java source files under the classpath, stack
1008 traversal (gud-up, gud-down), and run until current stack finish
1009 (gud-finish).
1010
1011 *** Supports new jdb (Java 1.2 and later) in addition to oldjdb
1012 (Java 1.1 jdb).
1013
1014 *** The previous method of searching for source files has been
1015 preserved in case someone still wants/needs to use it.
1016 Set gud-jdb-use-classpath to nil.
1017
1018 Added Customization Variables
1019
1020 *** gud-jdb-command-name. What command line to use to invoke jdb.
1021
1022 *** gud-jdb-use-classpath. Allows selection of java source file searching
1023 method: set to t for new method, nil to scan gud-jdb-directories for
1024 java sources (previous method).
1025
1026 *** gud-jdb-directories. List of directories to scan and search for java
1027 classes using the original gud-jdb method (if gud-jdb-use-classpath
1028 is nil).
1029
1030 Minor Improvements
1031
1032 *** Do not allow debugger output history variable to grow without bounds.
1033
1034 +++
1035 ** hide-ifdef-mode now uses overlays rather than selective-display
1036 to hide its text. This should be mostly transparent but slightly
1037 changes the behavior of motion commands like C-e and C-p.
1038
1039 +++
1040 ** Unquoted `$' in file names do not signal an error any more when
1041 the corresponding environment variable does not exist.
1042 Instead, the `$ENVVAR' text is left as is, so that `$$' quoting
1043 is only rarely needed.
1044
1045 ---
1046 ** JIT-lock changes
1047 *** jit-lock can now be delayed with `jit-lock-defer-time'.
1048
1049 If this variable is non-nil, its value should be the amount of Emacs
1050 idle time in seconds to wait before starting fontification. For
1051 example, if you set `jit-lock-defer-time' to 0.25, fontification will
1052 only happen after 0.25s of idle time.
1053
1054 *** contextual refontification is now separate from stealth fontification.
1055
1056 jit-lock-defer-contextually is renamed jit-lock-contextually and
1057 jit-lock-context-time determines the delay after which contextual
1058 refontification takes place.
1059
1060 +++
1061 ** Marking commands extend the region when invoked multiple times. If
1062 you hit M-C-SPC (mark-sexp), M-@ (mark-word), M-h (mark-paragraph), or
1063 C-M-h (mark-defun) repeatedly, the marked region will now be extended
1064 each time, so you can mark the next two sexps with M-C-SPC M-C-SPC,
1065 for example. This feature also works for mark-end-of-sentence, if you
1066 bind that to a key.
1067
1068 +++
1069 ** Some commands do something special in Transient Mark mode when the
1070 mark is active--for instance, they limit their operation to the
1071 region. Even if you don't normally use Transient Mark mode, you might
1072 want to get this behavior from a particular command. There are two
1073 ways you can enable Transient Mark mode and activate the mark, for one
1074 command only.
1075
1076 One method is to type C-SPC C-SPC; this enables Transient Mark mode
1077 and sets the mark at point. The other method is to type C-u C-x C-x.
1078 This enables Transient Mark mode temporarily but does not alter the
1079 mark or the region.
1080
1081 After these commands, Transient Mark mode remains enabled until you
1082 deactivate the mark. That typically happens when you type a command
1083 that alters the buffer, but you can also deactivate the mark by typing
1084 C-g.
1085
1086 +++
1087 ** A prefix argument is no longer required to repeat a jump to a
1088 previous mark, i.e. C-u C-SPC C-SPC C-SPC ... will cycle through the
1089 mark ring. Use C-u C-u C-SPC to set the mark immediately after a jump.
1090
1091 +++
1092 ** In the *Occur* buffer, `o' switches to it in another window, and
1093 C-o displays the current line's occurrence in another window without
1094 switching to it.
1095
1096 +++
1097 ** When you specify a frame size with --geometry, the size applies to
1098 all frames you create. A position specified with --geometry only
1099 affects the initial frame.
1100
1101 +++
1102 ** M-h (mark-paragraph) now accepts a prefix arg.
1103 With positive arg, M-h marks the current and the following paragraphs;
1104 if the arg is negative, it marks the current and the preceding
1105 paragraphs.
1106
1107 +++
1108 ** The variables dired-free-space-program and dired-free-space-args
1109 have been renamed to directory-free-space-program and
1110 directory-free-space-args, and they now apply whenever Emacs puts a
1111 directory listing into a buffer.
1112
1113 ---
1114 ** mouse-wheels can now scroll a specific fraction of the window
1115 (rather than a fixed number of lines) and the scrolling is `progressive'.
1116
1117 ** Unexpected yanking of text due to accidental clicking on the mouse
1118 wheel button (typically mouse-2) during wheel scrolling is now avoided.
1119 This behaviour can be customized via the mouse-wheel-click-event and
1120 mouse-wheel-inhibit-click-time variables.
1121
1122 +++
1123 ** The keyboard-coding-system is now automatically set based on your
1124 current locale settings if you are not using a window system. This
1125 may mean that the META key doesn't work but generates non-ASCII
1126 characters instead, depending on how the terminal (or terminal
1127 emulator) works. Use `set-keyboard-coding-system' (or customize
1128 keyboard-coding-system) if you prefer META to work (the old default)
1129 or if the locale doesn't describe the character set actually generated
1130 by the keyboard. See Info node `Single-Byte Character Support'.
1131
1132 +++
1133 ** Emacs now reads the standard abbrevs file ~/.abbrev_defs
1134 automatically at startup, if it exists. When Emacs offers to save
1135 modified buffers, it saves the abbrevs too if they have changed. It
1136 can do this either silently or asking for confirmation first,
1137 according to the value of `save-abbrevs'.
1138
1139 +++
1140 ** Display of hollow cursors now obeys the buffer-local value (if any)
1141 of `cursor-in-non-selected-windows' in the buffer that the cursor
1142 appears in.
1143
1144 ** The variable `cursor-in-non-selected-windows' can now be set to any
1145 of the recognized cursor types.
1146
1147 ---
1148 ** The variable `auto-save-file-name-transforms' now has a third element that
1149 controls whether or not the function `make-auto-save-file-name' will
1150 attempt to construct a unique auto-save name (e.g. for remote files).
1151
1152 +++
1153 ** Diary sexp entries can have custom marking in the calendar.
1154 Diary sexp functions which only apply to certain days (such as
1155 `diary-block' or `diary-cyclic') now take an optional parameter MARK,
1156 which is the name of a face or a single-character string indicating
1157 how to highlight the day in the calendar display. Specifying a
1158 single-character string as @var{mark} places the character next to the
1159 day in the calendar. Specifying a face highlights the day with that
1160 face. This lets you have different colors or markings for vacations,
1161 appointments, paydays or anything else using a sexp.
1162
1163 +++
1164 ** The new function `calendar-goto-day-of-year' (g D) prompts for a
1165 year and day number, and moves to that date. Negative day numbers
1166 count backward from the end of the year.
1167
1168 ** The function `simple-diary-display' now by default sets a header line.
1169 This can be controlled through the variables `diary-header-line-flag'
1170 and `diary-header-line-format'.
1171
1172 +++
1173 ** The procedure for activating appointment reminders has changed: use
1174 the new function `appt-activate'. The new variable
1175 `appt-display-format' controls how reminders are displayed, replacing
1176 appt-issue-message, appt-visible, and appt-msg-window.
1177
1178 ** The new functions `diary-from-outlook', `diary-from-outlook-gnus',
1179 and `diary-from-outlook-rmail' can be used to import diary entries
1180 from Outlook-format appointments in mail messages. The variable
1181 `diary-outlook-formats' can be customized to recognize additional
1182 formats.
1183
1184
1185 ** VC Changes
1186
1187 *** The key C-x C-q no longer checks files in or out, it only changes
1188 the read-only state of the buffer (toggle-read-only). We made this
1189 change because we held a poll and found that many users were unhappy
1190 with the previous behavior. If you do prefer this behavior, you
1191 can bind `vc-toggle-read-only' to C-x C-q in your .emacs:
1192
1193 (global-set-key "\C-x\C-q" 'vc-toggle-read-only)
1194
1195 The function `vc-toggle-read-only' will continue to exist.
1196
1197 +++
1198 *** There is a new user option `vc-cvs-global-switches' that allows
1199 you to specify switches that are passed to any CVS command invoked
1200 by VC. These switches are used as "global options" for CVS, which
1201 means they are inserted before the command name. For example, this
1202 allows you to specify a compression level using the "-z#" option for
1203 CVS.
1204
1205 *** New backends for Subversion and Meta-CVS.
1206
1207 ** EDiff changes.
1208
1209 +++
1210 *** When comparing directories.
1211 Typing D brings up a buffer that lists the differences between the contents of
1212 directories. Now it is possible to use this buffer to copy the missing files
1213 from one directory to another.
1214
1215 +++
1216 *** When comparing files or buffers.
1217 Typing the = key now offers to perform the word-by-word comparison of the
1218 currently highlighted regions in an inferior Ediff session. If you answer 'n'
1219 then it reverts to the old behavior and asks the user to select regions for
1220 comparison.
1221
1222 *** The new command `ediff-backup' compares a file with its most recent
1223 backup using `ediff'. If you specify the name of a backup file,
1224 `ediff-backup' compares it with the file of which it is a backup.
1225
1226 +++
1227 ** Etags changes.
1228
1229 *** New regular expressions features
1230
1231 **** New syntax for regular expressions, multi-line regular expressions.
1232 The syntax --ignore-case-regexp=/regex/ is now undocumented and retained
1233 only for backward compatibility. The new equivalent syntax is
1234 --regex=/regex/i. More generally, it is --regex=/TAGREGEX/TAGNAME/MODS,
1235 where `/TAGNAME' is optional, as usual, and MODS is a string of 0 or
1236 more characters among `i' (ignore case), `m' (multi-line) and `s'
1237 (single-line). The `m' and `s' modifiers behave as in Perl regular
1238 expressions: `m' allows regexps to match more than one line, while `s'
1239 (which implies `m') means that `.' matches newlines. The ability to
1240 span newlines allows writing of much more powerful regular expressions
1241 and rapid prototyping for tagging new languages.
1242
1243 **** Regular expressions can use char escape sequences as in Gcc.
1244 The escaped character sequence \a, \b, \d, \e, \f, \n, \r, \t, \v,
1245 respectively, stand for the ASCII characters BEL, BS, DEL, ESC, FF, NL,
1246 CR, TAB, VT,
1247
1248 **** Regular expressions can be bound to a given language.
1249 The syntax --regex={LANGUAGE}REGEX means that REGEX is used to make tags
1250 only for files of language LANGUAGE, and ignored otherwise. This is
1251 particularly useful when storing regexps in a file.
1252
1253 **** Regular expressions can be read from a file.
1254 The --regex=@regexfile option means read the regexps from a file, one
1255 per line. Lines beginning with space or tab are ignored.
1256
1257 *** New language parsing features
1258
1259 **** The `::' qualifier triggers C++ parsing in C file.
1260 Previously, only the `template' and `class' keywords had this effect.
1261
1262 **** In Perl, packages are tags.
1263 Subroutine tags are named from their package. You can jump to sub tags
1264 as you did before, by the sub name, or additionally by looking for
1265 package::sub.
1266
1267 **** New language PHP.
1268 Tags are functions, classes and defines.
1269 If the --members option is specified to etags, tags are vars also.
1270
1271 **** New language HTML.
1272 Title and h1, h2, h3 are tagged. Also, tags are generated when name= is
1273 used inside an anchor and whenever id= is used.
1274
1275 **** New default keywords for TeX.
1276 The new keywords are def, newcommand, renewcommand, newenvironment and
1277 renewenvironment.
1278
1279 **** In Makefiles, constants are tagged.
1280 If you want the old behavior instead, thus avoiding to increase the
1281 size of the tags file, use the --no-globals option.
1282
1283 **** In Prolog, etags creates tags for rules in addition to predicates.
1284
1285 *** Honour #line directives.
1286 When Etags parses an input file that contains C preprocessor's #line
1287 directives, it creates tags using the file name and line number
1288 specified in those directives. This is useful when dealing with code
1289 created from Cweb source files. When Etags tags the generated file, it
1290 writes tags pointing to the source file.
1291
1292 *** New option --parse-stdin=FILE.
1293 This option is mostly useful when calling etags from programs. It can
1294 be used (only once) in place of a file name on the command line. Etags
1295 will read from standard input and mark the produced tags as belonging to
1296 the file FILE.
1297
1298 +++
1299 ** CC Mode changes.
1300
1301 *** Font lock support.
1302 CC Mode now provides font lock support for all its languages. This
1303 supersedes the font lock patterns that have been in the core font lock
1304 package for C, C++, Java and Objective-C. Like indentation, font
1305 locking is done in a uniform way across all languages (except the new
1306 AWK mode - see below). That means that the new font locking will be
1307 different from the old patterns in various details for most languages.
1308
1309 The main goal of the font locking in CC Mode is accuracy, to provide a
1310 dependable aid in recognizing the various constructs. Some, like
1311 strings and comments, are easy to recognize while others like
1312 declarations and types can be very tricky. CC Mode can go to great
1313 lengths to recognize declarations and casts correctly, especially when
1314 the types aren't recognized by standard patterns. This is a fairly
1315 demanding analysis which can be slow on older hardware, and it can
1316 therefore be disabled by choosing a lower decoration level with the
1317 variable font-lock-maximum-decoration.
1318
1319 Note that the most demanding font lock level has been tuned with lazy
1320 fontification in mind, i.e. there should be a support mode that waits
1321 with the fontification until the text is actually shown
1322 (e.g. Just-in-time Lock mode, which is the default, or Lazy Lock
1323 mode). Fontifying a file with several thousand lines in one go can
1324 take the better part of a minute.
1325
1326 **** The (c|c++|objc|java|idl|pike)-font-lock-extra-types variables
1327 are now used by CC Mode to recognize identifiers that are certain to
1328 be types. (They are also used in cases that aren't related to font
1329 locking.) At the maximum decoration level, types are often recognized
1330 properly anyway, so these variables should be fairly restrictive and
1331 not contain patterns for uncertain types.
1332
1333 **** Support for documentation comments.
1334 There is a "plugin" system to fontify documentation comments like
1335 Javadoc and the markup within them. It's independent of the host
1336 language, so it's possible to e.g. turn on Javadoc font locking in C
1337 buffers. See the variable c-doc-comment-style for details.
1338
1339 Currently two kinds of doc comment styles are recognized: Suns Javadoc
1340 and Autodoc which is used in Pike. This is by no means a complete
1341 list of the most common tools; if your doc comment extractor of choice
1342 is missing then please drop a note to bug-cc-mode@gnu.org.
1343
1344 **** Better handling of C++ templates.
1345 As a side effect of the more accurate font locking, C++ templates are
1346 now handled much better. The angle brackets that delimit them are
1347 given parenthesis syntax so that they can be navigated like other
1348 parens.
1349
1350 This also improves indentation of templates, although there still is
1351 work to be done in that area. E.g. it's required that multiline
1352 template clauses are written in full and then refontified to be
1353 recognized, and the indentation of nested templates is a bit odd and
1354 not as configurable as it ought to be.
1355
1356 **** Improved handling of Objective-C and CORBA IDL.
1357 Especially the support for Objective-C and IDL has gotten an overhaul.
1358 The special "@" declarations in Objective-C are handled correctly.
1359 All the keywords used in CORBA IDL, PSDL, and CIDL are recognized and
1360 handled correctly, also wrt indentation.
1361
1362 *** Support for the AWK language.
1363 Support for the AWK language has been introduced. The implementation is
1364 based around GNU AWK version 3.1, but it should work pretty well with
1365 any AWK. As yet, not all features of CC Mode have been adapted for AWK.
1366 Here is a summary:
1367
1368 **** Indentation Engine
1369 The CC Mode indentation engine fully supports AWK mode.
1370
1371 AWK mode handles code formatted in the conventional AWK fashion: `{'s
1372 which start actions, user-defined functions, or compound statements are
1373 placed on the same line as the associated construct; the matching `}'s
1374 are normally placed under the start of the respective pattern, function
1375 definition, or structured statement.
1376
1377 The predefined indentation functions haven't yet been adapted for AWK
1378 mode, though some of them may work serendipitously. There shouldn't be
1379 any problems writing custom indentation functions for AWK mode.
1380
1381 The command C-c C-q (c-indent-defun) hasn't yet been adapted for AWK,
1382 though in practice it works properly nearly all the time. Should it
1383 fail, explicitly set the region around the function (using C-u C-SPC:
1384 C-M-h probably won't work either) then do C-M-\ (indent-region).
1385
1386 **** Font Locking
1387 There is a single level of font locking in AWK mode, rather than the
1388 three distinct levels the other modes have. There are several
1389 idiosyncrasies in AWK mode's font-locking due to the peculiarities of
1390 the AWK language itself.
1391
1392 **** Comment Commands
1393 M-; (indent-for-comment) works fine. None of the other CC Mode
1394 comment formatting commands have yet been adapted for AWK mode.
1395
1396 **** Movement Commands
1397 Most of the movement commands work in AWK mode. The most important
1398 exceptions are M-a (c-beginning-of-statement) and M-e
1399 (c-end-of-statement) which haven't yet been adapted.
1400
1401 The notion of "defun" has been augmented to include AWK pattern-action
1402 pairs. C-M-a (c-awk-beginning-of-defun) and C-M-e (c-awk-end-of-defun)
1403 recognise these pattern-action pairs, as well as user defined
1404 functions.
1405
1406 **** Auto-newline Insertion and Clean-ups
1407 Auto-newline insertion hasn't yet been adapted for AWK. Some of
1408 the clean-ups can actually convert good AWK code into syntactically
1409 invalid code. These features are best disabled in AWK buffers.
1410
1411 *** New syntactic symbols in IDL mode.
1412 The top level constructs "module" and "composition" (from CIDL) are
1413 now handled like "namespace" in C++: They are given syntactic symbols
1414 module-open, module-close, inmodule, composition-open,
1415 composition-close, and incomposition.
1416
1417 *** New functions to do hungry delete without enabling hungry delete mode.
1418 The functions c-hungry-backspace and c-hungry-delete-forward can be
1419 bound to keys to get this feature without toggling a mode.
1420 Contributed by Kevin Ryde.
1421
1422 *** Better control over require-final-newline.
1423 The variable that controls how to handle a final newline when the
1424 buffer is saved, require-final-newline, is now customizable on a
1425 per-mode basis through c-require-final-newline. The default is to set
1426 it to t only in languages that mandate a final newline in source files
1427 (C, C++ and Objective-C).
1428
1429 *** Format change for syntactic context elements.
1430 The elements in the syntactic context returned by c-guess-basic-syntax
1431 and stored in c-syntactic-context has been changed somewhat to allow
1432 attaching more information. They are now lists instead of single cons
1433 cells. E.g. a line that previously had the syntactic analysis
1434
1435 ((inclass . 11) (topmost-intro . 13))
1436
1437 is now analysed as
1438
1439 ((inclass 11) (topmost-intro 13))
1440
1441 In some cases there are more than one position given for a syntactic
1442 symbol.
1443
1444 This change might affect code that call c-guess-basic-syntax directly,
1445 and custom lineup functions if they use c-syntactic-context. However,
1446 the argument given to lineup functions is still a single cons cell
1447 with nil or an integer in the cdr.
1448
1449 *** API changes for derived modes.
1450 There have been extensive changes "under the hood" which can affect
1451 derived mode writers. Some of these changes are likely to cause
1452 incompatibilities with existing derived modes, but on the other hand
1453 care has now been taken to make it possible to extend and modify CC
1454 Mode with less risk of such problems in the future.
1455
1456 **** New language variable system.
1457 See the comment blurb near the top of cc-langs.el.
1458
1459 **** New initialization functions.
1460 The initialization procedure has been split up into more functions to
1461 give better control: c-basic-common-init, c-font-lock-init, and
1462 c-init-language-vars.
1463
1464 *** Changes in analysis of nested syntactic constructs.
1465 The syntactic analysis engine has better handling of cases where
1466 several syntactic constructs appear nested on the same line. They are
1467 now handled as if each construct started on a line of its own.
1468
1469 This means that CC Mode now indents some cases differently, and
1470 although it's more consistent there might be cases where the old way
1471 gave results that's more to one's liking. So if you find a situation
1472 where you think that the indentation has become worse, please report
1473 it to bug-cc-mode@gnu.org.
1474
1475 **** New syntactic symbol substatement-label.
1476 This symbol is used when a label is inserted between a statement and
1477 its substatement. E.g:
1478
1479 if (x)
1480 x_is_true:
1481 do_stuff();
1482
1483 *** Better handling of multiline macros.
1484
1485 **** Syntactic indentation inside macros.
1486 The contents of multiline #define's are now analyzed and indented
1487 syntactically just like other code. This can be disabled by the new
1488 variable c-syntactic-indentation-in-macros. A new syntactic symbol
1489 cpp-define-intro has been added to control the initial indentation
1490 inside #define's.
1491
1492 **** New lineup function c-lineup-cpp-define.
1493 Now used by default to line up macro continuation lines. The behavior
1494 of this function closely mimics the indentation one gets if the macro
1495 is indented while the line continuation backslashes are temporarily
1496 removed. If syntactic indentation in macros is turned off, it works
1497 much line c-lineup-dont-change, which was used earlier, but handles
1498 empty lines within the macro better.
1499
1500 **** Automatically inserted newlines continues the macro if used within one.
1501 This applies to the newlines inserted by the auto-newline mode, and to
1502 c-context-line-break and c-context-open-line.
1503
1504 **** Better alignment of line continuation backslashes.
1505 c-backslash-region tries to adapt to surrounding backslashes. New
1506 variable c-backslash-max-column which put a limit on how far out
1507 backslashes can be moved.
1508
1509 **** Automatic alignment of line continuation backslashes.
1510 This is controlled by the new variable c-auto-align-backslashes. It
1511 affects c-context-line-break, c-context-open-line and newlines
1512 inserted in auto-newline mode.
1513
1514 **** Line indentation works better inside macros.
1515 Regardless whether syntactic indentation and syntactic indentation
1516 inside macros are enabled or not, line indentation now ignores the
1517 line continuation backslashes. This is most noticeable when syntactic
1518 indentation is turned off and there are empty lines (save for the
1519 backslash) in the macro.
1520
1521 *** indent-for-comment is more customizable.
1522 The behavior of M-; (indent-for-comment) is now configurable through
1523 the variable c-indent-comment-alist. The indentation behavior based
1524 on the preceding code on the line, e.g. to get two spaces after #else
1525 and #endif but indentation to comment-column in most other cases
1526 (something which was hardcoded earlier).
1527
1528 *** New function c-context-open-line.
1529 It's the open-line equivalent of c-context-line-break.
1530
1531 *** New lineup functions
1532
1533 **** c-lineup-string-cont
1534 This lineup function lines up a continued string under the one it
1535 continues. E.g:
1536
1537 result = prefix + "A message "
1538 "string."; <- c-lineup-string-cont
1539
1540 **** c-lineup-cascaded-calls
1541 Lines up series of calls separated by "->" or ".".
1542
1543 **** c-lineup-knr-region-comment
1544 Gives (what most people think is) better indentation of comments in
1545 the "K&R region" between the function header and its body.
1546
1547 **** c-lineup-gcc-asm-reg
1548 Provides better indentation inside asm blocks. Contributed by Kevin
1549 Ryde.
1550
1551 **** c-lineup-argcont
1552 Lines up continued function arguments after the preceding comma.
1553 Contributed by Kevin Ryde.
1554
1555 *** Better caching of the syntactic context.
1556 CC Mode caches the positions of the opening parentheses (of any kind)
1557 of the lists surrounding the point. Those positions are used in many
1558 places as anchor points for various searches. The cache is now
1559 improved so that it can be reused to a large extent when the point is
1560 moved. The less it moves, the less needs to be recalculated.
1561
1562 The effect is that CC Mode should be fast most of the time even when
1563 opening parens are hung (i.e. aren't in column zero). It's typically
1564 only the first time after the point is moved far down in a complex
1565 file that it'll take noticeable time to find out the syntactic
1566 context.
1567
1568 *** Statements are recognized in a more robust way.
1569 Statements are recognized most of the time even when they occur in an
1570 "invalid" context, e.g. in a function argument. In practice that can
1571 happen when macros are involved.
1572
1573 *** Improved the way c-indent-exp chooses the block to indent.
1574 It now indents the block for the closest sexp following the point
1575 whose closing paren ends on a different line. This means that the
1576 point doesn't have to be immediately before the block to indent.
1577 Also, only the block and the closing line is indented; the current
1578 line is left untouched.
1579
1580 *** Added toggle for syntactic indentation.
1581 The function c-toggle-syntactic-indentation can be used to toggle
1582 syntactic indentation.
1583
1584 ** The command line option --no-windows has been changed to
1585 --no-window-system. The old one still works, but is deprecated.
1586
1587 +++
1588 ** The command `list-text-properties-at' has been deleted because
1589 C-u C-x = gives the same information and more.
1590
1591 +++
1592 ** `buffer-menu' and `list-buffers' now list buffers whose names begin
1593 with a space, when those buffers are visiting files. Normally buffers
1594 whose names begin with space are omitted.
1595
1596 +++
1597 ** You can now customize fill-nobreak-predicate to control where
1598 filling can break lines. We provide two sample predicates,
1599 fill-single-word-nobreak-p and fill-french-nobreak-p.
1600
1601 +++
1602 ** New user option `add-log-always-start-new-record'.
1603 When this option is enabled, M-x add-change-log-entry will always
1604 start a new record regardless of when the last record is.
1605
1606 +++
1607 ** SGML mode has indentation and supports XML syntax.
1608 The new variable `sgml-xml-mode' tells SGML mode to use XML syntax.
1609 When this option is enabled, SGML tags are inserted in XML style,
1610 i.e., there is always a closing tag.
1611 By default, its setting is inferred on a buffer-by-buffer basis
1612 from the file name or buffer contents.
1613
1614 +++
1615 ** `xml-mode' is now an alias for `sgml-mode', which has XML support.
1616
1617 +++
1618 ** New user option `isearch-resume-enabled'.
1619 This option can be disabled, to avoid the normal behavior of isearch
1620 which puts calls to `isearch-resume' in the command history.
1621
1622 ---
1623 ** Lisp mode now uses font-lock-doc-face for the docstrings.
1624
1625 ---
1626 ** Perl mode has a new variable `perl-indent-continued-arguments'.
1627
1628 +++
1629 ** Fortran mode has a new variable `fortran-directive-re'.
1630 Adapt this to match the format of any compiler directives you use.
1631 Lines that match are never indented, and are given distinctive font-locking.
1632
1633 ---
1634 ** F90 mode has new navigation commands `f90-end-of-block',
1635 `f90-beginning-of-block', `f90-next-block', `f90-previous-block'.
1636
1637 ---
1638 ** Prolog mode has a new variable `prolog-font-lock-keywords'
1639 to support use of font-lock.
1640
1641 +++
1642 ** `special-display-buffer-names' and `special-display-regexps' now
1643 understand two new boolean pseudo-frame-parameters `same-frame' and
1644 `same-window'.
1645
1646 +++
1647 ** M-x setenv now expands environment variables of the form `$foo' and
1648 `${foo}' in the specified new value of the environment variable. To
1649 include a `$' in the value, use `$$'.
1650
1651 +++
1652 ** File-name completion can now ignore directories.
1653 If an element of the list in `completion-ignored-extensions' ends in a
1654 slash `/', it indicates a subdirectory that should be ignored when
1655 completing file names. Elements of `completion-ignored-extensions'
1656 which do not end in a slash are never considered when a completion
1657 candidate is a directory.
1658
1659 +++
1660 ** The completion commands TAB, SPC and ? in the minibuffer apply only
1661 to the text before point. If there is text in the buffer after point,
1662 it remains unchanged.
1663
1664 ** Enhanced visual feedback in *Completions* buffer.
1665
1666 Completions lists use faces to highlight what all completions
1667 have in common and where they begin to differ.
1668
1669 The common prefix shared by all possible completions uses the face
1670 `completions-common-part', while the first character that isn't the
1671 same uses the face `completions-first-difference'. By default,
1672 `completions-common-part' inherits from `default', and
1673 `completions-first-difference' inherits from `bold'. The idea of
1674 `completions-common-part' is that you can use it to make the common
1675 parts less visible than normal, so that the rest of the differing
1676 parts is, by contrast, slightly highlighted.
1677
1678 +++
1679 ** New user option `inhibit-startup-buffer-menu'.
1680 When loading many files, for instance with `emacs *', Emacs normally
1681 displays a buffer menu. This option turns the buffer menu off.
1682
1683 ** Compilation mode enhancements:
1684
1685 *** New user option `compilation-environment'.
1686 This option allows you to specify environment variables for inferior
1687 compilation processes without affecting the environment that all
1688 subprocesses inherit.
1689
1690 *** `next-error' now temporarily highlights the corresponding source line.
1691
1692 ** Grep has been decoupled from compilation mode setup.
1693
1694 *** Grep commands now have their own submenu and customization group.
1695
1696 *** The new variables `grep-window-height', `grep-auto-highlight', and
1697 `grep-scroll-output' can be used to override the corresponding
1698 compilation mode settings for grep commands.
1699
1700 *** Source line is temporarily highlighted when going to next match.
1701
1702 *** New key bindings in grep output window:
1703 SPC and DEL scrolls window up and down. C-n and C-p moves to next and
1704 previous match in the grep window. RET jumps to the source line of
1705 the current match. `n' and `p' shows next and previous match in
1706 other window, but does not switch buffer. `{' and `}' jumps to the
1707 previous or next file in the grep output. TAB also jumps to the next
1708 file.
1709
1710 ---
1711 ** Rmail now displays 5-digit message ids in its summary buffer.
1712
1713 ---
1714 ** On MS Windows, the "system caret" now follows the cursor.
1715 This enables Emacs to work better with programs that need to track
1716 the cursor, for example screen magnifiers and text to speech programs.
1717
1718 ---
1719 ** Tooltips now work on MS Windows.
1720 See the Emacs 21.1 NEWS entry for tooltips for details.
1721
1722 ---
1723 ** Images are now supported on MS Windows.
1724 PBM and XBM images are supported out of the box. Other image formats
1725 depend on external libraries. All of these libraries have been ported
1726 to Windows, and can be found in both source and binary form at
1727 http://gnuwin32.sourceforge.net/. Note that libpng also depends on
1728 zlib, and tiff depends on the version of jpeg that it was compiled
1729 against.
1730
1731 ---
1732 ** Sound is now supported on MS Windows.
1733 WAV format is supported on all versions of Windows, other formats such
1734 as AU, AIFF and MP3 may be supported in the more recent versions of
1735 Windows, or when other software provides hooks into the system level
1736 sound support for those formats.
1737
1738 ---
1739 ** Different shaped mouse pointers are supported on MS Windows.
1740 The mouse pointer changes shape depending on what is under the pointer.
1741
1742 ---
1743 ** Pointing devices with more than 3 buttons are now supported on MS Windows.
1744 The new variable `w32-pass-extra-mouse-buttons-to-system' controls
1745 whether Emacs should handle the extra buttons itself (the default), or
1746 pass them to Windows to be handled with system-wide functions.
1747
1748 ---
1749 ** Emacs takes note of colors defined in Control Panel on MS-Windows.
1750 The Control Panel defines some default colors for applications in
1751 much the same way as wildcard X Resources do on X. Emacs now
1752 adds these colors to the colormap prefixed by System (eg SystemMenu
1753 for the default Menu background, SystemMenuText for the foreground),
1754 and uses some of them to initialize some of the default faces.
1755 `list-colors-display' will show the list of System color names if you
1756 wish to use them in other faces.
1757
1758 +++
1759 ** Under X11, it is possible to swap Alt and Meta (and Super and Hyper).
1760 The new variables `x-alt-keysym', `x-hyper-keysym', `x-meta-keysym',
1761 and `x-super-keysym' can be used to choose which keysyms Emacs should
1762 use for the modifiers. For example, the following two lines swap
1763 Meta and Alt:
1764 (setq x-alt-keysym 'meta)
1765 (setq x-meta-keysym 'alt)
1766
1767 +++
1768 ** vc-annotate-mode enhancements
1769
1770 In vc-annotate mode, you can now use the following key bindings for
1771 enhanced functionality to browse the annotations of past revisions, or
1772 to view diffs or log entries directly from vc-annotate-mode:
1773
1774 P: annotates the previous revision
1775 N: annotates the next revision
1776 J: annotates the revision at line
1777 A: annotates the revision previous to line
1778 D: shows the diff of the revision at line with its previous revision
1779 L: shows the log of the revision at line
1780 W: annotates the workfile (most up to date) version
1781 \f
1782 * New modes and packages in Emacs 21.4
1783
1784 ** The wdired.el package allows you to use normal editing commands on dired
1785 buffers to change filenames, permissions, etc...
1786
1787 ** The new python.el package is used to edit Python and Jython programs.
1788
1789 ** The URL package (which had been part of W3) is now part of Emacs.
1790
1791 +++
1792 ** The new global minor mode `size-indication-mode' (off by default)
1793 shows the size of accessible part of the buffer on the mode line.
1794
1795 ** GDB-Script-mode is used for files like .gdbinit.
1796
1797 ---
1798 ** Ido mode is now part of the Emacs distribution.
1799
1800 The ido (interactively do) package is an extension of the iswitchb
1801 package to do interactive opening of files and directories in addition
1802 to interactive buffer switching. Ido is a superset of iswitchb (with
1803 a few exceptions), so don't enable both packages.
1804
1805 ---
1806 ** CUA mode is now part of the Emacs distribution.
1807
1808 The new cua package provides CUA-like keybindings using C-x for
1809 cut (kill), C-c for copy, C-v for paste (yank), and C-z for undo.
1810 With cua, the region can be set and extended using shifted movement
1811 keys (like pc-selection-mode) and typed text replaces the active
1812 region (like delete-selection-mode). Do not enable these modes with
1813 cua-mode. Customize the variable `cua-mode' to enable cua.
1814
1815 In addition, cua provides unified rectangle support with visible
1816 rectangle highlighting: Use S-return to start a rectangle, extend it
1817 using the movement commands (or mouse-3), and cut or copy it using C-x
1818 or C-c (using C-w and M-w also works).
1819
1820 Use M-o and M-c to `open' or `close' the rectangle, use M-b or M-f, to
1821 fill it with blanks or another character, use M-u or M-l to upcase or
1822 downcase the rectangle, use M-i to increment the numbers in the
1823 rectangle, use M-n to fill the rectangle with a numeric sequence (such
1824 as 10 20 30...), use M-r to replace a regexp in the rectangle, and use
1825 M-' or M-/ to restrict command on the rectangle to a subset of the
1826 rows. See the commentary in cua-base.el for more rectangle commands.
1827
1828 Cua also provides unified support for registers: Use a numeric
1829 prefix argument between 0 and 9, i.e. M-0 .. M-9, for C-x, C-c, and
1830 C-v to cut or copy into register 0-9, or paste from register 0-9.
1831
1832 The last text deleted (not killed) is automatically stored in
1833 register 0. This includes text deleted by typing text.
1834
1835 Finally, cua provides a global mark which is set using S-C-space.
1836 When the global mark is active, any text which is cut or copied is
1837 automatically inserted at the global mark position. See the
1838 commentary in cua-base.el for more global mark related commands.
1839
1840 The features of cua also works with the standard emacs bindings for
1841 kill, copy, yank, and undo. If you want to use cua mode, but don't
1842 want the C-x, C-c, C-v, and C-z bindings, you may customize the
1843 `cua-enable-cua-keys' variable.
1844
1845 Note: This version of cua mode is not backwards compatible with older
1846 versions of cua.el and cua-mode.el. To ensure proper operation, you
1847 must remove older versions of cua.el or cua-mode.el as well as the
1848 loading and customization of those packages from the .emacs file.
1849
1850 ** The new keypad setup package provides several common bindings for
1851 the numeric keypad which is available on most keyboards. The numeric
1852 keypad typically has the digits 0 to 9, a decimal point, keys marked
1853 +, -, /, and *, an Enter key, and a NumLock toggle key. The keypad
1854 package only controls the use of the digit and decimal keys.
1855
1856 By customizing the variables `keypad-setup', `keypad-shifted-setup',
1857 `keypad-numlock-setup', and `keypad-numlock-shifted-setup', or by
1858 using the function `keypad-setup', you can rebind all digit keys and
1859 the decimal key of the keypad in one step for each of the four
1860 possible combinations of the Shift key state (not pressed/pressed) and
1861 the NumLock toggle state (off/on).
1862
1863 The choices for the keypad keys in each of the above states are:
1864 `Plain numeric keypad' where the keys generates plain digits,
1865 `Numeric keypad with decimal key' where the character produced by the
1866 decimal key can be customized individually (for internationalization),
1867 `Numeric Prefix Arg' where the keypad keys produce numeric prefix args
1868 for emacs editing commands, `Cursor keys' and `Shifted Cursor keys'
1869 where the keys work like (shifted) arrow keys, home/end, etc., and
1870 `Unspecified/User-defined' where the keypad keys (kp-0, kp-1, etc.)
1871 are left unspecified and can be bound individually through the global
1872 or local keymaps.
1873
1874 ** The new kmacro package provides a simpler user interface to
1875 emacs' keyboard macro facilities.
1876
1877 Basically, it uses two function keys (default F3 and F4) like this:
1878 F3 starts a macro, F4 ends the macro, and pressing F4 again executes
1879 the last macro. While defining the macro, F3 inserts a counter value
1880 which automatically increments every time the macro is executed.
1881
1882 There is now a keyboard macro ring which stores the most recently
1883 defined macros.
1884
1885 The C-x C-k sequence is now a prefix for the kmacro keymap which
1886 defines bindings for moving through the keyboard macro ring,
1887 C-x C-k C-p and C-x C-k C-n, editing the last macro C-x C-k C-e,
1888 manipulating the macro counter and format via C-x C-k C-c,
1889 C-x C-k C-a, and C-x C-k C-f. See the commentary in kmacro.el
1890 for more commands.
1891
1892 The normal macro bindings C-x (, C-x ), and C-x e now interfaces to
1893 the keyboard macro ring.
1894
1895 The C-x e command now automatically terminates the current macro
1896 before calling it, if used while defining a macro.
1897
1898 In addition, when ending or calling a macro with C-x e, the macro can
1899 be repeated immediately by typing just the `e'. You can customize
1900 this behaviour via the variable kmacro-call-repeat-key and
1901 kmacro-call-repeat-with-arg.
1902
1903 Keyboard macros can now be debugged and edited interactively.
1904 C-x C-k SPC will step through the last keyboard macro one key sequence
1905 at a time, prompting for the actions to take.
1906
1907 ---
1908 ** The old Octave mode bindings C-c f and C-c i have been changed
1909 to C-c C-f and C-c C-i. The C-c C-i subcommands now have duplicate
1910 bindings on control characters--thus, C-c C-i C-b is the same as
1911 C-c C-i b, and so on.
1912
1913 ** The printing package is now part of the Emacs distribution.
1914
1915 If you enable the printing package by including (require 'printing) in
1916 the .emacs file, the normal Print item on the File menu is replaced
1917 with a Print sub-menu which allows you to preview output through
1918 ghostview, use ghostscript to print (if you don't have a PostScript
1919 printer) or send directly to printer a PostScript code generated by
1920 `ps-print' package. Use M-x pr-help for more information.
1921
1922 +++
1923 ** Calc is now part of the Emacs distribution.
1924
1925 Calc is an advanced desk calculator and mathematical tool written in
1926 Emacs Lisp. Its documentation is in a separate manual; within Emacs,
1927 type "C-h i m calc RET" to read that manual. A reference card is
1928 available in `etc/calccard.tex' and `etc/calccard.ps'.
1929
1930 +++
1931 ** Tramp is now part of the distribution.
1932
1933 This package is similar to Ange-FTP: it allows you to edit remote
1934 files. But whereas Ange-FTP uses FTP to access the remote host,
1935 Tramp uses a shell connection. The shell connection is always used
1936 for filename completion and directory listings and suchlike, but for
1937 the actual file transfer, you can choose between the so-called
1938 `inline' methods (which transfer the files through the shell
1939 connection using base64 or uu encoding) and the `out-of-band' methods
1940 (which invoke an external copying program such as `rcp' or `scp' or
1941 `rsync' to do the copying).
1942
1943 Shell connections can be acquired via `rsh', `ssh', `telnet' and also
1944 `su' and `sudo'.
1945
1946 ---
1947 ** The new global minor mode `file-name-shadow-mode' modifies the way
1948 filenames being entered by the user in the minibuffer are displayed, so
1949 that it's clear when part of the entered filename will be ignored due to
1950 emacs' filename parsing rules. The ignored portion can be made dim,
1951 invisible, or otherwise less visually noticable. The display method may
1952 be displayed by customizing the variable `file-name-shadow-properties'.
1953
1954 ---
1955 ** The ruler-mode.el library provides a minor mode for displaying an
1956 "active" ruler in the header line. You can use the mouse to visually
1957 change the `fill-column', `window-margins' and `tab-stop-list'
1958 settings.
1959
1960 ---
1961 ** The minor mode Reveal mode makes text visible on the fly as you
1962 move your cursor into hidden regions of the buffer.
1963 It should work with any package that uses overlays to hide parts
1964 of a buffer, such as outline-minor-mode, hs-minor-mode, hide-ifdef-mode, ...
1965
1966 There is also Global Reveal mode which affects all buffers.
1967
1968 ---
1969 ** The new package ibuffer provides a powerful, completely
1970 customizable replacement for buff-menu.el.
1971
1972 ** The new package table.el implements editable, WYSIWYG, embedded
1973 `text tables' in Emacs buffers. It simulates the effect of putting
1974 these tables in a special major mode. The package emulates WYSIWYG
1975 table editing available in modern word processors. The package also
1976 can generate a table source in typesetting and markup languages such
1977 as latex and html from the visually laid out text table.
1978
1979 +++
1980 ** SES mode (ses-mode) is a new major mode for creating and editing
1981 spreadsheet files. Besides the usual Emacs features (intuitive command
1982 letters, undo, cell formulas in Lisp, plaintext files, etc.) it also offers
1983 viral immunity and import/export of tab-separated values.
1984
1985 ---
1986 ** Support for `magic cookie' standout modes has been removed.
1987 Emacs will still work on terminals that require magic cookies in order
1988 to use standout mode, however they will not be able to display
1989 mode-lines in inverse-video.
1990
1991 ---
1992 ** cplus-md.el has been removed to avoid problems with Custom.
1993
1994 ** New package benchmark.el contains simple support for convenient
1995 timing measurements of code (including the garbage collection component).
1996
1997 ** The default values of paragraph-start and indent-line-function have
1998 been changed to reflect those used in Text mode rather than those used
1999 in Indented-Text mode.
2000
2001 ** If you set `query-replace-skip-read-only' non-nil,
2002 `query-replace' and related functions simply ignore
2003 a match if part of it has a read-only property.
2004
2005 ** The new Lisp library fringe.el controls the apperance of fringes.
2006
2007 ** `cfengine-mode' is a major mode for editing GNU Cfengine
2008 configuration files.
2009 \f
2010 * Lisp Changes in Emacs 21.4
2011
2012 ** New functions posn-at-point and posn-at-x-y returns
2013 click-event-style position information for a given visible buffer
2014 position or for a given window pixel coordinate.
2015
2016 ** Function pos-visible-in-window-p now returns the pixel coordinates
2017 and partial visiblity state of the corresponding row, if the PARTIALLY
2018 arg is non-nil.
2019
2020 ** The function `eql' is now available without requiring the CL package.
2021
2022 +++
2023 ** The new primitive `set-file-times' sets a file's access and
2024 modification times. Magic file name handlers can handle this
2025 operation.
2026
2027 ** The display space :width and :align-to text properties are now
2028 supported on text terminals.
2029
2030 ** Support for displaying image slices
2031
2032 *** New display property (slice X Y WIDTH HEIGHT) may be used with
2033 an image property to display only a specific slice of the image.
2034
2035 *** Function insert-image has new optional fourth arg to
2036 specify image slice (X Y WIDTH HEIGHT).
2037
2038 *** New function insert-sliced-image inserts a given image as a
2039 specified number of evenly sized slices (rows x columns).
2040
2041 ** New line-height and line-spacing properties for newline characters
2042
2043 A newline may now have line-height and line-spacing text or overlay
2044 properties that control the height of the corresponding display row.
2045
2046 If the line-height property value is 0, the newline does not
2047 contribute to the height of the display row; instead the height of the
2048 newline glyph is reduced. This can be used to tile small images or
2049 image slices without adding blank areas between the images.
2050
2051 If the line-height property value is a positive integer, the value
2052 specifies the minimum line height in pixels. If necessary, the line
2053 height it increased by increasing the line's ascent.
2054
2055 If the line-height property value is a float, the minimum line height
2056 is calculated by multiplying the default frame line height by the
2057 given value.
2058
2059 If the line-height property value is a cons (RATIO . FACE), the
2060 minimum line height is calculated as RATIO * height of named FACE.
2061 RATIO is int or float. If FACE is t, it specifies the current face.
2062
2063 If the line-spacing property value is an positive integer, the value
2064 is used as additional pixels to insert after the display line; this
2065 overrides the default frame line-spacing and any buffer local value of
2066 the line-spacing variable.
2067
2068 If the value is a negative integer, the absolute value is used as the
2069 total height of the line, i.e. a varying number of pixels are
2070 inserted after each line to make each line exactly that many pixels high.
2071
2072 If the line-spacing property may be a float or cons, the line spacing
2073 is calculated as specified above for the line-height property.
2074
2075 ** The buffer local line-spacing variable may now have a float value,
2076 which is used as a height relative to the default frame line height.
2077
2078 ** Enhancements to stretch display properties
2079
2080 The display property stretch specification form `(space PROPS)', where
2081 PROPS is a property list now allows pixel based width and height
2082 specifications, as well as enhanced horizontal text alignment.
2083
2084 The value of these properties can now be a (primitive) expression
2085 which is evaluated during redisplay. The following expressions
2086 are supported:
2087
2088 EXPR ::= NUM | (NUM) | UNIT | ELEM | POS | IMAGE | FORM
2089 NUM ::= INTEGER | FLOAT | SYMBOL
2090 UNIT ::= in | mm | cm | width | height
2091 ELEM ::= left-fringe | right-fringe | left-margin | right-margin
2092 | scroll-bar | text
2093 POS ::= left | center | right
2094 FORM ::= (NUM . EXPR) | (OP EXPR ...)
2095 OP ::= + | -
2096
2097 The form `NUM' specifies a fractional width or height of the default
2098 frame font size. The form `(NUM)' specifies an absolute number of
2099 pixels. If a symbol is specified, its buffer-local variable binding
2100 is used. The `in', `mm', and `cm' units specifies the number of
2101 pixels per inch, milli-meter, and centi-meter, resp. The `width' and
2102 `height' units correspond to the width and height of the current face
2103 font. An image specification corresponds to the width or height of
2104 the image.
2105
2106 The `left-fringe', `right-fringe', `left-margin', `right-margin',
2107 `scroll-bar', and `text' elements specify to the width of the
2108 corresponding area of the window.
2109
2110 The `left', `center', and `right' positions can be used with :align-to
2111 to specify a position relative to the left edge, center, or right edge
2112 of the text area. One of the above window elements (except `text')
2113 can also be used with :align-to to specify that the position is
2114 relative to the left edge of the given area. Once the base offset for
2115 a relative position has been set (by the first occurrence of one of
2116 these symbols), further occurences of these symbols are interpreted as
2117 the width of the area.
2118
2119 For example, to align to the center of the left-margin, use
2120 :align-to (+ left-margin (0.5 . left-margin))
2121
2122 If no specific base offset is set for alignment, it is always relative
2123 to the left edge of the text area. For example, :align-to 0 in a
2124 header-line aligns with the first text column in the text area.
2125
2126 The value of the form `(NUM . EXPR)' is the value of NUM multiplied by
2127 the value of the expression EXPR. For example, (2 . in) specifies a
2128 width of 2 inches, while (0.5 . IMAGE) specifies half the width (or
2129 height) of the specified image.
2130
2131 The form `(+ EXPR ...)' adds up the value of the expressions.
2132 The form `(- EXPR ...)' negates or subtracts the value of the expressions.
2133
2134 ** New macro with-local-quit temporarily sets inhibit-quit to nil for use
2135 around potentially blocking or long-running code in timers
2136 and post-command-hooks.
2137
2138 +++
2139 ** New face attribute `min-colors' can be used to tailor the face color
2140 to the number of colors supported by a display, and define the
2141 foreground and background colors accordingly so that they look best on
2142 a terminal that supports at least this many colors. This is now the
2143 preferred method for defining default faces in a way that makes a good
2144 use of the capabilities of the display.
2145
2146 ** New function 'define-fringe-bitmap' can now be used to change the
2147 built-in fringe bitmaps, as well as create new fringe bitmaps.
2148 The return value is a number identifying the new fringe bitmap.
2149
2150 To change a built-in bitmap, do (require 'fringe) and identify the
2151 bitmap to change with the value of the corresponding symbol, like
2152 `left-truncation-fringe-bitmap' or `continued-line-fringe-bitmap'.
2153
2154 ** New function 'destroy-fringe-bitmap' may be used to destroy a
2155 previously created bitmap, or restore a built-in bitmap.
2156
2157 ** New function 'set-fringe-bitmap-face' can now be used to set a
2158 specific face to be used for a specific fringe bitmap. Normally,
2159 this should be a face derived from the `fringe' face, specifying
2160 the foreground color as the desired color of the bitmap.
2161
2162 ** There are new display properties, left-fringe and right-fringe,
2163 that can be used to show a specific bitmap in the left or right fringe
2164 bitmap of the display line.
2165
2166 Format is 'display '(left-fringe BITMAP [FACE]), where BITMAP is a
2167 number identifying a fringe bitmap, either built-in or as returned by
2168 `define-fringe-bitmap', and FACE is an optional face name to be used
2169 for displaying the bitmap.
2170
2171 ** New function `fringe-bitmaps-at-pos' returns a cons (LEFT . RIGHT)
2172 identifying the current fringe bitmaps in the display line at a given
2173 buffer position. A nil value means no bitmap.
2174
2175 ** Multiple overlay arrows can now be defined and managed via the new
2176 variable `overlay-arrow-variable-list'. It contains a list of
2177 varibles which contain overlay arrow position markers, including
2178 the original `overlay-arrow-position' variable.
2179
2180 Each variable on this list may have individual `overlay-arrow-string'
2181 and `overlay-arrow-bitmap' properties that specify an overlay arrow
2182 string (for non-window terminals) or fringe bitmap (for window
2183 systems) to display at the corresponding overlay arrow position.
2184 If either property is not set, the default `overlay-arrow-string' or
2185 'overlay-arrow-fringe-bitmap' will be used.
2186
2187 +++
2188 ** New function `line-number-at-pos' returns line number of current
2189 line in current buffer, or if optional buffer position is given, line
2190 number of corresponding line in current buffer.
2191
2192 ** The default value of `sentence-end' is now defined using the new
2193 variable `sentence-end-without-space' which contains such characters
2194 that end a sentence without following spaces.
2195
2196 ** The function `sentence-end' should be used to obtain the value of
2197 the variable `sentence-end'. If the variable `sentence-end' is nil,
2198 then this function returns the regexp constructed from the variables
2199 `sentence-end-without-period', `sentence-end-double-space' and
2200 `sentence-end-without-space'.
2201
2202 +++
2203 ** The flags, width, and precision options for %-specifications in function
2204 `format' are now documented. Some flags that were accepted but not
2205 implemented (such as "*") are no longer accepted.
2206
2207 ** New function `macroexpand-all' expands all macros in a form.
2208 It is similar to the Common-Lisp function of the same name.
2209 One difference is that it guarantees to return the original argument
2210 if no expansion is done, which may be tested using `eq'.
2211
2212 +++
2213 ** New function `delete-dups' destructively removes `equal' duplicates
2214 from a list. Of several `equal' occurrences of an element in the list,
2215 the first one is kept.
2216
2217 +++
2218 ** `declare' is now a macro. This change was made mostly for
2219 documentation purposes and should have no real effect on Lisp code.
2220
2221 ** The new hook `before-save-hook' is invoked by `basic-save-buffer'
2222 before saving buffers. This allows packages to perform various final
2223 tasks, for example; it can be used by the copyright package to make
2224 sure saved files have the current year in any copyright headers.
2225
2226 +++
2227 ** The function `insert-for-yank' now supports strings where the
2228 `yank-handler' property does not span the first character of the
2229 string. The old behavior is available if you call
2230 `insert-for-yank-1' instead.
2231
2232 ** New function `get-char-property-and-overlay' accepts the same
2233 arguments as `get-char-property' and returns a cons whose car is the
2234 return value of `get-char-property' called with those arguments and
2235 whose cdr is the overlay in which the property was found, or nil if
2236 it was found as a text property or not found at all.
2237
2238 ** The mouse pointer shape in void text areas (i.e. after the end of a
2239 line or below the last line in the buffer) of the text window is now
2240 controlled by the new variable `void-text-area-pointer'. The default
2241 is to use the `arrow' (non-text) pointer. Other choices are `text'
2242 (or nil), `hand', `vdrag', `hdrag', `modeline', and `hourglass'.
2243
2244 ** The mouse pointer shape over an image can now be controlled by the
2245 :pointer image property.
2246
2247 ** The mouse pointer shape over ordinary text or images may now be
2248 controlled/overriden via the `pointer' text property.
2249
2250 ** Images may now have an associated image map via the :map property.
2251
2252 An image map is an alist where each element has the format (AREA ID PLIST).
2253 An AREA is specified as either a rectangle, a circle, or a polygon:
2254 A rectangle is a cons (rect . ((x0 . y0) . (x1 . y1))) specifying the
2255 pixel coordinates of the upper left and bottom right corners.
2256 A circle is a cons (circle . ((x0 . y0) . r)) specifying the center
2257 and the radius of the circle; r may be a float or integer.
2258 A polygon is a cons (poly . [x0 y0 x1 y1 ...]) where each pair in the
2259 vector describes one corner in the polygon.
2260
2261 When the mouse pointer is above a hot-spot area of an image, the
2262 PLIST of that hot-spot is consulted; if it contains a `help-echo'
2263 property it defines a tool-tip for the hot-spot, and if it contains
2264 a `pointer' property, it defines the shape of the mouse cursor when
2265 it is over the hot-spot. See the variable 'void-area-text-pointer'
2266 for possible pointer shapes.
2267
2268 When you click the mouse when the mouse pointer is over a hot-spot,
2269 an event is composed by combining the ID of the hot-spot with the
2270 mouse event, e.g. [area4 mouse-1] if the hot-spot's ID is `area4'.
2271
2272 ** Mouse event enhancements:
2273
2274 *** Mouse clicks on fringes now generates left-fringe or right-fringes
2275 events, rather than a text area click event.
2276
2277 *** Mouse clicks in the left and right marginal areas now includes a
2278 sensible buffer position corresponding to the first character in the
2279 corresponding text row.
2280
2281 *** Function `mouse-set-point' now works for events outside text area.
2282
2283 +++
2284 *** Mouse events now includes buffer position for all event types.
2285
2286 +++
2287 *** `posn-point' now returns buffer position for non-text area events.
2288
2289 +++
2290 *** New function `posn-area' returns window area clicked on (nil means
2291 text area).
2292
2293 +++
2294 *** Mouse events include actual glyph column and row for all event types.
2295
2296 +++
2297 *** New function `posn-actual-col-row' returns actual glyph coordinates.
2298
2299 +++
2300 *** Mouse events may now include image object in addition to string object.
2301
2302 +++
2303 *** Mouse events include relative x and y pixel coordinates relative to
2304 the top left corner of the object (image or character) clicked on.
2305
2306 +++
2307 *** Mouse events include the pixel width and height of the object
2308 (image or character) clicked on.
2309
2310 +++
2311 *** New functions 'posn-object', 'posn-object-x-y', and
2312 'posn-object-width-height' return the image or string object of a mouse
2313 click, the x and y pixel coordinates relative to the top left corner
2314 of that object, and the total width and height of that object.
2315
2316 ** New function `force-window-update' can initiate a full redisplay of
2317 one or all windows. Normally, this is not needed as changes in window
2318 contents are detected automatically. However, certain implicit
2319 changes to mode lines, header lines, or display properties may require
2320 forcing an explicit window update.
2321
2322 ** New function `redirect-debugging-output' can be used to redirect
2323 debugging output on the stderr file handle to a file.
2324
2325 +++
2326 ** `split-string' now includes null substrings in the returned list if
2327 the optional argument SEPARATORS is non-nil and there are matches for
2328 SEPARATORS at the beginning or end of the string. If SEPARATORS is
2329 nil, or if the new optional third argument OMIT-NULLS is non-nil, all
2330 empty matches are omitted from the returned list.
2331
2332 +++
2333 ** `makehash' is now obsolete. Use `make-hash-table' instead.
2334
2335 +++
2336 ** If optional third argument APPEND to `add-to-list' is non-nil, a
2337 new element gets added at the end of the list instead of at the
2338 beginning. This change actually occurred in Emacs-21.1, but was not
2339 documented.
2340
2341 ** Major modes can define `eldoc-print-current-symbol-info-function'
2342 locally to provide Eldoc functionality by some method appropriate to
2343 the language.
2344
2345 ---
2346 ** New coding system property `mime-text-unsuitable' indicates that
2347 the coding system's `mime-charset' is not suitable for MIME text
2348 parts, e.g. utf-16.
2349
2350 +++
2351 ** The argument to forward-word, backward-word, forward-to-indentation
2352 and backward-to-indentation is now optional, and defaults to 1.
2353
2354 +++
2355 ** (char-displayable-p CHAR) returns non-nil if Emacs ought to be able
2356 to display CHAR. More precisely, if the selected frame's fontset has
2357 a font to display the character set that CHAR belongs to.
2358
2359 Fontsets can specify a font on a per-character basis; when the fontset
2360 does that, this value may not be accurate.
2361
2362 +++
2363 ** The new function `window-inside-edges' returns the edges of the
2364 actual text portion of the window, not including the scroll bar or
2365 divider line, the fringes, the display margins, the header line and
2366 the mode line.
2367
2368 +++
2369 ** The new functions `window-pixel-edges' and `window-inside-pixel-edges'
2370 return window edges in units of pixels, rather than columns and lines.
2371
2372 +++
2373 ** The kill-buffer-hook is now permanent-local.
2374
2375 +++
2376 ** `select-window' takes an optional second argument `norecord', like
2377 `switch-to-buffer'.
2378
2379 +++
2380 ** The new macro `with-selected-window' temporarily switches the
2381 selected window without impacting the order of buffer-list.
2382
2383 +++
2384 ** The `keymap' property now also works at the ends of overlays and
2385 text-properties, according to their stickiness. This also means that it
2386 works with empty overlays. The same hold for the `local-map' property.
2387
2388 +++
2389 ** (map-keymap FUNCTION KEYMAP) applies the function to each binding
2390 in the keymap.
2391
2392 ---
2393 ** VC changes for backends:
2394 *** (vc-switches BACKEND OPERATION) is a new function for use by backends.
2395 *** The new `find-version' backend function replaces the `destfile'
2396 parameter of the `checkout' backend function.
2397 Old code still works thanks to a default `find-version' behavior that
2398 uses the old `destfile' parameter.
2399
2400 +++
2401 ** The new macro dynamic-completion-table supports using functions
2402 as a dynamic completion table.
2403
2404 (dynamic-completion-table FUN)
2405
2406 FUN is called with one argument, the string for which completion is required,
2407 and it should return an alist containing all the intended possible
2408 completions. This alist may be a full list of possible completions so that FUN
2409 can ignore the value of its argument. If completion is performed in the
2410 minibuffer, FUN will be called in the buffer from which the minibuffer was
2411 entered. dynamic-completion-table then computes the completion.
2412
2413 +++
2414 ** The new macro lazy-completion-table initializes a variable
2415 as a lazy completion table.
2416
2417 (lazy-completion-table VAR FUN &rest ARGS)
2418
2419 If the completion table VAR is used for the first time (e.g., by passing VAR
2420 as an argument to `try-completion'), the function FUN is called with arguments
2421 ARGS. FUN must return the completion table that will be stored in VAR. If
2422 completion is requested in the minibuffer, FUN will be called in the buffer
2423 from which the minibuffer was entered. The return value of
2424 `lazy-completion-table' must be used to initialize the value of VAR.
2425
2426 +++
2427 ** `minor-mode-list' now holds a list of minor mode commands.
2428
2429 +++
2430 ** The new function `modify-all-frames-parameters' modifies parameters
2431 for all (existing and future) frames.
2432
2433 +++
2434 ** `sit-for' can now be called with args (SECONDS &optional NODISP).
2435
2436 +++
2437 ** New standard font-lock face `font-lock-preprocessor-face'.
2438
2439 +++
2440 ** The macro `with-syntax-table' does not copy the table any more.
2441
2442 +++
2443 ** The variable `face-font-rescale-alist' specifies how much larger
2444 (or smaller) font we should use. For instance, if the value is
2445 '((SOME-FONTNAME-PATTERN . 1.3)) and a face requests a font of 10
2446 point, we actually use a font of 13 point if the font matches
2447 SOME-FONTNAME-PATTERN.
2448
2449 +++
2450 ** The function `number-sequence' returns a list of equally-separated
2451 numbers. For instance, (number-sequence 4 9) returns (4 5 6 7 8 9).
2452 By default, the separation is 1, but you can specify a different separation
2453 as the third argument. (number-sequence 1.5 6 2) returns (1.5 3.5 5.5).
2454
2455 +++
2456 ** `file-chase-links' now takes an optional second argument LIMIT which
2457 specifies the maximum number of links to chase through. If after that
2458 many iterations the file name obtained is still a symbolic link,
2459 `file-chase-links' returns it anyway.
2460
2461 ---
2462 ** `set-fontset-font', `fontset-info', `fontset-font' now operate on
2463 the default fontset if the argument NAME is nil..
2464
2465 +++
2466 ** The escape sequence \s is now interpreted as a SPACE character,
2467 unless it is followed by a `-' in a character constant (e.g. ?\s-A),
2468 in which case it is still interpreted as the super modifier.
2469 In strings, \s is always interpreted as a space.
2470
2471 +++
2472 ** New function `set-process-filter-multibyte' sets the multibyteness
2473 of a string given to a process's filter.
2474
2475 +++
2476 ** New function `process-filter-multibyte-p' returns t if
2477 a string given to a process's filter is multibyte.
2478
2479 +++
2480 ** A filter function of a process is called with a multibyte string if
2481 the filter's multibyteness is t. That multibyteness is decided by the
2482 value of `default-enable-multibyte-characters' when the process is
2483 created and can be changed later by `set-process-filter-multibyte'.
2484
2485 +++
2486 ** If a process's coding system is raw-text or no-conversion and its
2487 buffer is multibyte, the output of the process is at first converted
2488 to multibyte by `string-to-multibyte' then inserted in the buffer.
2489 Previously, it was converted to multibyte by `string-as-multibyte',
2490 which was not compatible with the behaviour of file reading.
2491
2492 +++
2493 ** New function `string-to-multibyte' converts a unibyte string to a
2494 multibyte string with the same individual character codes.
2495
2496 +++
2497 ** New variables `gc-elapsed' and `gcs-done' provide extra information
2498 on garbage collection.
2499
2500 +++
2501 ** New function `decode-coding-inserted-region' decodes a region as if
2502 it is read from a file without decoding.
2503
2504 +++
2505 ** New function `locale-info' accesses locale information.
2506
2507 +++
2508 ** `save-selected-window' now saves and restores the selected window
2509 of every frame. This way, it restores everything that can be changed
2510 by calling `select-window'.
2511
2512 ---
2513 ** `easy-menu-define' now allows you to use nil for the symbol name
2514 if you don't need to give the menu a name. If you install the menu
2515 into other keymaps right away (MAPS is non-nil), it usually doesn't
2516 need to have a name.
2517
2518 ** Byte compiler changes:
2519
2520 ---
2521 *** `(featurep 'xemacs)' is treated by the compiler as nil. This
2522 helps to avoid noisy compiler warnings in code meant to run under both
2523 Emacs and XEmacs and may sometimes make the result significantly more
2524 efficient. Since byte code from recent versions of XEmacs won't
2525 generally run in Emacs and vice versa, this optimization doesn't lose
2526 you anything.
2527
2528 +++
2529 *** You can avoid warnings for possibly-undefined symbols with a
2530 simple convention that the compiler understands. (This is mostly
2531 useful in code meant to be portable to different Emacs versions.)
2532 Write forms like the following, or code that macroexpands into such
2533 forms:
2534
2535 (if (fboundp 'foo) <then> <else>)
2536 (if (boundp 'foo) <then> <else)
2537
2538 In the first case, using `foo' as a function inside the <then> form
2539 won't produce a warning if it's not defined as a function, and in the
2540 second case, using `foo' as a variable won't produce a warning if it's
2541 unbound. The test must be in exactly one of the above forms (after
2542 macro expansion), but such tests may be nested. Note that `when' and
2543 `unless' expand to `if', but `cond' doesn't.
2544
2545 +++
2546 *** The new macro `with-no-warnings' suppresses all compiler warnings
2547 inside its body. In terms of execution, it is equivalent to `progn'.
2548
2549 +++
2550 ** The new translation table `translation-table-for-input'
2551 is used for customizing self-insertion. The character to
2552 be inserted is translated through it.
2553
2554 +++
2555 ** `load-history' can now have elements of the form (t . FUNNAME),
2556 which means FUNNAME was previously defined as an autoload (before the
2557 current file redefined it).
2558
2559 +++
2560 ** New Lisp library testcover.el works with edebug to help you determine
2561 whether you've tested all your Lisp code. Function testcover-start
2562 instruments all functions in a given file. Then test your code. Function
2563 testcover-mark-all adds overlay "splotches" to the Lisp file's buffer to
2564 show where coverage is lacking. Command testcover-next-mark (bind it to
2565 a key!) will move point forward to the next spot that has a splotch.
2566
2567 *** Normally, a red splotch indicates the form was never completely evaluated;
2568 a brown splotch means it always evaluated to the same value. The red
2569 splotches are skipped for forms that can't possibly complete their evaluation,
2570 such as `error'. The brown splotches are skipped for forms that are expected
2571 to always evaluate to the same value, such as (setq x 14).
2572
2573 *** For difficult cases, you can add do-nothing macros to your code to help
2574 out the test coverage tool. The macro `noreturn' suppresses a red splotch.
2575 It is an error if the argument to `noreturn' does return. The macro 1value
2576 suppresses a brown splotch for its argument. This macro is a no-op except
2577 during test-coverage -- then it signals an error if the argument actually
2578 returns differing values.
2579
2580 +++
2581 ** New function unsafep returns nil if the given Lisp form can't possibly
2582 do anything dangerous; otherwise it returns a reason why the form might be
2583 unsafe (calls dangerous function, alters global variable, etc).
2584
2585 +++
2586 ** The new variable `print-continuous-numbering', when non-nil, says
2587 that successive calls to print functions should use the same
2588 numberings for circular structure references. This is only relevant
2589 when `print-circle' is non-nil.
2590
2591 When you bind `print-continuous-numbering' to t, you should
2592 also bind `print-number-table' to nil.
2593
2594 +++
2595 ** When using non-toolkit scroll bars with the default width,
2596 the scroll-bar-width frame parameter value is nil.
2597
2598 +++
2599 ** The new function copy-abbrev-table returns a new abbrev table that
2600 is a copy of a given abbrev table.
2601
2602 +++
2603 ** The option --script FILE runs Emacs in batch mode and loads FILE.
2604 It is useful for writing Emacs Lisp shell script files, because they
2605 can start with this line:
2606
2607 #!/usr/bin/emacs --script
2608
2609 +++
2610 ** A function's docstring can now hold the function's usage info on
2611 its last line. It should match the regexp "\n\n(fn.*)\\'".
2612
2613 ---
2614 ** New CCL functions `lookup-character' and `lookup-integer' access
2615 hash tables defined by the Lisp function `define-translation-hash-table'.
2616
2617 +++
2618 ** The new function `minibufferp' returns non-nil if its optional buffer
2619 argument is a minibuffer. If the argument is omitted it defaults to
2620 the current buffer.
2621
2622 +++
2623 ** There is a new Warnings facility; see the functions `warn'
2624 and `display-warning'.
2625
2626 +++
2627 ** The functions all-completions and try-completion now accept lists
2628 of strings as well as hash-tables additionally to alists, obarrays
2629 and functions. Furthermore, the function `test-completion' is now
2630 exported to Lisp.
2631
2632 ---
2633 ** When pure storage overflows while dumping, Emacs now prints how
2634 much pure storage it will approximately need.
2635
2636 +++
2637 ** The new variable `auto-coding-functions' lets you specify functions
2638 to examine a file being visited and deduce the proper coding system
2639 for it. (If the coding system is detected incorrectly for a specific
2640 file, you can put a `coding:' tags to override it.)
2641
2642 ---
2643 ** The new function `merge-coding-systems' fills in unspecified aspects
2644 of one coding system from another coding system.
2645
2646 +++
2647 ** The variable `safe-local-eval-forms' specifies a list of forms that
2648 are ok to evaluate when they appear in an `eval' local variables
2649 specification. Normally Emacs asks for confirmation before evaluating
2650 such a form, but if the form appears in this list, no confirmation is
2651 needed.
2652
2653 ---
2654 ** If a function has a non-nil `safe-local-eval-function' property,
2655 that means it is ok to evaluate some calls to that function when it
2656 appears in an `eval' local variables specification. If the property
2657 is t, then any form calling that function with constant arguments is
2658 ok. If the property is a function or list of functions, they are called
2659 with the form as argument, and if any returns t, the form is ok to call.
2660
2661 If the form is not "ok to call", that means Emacs asks for
2662 confirmation as before.
2663
2664 +++
2665 ** Controlling the default left and right fringe widths.
2666
2667 The default left and right fringe widths for all windows of a frame
2668 can now be controlled by setting the `left-fringe' and `right-fringe'
2669 frame parameters to an integer value specifying the width in pixels.
2670 Setting the width to 0 effectively removes the corresponding fringe.
2671
2672 The actual default fringe widths for the frame may deviate from the
2673 specified widths, since the combined fringe widths must match an
2674 integral number of columns. The extra width is distributed evenly
2675 between the left and right fringe. For force a specific fringe width,
2676 specify the width as a negative integer (if both widths are negative,
2677 only the left fringe gets the specified width).
2678
2679 Setting the width to nil (the default), restores the default fringe
2680 width which is the minimum number of pixels necessary to display any
2681 of the currently defined fringe bitmaps. The width of the built-in
2682 fringe bitmaps is 8 pixels.
2683
2684 +++
2685 ** Per-window fringes settings
2686
2687 Windows can now have their own individual fringe widths and position
2688 settings.
2689
2690 To control the fringe widths of a window, either set the buffer-local
2691 variables `left-fringe-width', `right-fringe-width', or call
2692 `set-window-fringes'.
2693
2694 To control the fringe position in a window, that is, whether fringes
2695 are positioned between the display margins and the window's text area,
2696 or at the edges of the window, either set the buffer-local variable
2697 `fringes-outside-margins' or call `set-window-fringes'.
2698
2699 The function `window-fringes' can be used to obtain the current
2700 settings. To make `left-fringe-width', `right-fringe-width', and
2701 `fringes-outside-margins' take effect, you must set them before
2702 displaying the buffer in a window, or use `set-window-buffer' to force
2703 an update of the display margins.
2704
2705 +++
2706 ** Per-window vertical scroll-bar settings
2707
2708 Windows can now have their own individual scroll-bar settings
2709 controlling the width and position of scroll-bars.
2710
2711 To control the scroll-bar of a window, either set the buffer-local
2712 variables `scroll-bar-mode' and `scroll-bar-width', or call
2713 `set-window-scroll-bars'. The function `window-scroll-bars' can be
2714 used to obtain the current settings. To make `scroll-bar-mode' and
2715 `scroll-bar-width' take effect, you must set them before displaying
2716 the buffer in a window, or use `set-window-buffer' to force an update
2717 of the display margins.
2718
2719 +++
2720 ** The function `set-window-buffer' now has an optional third argument
2721 KEEP-MARGINS which will preserve the window's current margin, fringe,
2722 and scroll-bar settings if non-nil.
2723
2724 +++
2725 ** Renamed file hooks to follow the convention:
2726 find-file-hooks to find-file-hook,
2727 find-file-not-found-hooks to find-file-not-found-functions,
2728 write-file-hooks to write-file-functions,
2729 write-contents-hooks to write-contents-functions.
2730 Marked local-write-file-hooks as obsolete (use the LOCAL arg of `add-hook').
2731
2732 +++
2733 ** The new variable `delete-frame-functions' replaces `delete-frame-hook'.
2734 It was renamed to follow the naming conventions for abnormal hooks. The old
2735 name remains available as an alias, but has been marked obsolete.
2736
2737 +++
2738 ** The `read-file-name' function now takes an additional argument which
2739 specifies a predicate which the file name read must satify. The
2740 new variable `read-file-name-predicate' contains the predicate argument
2741 while reading the file name from the minibuffer; the predicate in this
2742 variable is used by read-file-name-internal to filter the completion list.
2743
2744 ---
2745 ** The new variable `read-file-name-function' can be used by lisp code
2746 to override the internal read-file-name function.
2747
2748 +++
2749 ** The new function `read-directory-name' can be used instead of
2750 `read-file-name' to read a directory name; when used, completion
2751 will only show directories.
2752
2753 +++
2754 ** The new function `file-remote-p' tests a file name and returns
2755 non-nil if it specifies a remote file (one that Emacs accesses using
2756 its own special methods and not directly through the file system).
2757
2758 ---
2759 ** When a Lisp file uses CL functions at run-time, compiling the file
2760 now issues warnings about these calls, unless the file performs
2761 (require 'cl) when loaded.
2762
2763 +++
2764 ** The `defmacro' form may contain declarations specifying how to
2765 indent the macro in Lisp mode and how to debug it with Edebug. The
2766 syntax of defmacro has been extended to
2767
2768 (defmacro NAME LAMBDA-LIST [DOC-STRING] [DECLARATION ...] ...)
2769
2770 DECLARATION is a list `(declare DECLARATION-SPECIFIER ...)'. The
2771 declaration specifiers supported are:
2772
2773 (indent INDENT)
2774 Set NAME's `lisp-indent-function' property to INDENT.
2775
2776 (edebug DEBUG)
2777 Set NAME's `edebug-form-spec' property to DEBUG. (This is
2778 equivalent to writing a `def-edebug-spec' for the macro.
2779
2780 +++
2781 ** Interactive commands can be remapped through keymaps.
2782
2783 This is an alternative to using defadvice or substitute-key-definition
2784 to modify the behavior of a key binding using the normal keymap
2785 binding and lookup functionality.
2786
2787 When a key sequence is bound to a command, and that command is
2788 remapped to another command, that command is run instead of the
2789 original command.
2790
2791 Example:
2792 Suppose that minor mode my-mode has defined the commands
2793 my-kill-line and my-kill-word, and it wants C-k (and any other key
2794 bound to kill-line) to run the command my-kill-line instead of
2795 kill-line, and likewise it wants to run my-kill-word instead of
2796 kill-word.
2797
2798 Instead of rebinding C-k and the other keys in the minor mode map,
2799 command remapping allows you to directly map kill-line into
2800 my-kill-line and kill-word into my-kill-word through the minor mode
2801 map using define-key:
2802
2803 (define-key my-mode-map [remap kill-line] 'my-kill-line)
2804 (define-key my-mode-map [remap kill-word] 'my-kill-word)
2805
2806 Now, when my-mode is enabled, and the user enters C-k or M-d,
2807 the commands my-kill-line and my-kill-word are run.
2808
2809 Notice that only one level of remapping is supported. In the above
2810 example, this means that if my-kill-line is remapped to other-kill,
2811 then C-k still runs my-kill-line.
2812
2813 The following changes have been made to provide command remapping:
2814
2815 - Command remappings are defined using `define-key' with a prefix-key
2816 `remap', i.e. `(define-key MAP [remap CMD] DEF)' remaps command CMD
2817 to definition DEF in keymap MAP. The definition is not limited to
2818 another command; it can be anything accepted for a normal binding.
2819
2820 - The new function `command-remapping' returns the binding for a
2821 remapped command in the current keymaps, or nil if not remapped.
2822
2823 - key-binding now remaps interactive commands unless the optional
2824 third argument NO-REMAP is non-nil.
2825
2826 - where-is-internal now returns nil for a remapped command (e.g.
2827 kill-line if my-mode is enabled), and the actual key binding for
2828 the command it is remapped to (e.g. C-k for my-kill-line).
2829 It also has a new optional fifth argument, NO-REMAP, which inhibits
2830 remapping if non-nil (e.g. it returns C-k for kill-line and
2831 <kill-line> for my-kill-line).
2832
2833 - The new variable `this-original-command' contains the original
2834 command before remapping. It is equal to `this-command' when the
2835 command was not remapped.
2836
2837 +++
2838 ** New variable emulation-mode-map-alists.
2839
2840 Lisp packages using many minor mode keymaps can now maintain their own
2841 keymap alist separate from minor-mode-map-alist by adding their keymap
2842 alist to this list.
2843
2844 +++
2845 ** Atomic change groups.
2846
2847 To perform some changes in the current buffer "atomically" so that
2848 they either all succeed or are all undone, use `atomic-change-group'
2849 around the code that makes changes. For instance:
2850
2851 (atomic-change-group
2852 (insert foo)
2853 (delete-region x y))
2854
2855 If an error (or other nonlocal exit) occurs inside the body of
2856 `atomic-change-group', it unmakes all the changes in that buffer that
2857 were during the execution of the body. The change group has no effect
2858 on any other buffers--any such changes remain.
2859
2860 If you need something more sophisticated, you can directly call the
2861 lower-level functions that `atomic-change-group' uses. Here is how.
2862
2863 To set up a change group for one buffer, call `prepare-change-group'.
2864 Specify the buffer as argument; it defaults to the current buffer.
2865 This function returns a "handle" for the change group. You must save
2866 the handle to activate the change group and then finish it.
2867
2868 Before you change the buffer again, you must activate the change
2869 group. Pass the handle to `activate-change-group' afterward to
2870 do this.
2871
2872 After you make the changes, you must finish the change group. You can
2873 either accept the changes or cancel them all. Call
2874 `accept-change-group' to accept the changes in the group as final;
2875 call `cancel-change-group' to undo them all.
2876
2877 You should use `unwind-protect' to make sure the group is always
2878 finished. The call to `activate-change-group' should be inside the
2879 `unwind-protect', in case the user types C-g just after it runs.
2880 (This is one reason why `prepare-change-group' and
2881 `activate-change-group' are separate functions.) Once you finish the
2882 group, don't use the handle again--don't try to finish the same group
2883 twice.
2884
2885 To make a multibuffer change group, call `prepare-change-group' once
2886 for each buffer you want to cover, then use `nconc' to combine the
2887 returned values, like this:
2888
2889 (nconc (prepare-change-group buffer-1)
2890 (prepare-change-group buffer-2))
2891
2892 You can then activate the multibuffer change group with a single call
2893 to `activate-change-group', and finish it with a single call to
2894 `accept-change-group' or `cancel-change-group'.
2895
2896 Nested use of several change groups for the same buffer works as you
2897 would expect. Non-nested use of change groups for the same buffer
2898 will lead to undesirable results, so don't let it happen; the first
2899 change group you start for any given buffer should be the last one
2900 finished.
2901
2902 +++
2903 ** New variable char-property-alias-alist.
2904
2905 This variable allows you to create alternative names for text
2906 properties. It works at the same level as `default-text-properties',
2907 although it applies to overlays as well. This variable was introduced
2908 to implement the `font-lock-face' property.
2909
2910 +++
2911 ** New special text property `font-lock-face'.
2912
2913 This property acts like the `face' property, but it is controlled by
2914 M-x font-lock-mode. It is not, strictly speaking, a builtin text
2915 property. Instead, it is implemented inside font-core.el, using the
2916 new variable `char-property-alias-alist'.
2917
2918 +++
2919 ** New function remove-list-of-text-properties.
2920
2921 The new function `remove-list-of-text-properties' is almost the same
2922 as `remove-text-properties'. The only difference is that it takes
2923 a list of property names as argument rather than a property list.
2924
2925 +++
2926 ** New function insert-for-yank.
2927
2928 This function normally works like `insert' but removes the text
2929 properties in the `yank-excluded-properties' list. However, if the
2930 inserted text has a `yank-handler' text property on the first
2931 character of the string, the insertion of the text may be modified in
2932 a number of ways. See the description of `yank-handler' below.
2933
2934 +++
2935 ** New function insert-buffer-substring-as-yank.
2936
2937 This function works like `insert-buffer-substring', but removes the
2938 text properties in the `yank-excluded-properties' list.
2939
2940 +++
2941 ** New function insert-buffer-substring-no-properties.
2942
2943 This function is like insert-buffer-substring, but removes all
2944 text properties from the inserted substring.
2945
2946 +++
2947 ** New `yank-handler' text property may be used to control how
2948 previously killed text on the kill-ring is reinserted.
2949
2950 The value of the yank-handler property must be a list with one to four
2951 elements with the following format:
2952 (FUNCTION PARAM NOEXCLUDE UNDO).
2953
2954 The `insert-for-yank' function looks for a yank-handler property on
2955 the first character on its string argument (typically the first
2956 element on the kill-ring). If a yank-handler property is found,
2957 the normal behaviour of `insert-for-yank' is modified in various ways:
2958
2959 When FUNCTION is present and non-nil, it is called instead of `insert'
2960 to insert the string. FUNCTION takes one argument--the object to insert.
2961 If PARAM is present and non-nil, it replaces STRING as the object
2962 passed to FUNCTION (or `insert'); for example, if FUNCTION is
2963 `yank-rectangle', PARAM should be a list of strings to insert as a
2964 rectangle.
2965 If NOEXCLUDE is present and non-nil, the normal removal of the
2966 yank-excluded-properties is not performed; instead FUNCTION is
2967 responsible for removing those properties. This may be necessary
2968 if FUNCTION adjusts point before or after inserting the object.
2969 If UNDO is present and non-nil, it is a function that will be called
2970 by `yank-pop' to undo the insertion of the current object. It is
2971 called with two arguments, the start and end of the current region.
2972 FUNCTION may set `yank-undo-function' to override the UNDO value.
2973
2974 *** The functions kill-new, kill-append, and kill-region now have an
2975 optional argument to specify the yank-handler text property to put on
2976 the killed text.
2977
2978 *** The function yank-pop will now use a non-nil value of the variable
2979 `yank-undo-function' (instead of delete-region) to undo the previous
2980 yank or yank-pop command (or a call to insert-for-yank). The function
2981 insert-for-yank automatically sets that variable according to the UNDO
2982 element of the string argument's yank-handler text property if present.
2983
2984 +++
2985 ** New function display-supports-face-attributes-p may be used to test
2986 whether a given set of face attributes is actually displayable.
2987
2988 A new predicate `supports' has also been added to the `defface' face
2989 specification language, which can be used to do this test for faces
2990 defined with defface.
2991
2992 +++
2993 ** face-attribute, face-foreground, face-background, and face-stipple now
2994 accept a new optional argument, INHERIT, which controls how face
2995 inheritance is used when determining the value of a face attribute.
2996
2997 +++
2998 ** New functions face-attribute-relative-p and merge-face-attribute
2999 help with handling relative face attributes.
3000
3001 +++
3002 ** Enhancements to process support
3003
3004 *** Function list-processes now has an optional argument; if non-nil,
3005 only the processes whose query-on-exit flag is set are listed.
3006
3007 *** New set-process-query-on-exit-flag and process-query-on-exit-flag
3008 functions. The existing process-kill-without-query function is still
3009 supported, but new code should use the new functions.
3010
3011 *** Function signal-process now accepts a process object or process
3012 name in addition to a process id to identify the signalled process.
3013
3014 *** Processes now have an associated property list where programs can
3015 maintain process state and other per-process related information.
3016
3017 The new functions process-get and process-put are used to access, add,
3018 and modify elements on this property list.
3019
3020 The new low-level functions process-plist and set-process-plist are
3021 used to access and replace the entire property list of a process.
3022
3023 ???
3024 *** Adaptive read buffering of subprocess output.
3025
3026 On some systems, when emacs reads the output from a subprocess, the
3027 output data is read in very small blocks, potentially resulting in
3028 very poor performance. This behaviour can be remedied to some extent
3029 by setting the new variable process-adaptive-read-buffering to a
3030 non-nil value (the default), as it will automatically delay reading
3031 from such processes, to allowing them to produce more output before
3032 emacs tries to read it.
3033
3034 +++
3035 ** Enhanced networking support.
3036
3037 *** There is a new `make-network-process' function which supports
3038 opening of stream and datagram connections to a server, as well as
3039 create a stream or datagram server inside emacs.
3040
3041 - A server is started using :server t arg.
3042 - Datagram connection is selected using :type 'datagram arg.
3043 - A server can open on a random port using :service t arg.
3044 - Local sockets are supported using :family 'local arg.
3045 - Non-blocking connect is supported using :nowait t arg.
3046 - The process' property list may be initialized using :plist PLIST arg;
3047 a copy of the server process' property list is automatically inherited
3048 by new client processes created to handle incoming connections.
3049
3050 To test for the availability of a given feature, use featurep like this:
3051 (featurep 'make-network-process '(:type datagram))
3052
3053 *** Original open-network-stream is now emulated using make-network-process.
3054
3055 *** New function open-network-stream-nowait.
3056
3057 This function initiates a non-blocking connect and returns immediately
3058 without waiting for the connection to be established. It takes the
3059 filter and sentinel functions as arguments; when the non-blocking
3060 connect completes, the sentinel is called with a status string
3061 matching "open" or "failed".
3062
3063 *** New function open-network-stream-server.
3064
3065 This function creates a network server process for a TCP service.
3066 When a client connects to the specified service, a new subprocess
3067 is created to handle the new connection, and the sentinel function
3068 is called for the new process.
3069
3070 *** New functions process-datagram-address and set-process-datagram-address.
3071
3072 These functions are used with datagram-based network processes to get
3073 and set the current address of the remote partner.
3074
3075 *** New function format-network-address.
3076
3077 This function reformats the lisp representation of a network address
3078 to a printable string. For example, an IP address A.B.C.D and port
3079 number P is represented as a five element vector [A B C D P], and the
3080 printable string returned for this vector is "A.B.C.D:P". See the doc
3081 string for other formatting options.
3082
3083 *** By default, the function process-contact still returns (HOST SERVICE)
3084 for a network process. Using the new optional KEY arg, the complete list
3085 of network process properties or a specific property can be selected.
3086
3087 Using :local and :remote as the KEY, the address of the local or
3088 remote end-point is returned. An Inet address is represented as a 5
3089 element vector, where the first 4 elements contain the IP address and
3090 the fifth is the port number.
3091
3092 *** Network processes can now be stopped and restarted with
3093 `stop-process' and `continue-process'. For a server process, no
3094 connections are accepted in the stopped state. For a client process,
3095 no input is received in the stopped state.
3096
3097 *** New function network-interface-list.
3098
3099 This function returns a list of network interface names and their
3100 current network addresses.
3101
3102 *** New function network-interface-info.
3103
3104 This function returns the network address, hardware address, current
3105 status, and other information about a specific network interface.
3106
3107 +++
3108 ** New function copy-tree.
3109
3110 +++
3111 ** New function substring-no-properties.
3112
3113 +++
3114 ** New function minibuffer-selected-window.
3115
3116 +++
3117 ** New function `call-process-shell-command'.
3118
3119 ---
3120 ** The dummy function keys made by easymenu
3121 are now always lower case. If you specify the
3122 menu item name "Ada", for instance, it uses `ada'
3123 as the "key" bound by that key binding.
3124
3125 This is relevant only if Lisp code looks for
3126 the bindings that were made with easymenu.
3127
3128 +++
3129 ** The function `commandp' takes an additional optional
3130 argument. If it is non-nil, then `commandp' checks
3131 for a function that could be called with `call-interactively',
3132 and does not return t for keyboard macros.
3133
3134 ---
3135 ** master-mode.el implements a minor mode for scrolling a slave
3136 buffer without leaving your current buffer, the master buffer.
3137
3138 It can be used by sql.el, for example: the SQL buffer is the master
3139 and its SQLi buffer is the slave. This allows you to scroll the SQLi
3140 buffer containing the output from the SQL buffer containing the
3141 commands.
3142
3143 This is how to use sql.el and master.el together: the variable
3144 sql-buffer contains the slave buffer. It is a local variable in the
3145 SQL buffer.
3146
3147 (add-hook 'sql-mode-hook
3148 (function (lambda ()
3149 (master-mode t)
3150 (master-set-slave sql-buffer))))
3151 (add-hook 'sql-set-sqli-hook
3152 (function (lambda ()
3153 (master-set-slave sql-buffer))))
3154
3155 +++
3156 ** File local variables.
3157
3158 A file local variables list cannot specify a string with text
3159 properties--any specified text properties are discarded.
3160
3161 +++
3162 ** New function window-body-height.
3163
3164 This is like window-height but does not count the mode line
3165 or the header line.
3166
3167 +++
3168 ** New function format-mode-line.
3169
3170 This returns the mode-line or header-line of the selected (or a
3171 specified) window as a string with or without text properties.
3172
3173 +++
3174 ** New functions `lax-plist-get' and `lax-plist-put'.
3175
3176 These functions are like `plist-get' and `plist-put' except that they
3177 compare the property name using `equal' rather than `eq'.
3178
3179 +++
3180 ** New function `tool-bar-local-item-from-menu'
3181
3182 The `tool-bar-add-item-from-menu' must not be used (as previously
3183 recommended) for making entries in the tool bar for local keymaps.
3184 Instead, use the function `tool-bar-local-item-from-menu', which lets
3185 you specify the map to use as an argument.
3186
3187 +++
3188 ** The function `atan' now accepts an optional second argument.
3189
3190 When called with 2 arguments, as in `(atan Y X)', `atan' returns the
3191 angle in radians between the vector [X, Y] and the X axis. (This is
3192 equivalent to the standard C library function `atan2'.)
3193
3194 +++
3195 ** You can now make a window as short as one line.
3196
3197 A window that is just one line tall does not display either a mode
3198 line or a header line, even if the variables `mode-line-format' and
3199 `header-line-format' call for them. A window that is two lines tall
3200 cannot display both a mode line and a header line at once; if the
3201 variables call for both, only the mode line actually appears.
3202
3203 +++
3204 ** The new frame parameter `tty-color-mode' specifies the mode to use
3205 for color support on character terminal frames. Its value can be a
3206 number of colors to support, or a symbol. See the Emacs Lisp
3207 Reference manual for more detailed documentation.
3208
3209 +++
3210 ** The new mode-line construct `(:propertize ELT PROPS...)' can be
3211 used to add text properties to mode-line elements.
3212
3213 +++
3214 ** Mode line display ignores text properties as well as the
3215 :propertize and :eval forms in the value of a variable whose
3216 `risky-local-variable' property is nil.
3217
3218 +++
3219 ** The new `%i' and `%I' constructs for `mode-line-format' can be used
3220 to display the size of the accessible part of the buffer on the mode
3221 line.
3222
3223 ---
3224 ** Indentation of simple and extended loop forms has been added to the
3225 cl-indent package. The new user options
3226 `lisp-loop-keyword-indentation', `lisp-loop-forms-indentation', and
3227 `lisp-simple-loop-indentation' can be used to customize the
3228 indentation of keywords and forms in loop forms.
3229
3230 ---
3231 ** Indentation of backquoted forms has been made customizable in the
3232 cl-indent package. See the new user option `lisp-backquote-indentation'.
3233
3234 +++
3235 ** Already true in Emacs 21.1, but not emphasized clearly enough:
3236
3237 Multibyte buffers can now faithfully record all 256 character codes
3238 from 0 to 255. As a result, most of the past reasons to use unibyte
3239 buffers no longer exist. We only know of three reasons to use them
3240 now:
3241
3242 1. If you prefer to use unibyte text all of the time.
3243
3244 2. For reading files into temporary buffers, when you want to avoid
3245 the time it takes to convert the format.
3246
3247 3. For binary files where format conversion would be pointless and
3248 wasteful.
3249
3250 +++
3251 ** If text has a `keymap' property, that keymap takes precedence
3252 over minor mode keymaps.
3253
3254 +++
3255 ** A hex escape in a string forces the string to be multibyte.
3256 An octal escape makes it unibyte.
3257
3258 +++
3259 ** At the end of a command, point moves out from within invisible
3260 text, in the same way it moves out from within text covered by an
3261 image or composition property.
3262
3263 This makes it generally unnecessary to mark invisible text as intangible.
3264 This is particularly good because the intangible property often has
3265 unexpected side-effects since the property applies to everything
3266 (including `goto-char', ...) whereas this new code is only run after
3267 post-command-hook and thus does not care about intermediate states.
3268
3269 +++
3270 ** field-beginning and field-end now accept an additional optional
3271 argument, LIMIT.
3272
3273 +++
3274 ** define-abbrev now accepts an optional argument SYSTEM-FLAG. If
3275 non-nil, this marks the abbrev as a "system" abbrev, which means that
3276 it won't be stored in the user's abbrevs file if he saves the abbrevs.
3277 Major modes that predefine some abbrevs should always specify this
3278 flag.
3279
3280 ---
3281 ** Support for Mocklisp has been removed.
3282
3283 ---
3284 ** The function insert-string is now obsolete.
3285
3286 ---
3287 ** The precedence of file-name-handlers has been changed.
3288 Instead of blindly choosing the first handler that matches,
3289 find-file-name-handler now gives precedence to a file-name handler
3290 that matches near the end of the file name. More specifically, the
3291 handler whose (match-beginning 0) is the largest is chosen.
3292 In case of ties, the old "first matched" rule applies.
3293
3294 ---
3295 ** Dense keymaps now handle inheritance correctly.
3296 Previously a dense keymap would hide all of the simple-char key
3297 bindings of the parent keymap.
3298
3299 ---
3300 ** jit-lock obeys a new text-property `jit-lock-defer-multiline'.
3301 If a piece of text with that property gets contextually refontified
3302 (see jit-lock-defer-contextually), then all of that text will
3303 be refontified. This is useful when the syntax of a textual element
3304 depends on text several lines further down (and when font-lock-multiline
3305 is not appropriate to solve that problem). For example in Perl:
3306
3307 s{
3308 foo
3309 }{
3310 bar
3311 }e
3312
3313 Adding/removing the last `e' changes the `bar' from being a piece of
3314 text to being a piece of code, so you'd put a jit-lock-defer-multiline
3315 property over the second half of the command to force (deferred)
3316 refontification of `bar' whenever the `e' is added/removed.
3317
3318 ---
3319 ** describe-vector now takes a second argument `describer' which is
3320 called to print the entries' values. It defaults to `princ'.
3321
3322 ** defcustom and other custom declarations now use a default group
3323 (the last prior group defined in the same file) when no :group was given.
3324
3325 +++
3326 ** emacsserver now runs pre-command-hook and post-command-hook when
3327 it receives a request from emacsclient.
3328
3329 ---
3330 ** The variable `recursive-load-depth-limit' has been deleted.
3331 Emacs now signals an error if the same file is loaded with more
3332 than 3 levels of nesting.
3333
3334 ---
3335 ** If a major mode function has a non-nil `no-clone-indirect'
3336 property, `clone-indirect-buffer' signals an error if you use
3337 it in that buffer.
3338
3339 ---
3340 ** In `replace-match', the replacement text no longer inherits
3341 properties from surrounding text.
3342
3343 +++
3344 ** New function `buffer-local-value'.
3345
3346 This function returns the buffer-local binding of VARIABLE (a symbol)
3347 in buffer BUFFER. If VARIABLE does not have a buffer-local binding in
3348 buffer BUFFER, it returns the default value of VARIABLE instead.
3349
3350 ---
3351 ** New function `text-clone-create'. Text clones are chunks of text
3352 that are kept identical by transparently propagating changes from one
3353 clone to the other.
3354
3355 +++
3356 ** font-lock can manage arbitrary text-properties beside `face'.
3357 *** the FACENAME returned in font-lock-keywords can be a list
3358 of the form (face FACE PROP1 VAL1 PROP2 VAL2 ...) so you can set
3359 other properties than `face'.
3360 *** font-lock-extra-managed-props can be set to make sure those extra
3361 properties are automatically cleaned up by font-lock.
3362
3363 ---
3364 ** The special treatment of faces whose names are of the form `fg:COLOR'
3365 or `bg:COLOR' has been removed. Lisp programs should use the
3366 `defface' facility for defining faces with specific colors, or use
3367 the feature of specifying the face attributes :foreground and :background
3368 directly in the `face' property instead of using a named face.
3369
3370 +++
3371 ** The new function `run-mode-hooks' and the new macro `delay-mode-hooks'
3372 are used by define-derived-mode to make sure the mode hook for the
3373 parent mode is run at the end of the child mode.
3374
3375 +++
3376 ** define-minor-mode now accepts arbitrary additional keyword arguments
3377 and simply passes them to defcustom, if applicable.
3378
3379 +++
3380 ** define-derived-mode by default creates a new empty abbrev table.
3381 It does not copy abbrevs from the parent mode's abbrev table.
3382
3383 +++
3384 ** `provide' and `featurep' now accept an optional second argument
3385 to test/provide subfeatures. Also `provide' now checks `after-load-alist'
3386 and runs any code associated with the provided feature.
3387
3388 +++
3389 ** Functions `file-name-sans-extension' and `file-name-extension' now
3390 ignore the leading dots in file names, so that file names such as
3391 `.emacs' are treated as extensionless.
3392
3393 +++
3394 ** Functions `user-uid' and `user-real-uid' now return floats if the
3395 user UID doesn't fit in a Lisp integer. Function `user-full-name'
3396 accepts a float as UID parameter.
3397
3398 ---
3399 ** `define-key-after' now accepts keys longer than 1.
3400
3401 +++
3402 ** The local variable `no-byte-compile' in elisp files is now obeyed.
3403
3404 +++
3405 ** The Emacs Lisp byte-compiler now displays the actual line and
3406 character position of errors, where possible. Additionally, the form
3407 of its warning and error messages have been brought more in line with
3408 the output of other GNU tools.
3409
3410 +++
3411 ** New functions `keymap-prompt' and `current-active-maps'.
3412
3413 ---
3414 ** New function `describe-buffer-bindings'.
3415
3416 +++
3417 ** New vars `exec-suffixes' and `load-suffixes' used when
3418 searching for an executable resp. an elisp file.
3419
3420 +++
3421 ** Variable aliases have been implemented:
3422
3423 *** defvaralias ALIAS-VAR BASE-VAR [DOCSTRING]
3424
3425 This function defines the symbol ALIAS-VAR as a variable alias for
3426 symbol BASE-VAR. This means that retrieving the value of ALIAS-VAR
3427 returns the value of BASE-VAR, and changing the value of ALIAS-VAR
3428 changes the value of BASE-VAR.
3429
3430 DOCSTRING, if present, is the documentation for ALIAS-VAR; else it has
3431 the same documentation as BASE-VAR.
3432
3433 *** indirect-variable VARIABLE
3434
3435 This function returns the variable at the end of the chain of aliases
3436 of VARIABLE. If VARIABLE is not a symbol, or if VARIABLE is not
3437 defined as an alias, the function returns VARIABLE.
3438
3439 It might be noteworthy that variables aliases work for all kinds of
3440 variables, including buffer-local and frame-local variables.
3441
3442 +++
3443 ** Functions from `post-gc-hook' are run at the end of garbage
3444 collection. The hook is run with GC inhibited, so use it with care.
3445
3446 +++
3447 ** If the second argument to `copy-file' is the name of a directory,
3448 the file is copied to that directory instead of signaling an error.
3449
3450 +++
3451 ** The variables most-positive-fixnum and most-negative-fixnum
3452 hold the largest and smallest possible integer values.
3453
3454 ---
3455 ** On MS Windows, locale-coding-system is used to interact with the OS.
3456 The Windows specific variable w32-system-coding-system, which was
3457 formerly used for that purpose is now an alias for locale-coding-system.
3458
3459 ** Functions y-or-n-p, read-char, read-key-sequence and the like, that
3460 display a prompt but don't use the minibuffer, now display the prompt
3461 using the text properties (esp. the face) of the prompt string.
3462
3463 ** New function x-send-client-message sends a client message when
3464 running under X.
3465
3466 ** Arguments for remove-overlays are now optional, so that you can remove
3467 all overlays in the buffer by just calling (remove-overlay).
3468
3469 ** New packages:
3470
3471 *** The new package gdb-ui.el provides an enhanced graphical interface to
3472 GDB. You can interact with GDB through the GUD buffer in the usual way, but
3473 there are also further buffers which control the execution and describe the
3474 state of your program. It separates the input/output of your program from
3475 that of GDB and watches expressions in the speedbar. It also uses features of
3476 Emacs 21 such as the display margin for breakpoints, and the toolbar.
3477
3478 Use M-x gdba to start GDB-UI.
3479
3480 *** The new package syntax.el provides an efficient way to find the
3481 current syntactic context (as returned by parse-partial-sexp).
3482
3483 *** The new package bindat.el provides functions to unpack and pack
3484 binary data structures, such as network packets, to and from Lisp
3485 data structures.
3486
3487 *** The TCL package tcl-mode.el was replaced by tcl.el.
3488 This was actually done in Emacs-21.1, and was not documented.
3489
3490 *** The new package button.el implements simple and fast `clickable buttons'
3491 in emacs buffers. `buttons' are much lighter-weight than the `widgets'
3492 implemented by widget.el, and can be used by lisp code that doesn't
3493 require the full power of widgets. Emacs uses buttons for such things
3494 as help and apropos buffers.
3495
3496 \f
3497 * Installation changes in Emacs 21.3
3498
3499 ** Support for GNU/Linux on little-endian MIPS and on IBM S390 has
3500 been added.
3501
3502 \f
3503 * Changes in Emacs 21.3
3504
3505 ** The obsolete C mode (c-mode.el) has been removed to avoid problems
3506 with Custom.
3507
3508 ** UTF-16 coding systems are available, encoding the same characters
3509 as mule-utf-8. Coding system `utf-16-le-dos' is useful as the value
3510 of `selection-coding-system' in MS Windows, allowing you to paste
3511 multilingual text from the clipboard. Set it interactively with
3512 C-x RET x or in .emacs with `(set-selection-coding-system 'utf-16-le-dos)'.
3513
3514 ** There is a new language environment for UTF-8 (set up automatically
3515 in UTF-8 locales).
3516
3517 ** Translation tables are available between equivalent characters in
3518 different Emacs charsets -- for instance `e with acute' coming from the
3519 Latin-1 and Latin-2 charsets. User options `unify-8859-on-encoding-mode'
3520 and `unify-8859-on-decoding-mode' respectively turn on translation
3521 between ISO 8859 character sets (`unification') on encoding
3522 (e.g. writing a file) and decoding (e.g. reading a file). Note that
3523 `unify-8859-on-encoding-mode' is useful and safe, but
3524 `unify-8859-on-decoding-mode' can cause text to change when you read
3525 it and write it out again without edits, so it is not generally advisable.
3526 By default `unify-8859-on-encoding-mode' is turned on.
3527
3528 ** In Emacs running on the X window system, the default value of
3529 `selection-coding-system' is now `compound-text-with-extensions'.
3530
3531 If you want the old behavior, set selection-coding-system to
3532 compound-text, which may be significantly more efficient. Using
3533 compound-text-with-extensions seems to be necessary only for decoding
3534 text from applications under XFree86 4.2, whose behaviour is actually
3535 contrary to the compound text specification.
3536
3537 \f
3538 * Installation changes in Emacs 21.2
3539
3540 ** Support for BSD/OS 5.0 has been added.
3541
3542 ** Support for AIX 5.1 was added.
3543
3544 \f
3545 * Changes in Emacs 21.2
3546
3547 ** Emacs now supports compound-text extended segments in X selections.
3548
3549 X applications can use `extended segments' to encode characters in
3550 compound text that belong to character sets which are not part of the
3551 list of approved standard encodings for X, e.g. Big5. To paste
3552 selections with such characters into Emacs, use the new coding system
3553 compound-text-with-extensions as the value of selection-coding-system.
3554
3555 ** The default values of `tooltip-delay' and `tooltip-hide-delay'
3556 were changed.
3557
3558 ** On terminals whose erase-char is ^H (Backspace), Emacs
3559 now uses normal-erase-is-backspace-mode.
3560
3561 ** When the *scratch* buffer is recreated, its mode is set from
3562 initial-major-mode, which normally is lisp-interaction-mode,
3563 instead of using default-major-mode.
3564
3565 ** The new option `Info-scroll-prefer-subnodes' causes Info to behave
3566 like the stand-alone Info reader (from the GNU Texinfo package) as far
3567 as motion between nodes and their subnodes is concerned. If it is t
3568 (the default), Emacs behaves as before when you type SPC in a menu: it
3569 visits the subnode pointed to by the first menu entry. If this option
3570 is nil, SPC scrolls to the end of the current node, and only then goes
3571 to the first menu item, like the stand-alone reader does.
3572
3573 This change was already in Emacs 21.1, but wasn't advertised in the
3574 NEWS.
3575
3576 \f
3577 * Lisp Changes in Emacs 21.2
3578
3579 ** The meanings of scroll-up-aggressively and scroll-down-aggressively
3580 have been interchanged, so that the former now controls scrolling up,
3581 and the latter now controls scrolling down.
3582
3583 ** The variable `compilation-parse-errors-filename-function' can
3584 be used to transform filenames found in compilation output.
3585
3586 \f
3587 * Installation Changes in Emacs 21.1
3588
3589 See the INSTALL file for information on installing extra libraries and
3590 fonts to take advantage of the new graphical features and extra
3591 charsets in this release.
3592
3593 ** Support for GNU/Linux on IA64 machines has been added.
3594
3595 ** Support for LynxOS has been added.
3596
3597 ** There are new configure options associated with the support for
3598 images and toolkit scrollbars. Use the --help option in `configure'
3599 to list them.
3600
3601 ** You can build a 64-bit Emacs for SPARC/Solaris systems which
3602 support 64-bit executables and also on Irix 6.5. This increases the
3603 maximum buffer size. See etc/MACHINES for instructions. Changes to
3604 build on other 64-bit systems should be straightforward modulo any
3605 necessary changes to unexec.
3606
3607 ** There is a new configure option `--disable-largefile' to omit
3608 Unix-98-style support for large files if that is available.
3609
3610 ** There is a new configure option `--without-xim' that instructs
3611 Emacs to not use X Input Methods (XIM), if these are available.
3612
3613 ** `movemail' defaults to supporting POP. You can turn this off using
3614 the --without-pop configure option, should that be necessary.
3615
3616 ** This version can be built for the Macintosh, but does not implement
3617 all of the new display features described below. The port currently
3618 lacks unexec, asynchronous processes, and networking support. See the
3619 "Emacs and the Mac OS" appendix in the Emacs manual, for the
3620 description of aspects specific to the Mac.
3621
3622 ** Note that the MS-Windows port does not yet implement various of the
3623 new display features described below.
3624
3625 \f
3626 * Changes in Emacs 21.1
3627
3628 ** Emacs has a new redisplay engine.
3629
3630 The new redisplay handles characters of variable width and height.
3631 Italic text can be used without redisplay problems. Fonts containing
3632 oversized characters, i.e. characters larger than the logical height
3633 of a font can be used. Images of various formats can be displayed in
3634 the text.
3635
3636 ** Emacs has a new face implementation.
3637
3638 The new faces no longer fundamentally use X font names to specify the
3639 font. Instead, each face has several independent attributes--family,
3640 height, width, weight and slant--that it may or may not specify.
3641 These attributes can be merged from various faces, and then together
3642 specify a font.
3643
3644 Faces are supported on terminals that can display color or fonts.
3645 These terminal capabilities are auto-detected. Details can be found
3646 under Lisp changes, below.
3647
3648 ** Emacs can display faces on TTY frames.
3649
3650 Emacs automatically detects terminals that are able to display colors.
3651 Faces with a weight greater than normal are displayed extra-bright, if
3652 the terminal supports it. Faces with a weight less than normal and
3653 italic faces are displayed dimmed, if the terminal supports it.
3654 Underlined faces are displayed underlined if possible. Other face
3655 attributes such as `overline', `strike-through', and `box' are ignored
3656 on terminals.
3657
3658 The command-line options `-fg COLOR', `-bg COLOR', and `-rv' are now
3659 supported on character terminals.
3660
3661 Emacs automatically remaps all X-style color specifications to one of
3662 the colors supported by the terminal. This means you could have the
3663 same color customizations that work both on a windowed display and on
3664 a TTY or when Emacs is invoked with the -nw option.
3665
3666 ** New default font is Courier 12pt under X.
3667
3668 ** Sound support
3669
3670 Emacs supports playing sound files on GNU/Linux and FreeBSD (Voxware
3671 driver and native BSD driver, a.k.a. Luigi's driver). Currently
3672 supported file formats are RIFF-WAVE (*.wav) and Sun Audio (*.au).
3673 You must configure Emacs with the option `--with-sound=yes' to enable
3674 sound support.
3675
3676 ** Emacs now resizes mini-windows if appropriate.
3677
3678 If a message is longer than one line, or minibuffer contents are
3679 longer than one line, Emacs can resize the minibuffer window unless it
3680 is on a frame of its own. You can control resizing and the maximum
3681 minibuffer window size by setting the following variables:
3682
3683 - User option: max-mini-window-height
3684
3685 Maximum height for resizing mini-windows. If a float, it specifies a
3686 fraction of the mini-window frame's height. If an integer, it
3687 specifies a number of lines.
3688
3689 Default is 0.25.
3690
3691 - User option: resize-mini-windows
3692
3693 How to resize mini-windows. If nil, don't resize. If t, always
3694 resize to fit the size of the text. If `grow-only', let mini-windows
3695 grow only, until they become empty, at which point they are shrunk
3696 again.
3697
3698 Default is `grow-only'.
3699
3700 ** LessTif support.
3701
3702 Emacs now runs with the LessTif toolkit (see
3703 <http://www.lesstif.org>). You will need version 0.92.26, or later.
3704
3705 ** LessTif/Motif file selection dialog.
3706
3707 When Emacs is configured to use LessTif or Motif, reading a file name
3708 from a menu will pop up a file selection dialog if `use-dialog-box' is
3709 non-nil.
3710
3711 ** File selection dialog on MS-Windows is supported.
3712
3713 When a file is visited by clicking File->Open, the MS-Windows version
3714 now pops up a standard file selection dialog where you can select a
3715 file to visit. File->Save As also pops up that dialog.
3716
3717 ** Toolkit scroll bars.
3718
3719 Emacs now uses toolkit scroll bars if available. When configured for
3720 LessTif/Motif, it will use that toolkit's scroll bar. Otherwise, when
3721 configured for Lucid and Athena widgets, it will use the Xaw3d scroll
3722 bar if Xaw3d is available. You can turn off the use of toolkit scroll
3723 bars by specifying `--with-toolkit-scroll-bars=no' when configuring
3724 Emacs.
3725
3726 When you encounter problems with the Xaw3d scroll bar, watch out how
3727 Xaw3d is compiled on your system. If the Makefile generated from
3728 Xaw3d's Imakefile contains a `-DNARROWPROTO' compiler option, and your
3729 Emacs system configuration file `s/your-system.h' does not contain a
3730 define for NARROWPROTO, you might consider adding it. Take
3731 `s/freebsd.h' as an example.
3732
3733 Alternatively, if you don't have access to the Xaw3d source code, take
3734 a look at your system's imake configuration file, for example in the
3735 directory `/usr/X11R6/lib/X11/config' (paths are different on
3736 different systems). You will find files `*.cf' there. If your
3737 system's cf-file contains a line like `#define NeedWidePrototypes NO',
3738 add a `#define NARROWPROTO' to your Emacs system configuration file.
3739
3740 The reason for this is that one Xaw3d function uses `double' or
3741 `float' function parameters depending on the setting of NARROWPROTO.
3742 This is not a problem when Imakefiles are used because each system's
3743 imake configuration file contains the necessary information. Since
3744 Emacs doesn't use imake, this has do be done manually.
3745
3746 ** Tool bar support.
3747
3748 Emacs supports a tool bar at the top of a frame under X. For details
3749 of how to define a tool bar, see the page describing Lisp-level
3750 changes. Tool-bar global minor mode controls whether or not it is
3751 displayed and is on by default. The appearance of the bar is improved
3752 if Emacs has been built with XPM image support. Otherwise monochrome
3753 icons will be used.
3754
3755 To make the tool bar more useful, we need contributions of extra icons
3756 for specific modes (with copyright assignments).
3757
3758 ** Tooltips.
3759
3760 Tooltips are small X windows displaying a help string at the current
3761 mouse position. The Lisp package `tooltip' implements them. You can
3762 turn them off via the user option `tooltip-mode'.
3763
3764 Tooltips also provides support for GUD debugging. If activated,
3765 variable values can be displayed in tooltips by pointing at them with
3766 the mouse in source buffers. You can customize various aspects of the
3767 tooltip display in the group `tooltip'.
3768
3769 ** Automatic Hscrolling
3770
3771 Horizontal scrolling now happens automatically if
3772 `automatic-hscrolling' is set (the default). This setting can be
3773 customized.
3774
3775 If a window is scrolled horizontally with set-window-hscroll, or
3776 scroll-left/scroll-right (C-x <, C-x >), this serves as a lower bound
3777 for automatic horizontal scrolling. Automatic scrolling will scroll
3778 the text more to the left if necessary, but won't scroll the text more
3779 to the right than the column set with set-window-hscroll etc.
3780
3781 ** When using a windowing terminal, each Emacs window now has a cursor
3782 of its own. By default, when a window is selected, the cursor is
3783 solid; otherwise, it is hollow. The user-option
3784 `cursor-in-non-selected-windows' controls how to display the
3785 cursor in non-selected windows. If nil, no cursor is shown, if
3786 non-nil a hollow box cursor is shown.
3787
3788 ** Fringes to the left and right of windows are used to display
3789 truncation marks, continuation marks, overlay arrows and alike. The
3790 foreground, background, and stipple of these areas can be changed by
3791 customizing face `fringe'.
3792
3793 ** The mode line under X is now drawn with shadows by default.
3794 You can change its appearance by modifying the face `mode-line'.
3795 In particular, setting the `:box' attribute to nil turns off the 3D
3796 appearance of the mode line. (The 3D appearance makes the mode line
3797 occupy more space, and thus might cause the first or the last line of
3798 the window to be partially obscured.)
3799
3800 The variable `mode-line-inverse-video', which was used in older
3801 versions of emacs to make the mode-line stand out, is now deprecated.
3802 However, setting it to nil will cause the `mode-line' face to be
3803 ignored, and mode-lines to be drawn using the default text face.
3804
3805 ** Mouse-sensitive mode line.
3806
3807 Different parts of the mode line have been made mouse-sensitive on all
3808 systems which support the mouse. Moving the mouse to a
3809 mouse-sensitive part in the mode line changes the appearance of the
3810 mouse pointer to an arrow, and help about available mouse actions is
3811 displayed either in the echo area, or in the tooltip window if you
3812 have enabled one.
3813
3814 Currently, the following actions have been defined:
3815
3816 - Mouse-1 on the buffer name in the mode line goes to the next buffer.
3817
3818 - Mouse-3 on the buffer-name goes to the previous buffer.
3819
3820 - Mouse-2 on the read-only or modified status in the mode line (`%' or
3821 `*') toggles the status.
3822
3823 - Mouse-3 on the mode name displays a minor-mode menu.
3824
3825 ** Hourglass pointer
3826
3827 Emacs can optionally display an hourglass pointer under X. You can
3828 turn the display on or off by customizing group `cursor'.
3829
3830 ** Blinking cursor
3831
3832 M-x blink-cursor-mode toggles a blinking cursor under X and on
3833 terminals having terminal capabilities `vi', `vs', and `ve'. Blinking
3834 and related parameters like frequency and delay can be customized in
3835 the group `cursor'.
3836
3837 ** New font-lock support mode `jit-lock-mode'.
3838
3839 This support mode is roughly equivalent to `lazy-lock' but is
3840 generally faster. It supports stealth and deferred fontification.
3841 See the documentation of the function `jit-lock-mode' for more
3842 details.
3843
3844 Font-lock uses jit-lock-mode as default support mode, so you don't
3845 have to do anything to activate it.
3846
3847 ** The default binding of the Delete key has changed.
3848
3849 The new user-option `normal-erase-is-backspace' can be set to
3850 determine the effect of the Delete and Backspace function keys.
3851
3852 On window systems, the default value of this option is chosen
3853 according to the keyboard used. If the keyboard has both a Backspace
3854 key and a Delete key, and both are mapped to their usual meanings, the
3855 option's default value is set to t, so that Backspace can be used to
3856 delete backward, and Delete can be used to delete forward. On
3857 keyboards which either have only one key (usually labeled DEL), or two
3858 keys DEL and BS which produce the same effect, the option's value is
3859 set to nil, and these keys delete backward.
3860
3861 If not running under a window system, setting this option accomplishes
3862 a similar effect by mapping C-h, which is usually generated by the
3863 Backspace key, to DEL, and by mapping DEL to C-d via
3864 `keyboard-translate'. The former functionality of C-h is available on
3865 the F1 key. You should probably not use this setting on a text-only
3866 terminal if you don't have both Backspace, Delete and F1 keys.
3867
3868 Programmatically, you can call function normal-erase-is-backspace-mode
3869 to toggle the behavior of the Delete and Backspace keys.
3870
3871 ** The default for user-option `next-line-add-newlines' has been
3872 changed to nil, i.e. C-n will no longer add newlines at the end of a
3873 buffer by default.
3874
3875 ** The <home> and <end> keys now move to the beginning or end of the
3876 current line, respectively. C-<home> and C-<end> move to the
3877 beginning and end of the buffer.
3878
3879 ** Emacs now checks for recursive loads of Lisp files. If the
3880 recursion depth exceeds `recursive-load-depth-limit', an error is
3881 signaled.
3882
3883 ** When an error is signaled during the loading of the user's init
3884 file, Emacs now pops up the *Messages* buffer.
3885
3886 ** Emacs now refuses to load compiled Lisp files which weren't
3887 compiled with Emacs. Set `load-dangerous-libraries' to t to change
3888 this behavior.
3889
3890 The reason for this change is an incompatible change in XEmacs's byte
3891 compiler. Files compiled with XEmacs can contain byte codes that let
3892 Emacs dump core.
3893
3894 ** Toggle buttons and radio buttons in menus.
3895
3896 When compiled with LessTif (or Motif) support, Emacs uses toolkit
3897 widgets for radio and toggle buttons in menus. When configured for
3898 Lucid, Emacs draws radio buttons and toggle buttons similar to Motif.
3899
3900 ** The menu bar configuration has changed. The new configuration is
3901 more CUA-compliant. The most significant change is that Options is
3902 now a separate menu-bar item, with Mule and Customize as its submenus.
3903
3904 ** Item Save Options on the Options menu allows saving options set
3905 using that menu.
3906
3907 ** Highlighting of trailing whitespace.
3908
3909 When `show-trailing-whitespace' is non-nil, Emacs displays trailing
3910 whitespace in the face `trailing-whitespace'. Trailing whitespace is
3911 defined as spaces or tabs at the end of a line. To avoid busy
3912 highlighting when entering new text, trailing whitespace is not
3913 displayed if point is at the end of the line containing the
3914 whitespace.
3915
3916 ** C-x 5 1 runs the new command delete-other-frames which deletes
3917 all frames except the selected one.
3918
3919 ** The new user-option `confirm-kill-emacs' can be customized to
3920 let Emacs ask for confirmation before exiting.
3921
3922 ** The header line in an Info buffer is now displayed as an emacs
3923 header-line (which is like a mode-line, but at the top of the window),
3924 so that it remains visible even when the buffer has been scrolled.
3925 This behavior may be disabled by customizing the option
3926 `Info-use-header-line'.
3927
3928 ** Polish, Czech, German, and French translations of Emacs' reference card
3929 have been added. They are named `pl-refcard.tex', `cs-refcard.tex',
3930 `de-refcard.tex' and `fr-refcard.tex'. Postscript files are included.
3931
3932 ** An `Emacs Survival Guide', etc/survival.tex, is available.
3933
3934 ** A reference card for Dired has been added. Its name is
3935 `dired-ref.tex'. A French translation is available in
3936 `fr-drdref.tex'.
3937
3938 ** C-down-mouse-3 is bound differently. Now if the menu bar is not
3939 displayed it pops up a menu containing the items which would be on the
3940 menu bar. If the menu bar is displayed, it pops up the major mode
3941 menu or the Edit menu if there is no major mode menu.
3942
3943 ** Variable `load-path' is no longer customizable through Customize.
3944
3945 You can no longer use `M-x customize-variable' to customize `load-path'
3946 because it now contains a version-dependent component. You can still
3947 use `add-to-list' and `setq' to customize this variable in your
3948 `~/.emacs' init file or to modify it from any Lisp program in general.
3949
3950 ** C-u C-x = provides detailed information about the character at
3951 point in a pop-up window.
3952
3953 ** Emacs can now support 'wheeled' mice (such as the MS IntelliMouse)
3954 under XFree86. To enable this, use the `mouse-wheel-mode' command, or
3955 customize the variable `mouse-wheel-mode'.
3956
3957 The variables `mouse-wheel-follow-mouse' and `mouse-wheel-scroll-amount'
3958 determine where and by how much buffers are scrolled.
3959
3960 ** Emacs' auto-save list files are now by default stored in a
3961 sub-directory `.emacs.d/auto-save-list/' of the user's home directory.
3962 (On MS-DOS, this subdirectory's name is `_emacs.d/auto-save.list/'.)
3963 You can customize `auto-save-list-file-prefix' to change this location.
3964
3965 ** The function `getenv' is now callable interactively.
3966
3967 ** The new user-option `even-window-heights' can be set to nil
3968 to prevent `display-buffer' from evening out window heights.
3969
3970 ** The new command M-x delete-trailing-whitespace RET will delete the
3971 trailing whitespace within the current restriction. You can also add
3972 this function to `write-file-hooks' or `local-write-file-hooks'.
3973
3974 ** When visiting a file with M-x find-file-literally, no newlines will
3975 be added to the end of the buffer even if `require-final-newline' is
3976 non-nil.
3977
3978 ** The new user-option `find-file-suppress-same-file-warnings' can be
3979 set to suppress warnings ``X and Y are the same file'' when visiting a
3980 file that is already visited under a different name.
3981
3982 ** The new user-option `electric-help-shrink-window' can be set to
3983 nil to prevent adjusting the help window size to the buffer size.
3984
3985 ** New command M-x describe-character-set reads a character set name
3986 and displays information about that.
3987
3988 ** The new variable `auto-mode-interpreter-regexp' contains a regular
3989 expression matching interpreters, for file mode determination.
3990
3991 This regular expression is matched against the first line of a file to
3992 determine the file's mode in `set-auto-mode' when Emacs can't deduce a
3993 mode from the file's name. If it matches, the file is assumed to be
3994 interpreted by the interpreter matched by the second group of the
3995 regular expression. The mode is then determined as the mode
3996 associated with that interpreter in `interpreter-mode-alist'.
3997
3998 ** New function executable-make-buffer-file-executable-if-script-p is
3999 suitable as an after-save-hook as an alternative to `executable-chmod'.
4000
4001 ** The most preferred coding-system is now used to save a buffer if
4002 buffer-file-coding-system is `undecided' and it is safe for the buffer
4003 contents. (The most preferred is set by set-language-environment or
4004 by M-x prefer-coding-system.) Thus if you visit an ASCII file and
4005 insert a non-ASCII character from your current language environment,
4006 the file will be saved silently with the appropriate coding.
4007 Previously you would be prompted for a safe coding system.
4008
4009 ** The many obsolete language `setup-...-environment' commands have
4010 been removed -- use `set-language-environment'.
4011
4012 ** The new Custom option `keyboard-coding-system' specifies a coding
4013 system for keyboard input.
4014
4015 ** New variable `inhibit-iso-escape-detection' determines if Emacs'
4016 coding system detection algorithm should pay attention to ISO2022's
4017 escape sequences. If this variable is non-nil, the algorithm ignores
4018 such escape sequences. The default value is nil, and it is
4019 recommended not to change it except for the special case that you
4020 always want to read any escape code verbatim. If you just want to
4021 read a specific file without decoding escape codes, use C-x RET c
4022 (`universal-coding-system-argument'). For instance, C-x RET c latin-1
4023 RET C-x C-f filename RET.
4024
4025 ** Variable `default-korean-keyboard' is initialized properly from the
4026 environment variable `HANGUL_KEYBOARD_TYPE'.
4027
4028 ** New command M-x list-charset-chars reads a character set name and
4029 displays all characters in that character set.
4030
4031 ** M-x set-terminal-coding-system (C-x RET t) now allows CCL-based
4032 coding systems such as cpXXX and cyrillic-koi8.
4033
4034 ** Emacs now attempts to determine the initial language environment
4035 and preferred and locale coding systems systematically from the
4036 LC_ALL, LC_CTYPE, and LANG environment variables during startup.
4037
4038 ** New language environments `Polish', `Latin-8' and `Latin-9'.
4039 Latin-8 and Latin-9 correspond respectively to the ISO character sets
4040 8859-14 (Celtic) and 8859-15 (updated Latin-1, with the Euro sign).
4041 GNU Intlfonts doesn't support these yet but recent X releases have
4042 8859-15. See etc/INSTALL for information on obtaining extra fonts.
4043 There are new Leim input methods for Latin-8 and Latin-9 prefix (only)
4044 and Polish `slash'.
4045
4046 ** New language environments `Dutch' and `Spanish'.
4047 These new environments mainly select appropriate translations
4048 of the tutorial.
4049
4050 ** In Ethiopic language environment, special key bindings for
4051 function keys are changed as follows. This is to conform to "Emacs
4052 Lisp Coding Convention".
4053
4054 new command old-binding
4055 --- ------- -----------
4056 f3 ethio-fidel-to-sera-buffer f5
4057 S-f3 ethio-fidel-to-sera-region f5
4058 C-f3 ethio-fidel-to-sera-mail-or-marker f5
4059
4060 f4 ethio-sera-to-fidel-buffer unchanged
4061 S-f4 ethio-sera-to-fidel-region unchanged
4062 C-f4 ethio-sera-to-fidel-mail-or-marker unchanged
4063
4064 S-f5 ethio-toggle-punctuation f3
4065 S-f6 ethio-modify-vowel f6
4066 S-f7 ethio-replace-space f7
4067 S-f8 ethio-input-special-character f8
4068 S-f9 ethio-replace-space unchanged
4069 C-f9 ethio-toggle-space f2
4070
4071 ** There are new Leim input methods.
4072 New input methods "turkish-postfix", "turkish-alt-postfix",
4073 "greek-mizuochi", "TeX", and "greek-babel" are now part of the Leim
4074 package.
4075
4076 ** The rule of input method "slovak" is slightly changed. Now the
4077 rules for translating "q" and "Q" to "`" (backquote) are deleted, thus
4078 typing them inserts "q" and "Q" respectively. Rules for translating
4079 "=q", "+q", "=Q", and "+Q" to "`" are also deleted. Now, to input
4080 "`", you must type "=q".
4081
4082 ** When your terminal can't display characters from some of the ISO
4083 8859 character sets but can display Latin-1, you can display
4084 more-or-less mnemonic sequences of ASCII/Latin-1 characters instead of
4085 empty boxes (under a window system) or question marks (not under a
4086 window system). Customize the option `latin1-display' to turn this
4087 on.
4088
4089 ** M-; now calls comment-dwim which tries to do something clever based
4090 on the context. M-x kill-comment is now an alias to comment-kill,
4091 defined in newcomment.el. You can choose different styles of region
4092 commenting with the variable `comment-style'.
4093
4094 ** New user options `display-time-mail-face' and
4095 `display-time-use-mail-icon' control the appearance of mode-line mail
4096 indicator used by the display-time package. On a suitable display the
4097 indicator can be an icon and is mouse-sensitive.
4098
4099 ** On window-systems, additional space can be put between text lines
4100 on the display using several methods
4101
4102 - By setting frame parameter `line-spacing' to PIXELS. PIXELS must be
4103 a positive integer, and specifies that PIXELS number of pixels should
4104 be put below text lines on the affected frame or frames.
4105
4106 - By setting X resource `lineSpacing', class `LineSpacing'. This is
4107 equivalent to specifying the frame parameter.
4108
4109 - By specifying `--line-spacing=N' or `-lsp N' on the command line.
4110
4111 - By setting buffer-local variable `line-spacing'. The meaning is
4112 the same, but applies to the a particular buffer only.
4113
4114 ** The new command `clone-indirect-buffer' can be used to create
4115 an indirect buffer that is a twin copy of the current buffer. The
4116 command `clone-indirect-buffer-other-window', bound to C-x 4 c,
4117 does the same but displays the indirect buffer in another window.
4118
4119 ** New user options `backup-directory-alist' and
4120 `make-backup-file-name-function' control the placement of backups,
4121 typically in a single directory or in an invisible sub-directory.
4122
4123 ** New commands iso-iso2sgml and iso-sgml2iso convert between Latin-1
4124 characters and the corresponding SGML (HTML) entities.
4125
4126 ** New X resources recognized
4127
4128 *** The X resource `synchronous', class `Synchronous', specifies
4129 whether Emacs should run in synchronous mode. Synchronous mode
4130 is useful for debugging X problems.
4131
4132 Example:
4133
4134 emacs.synchronous: true
4135
4136 *** The X resource `visualClass, class `VisualClass', specifies the
4137 visual Emacs should use. The resource's value should be a string of
4138 the form `CLASS-DEPTH', where CLASS is the name of the visual class,
4139 and DEPTH is the requested color depth as a decimal number. Valid
4140 visual class names are
4141
4142 TrueColor
4143 PseudoColor
4144 DirectColor
4145 StaticColor
4146 GrayScale
4147 StaticGray
4148
4149 Visual class names specified as X resource are case-insensitive, i.e.
4150 `pseudocolor', `Pseudocolor' and `PseudoColor' all have the same
4151 meaning.
4152
4153 The program `xdpyinfo' can be used to list the visual classes
4154 supported on your display, and which depths they have. If
4155 `visualClass' is not specified, Emacs uses the display's default
4156 visual.
4157
4158 Example:
4159
4160 emacs.visualClass: TrueColor-8
4161
4162 *** The X resource `privateColormap', class `PrivateColormap',
4163 specifies that Emacs should use a private colormap if it is using the
4164 default visual, and that visual is of class PseudoColor. Recognized
4165 resource values are `true' or `on'.
4166
4167 Example:
4168
4169 emacs.privateColormap: true
4170
4171 ** Faces and frame parameters.
4172
4173 There are four new faces `scroll-bar', `border', `cursor' and `mouse'.
4174 Setting the frame parameters `scroll-bar-foreground' and
4175 `scroll-bar-background' sets foreground and background color of face
4176 `scroll-bar' and vice versa. Setting frame parameter `border-color'
4177 sets the background color of face `border' and vice versa. Likewise
4178 for frame parameters `cursor-color' and face `cursor', and frame
4179 parameter `mouse-color' and face `mouse'.
4180
4181 Changing frame parameter `font' sets font-related attributes of the
4182 `default' face and vice versa. Setting frame parameters
4183 `foreground-color' or `background-color' sets the colors of the
4184 `default' face and vice versa.
4185
4186 ** New face `menu'.
4187
4188 The face `menu' can be used to change colors and font of Emacs' menus.
4189
4190 ** New frame parameter `screen-gamma' for gamma correction.
4191
4192 The new frame parameter `screen-gamma' specifies gamma-correction for
4193 colors. Its value may be nil, the default, in which case no gamma
4194 correction occurs, or a number > 0, usually a float, that specifies
4195 the screen gamma of a frame's display.
4196
4197 PC monitors usually have a screen gamma of 2.2. smaller values result
4198 in darker colors. You might want to try a screen gamma of 1.5 for LCD
4199 color displays. The viewing gamma Emacs uses is 0.4545. (1/2.2).
4200
4201 The X resource name of this parameter is `screenGamma', class
4202 `ScreenGamma'.
4203
4204 ** Tabs and variable-width text.
4205
4206 Tabs are now displayed with stretch properties; the width of a tab is
4207 defined as a multiple of the normal character width of a frame, and is
4208 independent of the fonts used in the text where the tab appears.
4209 Thus, tabs can be used to line up text in different fonts.
4210
4211 ** Enhancements of the Lucid menu bar
4212
4213 *** The Lucid menu bar now supports the resource "margin".
4214
4215 emacs.pane.menubar.margin: 5
4216
4217 The default margin is 4 which makes the menu bar appear like the
4218 LessTif/Motif one.
4219
4220 *** Arrows that indicate sub-menus are now drawn with shadows, as in
4221 LessTif and Motif.
4222
4223 ** A block cursor can be drawn as wide as the glyph under it under X.
4224
4225 As an example: if a block cursor is over a tab character, it will be
4226 drawn as wide as that tab on the display. To do this, set
4227 `x-stretch-cursor' to a non-nil value.
4228
4229 ** Empty display lines at the end of a buffer may be marked with a
4230 bitmap (this is similar to the tilde displayed by vi and Less).
4231
4232 This behavior is activated by setting the buffer-local variable
4233 `indicate-empty-lines' to a non-nil value. The default value of this
4234 variable is found in `default-indicate-empty-lines'.
4235
4236 ** There is a new "aggressive" scrolling method.
4237
4238 When scrolling up because point is above the window start, if the
4239 value of the buffer-local variable `scroll-up-aggressively' is a
4240 number, Emacs chooses a new window start so that point ends up that
4241 fraction of the window's height from the top of the window.
4242
4243 When scrolling down because point is below the window end, if the
4244 value of the buffer-local variable `scroll-down-aggressively' is a
4245 number, Emacs chooses a new window start so that point ends up that
4246 fraction of the window's height from the bottom of the window.
4247
4248 ** You can now easily create new *Info* buffers using either
4249 M-x clone-buffer, C-u m <entry> RET or C-u g <entry> RET.
4250 M-x clone-buffer can also be used on *Help* and several other special
4251 buffers.
4252
4253 ** The command `Info-search' now uses a search history.
4254
4255 ** Listing buffers with M-x list-buffers (C-x C-b) now shows
4256 abbreviated file names. Abbreviations can be customized by changing
4257 `directory-abbrev-alist'.
4258
4259 ** A new variable, backup-by-copying-when-privileged-mismatch, gives
4260 the highest file uid for which backup-by-copying-when-mismatch will be
4261 forced on. The assumption is that uids less than or equal to this
4262 value are special uids (root, bin, daemon, etc.--not real system
4263 users) and that files owned by these users should not change ownership,
4264 even if your system policy allows users other than root to edit them.
4265
4266 The default is 200; set the variable to nil to disable the feature.
4267
4268 ** The rectangle commands now avoid inserting undesirable spaces,
4269 notably at the end of lines.
4270
4271 All these functions have been rewritten to avoid inserting unwanted
4272 spaces, and an optional prefix now allows them to behave the old way.
4273
4274 ** The function `replace-rectangle' is an alias for `string-rectangle'.
4275
4276 ** The new command M-x string-insert-rectangle is like `string-rectangle',
4277 but inserts text instead of replacing it.
4278
4279 ** The new command M-x query-replace-regexp-eval acts like
4280 query-replace-regexp, but takes a Lisp expression which is evaluated
4281 after each match to get the replacement text.
4282
4283 ** M-x query-replace recognizes a new command `e' (or `E') that lets
4284 you edit the replacement string.
4285
4286 ** The new command mail-abbrev-complete-alias, bound to `M-TAB'
4287 (if you load the library `mailabbrev'), lets you complete mail aliases
4288 in the text, analogous to lisp-complete-symbol.
4289
4290 ** The variable `echo-keystrokes' may now have a floating point value.
4291
4292 ** If your init file is compiled (.emacs.elc), `user-init-file' is set
4293 to the source name (.emacs.el), if that exists, after loading it.
4294
4295 ** The help string specified for a menu-item whose definition contains
4296 the property `:help HELP' is now displayed under X, on MS-Windows, and
4297 MS-DOS, either in the echo area or with tooltips. Many standard menus
4298 displayed by Emacs now have help strings.
4299
4300 --
4301 ** New user option `read-mail-command' specifies a command to use to
4302 read mail from the menu etc.
4303
4304 ** The environment variable `EMACSLOCKDIR' is no longer used on MS-Windows.
4305 This environment variable was used when creating lock files. Emacs on
4306 MS-Windows does not use this variable anymore. This change was made
4307 before Emacs 21.1, but wasn't documented until now.
4308
4309 ** Highlighting of mouse-sensitive regions is now supported in the
4310 MS-DOS version of Emacs.
4311
4312 ** The new command `msdos-set-mouse-buttons' forces the MS-DOS version
4313 of Emacs to behave as if the mouse had a specified number of buttons.
4314 This comes handy with mice that don't report their number of buttons
4315 correctly. One example is the wheeled mice, which report 3 buttons,
4316 but clicks on the middle button are not passed to the MS-DOS version
4317 of Emacs.
4318
4319 ** Customize changes
4320
4321 *** Customize now supports comments about customized items. Use the
4322 `State' menu to add comments, or give a prefix argument to
4323 M-x customize-set-variable or M-x customize-set-value. Note that
4324 customization comments will cause the customizations to fail in
4325 earlier versions of Emacs.
4326
4327 *** The new option `custom-buffer-done-function' says whether to kill
4328 Custom buffers when you've done with them or just bury them (the
4329 default).
4330
4331 *** If Emacs was invoked with the `-q' or `--no-init-file' options, it
4332 does not allow you to save customizations in your `~/.emacs' init
4333 file. This is because saving customizations from such a session would
4334 wipe out all the other customizationss you might have on your init
4335 file.
4336
4337 ** If Emacs was invoked with the `-q' or `--no-init-file' options, it
4338 does not save disabled and enabled commands for future sessions, to
4339 avoid overwriting existing customizations of this kind that are
4340 already in your init file.
4341
4342 ** New features in evaluation commands
4343
4344 *** The commands to evaluate Lisp expressions, such as C-M-x in Lisp
4345 modes, C-j in Lisp Interaction mode, and M-:, now bind the variables
4346 print-level, print-length, and debug-on-error based on the new
4347 customizable variables eval-expression-print-level,
4348 eval-expression-print-length, and eval-expression-debug-on-error.
4349
4350 The default values for the first two of these variables are 12 and 4
4351 respectively, which means that `eval-expression' now prints at most
4352 the first 12 members of a list and at most 4 nesting levels deep (if
4353 the list is longer or deeper than that, an ellipsis `...' is
4354 printed).
4355
4356 <RET> or <mouse-2> on the printed text toggles between an abbreviated
4357 printed representation and an unabbreviated one.
4358
4359 The default value of eval-expression-debug-on-error is t, so any error
4360 during evaluation produces a backtrace.
4361
4362 *** The function `eval-defun' (C-M-x) now loads Edebug and instruments
4363 code when called with a prefix argument.
4364
4365 ** CC mode changes.
4366
4367 Note: This release contains changes that might not be compatible with
4368 current user setups (although it's believed that these
4369 incompatibilities will only show in very uncommon circumstances).
4370 However, since the impact is uncertain, these changes may be rolled
4371 back depending on user feedback. Therefore there's no forward
4372 compatibility guarantee wrt the new features introduced in this
4373 release.
4374
4375 *** The hardcoded switch to "java" style in Java mode is gone.
4376 CC Mode used to automatically set the style to "java" when Java mode
4377 is entered. This has now been removed since it caused too much
4378 confusion.
4379
4380 However, to keep backward compatibility to a certain extent, the
4381 default value for c-default-style now specifies the "java" style for
4382 java-mode, but "gnu" for all other modes (as before). So you won't
4383 notice the change if you haven't touched that variable.
4384
4385 *** New cleanups, space-before-funcall and compact-empty-funcall.
4386 Two new cleanups have been added to c-cleanup-list:
4387
4388 space-before-funcall causes a space to be inserted before the opening
4389 parenthesis of a function call, which gives the style "foo (bar)".
4390
4391 compact-empty-funcall causes any space before a function call opening
4392 parenthesis to be removed if there are no arguments to the function.
4393 It's typically useful together with space-before-funcall to get the
4394 style "foo (bar)" and "foo()".
4395
4396 *** Some keywords now automatically trigger reindentation.
4397 Keywords like "else", "while", "catch" and "finally" have been made
4398 "electric" to make them reindent automatically when they continue an
4399 earlier statement. An example:
4400
4401 for (i = 0; i < 17; i++)
4402 if (a[i])
4403 res += a[i]->offset;
4404 else
4405
4406 Here, the "else" should be indented like the preceding "if", since it
4407 continues that statement. CC Mode will automatically reindent it after
4408 the "else" has been typed in full, since it's not until then it's
4409 possible to decide whether it's a new statement or a continuation of
4410 the preceding "if".
4411
4412 CC Mode uses Abbrev mode to achieve this, which is therefore turned on
4413 by default.
4414
4415 *** M-a and M-e now moves by sentence in multiline strings.
4416 Previously these two keys only moved by sentence in comments, which
4417 meant that sentence movement didn't work in strings containing
4418 documentation or other natural language text.
4419
4420 The reason it's only activated in multiline strings (i.e. strings that
4421 contain a newline, even when escaped by a '\') is to avoid stopping in
4422 the short strings that often reside inside statements. Multiline
4423 strings almost always contain text in a natural language, as opposed
4424 to other strings that typically contain format specifications,
4425 commands, etc. Also, it's not that bothersome that M-a and M-e misses
4426 sentences in single line strings, since they're short anyway.
4427
4428 *** Support for autodoc comments in Pike mode.
4429 Autodoc comments for Pike are used to extract documentation from the
4430 source, like Javadoc in Java. Pike mode now recognize this markup in
4431 comment prefixes and paragraph starts.
4432
4433 *** The comment prefix regexps on c-comment-prefix may be mode specific.
4434 When c-comment-prefix is an association list, it specifies the comment
4435 line prefix on a per-mode basis, like c-default-style does. This
4436 change came about to support the special autodoc comment prefix in
4437 Pike mode only.
4438
4439 *** Better handling of syntactic errors.
4440 The recovery after unbalanced parens earlier in the buffer has been
4441 improved; CC Mode now reports them by dinging and giving a message
4442 stating the offending line, but still recovers and indent the
4443 following lines in a sane way (most of the time). An "else" with no
4444 matching "if" is handled similarly. If an error is discovered while
4445 indenting a region, the whole region is still indented and the error
4446 is reported afterwards.
4447
4448 *** Lineup functions may now return absolute columns.
4449 A lineup function can give an absolute column to indent the line to by
4450 returning a vector with the desired column as the first element.
4451
4452 *** More robust and warning-free byte compilation.
4453 Although this is strictly not a user visible change (well, depending
4454 on the view of a user), it's still worth mentioning that CC Mode now
4455 can be compiled in the standard ways without causing trouble. Some
4456 code have also been moved between the subpackages to enhance the
4457 modularity somewhat. Thanks to Martin Buchholz for doing the
4458 groundwork.
4459
4460 *** c-style-variables-are-local-p now defaults to t.
4461 This is an incompatible change that has been made to make the behavior
4462 of the style system wrt global variable settings less confusing for
4463 non-advanced users. If you know what this variable does you might
4464 want to set it to nil in your .emacs, otherwise you probably don't
4465 have to bother.
4466
4467 Defaulting c-style-variables-are-local-p to t avoids the confusing
4468 situation that occurs when a user sets some style variables globally
4469 and edits both a Java and a non-Java file in the same Emacs session.
4470 If the style variables aren't buffer local in this case, loading of
4471 the second file will cause the default style (either "gnu" or "java"
4472 by default) to override the global settings made by the user.
4473
4474 *** New initialization procedure for the style system.
4475 When the initial style for a buffer is determined by CC Mode (from the
4476 variable c-default-style), the global values of style variables now
4477 take precedence over the values specified by the chosen style. This
4478 is different than the old behavior: previously, the style-specific
4479 settings would override the global settings. This change makes it
4480 possible to do simple configuration in the intuitive way with
4481 Customize or with setq lines in one's .emacs file.
4482
4483 By default, the global value of every style variable is the new
4484 special symbol set-from-style, which causes the value to be taken from
4485 the style system. This means that in effect, only an explicit setting
4486 of a style variable will cause the "overriding" behavior described
4487 above.
4488
4489 Also note that global settings override style-specific settings *only*
4490 when the initial style of a buffer is chosen by a CC Mode major mode
4491 function. When a style is chosen in other ways --- for example, by a
4492 call like (c-set-style "gnu") in a hook, or via M-x c-set-style ---
4493 then the style-specific values take precedence over any global style
4494 values. In Lisp terms, global values override style-specific values
4495 only when the new second argument to c-set-style is non-nil; see the
4496 function documentation for more info.
4497
4498 The purpose of these changes is to make it easier for users,
4499 especially novice users, to do simple customizations with Customize or
4500 with setq in their .emacs files. On the other hand, the new system is
4501 intended to be compatible with advanced users' customizations as well,
4502 such as those that choose styles in hooks or whatnot. This new system
4503 is believed to be almost entirely compatible with current
4504 configurations, in spite of the changed precedence between style and
4505 global variable settings when a buffer's default style is set.
4506
4507 (Thanks to Eric Eide for clarifying this explanation a bit.)
4508
4509 **** c-offsets-alist is now a customizable variable.
4510 This became possible as a result of the new initialization behavior.
4511
4512 This variable is treated slightly differently from the other style
4513 variables; instead of using the symbol set-from-style, it will be
4514 completed with the syntactic symbols it doesn't already contain when
4515 the style is first initialized. This means it now defaults to the
4516 empty list to make all syntactic elements get their values from the
4517 style system.
4518
4519 **** Compatibility variable to restore the old behavior.
4520 In case your configuration doesn't work with this change, you can set
4521 c-old-style-variable-behavior to non-nil to get the old behavior back
4522 as far as possible.
4523
4524 *** Improvements to line breaking and text filling.
4525 CC Mode now handles this more intelligently and seamlessly wrt the
4526 surrounding code, especially inside comments. For details see the new
4527 chapter about this in the manual.
4528
4529 **** New variable to recognize comment line prefix decorations.
4530 The variable c-comment-prefix-regexp has been added to properly
4531 recognize the line prefix in both block and line comments. It's
4532 primarily used to initialize the various paragraph recognition and
4533 adaptive filling variables that the text handling functions uses.
4534
4535 **** New variable c-block-comment-prefix.
4536 This is a generalization of the now obsolete variable
4537 c-comment-continuation-stars to handle arbitrary strings.
4538
4539 **** CC Mode now uses adaptive fill mode.
4540 This to make it adapt better to the paragraph style inside comments.
4541
4542 It's also possible to use other adaptive filling packages inside CC
4543 Mode, notably Kyle E. Jones' Filladapt mode (http://wonderworks.com/).
4544 A new convenience function c-setup-filladapt sets up Filladapt for use
4545 inside CC Mode.
4546
4547 Note though that the 2.12 version of Filladapt lacks a feature that
4548 causes it to work suboptimally when c-comment-prefix-regexp can match
4549 the empty string (which it commonly does). A patch for that is
4550 available from the CC Mode web site (http://www.python.org/emacs/
4551 cc-mode/).
4552
4553 **** The variables `c-hanging-comment-starter-p' and
4554 `c-hanging-comment-ender-p', which controlled how comment starters and
4555 enders were filled, are not used anymore. The new version of the
4556 function `c-fill-paragraph' keeps the comment starters and enders as
4557 they were before the filling.
4558
4559 **** It's now possible to selectively turn off auto filling.
4560 The variable c-ignore-auto-fill is used to ignore auto fill mode in
4561 specific contexts, e.g. in preprocessor directives and in string
4562 literals.
4563
4564 **** New context sensitive line break function c-context-line-break.
4565 It works like newline-and-indent in normal code, and adapts the line
4566 prefix according to the comment style when used inside comments. If
4567 you're normally using newline-and-indent, you might want to switch to
4568 this function.
4569
4570 *** Fixes to IDL mode.
4571 It now does a better job in recognizing only the constructs relevant
4572 to IDL. E.g. it no longer matches "class" as the beginning of a
4573 struct block, but it does match the CORBA 2.3 "valuetype" keyword.
4574 Thanks to Eric Eide.
4575
4576 *** Improvements to the Whitesmith style.
4577 It now keeps the style consistently on all levels and both when
4578 opening braces hangs and when they don't.
4579
4580 **** New lineup function c-lineup-whitesmith-in-block.
4581
4582 *** New lineup functions c-lineup-template-args and c-indent-multi-line-block.
4583 See their docstrings for details. c-lineup-template-args does a
4584 better job of tracking the brackets used as parens in C++ templates,
4585 and is used by default to line up continued template arguments.
4586
4587 *** c-lineup-comment now preserves alignment with a comment on the
4588 previous line. It used to instead preserve comments that started in
4589 the column specified by comment-column.
4590
4591 *** c-lineup-C-comments handles "free form" text comments.
4592 In comments with a long delimiter line at the start, the indentation
4593 is kept unchanged for lines that start with an empty comment line
4594 prefix. This is intended for the type of large block comments that
4595 contain documentation with its own formatting. In these you normally
4596 don't want CC Mode to change the indentation.
4597
4598 *** The `c' syntactic symbol is now relative to the comment start
4599 instead of the previous line, to make integers usable as lineup
4600 arguments.
4601
4602 *** All lineup functions have gotten docstrings.
4603
4604 *** More preprocessor directive movement functions.
4605 c-down-conditional does the reverse of c-up-conditional.
4606 c-up-conditional-with-else and c-down-conditional-with-else are
4607 variants of these that also stops at "#else" lines (suggested by Don
4608 Provan).
4609
4610 *** Minor improvements to many movement functions in tricky situations.
4611
4612 ** Dired changes
4613
4614 *** New variable `dired-recursive-deletes' determines if the delete
4615 command will delete non-empty directories recursively. The default
4616 is, delete only empty directories.
4617
4618 *** New variable `dired-recursive-copies' determines if the copy
4619 command will copy directories recursively. The default is, do not
4620 copy directories recursively.
4621
4622 *** In command `dired-do-shell-command' (usually bound to `!') a `?'
4623 in the shell command has a special meaning similar to `*', but with
4624 the difference that the command will be run on each file individually.
4625
4626 *** The new command `dired-find-alternate-file' (usually bound to `a')
4627 replaces the Dired buffer with the buffer for an alternate file or
4628 directory.
4629
4630 *** The new command `dired-show-file-type' (usually bound to `y') shows
4631 a message in the echo area describing what type of file the point is on.
4632 This command invokes the external program `file' do its work, and so
4633 will only work on systems with that program, and will be only as
4634 accurate or inaccurate as it is.
4635
4636 *** Dired now properly handles undo changes of adding/removing `-R'
4637 from ls switches.
4638
4639 *** Dired commands that prompt for a destination file now allow the use
4640 of the `M-n' command in the minibuffer to insert the source filename,
4641 which the user can then edit. This only works if there is a single
4642 source file, not when operating on multiple marked files.
4643
4644 ** Gnus changes.
4645
4646 The Gnus NEWS entries are short, but they reflect sweeping changes in
4647 four areas: Article display treatment, MIME treatment,
4648 internationalization and mail-fetching.
4649
4650 *** The mail-fetching functions have changed. See the manual for the
4651 many details. In particular, all procmail fetching variables are gone.
4652
4653 If you used procmail like in
4654
4655 (setq nnmail-use-procmail t)
4656 (setq nnmail-spool-file 'procmail)
4657 (setq nnmail-procmail-directory "~/mail/incoming/")
4658 (setq nnmail-procmail-suffix "\\.in")
4659
4660 this now has changed to
4661
4662 (setq mail-sources
4663 '((directory :path "~/mail/incoming/"
4664 :suffix ".in")))
4665
4666 More information is available in the info doc at Select Methods ->
4667 Getting Mail -> Mail Sources
4668
4669 *** Gnus is now a MIME-capable reader. This affects many parts of
4670 Gnus, and adds a slew of new commands. See the manual for details.
4671 Separate MIME packages like RMIME, mime-compose etc., will probably no
4672 longer work; remove them and use the native facilities.
4673
4674 The FLIM/SEMI package still works with Emacs 21, but if you want to
4675 use the native facilities, you must remove any mailcap.el[c] that was
4676 installed by FLIM/SEMI version 1.13 or earlier.
4677
4678 *** Gnus has also been multilingualized. This also affects too many
4679 parts of Gnus to summarize here, and adds many new variables. There
4680 are built-in facilities equivalent to those of gnus-mule.el, which is
4681 now just a compatibility layer.
4682
4683 *** gnus-mule.el is now just a compatibility layer over the built-in
4684 Gnus facilities.
4685
4686 *** gnus-auto-select-first can now be a function to be
4687 called to position point.
4688
4689 *** The user can now decide which extra headers should be included in
4690 summary buffers and NOV files.
4691
4692 *** `gnus-article-display-hook' has been removed. Instead, a number
4693 of variables starting with `gnus-treat-' have been added.
4694
4695 *** The Gnus posting styles have been redone again and now work in a
4696 subtly different manner.
4697
4698 *** New web-based backends have been added: nnslashdot, nnwarchive
4699 and nnultimate. nnweb has been revamped, again, to keep up with
4700 ever-changing layouts.
4701
4702 *** Gnus can now read IMAP mail via nnimap.
4703
4704 *** There is image support of various kinds and some sound support.
4705
4706 ** Changes in Texinfo mode.
4707
4708 *** A couple of new key bindings have been added for inserting Texinfo
4709 macros
4710
4711 Key binding Macro
4712 -------------------------
4713 C-c C-c C-s @strong
4714 C-c C-c C-e @emph
4715 C-c C-c u @uref
4716 C-c C-c q @quotation
4717 C-c C-c m @email
4718 C-c C-o @<block> ... @end <block>
4719 M-RET @item
4720
4721 *** The " key now inserts either " or `` or '' depending on context.
4722
4723 ** Changes in Outline mode.
4724
4725 There is now support for Imenu to index headings. A new command
4726 `outline-headers-as-kill' copies the visible headings in the region to
4727 the kill ring, e.g. to produce a table of contents.
4728
4729 ** Changes to Emacs Server
4730
4731 *** The new option `server-kill-new-buffers' specifies what to do
4732 with buffers when done with them. If non-nil, the default, buffers
4733 are killed, unless they were already present before visiting them with
4734 Emacs Server. If nil, `server-temp-file-regexp' specifies which
4735 buffers to kill, as before.
4736
4737 Please note that only buffers are killed that still have a client,
4738 i.e. buffers visited with `emacsclient --no-wait' are never killed in
4739 this way.
4740
4741 ** Both emacsclient and Emacs itself now accept command line options
4742 of the form +LINE:COLUMN in addition to +LINE.
4743
4744 ** Changes to Show Paren mode.
4745
4746 *** Overlays used by Show Paren mode now use a priority property.
4747 The new user option show-paren-priority specifies the priority to
4748 use. Default is 1000.
4749
4750 ** New command M-x check-parens can be used to find unbalanced paren
4751 groups and strings in buffers in Lisp mode (or other modes).
4752
4753 ** Changes to hideshow.el
4754
4755 *** Generalized block selection and traversal
4756
4757 A block is now recognized by its start and end regexps (both strings),
4758 and an integer specifying which sub-expression in the start regexp
4759 serves as the place where a `forward-sexp'-like function can operate.
4760 See the documentation of variable `hs-special-modes-alist'.
4761
4762 *** During incremental search, if Hideshow minor mode is active,
4763 hidden blocks are temporarily shown. The variable `hs-headline' can
4764 be used in the mode line format to show the line at the beginning of
4765 the open block.
4766
4767 *** User option `hs-hide-all-non-comment-function' specifies a
4768 function to be called at each top-level block beginning, instead of
4769 the normal block-hiding function.
4770
4771 *** The command `hs-show-region' has been removed.
4772
4773 *** The key bindings have changed to fit the Emacs conventions,
4774 roughly imitating those of Outline minor mode. Notably, the prefix
4775 for all bindings is now `C-c @'. For details, see the documentation
4776 for `hs-minor-mode'.
4777
4778 *** The variable `hs-show-hidden-short-form' has been removed, and
4779 hideshow.el now always behaves as if this variable were set to t.
4780
4781 ** Changes to Change Log mode and Add-Log functions
4782
4783 *** If you invoke `add-change-log-entry' from a backup file, it makes
4784 an entry appropriate for the file's parent. This is useful for making
4785 log entries by comparing a version with deleted functions.
4786
4787 **** New command M-x change-log-merge merges another log into the
4788 current buffer.
4789
4790 *** New command M-x change-log-redate fixes any old-style date entries
4791 in a log file.
4792
4793 *** Change Log mode now adds a file's version number to change log
4794 entries if user-option `change-log-version-info-enabled' is non-nil.
4795 Unless the file is under version control the search for a file's
4796 version number is performed based on regular expressions from
4797 `change-log-version-number-regexp-list' which can be customized.
4798 Version numbers are only found in the first 10 percent of a file.
4799
4800 *** Change Log mode now defines its own faces for font-lock highlighting.
4801
4802 ** Changes to cmuscheme
4803
4804 *** The user-option `scheme-program-name' has been renamed
4805 `cmuscheme-program-name' due to conflicts with xscheme.el.
4806
4807 ** Changes in Font Lock
4808
4809 *** The new function `font-lock-remove-keywords' can be used to remove
4810 font-lock keywords from the current buffer or from a specific major mode.
4811
4812 *** Multi-line patterns are now supported. Modes using this, should
4813 set font-lock-multiline to t in their font-lock-defaults.
4814
4815 *** `font-lock-syntactic-face-function' allows major-modes to choose
4816 the face used for each string/comment.
4817
4818 *** A new standard face `font-lock-doc-face'.
4819 Meant for Lisp docstrings, Javadoc comments and other "documentation in code".
4820
4821 ** Changes to Shell mode
4822
4823 *** The `shell' command now accepts an optional argument to specify the buffer
4824 to use, which defaults to "*shell*". When used interactively, a
4825 non-default buffer may be specified by giving the `shell' command a
4826 prefix argument (causing it to prompt for the buffer name).
4827
4828 ** Comint (subshell) changes
4829
4830 These changes generally affect all modes derived from comint mode, which
4831 include shell-mode, gdb-mode, scheme-interaction-mode, etc.
4832
4833 *** Comint now by default interprets some carriage-control characters.
4834 Comint now removes CRs from CR LF sequences, and treats single CRs and
4835 BSs in the output in a way similar to a terminal (by deleting to the
4836 beginning of the line, or deleting the previous character,
4837 respectively). This is achieved by adding `comint-carriage-motion' to
4838 the `comint-output-filter-functions' hook by default.
4839
4840 *** By default, comint no longer uses the variable `comint-prompt-regexp'
4841 to distinguish prompts from user-input. Instead, it notices which
4842 parts of the text were output by the process, and which entered by the
4843 user, and attaches `field' properties to allow emacs commands to use
4844 this information. Common movement commands, notably beginning-of-line,
4845 respect field boundaries in a fairly natural manner. To disable this
4846 feature, and use the old behavior, customize the user option
4847 `comint-use-prompt-regexp-instead-of-fields'.
4848
4849 *** Comint now includes new features to send commands to running processes
4850 and redirect the output to a designated buffer or buffers.
4851
4852 *** The command M-x comint-redirect-send-command reads a command and
4853 buffer name from the mini-buffer. The command is sent to the current
4854 buffer's process, and its output is inserted into the specified buffer.
4855
4856 The command M-x comint-redirect-send-command-to-process acts like
4857 M-x comint-redirect-send-command but additionally reads the name of
4858 the buffer whose process should be used from the mini-buffer.
4859
4860 *** Packages based on comint now highlight user input and program prompts,
4861 and support choosing previous input with mouse-2. To control these features,
4862 see the user-options `comint-highlight-input' and `comint-highlight-prompt'.
4863
4864 *** The new command `comint-write-output' (usually bound to `C-c C-s')
4865 saves the output from the most recent command to a file. With a prefix
4866 argument, it appends to the file.
4867
4868 *** The command `comint-kill-output' has been renamed `comint-delete-output'
4869 (usually bound to `C-c C-o'); the old name is aliased to it for
4870 compatibility.
4871
4872 *** The new function `comint-add-to-input-history' adds commands to the input
4873 ring (history).
4874
4875 *** The new variable `comint-input-history-ignore' is a regexp for
4876 identifying history lines that should be ignored, like tcsh time-stamp
4877 strings, starting with a `#'. The default value of this variable is "^#".
4878
4879 ** Changes to Rmail mode
4880
4881 *** The new user-option rmail-user-mail-address-regexp can be
4882 set to fine tune the identification of the correspondent when
4883 receiving new mail. If it matches the address of the sender, the
4884 recipient is taken as correspondent of a mail. If nil, the default,
4885 `user-login-name' and `user-mail-address' are used to exclude yourself
4886 as correspondent.
4887
4888 Usually you don't have to set this variable, except if you collect
4889 mails sent by you under different user names. Then it should be a
4890 regexp matching your mail addresses.
4891
4892 *** The new user-option rmail-confirm-expunge controls whether and how
4893 to ask for confirmation before expunging deleted messages from an
4894 Rmail file. You can choose between no confirmation, confirmation
4895 with y-or-n-p, or confirmation with yes-or-no-p. Default is to ask
4896 for confirmation with yes-or-no-p.
4897
4898 *** RET is now bound in the Rmail summary to rmail-summary-goto-msg,
4899 like `j'.
4900
4901 *** There is a new user option `rmail-digest-end-regexps' that
4902 specifies the regular expressions to detect the line that ends a
4903 digest message.
4904
4905 *** The new user option `rmail-automatic-folder-directives' specifies
4906 in which folder to put messages automatically.
4907
4908 *** The new function `rmail-redecode-body' allows to fix a message
4909 with non-ASCII characters if Emacs happens to decode it incorrectly
4910 due to missing or malformed "charset=" header.
4911
4912 ** The new user-option `mail-envelope-from' can be used to specify
4913 an envelope-from address different from user-mail-address.
4914
4915 ** The variable mail-specify-envelope-from controls whether to
4916 use the -f option when sending mail.
4917
4918 ** The Rmail command `o' (`rmail-output-to-rmail-file') now writes the
4919 current message in the internal `emacs-mule' encoding, rather than in
4920 the encoding taken from the variable `buffer-file-coding-system'.
4921 This allows to save messages whose characters cannot be safely encoded
4922 by the buffer's coding system, and makes sure the message will be
4923 displayed correctly when you later visit the target Rmail file.
4924
4925 If you want your Rmail files be encoded in a specific coding system
4926 other than `emacs-mule', you can customize the variable
4927 `rmail-file-coding-system' to set its value to that coding system.
4928
4929 ** Changes to TeX mode
4930
4931 *** The default mode has been changed from `plain-tex-mode' to
4932 `latex-mode'.
4933
4934 *** latex-mode now has a simple indentation algorithm.
4935
4936 *** M-f and M-p jump around \begin...\end pairs.
4937
4938 *** Added support for outline-minor-mode.
4939
4940 ** Changes to RefTeX mode
4941
4942 *** RefTeX has new support for index generation. Index entries can be
4943 created with `C-c <', with completion available on index keys.
4944 Pressing `C-c /' indexes the word at the cursor with a default
4945 macro. `C-c >' compiles all index entries into an alphabetically
4946 sorted *Index* buffer which looks like the final index. Entries
4947 can be edited from that buffer.
4948
4949 *** Label and citation key selection now allow to select several
4950 items and reference them together (use `m' to mark items, `a' or
4951 `A' to use all marked entries).
4952
4953 *** reftex.el has been split into a number of smaller files to reduce
4954 memory use when only a part of RefTeX is being used.
4955
4956 *** a new command `reftex-view-crossref-from-bibtex' (bound to `C-c &'
4957 in BibTeX-mode) can be called in a BibTeX database buffer in order
4958 to show locations in LaTeX documents where a particular entry has
4959 been cited.
4960
4961 ** Emacs Lisp mode now allows multiple levels of outline headings.
4962 The level of a heading is determined from the number of leading
4963 semicolons in a heading line. Toplevel forms starting with a `('
4964 in column 1 are always made leaves.
4965
4966 ** The M-x time-stamp command (most commonly used on write-file-hooks)
4967 has the following new features:
4968
4969 *** The patterns for finding the time stamp and for updating a pattern
4970 may match text spanning multiple lines. For example, some people like
4971 to have the filename and date on separate lines. The new variable
4972 time-stamp-inserts-lines controls the matching for multi-line patterns.
4973
4974 *** More than one time stamp can be updated in the same file. This
4975 feature is useful if you need separate time stamps in a program source
4976 file to both include in formatted documentation and insert in the
4977 compiled binary. The same time-stamp will be written at each matching
4978 pattern. The variable time-stamp-count enables this new feature; it
4979 defaults to 1.
4980
4981 ** Partial Completion mode now completes environment variables in
4982 file names.
4983
4984 ** Ispell changes
4985
4986 *** The command `ispell' now spell-checks a region if
4987 transient-mark-mode is on, and the mark is active. Otherwise it
4988 spell-checks the current buffer.
4989
4990 *** Support for synchronous subprocesses - DOS/Windoze - has been
4991 added.
4992
4993 *** An "alignment error" bug was fixed when a manual spelling
4994 correction is made and re-checked.
4995
4996 *** Italian, Portuguese, and Slovak dictionary definitions have been added.
4997
4998 *** Region skipping performance has been vastly improved in some
4999 cases.
5000
5001 *** Spell checking HTML buffers has been improved and isn't so strict
5002 on syntax errors.
5003
5004 *** The buffer-local words are now always placed on a new line at the
5005 end of the buffer.
5006
5007 *** Spell checking now works in the MS-DOS version of Emacs.
5008
5009 ** Makefile mode changes
5010
5011 *** The mode now uses the abbrev table `makefile-mode-abbrev-table'.
5012
5013 *** Conditionals and include statements are now highlighted when
5014 Fontlock mode is active.
5015
5016 ** Isearch changes
5017
5018 *** Isearch now puts a call to `isearch-resume' in the command history,
5019 so that searches can be resumed.
5020
5021 *** In Isearch mode, C-M-s and C-M-r are now bound like C-s and C-r,
5022 respectively, i.e. you can repeat a regexp isearch with the same keys
5023 that started the search.
5024
5025 *** In Isearch mode, mouse-2 in the echo area now yanks the current
5026 selection into the search string rather than giving an error.
5027
5028 *** There is a new lazy highlighting feature in incremental search.
5029
5030 Lazy highlighting is switched on/off by customizing variable
5031 `isearch-lazy-highlight'. When active, all matches for the current
5032 search string are highlighted. The current match is highlighted as
5033 before using face `isearch' or `region'. All other matches are
5034 highlighted using face `isearch-lazy-highlight-face' which defaults to
5035 `secondary-selection'.
5036
5037 The extra highlighting makes it easier to anticipate where the cursor
5038 will end up each time you press C-s or C-r to repeat a pending search.
5039 Highlighting of these additional matches happens in a deferred fashion
5040 using "idle timers," so the cycles needed do not rob isearch of its
5041 usual snappy response.
5042
5043 If `isearch-lazy-highlight-cleanup' is set to t, highlights for
5044 matches are automatically cleared when you end the search. If it is
5045 set to nil, you can remove the highlights manually with `M-x
5046 isearch-lazy-highlight-cleanup'.
5047
5048 ** VC Changes
5049
5050 VC has been overhauled internally. It is now modular, making it
5051 easier to plug-in arbitrary version control backends. (See Lisp
5052 Changes for details on the new structure.) As a result, the mechanism
5053 to enable and disable support for particular version systems has
5054 changed: everything is now controlled by the new variable
5055 `vc-handled-backends'. Its value is a list of symbols that identify
5056 version systems; the default is '(RCS CVS SCCS). When finding a file,
5057 each of the backends in that list is tried in order to see whether the
5058 file is registered in that backend.
5059
5060 When registering a new file, VC first tries each of the listed
5061 backends to see if any of them considers itself "responsible" for the
5062 directory of the file (e.g. because a corresponding subdirectory for
5063 master files exists). If none of the backends is responsible, then
5064 the first backend in the list that could register the file is chosen.
5065 As a consequence, the variable `vc-default-back-end' is now obsolete.
5066
5067 The old variable `vc-master-templates' is also obsolete, although VC
5068 still supports it for backward compatibility. To define templates for
5069 RCS or SCCS, you should rather use the new variables
5070 vc-{rcs,sccs}-master-templates. (There is no such feature under CVS
5071 where it doesn't make sense.)
5072
5073 The variables `vc-ignore-vc-files' and `vc-handle-cvs' are also
5074 obsolete now, you must set `vc-handled-backends' to nil or exclude
5075 `CVS' from the list, respectively, to achieve their effect now.
5076
5077 *** General Changes
5078
5079 The variable `vc-checkout-carefully' is obsolete: the corresponding
5080 checks are always done now.
5081
5082 VC Dired buffers are now kept up-to-date during all version control
5083 operations.
5084
5085 `vc-diff' output is now displayed in `diff-mode'.
5086 `vc-print-log' uses `log-view-mode'.
5087 `vc-log-mode' (used for *VC-Log*) has been replaced by `log-edit-mode'.
5088
5089 The command C-x v m (vc-merge) now accepts an empty argument as the
5090 first revision number. This means that any recent changes on the
5091 current branch should be picked up from the repository and merged into
5092 the working file (``merge news'').
5093
5094 The commands C-x v s (vc-create-snapshot) and C-x v r
5095 (vc-retrieve-snapshot) now ask for a directory name from which to work
5096 downwards.
5097
5098 *** Multiple Backends
5099
5100 VC now lets you register files in more than one backend. This is
5101 useful, for example, if you are working with a slow remote CVS
5102 repository. You can then use RCS for local editing, and occasionally
5103 commit your changes back to CVS, or pick up changes from CVS into your
5104 local RCS archives.
5105
5106 To make this work, the ``more local'' backend (RCS in our example)
5107 should come first in `vc-handled-backends', and the ``more remote''
5108 backend (CVS) should come later. (The default value of
5109 `vc-handled-backends' already has it that way.)
5110
5111 You can then commit changes to another backend (say, RCS), by typing
5112 C-u C-x v v RCS RET (i.e. vc-next-action now accepts a backend name as
5113 a revision number). VC registers the file in the more local backend
5114 if that hasn't already happened, and commits to a branch based on the
5115 current revision number from the more remote backend.
5116
5117 If a file is registered in multiple backends, you can switch to
5118 another one using C-x v b (vc-switch-backend). This does not change
5119 any files, it only changes VC's perspective on the file. Use this to
5120 pick up changes from CVS while working under RCS locally.
5121
5122 After you are done with your local RCS editing, you can commit your
5123 changes back to CVS using C-u C-x v v CVS RET. In this case, the
5124 local RCS archive is removed after the commit, and the log entry
5125 buffer is initialized to contain the entire RCS change log of the file.
5126
5127 *** Changes for CVS
5128
5129 There is a new user option, `vc-cvs-stay-local'. If it is `t' (the
5130 default), then VC avoids network queries for files registered in
5131 remote repositories. The state of such files is then only determined
5132 by heuristics and past information. `vc-cvs-stay-local' can also be a
5133 regexp to match against repository hostnames; only files from hosts
5134 that match it are treated locally. If the variable is nil, then VC
5135 queries the repository just as often as it does for local files.
5136
5137 If `vc-cvs-stay-local' is on, then VC also makes local backups of
5138 repository versions. This means that ordinary diffs (C-x v =) and
5139 revert operations (C-x v u) can be done completely locally, without
5140 any repository interactions at all. The name of a local version
5141 backup of FILE is FILE.~REV.~, where REV is the repository version
5142 number. This format is similar to that used by C-x v ~
5143 (vc-version-other-window), except for the trailing dot. As a matter
5144 of fact, the two features can each use the files created by the other,
5145 the only difference being that files with a trailing `.' are deleted
5146 automatically after commit. (This feature doesn't work on MS-DOS,
5147 since DOS disallows more than a single dot in the trunk of a file
5148 name.)
5149
5150 If `vc-cvs-stay-local' is on, and there have been changes in the
5151 repository, VC notifies you about it when you actually try to commit.
5152 If you want to check for updates from the repository without trying to
5153 commit, you can either use C-x v m RET to perform an update on the
5154 current file, or you can use C-x v r RET to get an update for an
5155 entire directory tree.
5156
5157 The new user option `vc-cvs-use-edit' indicates whether VC should call
5158 "cvs edit" to make files writeable; it defaults to `t'. (This option
5159 is only meaningful if the CVSREAD variable is set, or if files are
5160 "watched" by other developers.)
5161
5162 The commands C-x v s (vc-create-snapshot) and C-x v r
5163 (vc-retrieve-snapshot) are now also implemented for CVS. If you give
5164 an empty snapshot name to the latter, that performs a `cvs update',
5165 starting at the given directory.
5166
5167 *** Lisp Changes in VC
5168
5169 VC has been restructured internally to make it modular. You can now
5170 add support for arbitrary version control backends by writing a
5171 library that provides a certain set of backend-specific functions, and
5172 then telling VC to use that library. For example, to add support for
5173 a version system named SYS, you write a library named vc-sys.el, which
5174 provides a number of functions vc-sys-... (see commentary at the top
5175 of vc.el for a detailed list of them). To make VC use that library,
5176 you need to put it somewhere into Emacs' load path and add the symbol
5177 `SYS' to the list `vc-handled-backends'.
5178
5179 ** The customizable EDT emulation package now supports the EDT
5180 SUBS command and EDT scroll margins. It also works with more
5181 terminal/keyboard configurations and it now works under XEmacs.
5182 See etc/edt-user.doc for more information.
5183
5184 ** New modes and packages
5185
5186 *** The new global minor mode `minibuffer-electric-default-mode'
5187 automatically hides the `(default ...)' part of minibuffer prompts when
5188 the default is not applicable.
5189
5190 *** Artist is an Emacs lisp package that allows you to draw lines,
5191 rectangles and ellipses by using your mouse and/or keyboard. The
5192 shapes are made up with the ascii characters |, -, / and \.
5193
5194 Features are:
5195
5196 - Intersecting: When a `|' intersects with a `-', a `+' is
5197 drawn, like this: | \ /
5198 --+-- X
5199 | / \
5200
5201 - Rubber-banding: When drawing lines you can interactively see the
5202 result while holding the mouse button down and moving the mouse. If
5203 your machine is not fast enough (a 386 is a bit too slow, but a
5204 pentium is well enough), you can turn this feature off. You will
5205 then see 1's and 2's which mark the 1st and 2nd endpoint of the line
5206 you are drawing.
5207
5208 - Arrows: After having drawn a (straight) line or a (straight)
5209 poly-line, you can set arrows on the line-ends by typing < or >.
5210
5211 - Flood-filling: You can fill any area with a certain character by
5212 flood-filling.
5213
5214 - Cut copy and paste: You can cut, copy and paste rectangular
5215 regions. Artist also interfaces with the rect package (this can be
5216 turned off if it causes you any trouble) so anything you cut in
5217 artist can be yanked with C-x r y and vice versa.
5218
5219 - Drawing with keys: Everything you can do with the mouse, you can
5220 also do without the mouse.
5221
5222 - Aspect-ratio: You can set the variable artist-aspect-ratio to
5223 reflect the height-width ratio for the font you are using. Squares
5224 and circles are then drawn square/round. Note, that once your
5225 ascii-file is shown with font with a different height-width ratio,
5226 the squares won't be square and the circles won't be round.
5227
5228 - Drawing operations: The following drawing operations are implemented:
5229
5230 lines straight-lines
5231 rectangles squares
5232 poly-lines straight poly-lines
5233 ellipses circles
5234 text (see-thru) text (overwrite)
5235 spray-can setting size for spraying
5236 vaporize line vaporize lines
5237 erase characters erase rectangles
5238
5239 Straight lines are lines that go horizontally, vertically or
5240 diagonally. Plain lines go in any direction. The operations in
5241 the right column are accessed by holding down the shift key while
5242 drawing.
5243
5244 It is possible to vaporize (erase) entire lines and connected lines
5245 (rectangles for example) as long as the lines being vaporized are
5246 straight and connected at their endpoints. Vaporizing is inspired
5247 by the drawrect package by Jari Aalto <jari.aalto@poboxes.com>.
5248
5249 - Picture mode compatibility: Artist is picture mode compatible (this
5250 can be turned off).
5251
5252 *** The new package Eshell is an operating system command shell
5253 implemented entirely in Emacs Lisp. Use `M-x eshell' to invoke it.
5254 It functions similarly to bash and zsh, and allows running of Lisp
5255 functions and external commands using the same syntax. It supports
5256 history lists, aliases, extended globbing, smart scrolling, etc. It
5257 will work on any platform Emacs has been ported to. And since most of
5258 the basic commands -- ls, rm, mv, cp, ln, du, cat, etc. -- have been
5259 rewritten in Lisp, it offers an operating-system independent shell,
5260 all within the scope of your Emacs process.
5261
5262 *** The new package timeclock.el is a mode is for keeping track of time
5263 intervals. You can use it for whatever purpose you like, but the
5264 typical scenario is to keep track of how much time you spend working
5265 on certain projects.
5266
5267 *** The new package hi-lock.el provides commands to highlight matches
5268 of interactively entered regexps. For example,
5269
5270 M-x highlight-regexp RET clearly RET RET
5271
5272 will highlight all occurrences of `clearly' using a yellow background
5273 face. New occurrences of `clearly' will be highlighted as they are
5274 typed. `M-x unhighlight-regexp RET' will remove the highlighting.
5275 Any existing face can be used for highlighting and a set of
5276 appropriate faces is provided. The regexps can be written into the
5277 current buffer in a form that will be recognized the next time the
5278 corresponding file is read. There are commands to highlight matches
5279 to phrases and to highlight entire lines containing a match.
5280
5281 *** The new package zone.el plays games with Emacs' display when
5282 Emacs is idle.
5283
5284 *** The new package tildify.el allows to add hard spaces or other text
5285 fragments in accordance with the current major mode.
5286
5287 *** The new package xml.el provides a simple but generic XML
5288 parser. It doesn't parse the DTDs however.
5289
5290 *** The comment operations are now provided by the newcomment.el
5291 package which allows different styles of comment-region and should
5292 be more robust while offering the same functionality.
5293 `comment-region' now doesn't always comment a-line-at-a-time, but only
5294 comments the region, breaking the line at point if necessary.
5295
5296 *** The Ebrowse package implements a C++ class browser and tags
5297 facilities tailored for use with C++. It is documented in a
5298 separate Texinfo file.
5299
5300 *** The PCL-CVS package available by either running M-x cvs-examine or
5301 by visiting a CVS administrative directory (with a prefix argument)
5302 provides an alternative interface to VC-dired for CVS. It comes with
5303 `log-view-mode' to view RCS and SCCS logs and `log-edit-mode' used to
5304 enter check-in log messages.
5305
5306 *** The new package called `woman' allows to browse Unix man pages
5307 without invoking external programs.
5308
5309 The command `M-x woman' formats manual pages entirely in Emacs Lisp
5310 and then displays them, like `M-x manual-entry' does. Unlike
5311 `manual-entry', `woman' does not invoke any external programs, so it
5312 is useful on systems such as MS-DOS/MS-Windows where the `man' and
5313 Groff or `troff' commands are not readily available.
5314
5315 The command `M-x woman-find-file' asks for the file name of a man
5316 page, then formats and displays it like `M-x woman' does.
5317
5318 *** The new command M-x re-builder offers a convenient interface for
5319 authoring regular expressions with immediate visual feedback.
5320
5321 The buffer from which the command was called becomes the target for
5322 the regexp editor popping up in a separate window. Matching text in
5323 the target buffer is immediately color marked during the editing.
5324 Each sub-expression of the regexp will show up in a different face so
5325 even complex regexps can be edited and verified on target data in a
5326 single step.
5327
5328 On displays not supporting faces the matches instead blink like
5329 matching parens to make them stand out. On such a setup you will
5330 probably also want to use the sub-expression mode when the regexp
5331 contains such to get feedback about their respective limits.
5332
5333 *** glasses-mode is a minor mode that makes
5334 unreadableIdentifiersLikeThis readable. It works as glasses, without
5335 actually modifying content of a buffer.
5336
5337 *** The package ebnf2ps translates an EBNF to a syntactic chart in
5338 PostScript.
5339
5340 Currently accepts ad-hoc EBNF, ISO EBNF and Bison/Yacc.
5341
5342 The ad-hoc default EBNF syntax has the following elements:
5343
5344 ; comment (until end of line)
5345 A non-terminal
5346 "C" terminal
5347 ?C? special
5348 $A default non-terminal
5349 $"C" default terminal
5350 $?C? default special
5351 A = B. production (A is the header and B the body)
5352 C D sequence (C occurs before D)
5353 C | D alternative (C or D occurs)
5354 A - B exception (A excluding B, B without any non-terminal)
5355 n * A repetition (A repeats n (integer) times)
5356 (C) group (expression C is grouped together)
5357 [C] optional (C may or not occurs)
5358 C+ one or more occurrences of C
5359 {C}+ one or more occurrences of C
5360 {C}* zero or more occurrences of C
5361 {C} zero or more occurrences of C
5362 C / D equivalent to: C {D C}*
5363 {C || D}+ equivalent to: C {D C}*
5364 {C || D}* equivalent to: [C {D C}*]
5365 {C || D} equivalent to: [C {D C}*]
5366
5367 Please, see ebnf2ps documentation for EBNF syntax and how to use it.
5368
5369 *** The package align.el will align columns within a region, using M-x
5370 align. Its mode-specific rules, based on regular expressions,
5371 determine where the columns should be split. In C and C++, for
5372 example, it will align variable names in declaration lists, or the
5373 equal signs of assignments.
5374
5375 *** `paragraph-indent-minor-mode' is a new minor mode supporting
5376 paragraphs in the same style as `paragraph-indent-text-mode'.
5377
5378 *** bs.el is a new package for buffer selection similar to
5379 list-buffers or electric-buffer-list. Use M-x bs-show to display a
5380 buffer menu with this package. See the Custom group `bs'.
5381
5382 *** find-lisp.el is a package emulating the Unix find command in Lisp.
5383
5384 *** calculator.el is a small calculator package that is intended to
5385 replace desktop calculators such as xcalc and calc.exe. Actually, it
5386 is not too small - it has more features than most desktop calculators,
5387 and can be customized easily to get many more functions. It should
5388 not be confused with "calc" which is a much bigger mathematical tool
5389 which answers different needs.
5390
5391 *** The minor modes cwarn-mode and global-cwarn-mode highlights
5392 suspicious C and C++ constructions. Currently, assignments inside
5393 expressions, semicolon following `if', `for' and `while' (except, of
5394 course, after a `do .. while' statement), and C++ functions with
5395 reference parameters are recognized. The modes require font-lock mode
5396 to be enabled.
5397
5398 *** smerge-mode.el provides `smerge-mode', a simple minor-mode for files
5399 containing diff3-style conflict markers, such as generated by RCS.
5400
5401 *** 5x5.el is a simple puzzle game.
5402
5403 *** hl-line.el provides `hl-line-mode', a minor mode to highlight the
5404 current line in the current buffer. It also provides
5405 `global-hl-line-mode' to provide the same behavior in all buffers.
5406
5407 *** ansi-color.el translates ANSI terminal escapes into text-properties.
5408
5409 Please note: if `ansi-color-for-comint-mode' and
5410 `global-font-lock-mode' are non-nil, loading ansi-color.el will
5411 disable font-lock and add `ansi-color-apply' to
5412 `comint-preoutput-filter-functions' for all shell-mode buffers. This
5413 displays the output of "ls --color=yes" using the correct foreground
5414 and background colors.
5415
5416 *** delphi.el provides a major mode for editing the Delphi (Object
5417 Pascal) language.
5418
5419 *** quickurl.el provides a simple method of inserting a URL based on
5420 the text at point.
5421
5422 *** sql.el provides an interface to SQL data bases.
5423
5424 *** fortune.el uses the fortune program to create mail/news signatures.
5425
5426 *** whitespace.el is a package for warning about and cleaning bogus
5427 whitespace in a file.
5428
5429 *** PostScript mode (ps-mode) is a new major mode for editing PostScript
5430 files. It offers: interaction with a PostScript interpreter, including
5431 (very basic) error handling; fontification, easily customizable for
5432 interpreter messages; auto-indentation; insertion of EPSF templates and
5433 often used code snippets; viewing of BoundingBox; commenting out /
5434 uncommenting regions; conversion of 8bit characters to PostScript octal
5435 codes. All functionality is accessible through a menu.
5436
5437 *** delim-col helps to prettify columns in a text region or rectangle.
5438
5439 Here is an example of columns:
5440
5441 horse apple bus
5442 dog pineapple car EXTRA
5443 porcupine strawberry airplane
5444
5445 Doing the following settings:
5446
5447 (setq delimit-columns-str-before "[ ")
5448 (setq delimit-columns-str-after " ]")
5449 (setq delimit-columns-str-separator ", ")
5450 (setq delimit-columns-separator "\t")
5451
5452
5453 Selecting the lines above and typing:
5454
5455 M-x delimit-columns-region
5456
5457 It results:
5458
5459 [ horse , apple , bus , ]
5460 [ dog , pineapple , car , EXTRA ]
5461 [ porcupine, strawberry, airplane, ]
5462
5463 delim-col has the following options:
5464
5465 delimit-columns-str-before Specify a string to be inserted
5466 before all columns.
5467
5468 delimit-columns-str-separator Specify a string to be inserted
5469 between each column.
5470
5471 delimit-columns-str-after Specify a string to be inserted
5472 after all columns.
5473
5474 delimit-columns-separator Specify a regexp which separates
5475 each column.
5476
5477 delim-col has the following commands:
5478
5479 delimit-columns-region Prettify all columns in a text region.
5480 delimit-columns-rectangle Prettify all columns in a text rectangle.
5481
5482 *** Recentf mode maintains a menu for visiting files that were
5483 operated on recently. User option recentf-menu-filter specifies a
5484 menu filter function to change the menu appearance. For example, the
5485 recent file list can be displayed:
5486
5487 - organized by major modes, directories or user defined rules.
5488 - sorted by file paths, file names, ascending or descending.
5489 - showing paths relative to the current default-directory
5490
5491 The `recentf-filter-changer' menu filter function allows to
5492 dynamically change the menu appearance.
5493
5494 *** elide-head.el provides a mechanism for eliding boilerplate header
5495 text.
5496
5497 *** footnote.el provides `footnote-mode', a minor mode supporting use
5498 of footnotes. It is intended for use with Message mode, but isn't
5499 specific to Message mode.
5500
5501 *** diff-mode.el provides `diff-mode', a major mode for
5502 viewing/editing context diffs (patches). It is selected for files
5503 with extension `.diff', `.diffs', `.patch' and `.rej'.
5504
5505 *** EUDC, the Emacs Unified Directory Client, provides a common user
5506 interface to access directory servers using different directory
5507 protocols. It has a separate manual.
5508
5509 *** autoconf.el provides a major mode for editing configure.in files
5510 for Autoconf, selected automatically.
5511
5512 *** windmove.el provides moving between windows.
5513
5514 *** crm.el provides a facility to read multiple strings from the
5515 minibuffer with completion.
5516
5517 *** todo-mode.el provides management of TODO lists and integration
5518 with the diary features.
5519
5520 *** autoarg.el provides a feature reported from Twenex Emacs whereby
5521 numeric keys supply prefix args rather than self inserting.
5522
5523 *** The function `turn-off-auto-fill' unconditionally turns off Auto
5524 Fill mode.
5525
5526 *** pcomplete.el is a library that provides programmable completion
5527 facilities for Emacs, similar to what zsh and tcsh offer. The main
5528 difference is that completion functions are written in Lisp, meaning
5529 they can be profiled, debugged, etc.
5530
5531 *** antlr-mode is a new major mode for editing ANTLR grammar files.
5532 It is automatically turned on for files whose names have the extension
5533 `.g'.
5534
5535 ** Changes in sort.el
5536
5537 The function sort-numeric-fields interprets numbers starting with `0'
5538 as octal and numbers starting with `0x' or `0X' as hexadecimal. The
5539 new user-option sort-numeric-base can be used to specify a default
5540 numeric base.
5541
5542 ** Changes to Ange-ftp
5543
5544 *** Ange-ftp allows you to specify of a port number in remote file
5545 names cleanly. It is appended to the host name, separated by a hash
5546 sign, e.g. `/foo@bar.org#666:mumble'. (This syntax comes from EFS.)
5547
5548 *** If the new user-option `ange-ftp-try-passive-mode' is set, passive
5549 ftp mode will be used if the ftp client supports that.
5550
5551 *** Ange-ftp handles the output of the w32-style clients which
5552 output ^M at the end of lines.
5553
5554 ** The recommended way of using Iswitchb is via the new global minor
5555 mode `iswitchb-mode'.
5556
5557 ** Just loading the msb package doesn't switch on Msb mode anymore.
5558 If you have `(require 'msb)' in your .emacs, please replace it with
5559 `(msb-mode 1)'.
5560
5561 ** Flyspell mode has various new options. See the `flyspell' Custom
5562 group.
5563
5564 ** The user option `backward-delete-char-untabify-method' controls the
5565 behavior of `backward-delete-char-untabify'. The following values
5566 are recognized:
5567
5568 `untabify' -- turn a tab to many spaces, then delete one space;
5569 `hungry' -- delete all whitespace, both tabs and spaces;
5570 `all' -- delete all whitespace, including tabs, spaces and newlines;
5571 nil -- just delete one character.
5572
5573 Default value is `untabify'.
5574
5575 [This change was made in Emacs 20.3 but not mentioned then.]
5576
5577 ** In Cperl mode `cperl-invalid-face' should now be a normal face
5578 symbol, not double-quoted.
5579
5580 ** Some packages are declared obsolete, to be removed in a future
5581 version. They are: auto-show, c-mode, hilit19, hscroll, ooutline,
5582 profile, rnews, rnewspost, and sc. Their implementations have been
5583 moved to lisp/obsolete.
5584
5585 ** auto-compression mode is no longer enabled just by loading jka-compr.el.
5586 To control it, set `auto-compression-mode' via Custom or use the
5587 `auto-compression-mode' command.
5588
5589 ** `browse-url-gnome-moz' is a new option for
5590 `browse-url-browser-function', invoking Mozilla in GNOME, and
5591 `browse-url-kde' can be chosen for invoking the KDE browser.
5592
5593 ** The user-option `browse-url-new-window-p' has been renamed to
5594 `browse-url-new-window-flag'.
5595
5596 ** The functions `keep-lines', `flush-lines' and `how-many' now
5597 operate on the active region in Transient Mark mode.
5598
5599 ** `gnus-user-agent' is a new possibility for `mail-user-agent'. It
5600 is like `message-user-agent', but with all the Gnus paraphernalia.
5601
5602 ** The Strokes package has been updated. If your Emacs has XPM
5603 support, you can use it for pictographic editing. In Strokes mode,
5604 use C-mouse-2 to compose a complex stoke and insert it into the
5605 buffer. You can encode or decode a strokes buffer with new commands
5606 M-x strokes-encode-buffer and M-x strokes-decode-buffer. There is a
5607 new command M-x strokes-list-strokes.
5608
5609 ** Hexl contains a new command `hexl-insert-hex-string' which inserts
5610 a string of hexadecimal numbers read from the mini-buffer.
5611
5612 ** Hexl mode allows to insert non-ASCII characters.
5613
5614 The non-ASCII characters are encoded using the same encoding as the
5615 file you are visiting in Hexl mode.
5616
5617 ** Shell script mode changes.
5618
5619 Shell script mode (sh-script) can now indent scripts for shells
5620 derived from sh and rc. The indentation style is customizable, and
5621 sh-script can attempt to "learn" the current buffer's style.
5622
5623 ** Etags changes.
5624
5625 *** In DOS, etags looks for file.cgz if it cannot find file.c.
5626
5627 *** New option --ignore-case-regex is an alternative to --regex. It is now
5628 possible to bind a regexp to a language, by prepending the regexp with
5629 {lang}, where lang is one of the languages that `etags --help' prints out.
5630 This feature is useful especially for regex files, where each line contains
5631 a regular expression. The manual contains details.
5632
5633 *** In C and derived languages, etags creates tags for function
5634 declarations when given the --declarations option.
5635
5636 *** In C++, tags are created for "operator". The tags have the form
5637 "operator+", without spaces between the keyword and the operator.
5638
5639 *** You shouldn't generally need any more the -C or -c++ option: etags
5640 automatically switches to C++ parsing when it meets the `class' or
5641 `template' keywords.
5642
5643 *** Etags now is able to delve at arbitrary deeps into nested structures in
5644 C-like languages. Previously, it was limited to one or two brace levels.
5645
5646 *** New language Ada: tags are functions, procedures, packages, tasks, and
5647 types.
5648
5649 *** In Fortran, `procedure' is not tagged.
5650
5651 *** In Java, tags are created for "interface".
5652
5653 *** In Lisp, "(defstruct (foo", "(defun (operator" and similar constructs
5654 are now tagged.
5655
5656 *** In makefiles, tags the targets.
5657
5658 *** In Perl, the --globals option tags global variables. my and local
5659 variables are tagged.
5660
5661 *** New language Python: def and class at the beginning of a line are tags.
5662
5663 *** .ss files are Scheme files, .pdb is Postscript with C syntax, .psw is
5664 for PSWrap.
5665
5666 ** Changes in etags.el
5667
5668 *** The new user-option tags-case-fold-search can be used to make
5669 tags operations case-sensitive or case-insensitive. The default
5670 is to use the same setting as case-fold-search.
5671
5672 *** You can display additional output with M-x tags-apropos by setting
5673 the new variable tags-apropos-additional-actions.
5674
5675 If non-nil, the variable's value should be a list of triples (TITLE
5676 FUNCTION TO-SEARCH). For each triple, M-x tags-apropos processes
5677 TO-SEARCH and lists tags from it. TO-SEARCH should be an alist,
5678 obarray, or symbol. If it is a symbol, the symbol's value is used.
5679
5680 TITLE is a string to use to label the list of tags from TO-SEARCH.
5681
5682 FUNCTION is a function to call when an entry is selected in the Tags
5683 List buffer. It is called with one argument, the selected symbol.
5684
5685 A useful example value for this variable might be something like:
5686
5687 '(("Emacs Lisp" Info-goto-emacs-command-node obarray)
5688 ("Common Lisp" common-lisp-hyperspec common-lisp-hyperspec-obarray)
5689 ("SCWM" scwm-documentation scwm-obarray))
5690
5691 *** The face tags-tag-face can be used to customize the appearance
5692 of tags in the output of M-x tags-apropos.
5693
5694 *** Setting tags-apropos-verbose to a non-nil value displays the
5695 names of tags files in the *Tags List* buffer.
5696
5697 *** You can now search for tags that are part of the filename itself.
5698 If you have tagged the files topfile.c subdir/subfile.c
5699 /tmp/tempfile.c, you can now search for tags "topfile.c", "subfile.c",
5700 "dir/sub", "tempfile", "tempfile.c". If the tag matches the file name,
5701 point will go to the beginning of the file.
5702
5703 *** Compressed files are now transparently supported if
5704 auto-compression-mode is active. You can tag (with Etags) and search
5705 (with find-tag) both compressed and uncompressed files.
5706
5707 *** Tags commands like M-x tags-search no longer change point
5708 in buffers where no match is found. In buffers where a match is
5709 found, the original value of point is pushed on the marker ring.
5710
5711 ** Fortran mode has a new command `fortran-strip-sequence-nos' to
5712 remove text past column 72. The syntax class of `\' in Fortran is now
5713 appropriate for C-style escape sequences in strings.
5714
5715 ** SGML mode's default `sgml-validate-command' is now `nsgmls'.
5716
5717 ** A new command `view-emacs-problems' (C-h P) displays the PROBLEMS file.
5718
5719 ** The Dabbrev package has a new user-option `dabbrev-ignored-regexps'
5720 containing a list of regular expressions. Buffers matching a regular
5721 expression from that list, are not checked.
5722
5723 ** Emacs can now figure out modification times of remote files.
5724 When you do C-x C-f /user@host:/path/file RET and edit the file,
5725 and someone else modifies the file, you will be prompted to revert
5726 the buffer, just like for the local files.
5727
5728 ** The buffer menu (C-x C-b) no longer lists the *Buffer List* buffer.
5729
5730 ** When invoked with a prefix argument, the command `list-abbrevs' now
5731 displays local abbrevs, only.
5732
5733 ** Refill minor mode provides preliminary support for keeping
5734 paragraphs filled as you modify them.
5735
5736 ** The variable `double-click-fuzz' specifies how much the mouse
5737 may be moved between clicks that are recognized as a pair. Its value
5738 is measured in pixels.
5739
5740 ** The new global minor mode `auto-image-file-mode' allows image files
5741 to be visited as images.
5742
5743 ** Two new user-options `grep-command' and `grep-find-command'
5744 were added to compile.el.
5745
5746 ** Withdrawn packages
5747
5748 *** mldrag.el has been removed. mouse.el provides the same
5749 functionality with aliases for the mldrag functions.
5750
5751 *** eval-reg.el has been obsoleted by changes to edebug.el and removed.
5752
5753 *** ph.el has been obsoleted by EUDC and removed.
5754
5755 \f
5756 * Incompatible Lisp changes
5757
5758 There are a few Lisp changes which are not backwards-compatible and
5759 may require changes to existing code. Here is a list for reference.
5760 See the sections below for details.
5761
5762 ** Since `format' preserves text properties, the idiom
5763 `(format "%s" foo)' no longer works to copy and remove properties.
5764 Use `copy-sequence' to copy the string, then use `set-text-properties'
5765 to remove the properties of the copy.
5766
5767 ** Since the `keymap' text property now has significance, some code
5768 which uses both `local-map' and `keymap' properties (for portability)
5769 may, for instance, give rise to duplicate menus when the keymaps from
5770 these properties are active.
5771
5772 ** The change in the treatment of non-ASCII characters in search
5773 ranges may affect some code.
5774
5775 ** A non-nil value for the LOCAL arg of add-hook makes the hook
5776 buffer-local even if `make-local-hook' hasn't been called, which might
5777 make a difference to some code.
5778
5779 ** The new treatment of the minibuffer prompt might affect code which
5780 operates on the minibuffer.
5781
5782 ** The new character sets `eight-bit-control' and `eight-bit-graphic'
5783 cause `no-conversion' and `emacs-mule-unix' coding systems to produce
5784 different results when reading files with non-ASCII characters
5785 (previously, both coding systems would produce the same results).
5786 Specifically, `no-conversion' interprets each 8-bit byte as a separate
5787 character. This makes `no-conversion' inappropriate for reading
5788 multibyte text, e.g. buffers written to disk in their internal MULE
5789 encoding (auto-saving does that, for example). If a Lisp program
5790 reads such files with `no-conversion', each byte of the multibyte
5791 sequence, including the MULE leading codes such as \201, is treated as
5792 a separate character, which prevents them from being interpreted in
5793 the buffer as multibyte characters.
5794
5795 Therefore, Lisp programs that read files which contain the internal
5796 MULE encoding should use `emacs-mule-unix'. `no-conversion' is only
5797 appropriate for reading truly binary files.
5798
5799 ** Code that relies on the obsolete `before-change-function' and
5800 `after-change-function' to detect buffer changes will now fail. Use
5801 `before-change-functions' and `after-change-functions' instead.
5802
5803 ** Code that uses `concat' with integer args now gets an error, as
5804 long promised. So does any code that uses derivatives of `concat',
5805 such as `mapconcat'.
5806
5807 ** The function base64-decode-string now always returns a unibyte
5808 string.
5809
5810 ** Not a Lisp incompatibility as such but, with the introduction of
5811 extra private charsets, there is now only one slot free for a new
5812 dimension-2 private charset. User code which tries to add more than
5813 one extra will fail unless you rebuild Emacs with some standard
5814 charset(s) removed; that is probably inadvisable because it changes
5815 the emacs-mule encoding. Also, files stored in the emacs-mule
5816 encoding using Emacs 20 with additional private charsets defined will
5817 probably not be read correctly by Emacs 21.
5818
5819 ** The variable `directory-sep-char' is slated for removal.
5820 Not really a change (yet), but a projected one that you should be
5821 aware of: The variable `directory-sep-char' is deprecated, and should
5822 not be used. It was always ignored on GNU/Linux and Unix systems and
5823 on MS-DOS, but the MS-Windows port tried to support it by adapting the
5824 behavior of certain primitives to the value of this variable. It
5825 turned out that such support cannot be reliable, so it was decided to
5826 remove this variable in the near future. Lisp programs are well
5827 advised not to set it to anything but '/', because any different value
5828 will not have any effect when support for this variable is removed.
5829
5830 \f
5831 * Lisp changes made after edition 2.6 of the Emacs Lisp Manual,
5832 (Display-related features are described in a page of their own below.)
5833
5834 ** Function assq-delete-all replaces function assoc-delete-all.
5835
5836 ** The new function animate-string, from lisp/play/animate.el
5837 allows the animated display of strings.
5838
5839 ** The new function `interactive-form' can be used to obtain the
5840 interactive form of a function.
5841
5842 ** The keyword :set-after in defcustom allows to specify dependencies
5843 between custom options. Example:
5844
5845 (defcustom default-input-method nil
5846 "*Default input method for multilingual text (a string).
5847 This is the input method activated automatically by the command
5848 `toggle-input-method' (\\[toggle-input-method])."
5849 :group 'mule
5850 :type '(choice (const nil) string)
5851 :set-after '(current-language-environment))
5852
5853 This specifies that default-input-method should be set after
5854 current-language-environment even if default-input-method appears
5855 first in a custom-set-variables statement.
5856
5857 ** The new hook `kbd-macro-termination-hook' is run at the end of
5858 function execute-kbd-macro. Functions on this hook are called with no
5859 args. The hook is run independent of how the macro was terminated
5860 (signal or normal termination).
5861
5862 ** Functions `butlast' and `nbutlast' for removing trailing elements
5863 from a list are now available without requiring the CL package.
5864
5865 ** The new user-option `even-window-heights' can be set to nil
5866 to prevent `display-buffer' from evening out window heights.
5867
5868 ** The user-option `face-font-registry-alternatives' specifies
5869 alternative font registry names to try when looking for a font.
5870
5871 ** Function `md5' calculates the MD5 "message digest"/"checksum".
5872
5873 ** Function `delete-frame' runs `delete-frame-hook' before actually
5874 deleting the frame. The hook is called with one arg, the frame
5875 being deleted.
5876
5877 ** `add-hook' now makes the hook local if called with a non-nil LOCAL arg.
5878
5879 ** The treatment of non-ASCII characters in search ranges has changed.
5880 If a range in a regular expression or the arg of
5881 skip-chars-forward/backward starts with a unibyte character C and ends
5882 with a multibyte character C2, the range is divided into two: one is
5883 C..?\377, the other is C1..C2, where C1 is the first character of C2's
5884 charset.
5885
5886 ** The new function `display-message-or-buffer' displays a message in
5887 the echo area or pops up a buffer, depending on the length of the
5888 message.
5889
5890 ** The new macro `with-auto-compression-mode' allows evaluating an
5891 expression with auto-compression-mode enabled.
5892
5893 ** In image specifications, `:heuristic-mask' has been replaced
5894 with the more general `:mask' property.
5895
5896 ** Image specifications accept more `:conversion's.
5897
5898 ** A `?' can be used in a symbol name without escaping it with a
5899 backslash.
5900
5901 ** Reading from the mini-buffer now reads from standard input if Emacs
5902 is running in batch mode. For example,
5903
5904 (message "%s" (read t))
5905
5906 will read a Lisp expression from standard input and print the result
5907 to standard output.
5908
5909 ** The argument of `down-list', `backward-up-list', `up-list',
5910 `kill-sexp', `backward-kill-sexp' and `mark-sexp' is now optional.
5911
5912 ** If `display-buffer-reuse-frames' is set, function `display-buffer'
5913 will raise frames displaying a buffer, instead of creating a new
5914 frame or window.
5915
5916 ** Two new functions for removing elements from lists/sequences
5917 were added
5918
5919 - Function: remove ELT SEQ
5920
5921 Return a copy of SEQ with all occurrences of ELT removed. SEQ must be
5922 a list, vector, or string. The comparison is done with `equal'.
5923
5924 - Function: remq ELT LIST
5925
5926 Return a copy of LIST with all occurrences of ELT removed. The
5927 comparison is done with `eq'.
5928
5929 ** The function `delete' now also works with vectors and strings.
5930
5931 ** The meaning of the `:weakness WEAK' argument of make-hash-table
5932 has been changed: WEAK can now have new values `key-or-value' and
5933 `key-and-value', in addition to `nil', `key', `value', and `t'.
5934
5935 ** Function `aset' stores any multibyte character in any string
5936 without signaling "Attempt to change char length of a string". It may
5937 convert a unibyte string to multibyte if necessary.
5938
5939 ** The value of the `help-echo' text property is called as a function
5940 or evaluated, if it is not a string already, to obtain a help string.
5941
5942 ** Function `make-obsolete' now has an optional arg to say when the
5943 function was declared obsolete.
5944
5945 ** Function `plist-member' is renamed from `widget-plist-member' (which is
5946 retained as an alias).
5947
5948 ** Easy-menu's :filter now works as in XEmacs.
5949 It takes the unconverted (i.e. XEmacs) form of the menu and the result
5950 is automatically converted to Emacs' form.
5951
5952 ** The new function `window-list' has been defined
5953
5954 - Function: window-list &optional FRAME WINDOW MINIBUF
5955
5956 Return a list of windows on FRAME, starting with WINDOW. FRAME nil or
5957 omitted means use the selected frame. WINDOW nil or omitted means use
5958 the selected window. MINIBUF t means include the minibuffer window,
5959 even if it isn't active. MINIBUF nil or omitted means include the
5960 minibuffer window only if it's active. MINIBUF neither nil nor t
5961 means never include the minibuffer window.
5962
5963 ** There's a new function `get-window-with-predicate' defined as follows
5964
5965 - Function: get-window-with-predicate PREDICATE &optional MINIBUF ALL-FRAMES DEFAULT
5966
5967 Return a window satisfying PREDICATE.
5968
5969 This function cycles through all visible windows using `walk-windows',
5970 calling PREDICATE on each one. PREDICATE is called with a window as
5971 argument. The first window for which PREDICATE returns a non-nil
5972 value is returned. If no window satisfies PREDICATE, DEFAULT is
5973 returned.
5974
5975 Optional second arg MINIBUF t means count the minibuffer window even
5976 if not active. MINIBUF nil or omitted means count the minibuffer iff
5977 it is active. MINIBUF neither t nor nil means not to count the
5978 minibuffer even if it is active.
5979
5980 Several frames may share a single minibuffer; if the minibuffer
5981 counts, all windows on all frames that share that minibuffer count
5982 too. Therefore, if you are using a separate minibuffer frame
5983 and the minibuffer is active and MINIBUF says it counts,
5984 `walk-windows' includes the windows in the frame from which you
5985 entered the minibuffer, as well as the minibuffer window.
5986
5987 ALL-FRAMES is the optional third argument.
5988 ALL-FRAMES nil or omitted means cycle within the frames as specified above.
5989 ALL-FRAMES = `visible' means include windows on all visible frames.
5990 ALL-FRAMES = 0 means include windows on all visible and iconified frames.
5991 ALL-FRAMES = t means include windows on all frames including invisible frames.
5992 If ALL-FRAMES is a frame, it means include windows on that frame.
5993 Anything else means restrict to the selected frame.
5994
5995 ** The function `single-key-description' now encloses function key and
5996 event names in angle brackets. When called with a second optional
5997 argument non-nil, angle brackets won't be printed.
5998
5999 ** If the variable `message-truncate-lines' is bound to t around a
6000 call to `message', the echo area will not be resized to display that
6001 message; it will be truncated instead, as it was done in 20.x.
6002 Default value is nil.
6003
6004 ** The user option `line-number-display-limit' can now be set to nil,
6005 meaning no limit.
6006
6007 ** The new user option `line-number-display-limit-width' controls
6008 the maximum width of lines in a buffer for which Emacs displays line
6009 numbers in the mode line. The default is 200.
6010
6011 ** `select-safe-coding-system' now also checks the most preferred
6012 coding-system if buffer-file-coding-system is `undecided' and
6013 DEFAULT-CODING-SYSTEM is not specified,
6014
6015 ** The function `subr-arity' provides information about the argument
6016 list of a primitive.
6017
6018 ** `where-is-internal' now also accepts a list of keymaps.
6019
6020 ** The text property `keymap' specifies a key map which overrides the
6021 buffer's local map and the map specified by the `local-map' property.
6022 This is probably what most current uses of `local-map' want, rather
6023 than replacing the local map.
6024
6025 ** The obsolete variables `before-change-function' and
6026 `after-change-function' are no longer acted upon and have been
6027 removed. Use `before-change-functions' and `after-change-functions'
6028 instead.
6029
6030 ** The function `apropos-mode' runs the hook `apropos-mode-hook'.
6031
6032 ** `concat' no longer accepts individual integer arguments,
6033 as promised long ago.
6034
6035 ** The new function `float-time' returns the current time as a float.
6036
6037 ** The new variable auto-coding-regexp-alist specifies coding systems
6038 for reading specific files, analogous to auto-coding-alist, but
6039 patterns are checked against file contents instead of file names.
6040
6041 \f
6042 * Lisp changes in Emacs 21.1 (see following page for display-related features)
6043
6044 ** The new package rx.el provides an alternative sexp notation for
6045 regular expressions.
6046
6047 - Function: rx-to-string SEXP
6048
6049 Translate SEXP into a regular expression in string notation.
6050
6051 - Macro: rx SEXP
6052
6053 Translate SEXP into a regular expression in string notation.
6054
6055 The following are valid subforms of regular expressions in sexp
6056 notation.
6057
6058 STRING
6059 matches string STRING literally.
6060
6061 CHAR
6062 matches character CHAR literally.
6063
6064 `not-newline'
6065 matches any character except a newline.
6066 .
6067 `anything'
6068 matches any character
6069
6070 `(any SET)'
6071 matches any character in SET. SET may be a character or string.
6072 Ranges of characters can be specified as `A-Z' in strings.
6073
6074 '(in SET)'
6075 like `any'.
6076
6077 `(not (any SET))'
6078 matches any character not in SET
6079
6080 `line-start'
6081 matches the empty string, but only at the beginning of a line
6082 in the text being matched
6083
6084 `line-end'
6085 is similar to `line-start' but matches only at the end of a line
6086
6087 `string-start'
6088 matches the empty string, but only at the beginning of the
6089 string being matched against.
6090
6091 `string-end'
6092 matches the empty string, but only at the end of the
6093 string being matched against.
6094
6095 `buffer-start'
6096 matches the empty string, but only at the beginning of the
6097 buffer being matched against.
6098
6099 `buffer-end'
6100 matches the empty string, but only at the end of the
6101 buffer being matched against.
6102
6103 `point'
6104 matches the empty string, but only at point.
6105
6106 `word-start'
6107 matches the empty string, but only at the beginning or end of a
6108 word.
6109
6110 `word-end'
6111 matches the empty string, but only at the end of a word.
6112
6113 `word-boundary'
6114 matches the empty string, but only at the beginning or end of a
6115 word.
6116
6117 `(not word-boundary)'
6118 matches the empty string, but not at the beginning or end of a
6119 word.
6120
6121 `digit'
6122 matches 0 through 9.
6123
6124 `control'
6125 matches ASCII control characters.
6126
6127 `hex-digit'
6128 matches 0 through 9, a through f and A through F.
6129
6130 `blank'
6131 matches space and tab only.
6132
6133 `graphic'
6134 matches graphic characters--everything except ASCII control chars,
6135 space, and DEL.
6136
6137 `printing'
6138 matches printing characters--everything except ASCII control chars
6139 and DEL.
6140
6141 `alphanumeric'
6142 matches letters and digits. (But at present, for multibyte characters,
6143 it matches anything that has word syntax.)
6144
6145 `letter'
6146 matches letters. (But at present, for multibyte characters,
6147 it matches anything that has word syntax.)
6148
6149 `ascii'
6150 matches ASCII (unibyte) characters.
6151
6152 `nonascii'
6153 matches non-ASCII (multibyte) characters.
6154
6155 `lower'
6156 matches anything lower-case.
6157
6158 `upper'
6159 matches anything upper-case.
6160
6161 `punctuation'
6162 matches punctuation. (But at present, for multibyte characters,
6163 it matches anything that has non-word syntax.)
6164
6165 `space'
6166 matches anything that has whitespace syntax.
6167
6168 `word'
6169 matches anything that has word syntax.
6170
6171 `(syntax SYNTAX)'
6172 matches a character with syntax SYNTAX. SYNTAX must be one
6173 of the following symbols.
6174
6175 `whitespace' (\\s- in string notation)
6176 `punctuation' (\\s.)
6177 `word' (\\sw)
6178 `symbol' (\\s_)
6179 `open-parenthesis' (\\s()
6180 `close-parenthesis' (\\s))
6181 `expression-prefix' (\\s')
6182 `string-quote' (\\s\")
6183 `paired-delimiter' (\\s$)
6184 `escape' (\\s\\)
6185 `character-quote' (\\s/)
6186 `comment-start' (\\s<)
6187 `comment-end' (\\s>)
6188
6189 `(not (syntax SYNTAX))'
6190 matches a character that has not syntax SYNTAX.
6191
6192 `(category CATEGORY)'
6193 matches a character with category CATEGORY. CATEGORY must be
6194 either a character to use for C, or one of the following symbols.
6195
6196 `consonant' (\\c0 in string notation)
6197 `base-vowel' (\\c1)
6198 `upper-diacritical-mark' (\\c2)
6199 `lower-diacritical-mark' (\\c3)
6200 `tone-mark' (\\c4)
6201 `symbol' (\\c5)
6202 `digit' (\\c6)
6203 `vowel-modifying-diacritical-mark' (\\c7)
6204 `vowel-sign' (\\c8)
6205 `semivowel-lower' (\\c9)
6206 `not-at-end-of-line' (\\c<)
6207 `not-at-beginning-of-line' (\\c>)
6208 `alpha-numeric-two-byte' (\\cA)
6209 `chinse-two-byte' (\\cC)
6210 `greek-two-byte' (\\cG)
6211 `japanese-hiragana-two-byte' (\\cH)
6212 `indian-two-byte' (\\cI)
6213 `japanese-katakana-two-byte' (\\cK)
6214 `korean-hangul-two-byte' (\\cN)
6215 `cyrillic-two-byte' (\\cY)
6216 `ascii' (\\ca)
6217 `arabic' (\\cb)
6218 `chinese' (\\cc)
6219 `ethiopic' (\\ce)
6220 `greek' (\\cg)
6221 `korean' (\\ch)
6222 `indian' (\\ci)
6223 `japanese' (\\cj)
6224 `japanese-katakana' (\\ck)
6225 `latin' (\\cl)
6226 `lao' (\\co)
6227 `tibetan' (\\cq)
6228 `japanese-roman' (\\cr)
6229 `thai' (\\ct)
6230 `vietnamese' (\\cv)
6231 `hebrew' (\\cw)
6232 `cyrillic' (\\cy)
6233 `can-break' (\\c|)
6234
6235 `(not (category CATEGORY))'
6236 matches a character that has not category CATEGORY.
6237
6238 `(and SEXP1 SEXP2 ...)'
6239 matches what SEXP1 matches, followed by what SEXP2 matches, etc.
6240
6241 `(submatch SEXP1 SEXP2 ...)'
6242 like `and', but makes the match accessible with `match-end',
6243 `match-beginning', and `match-string'.
6244
6245 `(group SEXP1 SEXP2 ...)'
6246 another name for `submatch'.
6247
6248 `(or SEXP1 SEXP2 ...)'
6249 matches anything that matches SEXP1 or SEXP2, etc. If all
6250 args are strings, use `regexp-opt' to optimize the resulting
6251 regular expression.
6252
6253 `(minimal-match SEXP)'
6254 produce a non-greedy regexp for SEXP. Normally, regexps matching
6255 zero or more occurrences of something are \"greedy\" in that they
6256 match as much as they can, as long as the overall regexp can
6257 still match. A non-greedy regexp matches as little as possible.
6258
6259 `(maximal-match SEXP)'
6260 produce a greedy regexp for SEXP. This is the default.
6261
6262 `(zero-or-more SEXP)'
6263 matches zero or more occurrences of what SEXP matches.
6264
6265 `(0+ SEXP)'
6266 like `zero-or-more'.
6267
6268 `(* SEXP)'
6269 like `zero-or-more', but always produces a greedy regexp.
6270
6271 `(*? SEXP)'
6272 like `zero-or-more', but always produces a non-greedy regexp.
6273
6274 `(one-or-more SEXP)'
6275 matches one or more occurrences of A.
6276
6277 `(1+ SEXP)'
6278 like `one-or-more'.
6279
6280 `(+ SEXP)'
6281 like `one-or-more', but always produces a greedy regexp.
6282
6283 `(+? SEXP)'
6284 like `one-or-more', but always produces a non-greedy regexp.
6285
6286 `(zero-or-one SEXP)'
6287 matches zero or one occurrences of A.
6288
6289 `(optional SEXP)'
6290 like `zero-or-one'.
6291
6292 `(? SEXP)'
6293 like `zero-or-one', but always produces a greedy regexp.
6294
6295 `(?? SEXP)'
6296 like `zero-or-one', but always produces a non-greedy regexp.
6297
6298 `(repeat N SEXP)'
6299 matches N occurrences of what SEXP matches.
6300
6301 `(repeat N M SEXP)'
6302 matches N to M occurrences of what SEXP matches.
6303
6304 `(eval FORM)'
6305 evaluate FORM and insert result. If result is a string,
6306 `regexp-quote' it.
6307
6308 `(regexp REGEXP)'
6309 include REGEXP in string notation in the result.
6310
6311 *** The features `md5' and `overlay' are now provided by default.
6312
6313 *** The special form `save-restriction' now works correctly even if the
6314 buffer is widened inside the save-restriction and changes made outside
6315 the original restriction. Previously, doing this would cause the saved
6316 restriction to be restored incorrectly.
6317
6318 *** The functions `find-charset-region' and `find-charset-string' include
6319 `eight-bit-control' and/or `eight-bit-graphic' in the returned list
6320 when they find 8-bit characters. Previously, they included `ascii' in a
6321 multibyte buffer and `unknown' in a unibyte buffer.
6322
6323 *** The functions `set-buffer-multibyte', `string-as-multibyte' and
6324 `string-as-unibyte' change the byte sequence of a buffer or a string
6325 if it contains a character from the `eight-bit-control' character set.
6326
6327 *** The handling of multibyte sequences in a multibyte buffer is
6328 changed. Previously, a byte sequence matching the pattern
6329 [\200-\237][\240-\377]+ was interpreted as a single character
6330 regardless of the length of the trailing bytes [\240-\377]+. Thus, if
6331 the sequence was longer than what the leading byte indicated, the
6332 extra trailing bytes were ignored by Lisp functions. Now such extra
6333 bytes are independent 8-bit characters belonging to the charset
6334 eight-bit-graphic.
6335
6336 ** Fontsets are now implemented using char-tables.
6337
6338 A fontset can now be specified for each independent character, for
6339 a group of characters or for a character set rather than just for a
6340 character set as previously.
6341
6342 *** The arguments of the function `set-fontset-font' are changed.
6343 They are NAME, CHARACTER, FONTNAME, and optional FRAME. The function
6344 modifies fontset NAME to use FONTNAME for CHARACTER.
6345
6346 CHARACTER may be a cons (FROM . TO), where FROM and TO are non-generic
6347 characters. In that case FONTNAME is used for all characters in the
6348 range FROM and TO (inclusive). CHARACTER may be a charset. In that
6349 case FONTNAME is used for all character in the charset.
6350
6351 FONTNAME may be a cons (FAMILY . REGISTRY), where FAMILY is the family
6352 name of a font and REGISTRY is a registry name of a font.
6353
6354 *** Variable x-charset-registry has been deleted. The default charset
6355 registries of character sets are set in the default fontset
6356 "fontset-default".
6357
6358 *** The function `create-fontset-from-fontset-spec' ignores the second
6359 argument STYLE-VARIANT. It never creates style-variant fontsets.
6360
6361 ** The method of composing characters is changed. Now character
6362 composition is done by a special text property `composition' in
6363 buffers and strings.
6364
6365 *** Charset composition is deleted. Emacs never creates a `composite
6366 character' which is an independent character with a unique character
6367 code. Thus the following functions handling `composite characters'
6368 have been deleted: composite-char-component,
6369 composite-char-component-count, composite-char-composition-rule,
6370 composite-char-composition-rule and decompose-composite-char delete.
6371 The variables leading-code-composition and min-composite-char have
6372 also been deleted.
6373
6374 *** Three more glyph reference points are added. They can be used to
6375 specify a composition rule. See the documentation of the variable
6376 `reference-point-alist' for more detail.
6377
6378 *** The function `compose-region' takes new arguments COMPONENTS and
6379 MODIFICATION-FUNC. With COMPONENTS, you can specify not only a
6380 composition rule but also characters to be composed. Such characters
6381 may differ between buffer and string text.
6382
6383 *** The function `compose-string' takes new arguments START, END,
6384 COMPONENTS, and MODIFICATION-FUNC.
6385
6386 *** The function `compose-string' puts text property `composition'
6387 directly on the argument STRING instead of returning a new string.
6388 Likewise, the function `decompose-string' just removes text property
6389 `composition' from STRING.
6390
6391 *** The new function `find-composition' returns information about
6392 a composition at a specified position in a buffer or a string.
6393
6394 *** The function `decompose-composite-char' is now labeled as
6395 obsolete.
6396
6397 ** The new coding system `mac-roman' is primarily intended for use on
6398 the Macintosh but may be used generally for Macintosh-encoded text.
6399
6400 ** The new character sets `mule-unicode-0100-24ff',
6401 `mule-unicode-2500-33ff', and `mule-unicode-e000-ffff' have been
6402 introduced for Unicode characters in the range U+0100..U+24FF,
6403 U+2500..U+33FF, U+E000..U+FFFF respectively.
6404
6405 Note that the character sets are not yet unified in Emacs, so
6406 characters which belong to charsets such as Latin-2, Greek, Hebrew,
6407 etc. and the same characters in the `mule-unicode-*' charsets are
6408 different characters, as far as Emacs is concerned. For example, text
6409 which includes Unicode characters from the Latin-2 locale cannot be
6410 encoded by Emacs with ISO 8859-2 coding system.
6411
6412 ** The new coding system `mule-utf-8' has been added.
6413 It provides limited support for decoding/encoding UTF-8 text. For
6414 details, please see the documentation string of this coding system.
6415
6416 ** The new character sets `japanese-jisx0213-1' and
6417 `japanese-jisx0213-2' have been introduced for the new Japanese
6418 standard JIS X 0213 Plane 1 and Plane 2.
6419
6420 ** The new character sets `latin-iso8859-14' and `latin-iso8859-15'
6421 have been introduced.
6422
6423 ** The new character sets `eight-bit-control' and `eight-bit-graphic'
6424 have been introduced for 8-bit characters in the ranges 0x80..0x9F and
6425 0xA0..0xFF respectively. Note that the multibyte representation of
6426 eight-bit-control is never exposed; this leads to an exception in the
6427 emacs-mule coding system, which encodes everything else to the
6428 buffer/string internal representation. Note that to search for
6429 eight-bit-graphic characters in a multibyte buffer, the search string
6430 must be multibyte, otherwise such characters will be converted to
6431 their multibyte equivalent.
6432
6433 ** If the APPEND argument of `write-region' is an integer, it seeks to
6434 that offset in the file before writing.
6435
6436 ** The function `add-minor-mode' has been added for convenience and
6437 compatibility with XEmacs (and is used internally by define-minor-mode).
6438
6439 ** The function `shell-command' now sets the default directory of the
6440 `*Shell Command Output*' buffer to the default directory of the buffer
6441 from which the command was issued.
6442
6443 ** The functions `query-replace', `query-replace-regexp',
6444 `query-replace-regexp-eval' `map-query-replace-regexp',
6445 `replace-string', `replace-regexp', and `perform-replace' take two
6446 additional optional arguments START and END that specify the region to
6447 operate on.
6448
6449 ** The new function `count-screen-lines' is a more flexible alternative
6450 to `window-buffer-height'.
6451
6452 - Function: count-screen-lines &optional BEG END COUNT-FINAL-NEWLINE WINDOW
6453
6454 Return the number of screen lines in the region between BEG and END.
6455 The number of screen lines may be different from the number of actual
6456 lines, due to line breaking, display table, etc.
6457
6458 Optional arguments BEG and END default to `point-min' and `point-max'
6459 respectively.
6460
6461 If region ends with a newline, ignore it unless optional third argument
6462 COUNT-FINAL-NEWLINE is non-nil.
6463
6464 The optional fourth argument WINDOW specifies the window used for
6465 obtaining parameters such as width, horizontal scrolling, and so
6466 on. The default is to use the selected window's parameters.
6467
6468 Like `vertical-motion', `count-screen-lines' always uses the current
6469 buffer, regardless of which buffer is displayed in WINDOW. This makes
6470 possible to use `count-screen-lines' in any buffer, whether or not it
6471 is currently displayed in some window.
6472
6473 ** The new function `mapc' is like `mapcar' but doesn't collect the
6474 argument function's results.
6475
6476 ** The functions base64-decode-region and base64-decode-string now
6477 signal an error instead of returning nil if decoding fails. Also,
6478 `base64-decode-string' now always returns a unibyte string (in Emacs
6479 20, it returned a multibyte string when the result was a valid multibyte
6480 sequence).
6481
6482 ** The function sendmail-user-agent-compose now recognizes a `body'
6483 header in the list of headers passed to it.
6484
6485 ** The new function member-ignore-case works like `member', but
6486 ignores differences in case and text representation.
6487
6488 ** The buffer-local variable cursor-type can be used to specify the
6489 cursor to use in windows displaying a buffer. Values are interpreted
6490 as follows:
6491
6492 t use the cursor specified for the frame (default)
6493 nil don't display a cursor
6494 `bar' display a bar cursor with default width
6495 (bar . WIDTH) display a bar cursor with width WIDTH
6496 others display a box cursor.
6497
6498 ** The variable open-paren-in-column-0-is-defun-start controls whether
6499 an open parenthesis in column 0 is considered to be the start of a
6500 defun. If set, the default, it is considered a defun start. If not
6501 set, an open parenthesis in column 0 has no special meaning.
6502
6503 ** The new function `string-to-syntax' can be used to translate syntax
6504 specifications in string form as accepted by `modify-syntax-entry' to
6505 the cons-cell form that is used for the values of the `syntax-table'
6506 text property, and in `font-lock-syntactic-keywords'.
6507
6508 Example:
6509
6510 (string-to-syntax "()")
6511 => (4 . 41)
6512
6513 ** Emacs' reader supports CL read syntax for integers in bases
6514 other than 10.
6515
6516 *** `#BINTEGER' or `#bINTEGER' reads INTEGER in binary (radix 2).
6517 INTEGER optionally contains a sign.
6518
6519 #b1111
6520 => 15
6521 #b-1111
6522 => -15
6523
6524 *** `#OINTEGER' or `#oINTEGER' reads INTEGER in octal (radix 8).
6525
6526 #o666
6527 => 438
6528
6529 *** `#XINTEGER' or `#xINTEGER' reads INTEGER in hexadecimal (radix 16).
6530
6531 #xbeef
6532 => 48815
6533
6534 *** `#RADIXrINTEGER' reads INTEGER in radix RADIX, 2 <= RADIX <= 36.
6535
6536 #2R-111
6537 => -7
6538 #25rah
6539 => 267
6540
6541 ** The function `documentation-property' now evaluates the value of
6542 the given property to obtain a string if it doesn't refer to etc/DOC
6543 and isn't a string.
6544
6545 ** If called for a symbol, the function `documentation' now looks for
6546 a `function-documentation' property of that symbol. If it has a non-nil
6547 value, the documentation is taken from that value. If the value is
6548 not a string, it is evaluated to obtain a string.
6549
6550 ** The last argument of `define-key-after' defaults to t for convenience.
6551
6552 ** The new function `replace-regexp-in-string' replaces all matches
6553 for a regexp in a string.
6554
6555 ** `mouse-position' now runs the abnormal hook
6556 `mouse-position-function'.
6557
6558 ** The function string-to-number now returns a float for numbers
6559 that don't fit into a Lisp integer.
6560
6561 ** The variable keyword-symbols-constants-flag has been removed.
6562 Keywords are now always considered constants.
6563
6564 ** The new function `delete-and-extract-region' deletes text and
6565 returns it.
6566
6567 ** The function `clear-this-command-keys' now also clears the vector
6568 returned by function `recent-keys'.
6569
6570 ** Variables `beginning-of-defun-function' and `end-of-defun-function'
6571 can be used to define handlers for the functions that find defuns.
6572 Major modes can define these locally instead of rebinding C-M-a
6573 etc. if the normal conventions for defuns are not appropriate for the
6574 mode.
6575
6576 ** easy-mmode-define-minor-mode now takes an additional BODY argument
6577 and is renamed `define-minor-mode'.
6578
6579 ** If an abbrev has a hook function which is a symbol, and that symbol
6580 has a non-nil `no-self-insert' property, the return value of the hook
6581 function specifies whether an expansion has been done or not. If it
6582 returns nil, abbrev-expand also returns nil, meaning "no expansion has
6583 been performed."
6584
6585 When abbrev expansion is done by typing a self-inserting character,
6586 and the abbrev has a hook with the `no-self-insert' property, and the
6587 hook function returns non-nil meaning expansion has been done,
6588 then the self-inserting character is not inserted.
6589
6590 ** The function `intern-soft' now accepts a symbol as first argument.
6591 In this case, that exact symbol is looked up in the specified obarray,
6592 and the function's value is nil if it is not found.
6593
6594 ** The new macro `with-syntax-table' can be used to evaluate forms
6595 with the syntax table of the current buffer temporarily set to a
6596 specified table.
6597
6598 (with-syntax-table TABLE &rest BODY)
6599
6600 Evaluate BODY with syntax table of current buffer set to a copy of
6601 TABLE. The current syntax table is saved, BODY is evaluated, and the
6602 saved table is restored, even in case of an abnormal exit. Value is
6603 what BODY returns.
6604
6605 ** Regular expressions now support intervals \{n,m\} as well as
6606 Perl's shy-groups \(?:...\) and non-greedy *? +? and ?? operators.
6607 Also back-references like \2 are now considered as an error if the
6608 corresponding subgroup does not exist (or is not closed yet).
6609 Previously it would have been silently turned into `2' (ignoring the `\').
6610
6611 ** The optional argument BUFFER of function file-local-copy has been
6612 removed since it wasn't used by anything.
6613
6614 ** The file name argument of function `file-locked-p' is now required
6615 instead of being optional.
6616
6617 ** The new built-in error `text-read-only' is signaled when trying to
6618 modify read-only text.
6619
6620 ** New functions and variables for locales.
6621
6622 The new variable `locale-coding-system' specifies how to encode and
6623 decode strings passed to low-level message functions like strerror and
6624 time functions like strftime. The new variables
6625 `system-messages-locale' and `system-time-locale' give the system
6626 locales to be used when invoking these two types of functions.
6627
6628 The new function `set-locale-environment' sets the language
6629 environment, preferred coding system, and locale coding system from
6630 the system locale as specified by the LC_ALL, LC_CTYPE, and LANG
6631 environment variables. Normally, it is invoked during startup and need
6632 not be invoked thereafter. It uses the new variables
6633 `locale-language-names', `locale-charset-language-names', and
6634 `locale-preferred-coding-systems' to make its decisions.
6635
6636 ** syntax tables now understand nested comments.
6637 To declare a comment syntax as allowing nesting, just add an `n'
6638 modifier to either of the characters of the comment end and the comment
6639 start sequences.
6640
6641 ** The function `pixmap-spec-p' has been renamed `bitmap-spec-p'
6642 because `bitmap' is more in line with the usual X terminology.
6643
6644 ** New function `propertize'
6645
6646 The new function `propertize' can be used to conveniently construct
6647 strings with text properties.
6648
6649 - Function: propertize STRING &rest PROPERTIES
6650
6651 Value is a copy of STRING with text properties assigned as specified
6652 by PROPERTIES. PROPERTIES is a sequence of pairs PROPERTY VALUE, with
6653 PROPERTY being the name of a text property and VALUE being the
6654 specified value of that property. Example:
6655
6656 (propertize "foo" 'face 'bold 'read-only t)
6657
6658 ** push and pop macros.
6659
6660 Simple versions of the push and pop macros of Common Lisp
6661 are now defined in Emacs Lisp. These macros allow only symbols
6662 as the place that holds the list to be changed.
6663
6664 (push NEWELT LISTNAME) add NEWELT to the front of LISTNAME's value.
6665 (pop LISTNAME) return first elt of LISTNAME, and remove it
6666 (thus altering the value of LISTNAME).
6667
6668 ** New dolist and dotimes macros.
6669
6670 Simple versions of the dolist and dotimes macros of Common Lisp
6671 are now defined in Emacs Lisp.
6672
6673 (dolist (VAR LIST [RESULT]) BODY...)
6674 Execute body once for each element of LIST,
6675 using the variable VAR to hold the current element.
6676 Then return the value of RESULT, or nil if RESULT is omitted.
6677
6678 (dotimes (VAR COUNT [RESULT]) BODY...)
6679 Execute BODY with VAR bound to successive integers running from 0,
6680 inclusive, to COUNT, exclusive.
6681 Then return the value of RESULT, or nil if RESULT is omitted.
6682
6683 ** Regular expressions now support Posix character classes such as
6684 [:alpha:], [:space:] and so on. These must be used within a character
6685 class--for instance, [-[:digit:].+] matches digits or a period
6686 or a sign.
6687
6688 [:digit:] matches 0 through 9
6689 [:cntrl:] matches ASCII control characters
6690 [:xdigit:] matches 0 through 9, a through f and A through F.
6691 [:blank:] matches space and tab only
6692 [:graph:] matches graphic characters--everything except ASCII control chars,
6693 space, and DEL.
6694 [:print:] matches printing characters--everything except ASCII control chars
6695 and DEL.
6696 [:alnum:] matches letters and digits.
6697 (But at present, for multibyte characters,
6698 it matches anything that has word syntax.)
6699 [:alpha:] matches letters.
6700 (But at present, for multibyte characters,
6701 it matches anything that has word syntax.)
6702 [:ascii:] matches ASCII (unibyte) characters.
6703 [:nonascii:] matches non-ASCII (multibyte) characters.
6704 [:lower:] matches anything lower-case.
6705 [:punct:] matches punctuation.
6706 (But at present, for multibyte characters,
6707 it matches anything that has non-word syntax.)
6708 [:space:] matches anything that has whitespace syntax.
6709 [:upper:] matches anything upper-case.
6710 [:word:] matches anything that has word syntax.
6711
6712 ** Emacs now has built-in hash tables.
6713
6714 The following functions are defined for hash tables:
6715
6716 - Function: make-hash-table ARGS
6717
6718 The argument list ARGS consists of keyword/argument pairs. All arguments
6719 are optional. The following arguments are defined:
6720
6721 :test TEST
6722
6723 TEST must be a symbol specifying how to compare keys. Default is `eql'.
6724 Predefined are `eq', `eql' and `equal'. If TEST is not predefined,
6725 it must have been defined with `define-hash-table-test'.
6726
6727 :size SIZE
6728
6729 SIZE must be an integer > 0 giving a hint to the implementation how
6730 many elements will be put in the hash table. Default size is 65.
6731
6732 :rehash-size REHASH-SIZE
6733
6734 REHASH-SIZE specifies by how much to grow a hash table once it becomes
6735 full. If REHASH-SIZE is an integer, add that to the hash table's old
6736 size to get the new size. Otherwise, REHASH-SIZE must be a float >
6737 1.0, and the new size is computed by multiplying REHASH-SIZE with the
6738 old size. Default rehash size is 1.5.
6739
6740 :rehash-threshold THRESHOLD
6741
6742 THRESHOLD must be a float > 0 and <= 1.0 specifying when to resize the
6743 hash table. It is resized when the ratio of (number of entries) /
6744 (size of hash table) is >= THRESHOLD. Default threshold is 0.8.
6745
6746 :weakness WEAK
6747
6748 WEAK must be either nil, one of the symbols `key, `value',
6749 `key-or-value', `key-and-value', or t, meaning the same as
6750 `key-and-value'. Entries are removed from weak tables during garbage
6751 collection if their key and/or value are not referenced elsewhere
6752 outside of the hash table. Default are non-weak hash tables.
6753
6754 - Function: makehash &optional TEST
6755
6756 Similar to make-hash-table, but only TEST can be specified.
6757
6758 - Function: hash-table-p TABLE
6759
6760 Returns non-nil if TABLE is a hash table object.
6761
6762 - Function: copy-hash-table TABLE
6763
6764 Returns a copy of TABLE. Only the table itself is copied, keys and
6765 values are shared.
6766
6767 - Function: hash-table-count TABLE
6768
6769 Returns the number of entries in TABLE.
6770
6771 - Function: hash-table-rehash-size TABLE
6772
6773 Returns the rehash size of TABLE.
6774
6775 - Function: hash-table-rehash-threshold TABLE
6776
6777 Returns the rehash threshold of TABLE.
6778
6779 - Function: hash-table-rehash-size TABLE
6780
6781 Returns the size of TABLE.
6782
6783 - Function: hash-table-test TABLE
6784
6785 Returns the test TABLE uses to compare keys.
6786
6787 - Function: hash-table-weakness TABLE
6788
6789 Returns the weakness specified for TABLE.
6790
6791 - Function: clrhash TABLE
6792
6793 Clear TABLE.
6794
6795 - Function: gethash KEY TABLE &optional DEFAULT
6796
6797 Look up KEY in TABLE and return its associated VALUE or DEFAULT if
6798 not found.
6799
6800 - Function: puthash KEY VALUE TABLE
6801
6802 Associate KEY with VALUE in TABLE. If KEY is already associated with
6803 another value, replace the old value with VALUE.
6804
6805 - Function: remhash KEY TABLE
6806
6807 Remove KEY from TABLE if it is there.
6808
6809 - Function: maphash FUNCTION TABLE
6810
6811 Call FUNCTION for all elements in TABLE. FUNCTION must take two
6812 arguments KEY and VALUE.
6813
6814 - Function: sxhash OBJ
6815
6816 Return a hash code for Lisp object OBJ.
6817
6818 - Function: define-hash-table-test NAME TEST-FN HASH-FN
6819
6820 Define a new hash table test named NAME. If NAME is specified as
6821 a test in `make-hash-table', the table created will use TEST-FN for
6822 comparing keys, and HASH-FN to compute hash codes for keys. Test
6823 and hash function are stored as symbol property `hash-table-test'
6824 of NAME with a value of (TEST-FN HASH-FN).
6825
6826 TEST-FN must take two arguments and return non-nil if they are the same.
6827
6828 HASH-FN must take one argument and return an integer that is the hash
6829 code of the argument. The function should use the whole range of
6830 integer values for hash code computation, including negative integers.
6831
6832 Example: The following creates a hash table whose keys are supposed to
6833 be strings that are compared case-insensitively.
6834
6835 (defun case-fold-string= (a b)
6836 (compare-strings a nil nil b nil nil t))
6837
6838 (defun case-fold-string-hash (a)
6839 (sxhash (upcase a)))
6840
6841 (define-hash-table-test 'case-fold 'case-fold-string=
6842 'case-fold-string-hash))
6843
6844 (make-hash-table :test 'case-fold)
6845
6846 ** The Lisp reader handles circular structure.
6847
6848 It now works to use the #N= and #N# constructs to represent
6849 circular structures. For example, #1=(a . #1#) represents
6850 a cons cell which is its own cdr.
6851
6852 ** The Lisp printer handles circular structure.
6853
6854 If you bind print-circle to a non-nil value, the Lisp printer outputs
6855 #N= and #N# constructs to represent circular and shared structure.
6856
6857 ** If the second argument to `move-to-column' is anything but nil or
6858 t, that means replace a tab with spaces if necessary to reach the
6859 specified column, but do not add spaces at the end of the line if it
6860 is too short to reach that column.
6861
6862 ** perform-replace has a new feature: the REPLACEMENTS argument may
6863 now be a cons cell (FUNCTION . DATA). This means to call FUNCTION
6864 after each match to get the replacement text. FUNCTION is called with
6865 two arguments: DATA, and the number of replacements already made.
6866
6867 If the FROM-STRING contains any upper-case letters,
6868 perform-replace also turns off `case-fold-search' temporarily
6869 and inserts the replacement text without altering case in it.
6870
6871 ** The function buffer-size now accepts an optional argument
6872 to specify which buffer to return the size of.
6873
6874 ** The calendar motion commands now run the normal hook
6875 calendar-move-hook after moving point.
6876
6877 ** The new variable small-temporary-file-directory specifies a
6878 directory to use for creating temporary files that are likely to be
6879 small. (Certain Emacs features use this directory.) If
6880 small-temporary-file-directory is nil, they use
6881 temporary-file-directory instead.
6882
6883 ** The variable `inhibit-modification-hooks', if non-nil, inhibits all
6884 the hooks that track changes in the buffer. This affects
6885 `before-change-functions' and `after-change-functions', as well as
6886 hooks attached to text properties and overlay properties.
6887
6888 ** assq-delete-all is a new function that deletes all the
6889 elements of an alist which have a car `eq' to a particular value.
6890
6891 ** make-temp-file provides a more reliable way to create a temporary file.
6892
6893 make-temp-file is used like make-temp-name, except that it actually
6894 creates the file before it returns. This prevents a timing error,
6895 ensuring that no other job can use the same name for a temporary file.
6896
6897 ** New exclusive-open feature in `write-region'
6898
6899 The optional seventh arg is now called MUSTBENEW. If non-nil, it insists
6900 on a check for an existing file with the same name. If MUSTBENEW
6901 is `excl', that means to get an error if the file already exists;
6902 never overwrite. If MUSTBENEW is neither nil nor `excl', that means
6903 ask for confirmation before overwriting, but do go ahead and
6904 overwrite the file if the user gives confirmation.
6905
6906 If the MUSTBENEW argument in `write-region' is `excl',
6907 that means to use a special feature in the `open' system call
6908 to get an error if the file exists at that time.
6909 The error reported is `file-already-exists'.
6910
6911 ** Function `format' now handles text properties.
6912
6913 Text properties of the format string are applied to the result string.
6914 If the result string is longer than the format string, text properties
6915 ending at the end of the format string are extended to the end of the
6916 result string.
6917
6918 Text properties from string arguments are applied to the result
6919 string where arguments appear in the result string.
6920
6921 Example:
6922
6923 (let ((s1 "hello, %s")
6924 (s2 "world"))
6925 (put-text-property 0 (length s1) 'face 'bold s1)
6926 (put-text-property 0 (length s2) 'face 'italic s2)
6927 (format s1 s2))
6928
6929 results in a bold-face string with an italic `world' at the end.
6930
6931 ** Messages can now be displayed with text properties.
6932
6933 Text properties are handled as described above for function `format'.
6934 The following example displays a bold-face message with an italic
6935 argument in it.
6936
6937 (let ((msg "hello, %s!")
6938 (arg "world"))
6939 (put-text-property 0 (length msg) 'face 'bold msg)
6940 (put-text-property 0 (length arg) 'face 'italic arg)
6941 (message msg arg))
6942
6943 ** Sound support
6944
6945 Emacs supports playing sound files on GNU/Linux and the free BSDs
6946 (Voxware driver and native BSD driver, aka as Luigi's driver).
6947
6948 Currently supported file formats are RIFF-WAVE (*.wav) and Sun Audio
6949 (*.au). You must configure Emacs with the option `--with-sound=yes'
6950 to enable sound support.
6951
6952 Sound files can be played by calling (play-sound SOUND). SOUND is a
6953 list of the form `(sound PROPERTY...)'. The function is only defined
6954 when sound support is present for the system on which Emacs runs. The
6955 functions runs `play-sound-functions' with one argument which is the
6956 sound to play, before playing the sound.
6957
6958 The following sound properties are supported:
6959
6960 - `:file FILE'
6961
6962 FILE is a file name. If FILE isn't an absolute name, it will be
6963 searched relative to `data-directory'.
6964
6965 - `:data DATA'
6966
6967 DATA is a string containing sound data. Either :file or :data
6968 may be present, but not both.
6969
6970 - `:volume VOLUME'
6971
6972 VOLUME must be an integer in the range 0..100 or a float in the range
6973 0..1. This property is optional.
6974
6975 - `:device DEVICE'
6976
6977 DEVICE is a string specifying the system device on which to play the
6978 sound. The default device is system-dependent.
6979
6980 Other properties are ignored.
6981
6982 An alternative interface is called as
6983 (play-sound-file FILE &optional VOLUME DEVICE).
6984
6985 ** `multimedia' is a new Finder keyword and Custom group.
6986
6987 ** keywordp is a new predicate to test efficiently for an object being
6988 a keyword symbol.
6989
6990 ** Changes to garbage collection
6991
6992 *** The function garbage-collect now additionally returns the number
6993 of live and free strings.
6994
6995 *** There is a new variable `strings-consed' holding the number of
6996 strings that have been consed so far.
6997
6998 \f
6999 * Lisp-level Display features added after release 2.6 of the Emacs
7000 Lisp Manual
7001
7002 ** The user-option `resize-mini-windows' controls how Emacs resizes
7003 mini-windows.
7004
7005 ** The function `pos-visible-in-window-p' now has a third optional
7006 argument, PARTIALLY. If a character is only partially visible, nil is
7007 returned, unless PARTIALLY is non-nil.
7008
7009 ** On window systems, `glyph-table' is no longer used.
7010
7011 ** Help strings in menu items are now used to provide `help-echo' text.
7012
7013 ** The function `image-size' can be used to determine the size of an
7014 image.
7015
7016 - Function: image-size SPEC &optional PIXELS FRAME
7017
7018 Return the size of an image as a pair (WIDTH . HEIGHT).
7019
7020 SPEC is an image specification. PIXELS non-nil means return sizes
7021 measured in pixels, otherwise return sizes measured in canonical
7022 character units (fractions of the width/height of the frame's default
7023 font). FRAME is the frame on which the image will be displayed.
7024 FRAME nil or omitted means use the selected frame.
7025
7026 ** The function `image-mask-p' can be used to determine if an image
7027 has a mask bitmap.
7028
7029 - Function: image-mask-p SPEC &optional FRAME
7030
7031 Return t if image SPEC has a mask bitmap.
7032 FRAME is the frame on which the image will be displayed. FRAME nil
7033 or omitted means use the selected frame.
7034
7035 ** The function `find-image' can be used to find a usable image
7036 satisfying one of a list of specifications.
7037
7038 ** The STRING argument of `put-image' and `insert-image' is now
7039 optional.
7040
7041 ** Image specifications may contain the property `:ascent center' (see
7042 below).
7043
7044 \f
7045 * New Lisp-level Display features in Emacs 21.1
7046
7047 ** The function tty-suppress-bold-inverse-default-colors can be used
7048 to make Emacs avoid displaying text with bold black foreground on TTYs.
7049
7050 Some terminals, notably PC consoles, emulate bold text by displaying
7051 text in brighter colors. On such a console, a bold black foreground
7052 is displayed in a gray color. If this turns out to be hard to read on
7053 your monitor---the problem occurred with the mode line on
7054 laptops---you can instruct Emacs to ignore the text's boldness, and to
7055 just display it black instead.
7056
7057 This situation can't be detected automatically. You will have to put
7058 a line like
7059
7060 (tty-suppress-bold-inverse-default-colors t)
7061
7062 in your `.emacs'.
7063
7064 ** New face implementation.
7065
7066 Emacs faces have been reimplemented from scratch. They don't use XLFD
7067 font names anymore and face merging now works as expected.
7068
7069 *** New faces.
7070
7071 Each face can specify the following display attributes:
7072
7073 1. Font family or fontset alias name.
7074
7075 2. Relative proportionate width, aka character set width or set
7076 width (swidth), e.g. `semi-compressed'.
7077
7078 3. Font height in 1/10pt
7079
7080 4. Font weight, e.g. `bold'.
7081
7082 5. Font slant, e.g. `italic'.
7083
7084 6. Foreground color.
7085
7086 7. Background color.
7087
7088 8. Whether or not characters should be underlined, and in what color.
7089
7090 9. Whether or not characters should be displayed in inverse video.
7091
7092 10. A background stipple, a bitmap.
7093
7094 11. Whether or not characters should be overlined, and in what color.
7095
7096 12. Whether or not characters should be strike-through, and in what
7097 color.
7098
7099 13. Whether or not a box should be drawn around characters, its
7100 color, the width of the box lines, and 3D appearance.
7101
7102 Faces are frame-local by nature because Emacs allows to define the
7103 same named face (face names are symbols) differently for different
7104 frames. Each frame has an alist of face definitions for all named
7105 faces. The value of a named face in such an alist is a Lisp vector
7106 with the symbol `face' in slot 0, and a slot for each of the face
7107 attributes mentioned above.
7108
7109 There is also a global face alist `face-new-frame-defaults'. Face
7110 definitions from this list are used to initialize faces of newly
7111 created frames.
7112
7113 A face doesn't have to specify all attributes. Those not specified
7114 have a nil value. Faces specifying all attributes are called
7115 `fully-specified'.
7116
7117 *** Face merging.
7118
7119 The display style of a given character in the text is determined by
7120 combining several faces. This process is called `face merging'. Any
7121 aspect of the display style that isn't specified by overlays or text
7122 properties is taken from the `default' face. Since it is made sure
7123 that the default face is always fully-specified, face merging always
7124 results in a fully-specified face.
7125
7126 *** Face realization.
7127
7128 After all face attributes for a character have been determined by
7129 merging faces of that character, that face is `realized'. The
7130 realization process maps face attributes to what is physically
7131 available on the system where Emacs runs. The result is a `realized
7132 face' in form of an internal structure which is stored in the face
7133 cache of the frame on which it was realized.
7134
7135 Face realization is done in the context of the charset of the
7136 character to display because different fonts and encodings are used
7137 for different charsets. In other words, for characters of different
7138 charsets, different realized faces are needed to display them.
7139
7140 Except for composite characters, faces are always realized for a
7141 specific character set and contain a specific font, even if the face
7142 being realized specifies a fontset. The reason is that the result of
7143 the new font selection stage is better than what can be done with
7144 statically defined font name patterns in fontsets.
7145
7146 In unibyte text, Emacs' charsets aren't applicable; function
7147 `char-charset' reports ASCII for all characters, including those >
7148 0x7f. The X registry and encoding of fonts to use is determined from
7149 the variable `face-default-registry' in this case. The variable is
7150 initialized at Emacs startup time from the font the user specified for
7151 Emacs.
7152
7153 Currently all unibyte text, i.e. all buffers with
7154 `enable-multibyte-characters' nil are displayed with fonts of the same
7155 registry and encoding `face-default-registry'. This is consistent
7156 with the fact that languages can also be set globally, only.
7157
7158 **** Clearing face caches.
7159
7160 The Lisp function `clear-face-cache' can be called to clear face caches
7161 on all frames. If called with a non-nil argument, it will also unload
7162 unused fonts.
7163
7164 *** Font selection.
7165
7166 Font selection tries to find the best available matching font for a
7167 given (charset, face) combination. This is done slightly differently
7168 for faces specifying a fontset, or a font family name.
7169
7170 If the face specifies a fontset name, that fontset determines a
7171 pattern for fonts of the given charset. If the face specifies a font
7172 family, a font pattern is constructed. Charset symbols have a
7173 property `x-charset-registry' for that purpose that maps a charset to
7174 an XLFD registry and encoding in the font pattern constructed.
7175
7176 Available fonts on the system on which Emacs runs are then matched
7177 against the font pattern. The result of font selection is the best
7178 match for the given face attributes in this font list.
7179
7180 Font selection can be influenced by the user.
7181
7182 The user can specify the relative importance he gives the face
7183 attributes width, height, weight, and slant by setting
7184 face-font-selection-order (faces.el) to a list of face attribute
7185 names. The default is (:width :height :weight :slant), and means
7186 that font selection first tries to find a good match for the font
7187 width specified by a face, then---within fonts with that width---tries
7188 to find a best match for the specified font height, etc.
7189
7190 Setting `face-font-family-alternatives' allows the user to specify
7191 alternative font families to try if a family specified by a face
7192 doesn't exist.
7193
7194 Setting `face-font-registry-alternatives' allows the user to specify
7195 all alternative font registry names to try for a face specifying a
7196 registry.
7197
7198 Please note that the interpretations of the above two variables are
7199 slightly different.
7200
7201 Setting face-ignored-fonts allows the user to ignore specific fonts.
7202
7203
7204 **** Scalable fonts
7205
7206 Emacs can make use of scalable fonts but doesn't do so by default,
7207 since the use of too many or too big scalable fonts may crash XFree86
7208 servers.
7209
7210 To enable scalable font use, set the variable
7211 `scalable-fonts-allowed'. A value of nil, the default, means never use
7212 scalable fonts. A value of t means any scalable font may be used.
7213 Otherwise, the value must be a list of regular expressions. A
7214 scalable font may then be used if it matches a regular expression from
7215 that list. Example:
7216
7217 (setq scalable-fonts-allowed '("muleindian-2$"))
7218
7219 allows the use of scalable fonts with registry `muleindian-2'.
7220
7221 *** Functions and variables related to font selection.
7222
7223 - Function: x-family-fonts &optional FAMILY FRAME
7224
7225 Return a list of available fonts of family FAMILY on FRAME. If FAMILY
7226 is omitted or nil, list all families. Otherwise, FAMILY must be a
7227 string, possibly containing wildcards `?' and `*'.
7228
7229 If FRAME is omitted or nil, use the selected frame. Each element of
7230 the result is a vector [FAMILY WIDTH POINT-SIZE WEIGHT SLANT FIXED-P
7231 FULL REGISTRY-AND-ENCODING]. FAMILY is the font family name.
7232 POINT-SIZE is the size of the font in 1/10 pt. WIDTH, WEIGHT, and
7233 SLANT are symbols describing the width, weight and slant of the font.
7234 These symbols are the same as for face attributes. FIXED-P is non-nil
7235 if the font is fixed-pitch. FULL is the full name of the font, and
7236 REGISTRY-AND-ENCODING is a string giving the registry and encoding of
7237 the font. The result list is sorted according to the current setting
7238 of the face font sort order.
7239
7240 - Function: x-font-family-list
7241
7242 Return a list of available font families on FRAME. If FRAME is
7243 omitted or nil, use the selected frame. Value is a list of conses
7244 (FAMILY . FIXED-P) where FAMILY is a font family, and FIXED-P is
7245 non-nil if fonts of that family are fixed-pitch.
7246
7247 - Variable: font-list-limit
7248
7249 Limit for font matching. If an integer > 0, font matching functions
7250 won't load more than that number of fonts when searching for a
7251 matching font. The default is currently 100.
7252
7253 *** Setting face attributes.
7254
7255 For the most part, the new face implementation is interface-compatible
7256 with the old one. Old face attribute related functions are now
7257 implemented in terms of the new functions `set-face-attribute' and
7258 `face-attribute'.
7259
7260 Face attributes are identified by their names which are keyword
7261 symbols. All attributes can be set to `unspecified'.
7262
7263 The following attributes are recognized:
7264
7265 `:family'
7266
7267 VALUE must be a string specifying the font family, e.g. ``courier'',
7268 or a fontset alias name. If a font family is specified, wild-cards `*'
7269 and `?' are allowed.
7270
7271 `:width'
7272
7273 VALUE specifies the relative proportionate width of the font to use.
7274 It must be one of the symbols `ultra-condensed', `extra-condensed',
7275 `condensed', `semi-condensed', `normal', `semi-expanded', `expanded',
7276 `extra-expanded', or `ultra-expanded'.
7277
7278 `:height'
7279
7280 VALUE must be either an integer specifying the height of the font to use
7281 in 1/10 pt, a floating point number specifying the amount by which to
7282 scale any underlying face, or a function, which is called with the old
7283 height (from the underlying face), and should return the new height.
7284
7285 `:weight'
7286
7287 VALUE specifies the weight of the font to use. It must be one of the
7288 symbols `ultra-bold', `extra-bold', `bold', `semi-bold', `normal',
7289 `semi-light', `light', `extra-light', `ultra-light'.
7290
7291 `:slant'
7292
7293 VALUE specifies the slant of the font to use. It must be one of the
7294 symbols `italic', `oblique', `normal', `reverse-italic', or
7295 `reverse-oblique'.
7296
7297 `:foreground', `:background'
7298
7299 VALUE must be a color name, a string.
7300
7301 `:underline'
7302
7303 VALUE specifies whether characters in FACE should be underlined. If
7304 VALUE is t, underline with foreground color of the face. If VALUE is
7305 a string, underline with that color. If VALUE is nil, explicitly
7306 don't underline.
7307
7308 `:overline'
7309
7310 VALUE specifies whether characters in FACE should be overlined. If
7311 VALUE is t, overline with foreground color of the face. If VALUE is a
7312 string, overline with that color. If VALUE is nil, explicitly don't
7313 overline.
7314
7315 `:strike-through'
7316
7317 VALUE specifies whether characters in FACE should be drawn with a line
7318 striking through them. If VALUE is t, use the foreground color of the
7319 face. If VALUE is a string, strike-through with that color. If VALUE
7320 is nil, explicitly don't strike through.
7321
7322 `:box'
7323
7324 VALUE specifies whether characters in FACE should have a box drawn
7325 around them. If VALUE is nil, explicitly don't draw boxes. If
7326 VALUE is t, draw a box with lines of width 1 in the foreground color
7327 of the face. If VALUE is a string, the string must be a color name,
7328 and the box is drawn in that color with a line width of 1. Otherwise,
7329 VALUE must be a property list of the form `(:line-width WIDTH
7330 :color COLOR :style STYLE)'. If a keyword/value pair is missing from
7331 the property list, a default value will be used for the value, as
7332 specified below. WIDTH specifies the width of the lines to draw; it
7333 defaults to 1. COLOR is the name of the color to draw in, default is
7334 the foreground color of the face for simple boxes, and the background
7335 color of the face for 3D boxes. STYLE specifies whether a 3D box
7336 should be draw. If STYLE is `released-button', draw a box looking
7337 like a released 3D button. If STYLE is `pressed-button' draw a box
7338 that appears like a pressed button. If STYLE is nil, the default if
7339 the property list doesn't contain a style specification, draw a 2D
7340 box.
7341
7342 `:inverse-video'
7343
7344 VALUE specifies whether characters in FACE should be displayed in
7345 inverse video. VALUE must be one of t or nil.
7346
7347 `:stipple'
7348
7349 If VALUE is a string, it must be the name of a file of pixmap data.
7350 The directories listed in the `x-bitmap-file-path' variable are
7351 searched. Alternatively, VALUE may be a list of the form (WIDTH
7352 HEIGHT DATA) where WIDTH and HEIGHT are the size in pixels, and DATA
7353 is a string containing the raw bits of the bitmap. VALUE nil means
7354 explicitly don't use a stipple pattern.
7355
7356 For convenience, attributes `:family', `:width', `:height', `:weight',
7357 and `:slant' may also be set in one step from an X font name:
7358
7359 `:font'
7360
7361 Set font-related face attributes from VALUE. VALUE must be a valid
7362 XLFD font name. If it is a font name pattern, the first matching font
7363 is used--this is for compatibility with the behavior of previous
7364 versions of Emacs.
7365
7366 For compatibility with Emacs 20, keywords `:bold' and `:italic' can
7367 be used to specify that a bold or italic font should be used. VALUE
7368 must be t or nil in that case. A value of `unspecified' is not allowed."
7369
7370 Please see also the documentation of `set-face-attribute' and
7371 `defface'.
7372
7373 `:inherit'
7374
7375 VALUE is the name of a face from which to inherit attributes, or a list
7376 of face names. Attributes from inherited faces are merged into the face
7377 like an underlying face would be, with higher priority than underlying faces.
7378
7379 *** Face attributes and X resources
7380
7381 The following X resource names can be used to set face attributes
7382 from X resources:
7383
7384 Face attribute X resource class
7385 -----------------------------------------------------------------------
7386 :family attributeFamily . Face.AttributeFamily
7387 :width attributeWidth Face.AttributeWidth
7388 :height attributeHeight Face.AttributeHeight
7389 :weight attributeWeight Face.AttributeWeight
7390 :slant attributeSlant Face.AttributeSlant
7391 foreground attributeForeground Face.AttributeForeground
7392 :background attributeBackground . Face.AttributeBackground
7393 :overline attributeOverline Face.AttributeOverline
7394 :strike-through attributeStrikeThrough Face.AttributeStrikeThrough
7395 :box attributeBox Face.AttributeBox
7396 :underline attributeUnderline Face.AttributeUnderline
7397 :inverse-video attributeInverse Face.AttributeInverse
7398 :stipple attributeStipple Face.AttributeStipple
7399 or attributeBackgroundPixmap
7400 Face.AttributeBackgroundPixmap
7401 :font attributeFont Face.AttributeFont
7402 :bold attributeBold Face.AttributeBold
7403 :italic attributeItalic . Face.AttributeItalic
7404 :font attributeFont Face.AttributeFont
7405
7406 *** Text property `face'.
7407
7408 The value of the `face' text property can now be a single face
7409 specification or a list of such specifications. Each face
7410 specification can be
7411
7412 1. A symbol or string naming a Lisp face.
7413
7414 2. A property list of the form (KEYWORD VALUE ...) where each
7415 KEYWORD is a face attribute name, and VALUE is an appropriate value
7416 for that attribute. Please see the doc string of `set-face-attribute'
7417 for face attribute names.
7418
7419 3. Conses of the form (FOREGROUND-COLOR . COLOR) or
7420 (BACKGROUND-COLOR . COLOR) where COLOR is a color name. This is
7421 for compatibility with previous Emacs versions.
7422
7423 ** Support functions for colors on text-only terminals.
7424
7425 The function `tty-color-define' can be used to define colors for use
7426 on TTY and MSDOS frames. It maps a color name to a color number on
7427 the terminal. Emacs defines a couple of common color mappings by
7428 default. You can get defined colors with a call to
7429 `defined-colors'. The function `tty-color-clear' can be
7430 used to clear the mapping table.
7431
7432 ** Unified support for colors independent of frame type.
7433
7434 The new functions `defined-colors', `color-defined-p', `color-values',
7435 and `display-color-p' work for any type of frame. On frames whose
7436 type is neither x nor w32, these functions transparently map X-style
7437 color specifications to the closest colors supported by the frame
7438 display. Lisp programs should use these new functions instead of the
7439 old `x-defined-colors', `x-color-defined-p', `x-color-values', and
7440 `x-display-color-p'. (The old function names are still available for
7441 compatibility; they are now aliases of the new names.) Lisp programs
7442 should no more look at the value of the variable window-system to
7443 modify their color-related behavior.
7444
7445 The primitives `color-gray-p' and `color-supported-p' also work for
7446 any frame type.
7447
7448 ** Platform-independent functions to describe display capabilities.
7449
7450 The new functions `display-mouse-p', `display-popup-menus-p',
7451 `display-graphic-p', `display-selections-p', `display-screens',
7452 `display-pixel-width', `display-pixel-height', `display-mm-width',
7453 `display-mm-height', `display-backing-store', `display-save-under',
7454 `display-planes', `display-color-cells', `display-visual-class', and
7455 `display-grayscale-p' describe the basic capabilities of a particular
7456 display. Lisp programs should call these functions instead of testing
7457 the value of the variables `window-system' or `system-type', or calling
7458 platform-specific functions such as `x-display-pixel-width'.
7459
7460 The new function `display-images-p' returns non-nil if a particular
7461 display can display image files.
7462
7463 ** The minibuffer prompt is now actually inserted in the minibuffer.
7464
7465 This makes it possible to scroll through the prompt, if you want to.
7466 To disallow this completely (like previous versions of emacs), customize
7467 the variable `minibuffer-prompt-properties', and turn on the
7468 `Inviolable' option.
7469
7470 The function `minibuffer-prompt-end' returns the current position of the
7471 end of the minibuffer prompt, if the minibuffer is current.
7472 Otherwise, it returns `(point-min)'.
7473
7474 ** New `field' abstraction in buffers.
7475
7476 There is now code to support an abstraction called `fields' in emacs
7477 buffers. A field is a contiguous region of text with the same `field'
7478 property (which can be a text property or an overlay).
7479
7480 Many emacs functions, such as forward-word, forward-sentence,
7481 forward-paragraph, beginning-of-line, etc., stop moving when they come
7482 to the boundary between fields; beginning-of-line and end-of-line will
7483 not let the point move past the field boundary, but other movement
7484 commands continue into the next field if repeated. Stopping at field
7485 boundaries can be suppressed programmatically by binding
7486 `inhibit-field-text-motion' to a non-nil value around calls to these
7487 functions.
7488
7489 Now that the minibuffer prompt is inserted into the minibuffer, it is in
7490 a separate field from the user-input part of the buffer, so that common
7491 editing commands treat the user's text separately from the prompt.
7492
7493 The following functions are defined for operating on fields:
7494
7495 - Function: constrain-to-field NEW-POS OLD-POS &optional ESCAPE-FROM-EDGE ONLY-IN-LINE INHIBIT-CAPTURE-PROPERTY
7496
7497 Return the position closest to NEW-POS that is in the same field as OLD-POS.
7498
7499 A field is a region of text with the same `field' property.
7500 If NEW-POS is nil, then the current point is used instead, and set to the
7501 constrained position if that is different.
7502
7503 If OLD-POS is at the boundary of two fields, then the allowable
7504 positions for NEW-POS depends on the value of the optional argument
7505 ESCAPE-FROM-EDGE: If ESCAPE-FROM-EDGE is nil, then NEW-POS is
7506 constrained to the field that has the same `field' char-property
7507 as any new characters inserted at OLD-POS, whereas if ESCAPE-FROM-EDGE
7508 is non-nil, NEW-POS is constrained to the union of the two adjacent
7509 fields. Additionally, if two fields are separated by another field with
7510 the special value `boundary', then any point within this special field is
7511 also considered to be `on the boundary'.
7512
7513 If the optional argument ONLY-IN-LINE is non-nil and constraining
7514 NEW-POS would move it to a different line, NEW-POS is returned
7515 unconstrained. This useful for commands that move by line, like
7516 C-n or C-a, which should generally respect field boundaries
7517 only in the case where they can still move to the right line.
7518
7519 If the optional argument INHIBIT-CAPTURE-PROPERTY is non-nil, and OLD-POS has
7520 a non-nil property of that name, then any field boundaries are ignored.
7521
7522 Field boundaries are not noticed if `inhibit-field-text-motion' is non-nil.
7523
7524 - Function: delete-field &optional POS
7525
7526 Delete the field surrounding POS.
7527 A field is a region of text with the same `field' property.
7528 If POS is nil, the value of point is used for POS.
7529
7530 - Function: field-beginning &optional POS ESCAPE-FROM-EDGE
7531
7532 Return the beginning of the field surrounding POS.
7533 A field is a region of text with the same `field' property.
7534 If POS is nil, the value of point is used for POS.
7535 If ESCAPE-FROM-EDGE is non-nil and POS is at the beginning of its
7536 field, then the beginning of the *previous* field is returned.
7537
7538 - Function: field-end &optional POS ESCAPE-FROM-EDGE
7539
7540 Return the end of the field surrounding POS.
7541 A field is a region of text with the same `field' property.
7542 If POS is nil, the value of point is used for POS.
7543 If ESCAPE-FROM-EDGE is non-nil and POS is at the end of its field,
7544 then the end of the *following* field is returned.
7545
7546 - Function: field-string &optional POS
7547
7548 Return the contents of the field surrounding POS as a string.
7549 A field is a region of text with the same `field' property.
7550 If POS is nil, the value of point is used for POS.
7551
7552 - Function: field-string-no-properties &optional POS
7553
7554 Return the contents of the field around POS, without text-properties.
7555 A field is a region of text with the same `field' property.
7556 If POS is nil, the value of point is used for POS.
7557
7558 ** Image support.
7559
7560 Emacs can now display images. Images are inserted into text by giving
7561 strings or buffer text a `display' text property containing one of
7562 (AREA IMAGE) or IMAGE. The display of the `display' property value
7563 replaces the display of the characters having that property.
7564
7565 If the property value has the form (AREA IMAGE), AREA must be one of
7566 `(margin left-margin)', `(margin right-margin)' or `(margin nil)'. If
7567 AREA is `(margin nil)', IMAGE will be displayed in the text area of a
7568 window, otherwise it will be displayed in the left or right marginal
7569 area.
7570
7571 IMAGE is an image specification.
7572
7573 *** Image specifications
7574
7575 Image specifications are lists of the form `(image PROPS)' where PROPS
7576 is a property list whose keys are keyword symbols. Each
7577 specifications must contain a property `:type TYPE' with TYPE being a
7578 symbol specifying the image type, e.g. `xbm'. Properties not
7579 described below are ignored.
7580
7581 The following is a list of properties all image types share.
7582
7583 `:ascent ASCENT'
7584
7585 ASCENT must be a number in the range 0..100, or the symbol `center'.
7586 If it is a number, it specifies the percentage of the image's height
7587 to use for its ascent.
7588
7589 If not specified, ASCENT defaults to the value 50 which means that the
7590 image will be centered with the base line of the row it appears in.
7591
7592 If ASCENT is `center' the image is vertically centered around a
7593 centerline which is the vertical center of text drawn at the position
7594 of the image, in the manner specified by the text properties and
7595 overlays that apply to the image.
7596
7597 `:margin MARGIN'
7598
7599 MARGIN must be either a number >= 0 specifying how many pixels to put
7600 as margin around the image, or a pair (X . Y) with X specifying the
7601 horizontal margin and Y specifying the vertical margin. Default is 0.
7602
7603 `:relief RELIEF'
7604
7605 RELIEF is analogous to the `:relief' attribute of faces. Puts a relief
7606 around an image.
7607
7608 `:conversion ALGO'
7609
7610 Apply an image algorithm to the image before displaying it.
7611
7612 ALGO `laplace' or `emboss' means apply a Laplace or ``emboss''
7613 edge-detection algorithm to the image.
7614
7615 ALGO `(edge-detection :matrix MATRIX :color-adjust ADJUST)' means
7616 apply a general edge-detection algorithm. MATRIX must be either a
7617 nine-element list or a nine-element vector of numbers. A pixel at
7618 position x/y in the transformed image is computed from original pixels
7619 around that position. MATRIX specifies, for each pixel in the
7620 neighborhood of x/y, a factor with which that pixel will influence the
7621 transformed pixel; element 0 specifies the factor for the pixel at
7622 x-1/y-1, element 1 the factor for the pixel at x/y-1 etc. as shown
7623 below.
7624
7625 (x-1/y-1 x/y-1 x+1/y-1
7626 x-1/y x/y x+1/y
7627 x-1/y+1 x/y+1 x+1/y+1)
7628
7629 The resulting pixel is computed from the color intensity of the color
7630 resulting from summing up the RGB values of surrounding pixels,
7631 multiplied by the specified factors, and dividing that sum by the sum
7632 of the factors' absolute values.
7633
7634 Laplace edge-detection currently uses a matrix of
7635
7636 (1 0 0
7637 0 0 0
7638 9 9 -1)
7639
7640 Emboss edge-detection uses a matrix of
7641
7642 ( 2 -1 0
7643 -1 0 1
7644 0 1 -2)
7645
7646 ALGO `disabled' means transform the image so that it looks
7647 ``disabled''.
7648
7649 `:mask MASK'
7650
7651 If MASK is `heuristic' or `(heuristic BG)', build a clipping mask for
7652 the image, so that the background of a frame is visible behind the
7653 image. If BG is not specified, or if BG is t, determine the
7654 background color of the image by looking at the 4 corners of the
7655 image, assuming the most frequently occurring color from the corners is
7656 the background color of the image. Otherwise, BG must be a list `(RED
7657 GREEN BLUE)' specifying the color to assume for the background of the
7658 image.
7659
7660 If MASK is nil, remove a mask from the image, if it has one. Images
7661 in some formats include a mask which can be removed by specifying
7662 `:mask nil'.
7663
7664 `:file FILE'
7665
7666 Load image from FILE. If FILE is not absolute after expanding it,
7667 search for the image in `data-directory'. Some image types support
7668 building images from data. When this is done, no `:file' property
7669 may be present in the image specification.
7670
7671 `:data DATA'
7672
7673 Get image data from DATA. (As of this writing, this is not yet
7674 supported for image type `postscript'). Either :file or :data may be
7675 present in an image specification, but not both. All image types
7676 support strings as DATA, some types allow additional types of DATA.
7677
7678 *** Supported image types
7679
7680 **** XBM, image type `xbm'.
7681
7682 XBM images don't require an external library. Additional image
7683 properties supported are:
7684
7685 `:foreground FG'
7686
7687 FG must be a string specifying the image foreground color, or nil
7688 meaning to use the default. Default is the frame's foreground color.
7689
7690 `:background BG'
7691
7692 BG must be a string specifying the image background color, or nil
7693 meaning to use the default. Default is the frame's background color.
7694
7695 XBM images can be constructed from data instead of file. In this
7696 case, the image specification must contain the following properties
7697 instead of a `:file' property.
7698
7699 `:width WIDTH'
7700
7701 WIDTH specifies the width of the image in pixels.
7702
7703 `:height HEIGHT'
7704
7705 HEIGHT specifies the height of the image in pixels.
7706
7707 `:data DATA'
7708
7709 DATA must be either
7710
7711 1. a string large enough to hold the bitmap data, i.e. it must
7712 have a size >= (WIDTH + 7) / 8 * HEIGHT
7713
7714 2. a bool-vector of size >= WIDTH * HEIGHT
7715
7716 3. a vector of strings or bool-vectors, one for each line of the
7717 bitmap.
7718
7719 4. a string that's an in-memory XBM file. Neither width nor
7720 height may be specified in this case because these are defined
7721 in the file.
7722
7723 **** XPM, image type `xpm'
7724
7725 XPM images require the external library `libXpm', package
7726 `xpm-3.4k.tar.gz', version 3.4k or later. Make sure the library is
7727 found when Emacs is configured by supplying appropriate paths via
7728 `--x-includes' and `--x-libraries'.
7729
7730 Additional image properties supported are:
7731
7732 `:color-symbols SYMBOLS'
7733
7734 SYMBOLS must be a list of pairs (NAME . COLOR), with NAME being the
7735 name of color as it appears in an XPM file, and COLOR being an X color
7736 name.
7737
7738 XPM images can be built from memory instead of files. In that case,
7739 add a `:data' property instead of a `:file' property.
7740
7741 The XPM library uses libz in its implementation so that it is able
7742 to display compressed images.
7743
7744 **** PBM, image type `pbm'
7745
7746 PBM images don't require an external library. Color, gray-scale and
7747 mono images are supported. Additional image properties supported for
7748 mono images are:
7749
7750 `:foreground FG'
7751
7752 FG must be a string specifying the image foreground color, or nil
7753 meaning to use the default. Default is the frame's foreground color.
7754
7755 `:background FG'
7756
7757 BG must be a string specifying the image background color, or nil
7758 meaning to use the default. Default is the frame's background color.
7759
7760 **** JPEG, image type `jpeg'
7761
7762 Support for JPEG images requires the external library `libjpeg',
7763 package `jpegsrc.v6a.tar.gz', or later. There are no additional image
7764 properties defined.
7765
7766 **** TIFF, image type `tiff'
7767
7768 Support for TIFF images requires the external library `libtiff',
7769 package `tiff-v3.4-tar.gz', or later. There are no additional image
7770 properties defined.
7771
7772 **** GIF, image type `gif'
7773
7774 Support for GIF images requires the external library `libungif', package
7775 `libungif-4.1.0', or later.
7776
7777 Additional image properties supported are:
7778
7779 `:index INDEX'
7780
7781 INDEX must be an integer >= 0. Load image number INDEX from a
7782 multi-image GIF file. If INDEX is too large, the image displays
7783 as a hollow box.
7784
7785 This could be used to implement limited support for animated GIFs.
7786 For example, the following function displays a multi-image GIF file
7787 at point-min in the current buffer, switching between sub-images
7788 every 0.1 seconds.
7789
7790 (defun show-anim (file max)
7791 "Display multi-image GIF file FILE which contains MAX subimages."
7792 (display-anim (current-buffer) file 0 max t))
7793
7794 (defun display-anim (buffer file idx max first-time)
7795 (when (= idx max)
7796 (setq idx 0))
7797 (let ((img (create-image file nil nil :index idx)))
7798 (save-excursion
7799 (set-buffer buffer)
7800 (goto-char (point-min))
7801 (unless first-time (delete-char 1))
7802 (insert-image img "x"))
7803 (run-with-timer 0.1 nil 'display-anim buffer file (1+ idx) max nil)))
7804
7805 **** PNG, image type `png'
7806
7807 Support for PNG images requires the external library `libpng',
7808 package `libpng-1.0.2.tar.gz', or later. There are no additional image
7809 properties defined.
7810
7811 **** Ghostscript, image type `postscript'.
7812
7813 Additional image properties supported are:
7814
7815 `:pt-width WIDTH'
7816
7817 WIDTH is width of the image in pt (1/72 inch). WIDTH must be an
7818 integer. This is a required property.
7819
7820 `:pt-height HEIGHT'
7821
7822 HEIGHT specifies the height of the image in pt (1/72 inch). HEIGHT
7823 must be a integer. This is an required property.
7824
7825 `:bounding-box BOX'
7826
7827 BOX must be a list or vector of 4 integers giving the bounding box of
7828 the PS image, analogous to the `BoundingBox' comment found in PS
7829 files. This is an required property.
7830
7831 Part of the Ghostscript interface is implemented in Lisp. See
7832 lisp/gs.el.
7833
7834 *** Lisp interface.
7835
7836 The variable `image-types' contains a list of those image types
7837 which are supported in the current configuration.
7838
7839 Images are stored in an image cache and removed from the cache when
7840 they haven't been displayed for `image-cache-eviction-delay seconds.
7841 The function `clear-image-cache' can be used to clear the image cache
7842 manually. Images in the cache are compared with `equal', i.e. all
7843 images with `equal' specifications share the same image.
7844
7845 *** Simplified image API, image.el
7846
7847 The new Lisp package image.el contains functions that simplify image
7848 creation and putting images into text. The function `create-image'
7849 can be used to create images. The macro `defimage' can be used to
7850 define an image based on available image types. The functions
7851 `put-image' and `insert-image' can be used to insert an image into a
7852 buffer.
7853
7854 ** Display margins.
7855
7856 Windows can now have margins which are used for special text
7857 and images.
7858
7859 To give a window margins, either set the buffer-local variables
7860 `left-margin-width' and `right-margin-width', or call
7861 `set-window-margins'. The function `window-margins' can be used to
7862 obtain the current settings. To make `left-margin-width' and
7863 `right-margin-width' take effect, you must set them before displaying
7864 the buffer in a window, or use `set-window-buffer' to force an update
7865 of the display margins.
7866
7867 You can put text in margins by giving it a `display' text property
7868 containing a pair of the form `(LOCATION . VALUE)', where LOCATION is
7869 one of `left-margin' or `right-margin' or nil. VALUE can be either a
7870 string, an image specification or a stretch specification (see later
7871 in this file).
7872
7873 ** Help display
7874
7875 Emacs displays short help messages in the echo area, when the mouse
7876 moves over a tool-bar item or a piece of text that has a text property
7877 `help-echo'. This feature also applies to strings in the mode line
7878 that have a `help-echo' property.
7879
7880 If the value of the `help-echo' property is a function, that function
7881 is called with three arguments WINDOW, OBJECT and POSITION. WINDOW is
7882 the window in which the help was found.
7883
7884 If OBJECT is a buffer, POS is the position in the buffer where the
7885 `help-echo' text property was found.
7886
7887 If OBJECT is an overlay, that overlay has a `help-echo' property, and
7888 POS is the position in the overlay's buffer under the mouse.
7889
7890 If OBJECT is a string (an overlay string or a string displayed with
7891 the `display' property), POS is the position in that string under the
7892 mouse.
7893
7894 If the value of the `help-echo' property is neither a function nor a
7895 string, it is evaluated to obtain a help string.
7896
7897 For tool-bar and menu-bar items, their key definition is used to
7898 determine the help to display. If their definition contains a
7899 property `:help FORM', FORM is evaluated to determine the help string.
7900 For tool-bar items without a help form, the caption of the item is
7901 used as help string.
7902
7903 The hook `show-help-function' can be set to a function that displays
7904 the help string differently. For example, enabling a tooltip window
7905 causes the help display to appear there instead of in the echo area.
7906
7907 ** Vertical fractional scrolling.
7908
7909 The display of text in windows can be scrolled smoothly in pixels.
7910 This is useful, for example, for making parts of large images visible.
7911
7912 The function `window-vscroll' returns the current value of vertical
7913 scrolling, a non-negative fraction of the canonical character height.
7914 The function `set-window-vscroll' can be used to set the vertical
7915 scrolling value. Here is an example of how these function might be
7916 used.
7917
7918 (global-set-key [A-down]
7919 #'(lambda ()
7920 (interactive)
7921 (set-window-vscroll (selected-window)
7922 (+ 0.5 (window-vscroll)))))
7923 (global-set-key [A-up]
7924 #'(lambda ()
7925 (interactive)
7926 (set-window-vscroll (selected-window)
7927 (- (window-vscroll) 0.5)))))
7928
7929 ** New hook `fontification-functions'.
7930
7931 Functions from `fontification-functions' are called from redisplay
7932 when it encounters a region of text that is not yet fontified. This
7933 variable automatically becomes buffer-local when set. Each function
7934 is called with one argument, POS.
7935
7936 At least one of the hook functions should fontify one or more
7937 characters starting at POS in the current buffer. It should mark them
7938 as fontified by giving them a non-nil value of the `fontified' text
7939 property. It may be reasonable for these functions to check for the
7940 `fontified' property and not put it back on, but they do not have to.
7941
7942 ** Tool bar support.
7943
7944 Emacs supports a tool bar at the top of a frame under X. The frame
7945 parameter `tool-bar-lines' (X resource "toolBar", class "ToolBar")
7946 controls how may lines to reserve for the tool bar. A zero value
7947 suppresses the tool bar. If the value is non-zero and
7948 `auto-resize-tool-bars' is non-nil the tool bar's size will be changed
7949 automatically so that all tool bar items are visible.
7950
7951 *** Tool bar item definitions
7952
7953 Tool bar items are defined using `define-key' with a prefix-key
7954 `tool-bar'. For example `(define-key global-map [tool-bar item1] ITEM)'
7955 where ITEM is a list `(menu-item CAPTION BINDING PROPS...)'.
7956
7957 CAPTION is the caption of the item, If it's not a string, it is
7958 evaluated to get a string. The caption is currently not displayed in
7959 the tool bar, but it is displayed if the item doesn't have a `:help'
7960 property (see below).
7961
7962 BINDING is the tool bar item's binding. Tool bar items with keymaps as
7963 binding are currently ignored.
7964
7965 The following properties are recognized:
7966
7967 `:enable FORM'.
7968
7969 FORM is evaluated and specifies whether the tool bar item is enabled
7970 or disabled.
7971
7972 `:visible FORM'
7973
7974 FORM is evaluated and specifies whether the tool bar item is displayed.
7975
7976 `:filter FUNCTION'
7977
7978 FUNCTION is called with one parameter, the same list BINDING in which
7979 FUNCTION is specified as the filter. The value FUNCTION returns is
7980 used instead of BINDING to display this item.
7981
7982 `:button (TYPE SELECTED)'
7983
7984 TYPE must be one of `:radio' or `:toggle'. SELECTED is evaluated
7985 and specifies whether the button is selected (pressed) or not.
7986
7987 `:image IMAGES'
7988
7989 IMAGES is either a single image specification or a vector of four
7990 image specifications. If it is a vector, this table lists the
7991 meaning of each of the four elements:
7992
7993 Index Use when item is
7994 ----------------------------------------
7995 0 enabled and selected
7996 1 enabled and deselected
7997 2 disabled and selected
7998 3 disabled and deselected
7999
8000 If IMAGE is a single image specification, a Laplace edge-detection
8001 algorithm is used on that image to draw the image in disabled state.
8002
8003 `:help HELP-STRING'.
8004
8005 Gives a help string to display for the tool bar item. This help
8006 is displayed when the mouse is moved over the item.
8007
8008 The function `toolbar-add-item' is a convenience function for adding
8009 toolbar items generally, and `tool-bar-add-item-from-menu' can be used
8010 to define a toolbar item with a binding copied from an item on the
8011 menu bar.
8012
8013 The default bindings use a menu-item :filter to derive the tool-bar
8014 dynamically from variable `tool-bar-map' which may be set
8015 buffer-locally to override the global map.
8016
8017 *** Tool-bar-related variables.
8018
8019 If `auto-resize-tool-bar' is non-nil, the tool bar will automatically
8020 resize to show all defined tool bar items. It will never grow larger
8021 than 1/4 of the frame's size.
8022
8023 If `auto-raise-tool-bar-buttons' is non-nil, tool bar buttons will be
8024 raised when the mouse moves over them.
8025
8026 You can add extra space between tool bar items by setting
8027 `tool-bar-button-margin' to a positive integer specifying a number of
8028 pixels, or a pair of integers (X . Y) specifying horizontal and
8029 vertical margins . Default is 1.
8030
8031 You can change the shadow thickness of tool bar buttons by setting
8032 `tool-bar-button-relief' to an integer. Default is 3.
8033
8034 *** Tool-bar clicks with modifiers.
8035
8036 You can bind commands to clicks with control, shift, meta etc. on
8037 a tool bar item. If
8038
8039 (define-key global-map [tool-bar shell]
8040 '(menu-item "Shell" shell
8041 :image (image :type xpm :file "shell.xpm")))
8042
8043 is the original tool bar item definition, then
8044
8045 (define-key global-map [tool-bar S-shell] 'some-command)
8046
8047 makes a binding to run `some-command' for a shifted click on the same
8048 item.
8049
8050 ** Mode line changes.
8051
8052 *** Mouse-sensitive mode line.
8053
8054 The mode line can be made mouse-sensitive by displaying strings there
8055 that have a `local-map' text property. There are three ways to display
8056 a string with a `local-map' property in the mode line.
8057
8058 1. The mode line spec contains a variable whose string value has
8059 a `local-map' text property.
8060
8061 2. The mode line spec contains a format specifier (e.g. `%12b'), and
8062 that format specifier has a `local-map' property.
8063
8064 3. The mode line spec contains a list containing `:eval FORM'. FORM
8065 is evaluated. If the result is a string, and that string has a
8066 `local-map' property.
8067
8068 The same mechanism is used to determine the `face' and `help-echo'
8069 properties of strings in the mode line. See `bindings.el' for an
8070 example.
8071
8072 *** If a mode line element has the form `(:eval FORM)', FORM is
8073 evaluated and the result is used as mode line element.
8074
8075 *** You can suppress mode-line display by setting the buffer-local
8076 variable mode-line-format to nil.
8077
8078 *** A headerline can now be displayed at the top of a window.
8079
8080 This mode line's contents are controlled by the new variable
8081 `header-line-format' and `default-header-line-format' which are
8082 completely analogous to `mode-line-format' and
8083 `default-mode-line-format'. A value of nil means don't display a top
8084 line.
8085
8086 The appearance of top mode lines is controlled by the face
8087 `header-line'.
8088
8089 The function `coordinates-in-window-p' returns `header-line' for a
8090 position in the header-line.
8091
8092 ** Text property `display'
8093
8094 The `display' text property is used to insert images into text,
8095 replace text with other text, display text in marginal area, and it is
8096 also used to control other aspects of how text displays. The value of
8097 the `display' property should be a display specification, as described
8098 below, or a list or vector containing display specifications.
8099
8100 *** Replacing text, displaying text in marginal areas
8101
8102 To replace the text having the `display' property with some other
8103 text, use a display specification of the form `(LOCATION STRING)'.
8104
8105 If LOCATION is `(margin left-margin)', STRING is displayed in the left
8106 marginal area, if it is `(margin right-margin)', it is displayed in
8107 the right marginal area, and if LOCATION is `(margin nil)' STRING
8108 is displayed in the text. In the latter case you can also use the
8109 simpler form STRING as property value.
8110
8111 *** Variable width and height spaces
8112
8113 To display a space of fractional width or height, use a display
8114 specification of the form `(LOCATION STRECH)'. If LOCATION is
8115 `(margin left-margin)', the space is displayed in the left marginal
8116 area, if it is `(margin right-margin)', it is displayed in the right
8117 marginal area, and if LOCATION is `(margin nil)' the space is
8118 displayed in the text. In the latter case you can also use the
8119 simpler form STRETCH as property value.
8120
8121 The stretch specification STRETCH itself is a list of the form `(space
8122 PROPS)', where PROPS is a property list which can contain the
8123 properties described below.
8124
8125 The display of the fractional space replaces the display of the
8126 characters having the `display' property.
8127
8128 - :width WIDTH
8129
8130 Specifies that the space width should be WIDTH times the normal
8131 character width. WIDTH can be an integer or floating point number.
8132
8133 - :relative-width FACTOR
8134
8135 Specifies that the width of the stretch should be computed from the
8136 first character in a group of consecutive characters that have the
8137 same `display' property. The computation is done by multiplying the
8138 width of that character by FACTOR.
8139
8140 - :align-to HPOS
8141
8142 Specifies that the space should be wide enough to reach HPOS. The
8143 value HPOS is measured in units of the normal character width.
8144
8145 Exactly one of the above properties should be used.
8146
8147 - :height HEIGHT
8148
8149 Specifies the height of the space, as HEIGHT, measured in terms of the
8150 normal line height.
8151
8152 - :relative-height FACTOR
8153
8154 The height of the space is computed as the product of the height
8155 of the text having the `display' property and FACTOR.
8156
8157 - :ascent ASCENT
8158
8159 Specifies that ASCENT percent of the height of the stretch should be
8160 used for the ascent of the stretch, i.e. for the part above the
8161 baseline. The value of ASCENT must be a non-negative number less or
8162 equal to 100.
8163
8164 You should not use both `:height' and `:relative-height' together.
8165
8166 *** Images
8167
8168 A display specification for an image has the form `(LOCATION
8169 . IMAGE)', where IMAGE is an image specification. The image replaces,
8170 in the display, the characters having this display specification in
8171 their `display' text property. If LOCATION is `(margin left-margin)',
8172 the image will be displayed in the left marginal area, if it is
8173 `(margin right-margin)' it will be displayed in the right marginal
8174 area, and if LOCATION is `(margin nil)' the image will be displayed in
8175 the text. In the latter case you can also use the simpler form IMAGE
8176 as display specification.
8177
8178 *** Other display properties
8179
8180 - (space-width FACTOR)
8181
8182 Specifies that space characters in the text having that property
8183 should be displayed FACTOR times as wide as normal; FACTOR must be an
8184 integer or float.
8185
8186 - (height HEIGHT)
8187
8188 Display text having this property in a font that is smaller or larger.
8189
8190 If HEIGHT is a list of the form `(+ N)', where N is an integer, that
8191 means to use a font that is N steps larger. If HEIGHT is a list of
8192 the form `(- N)', that means to use a font that is N steps smaller. A
8193 ``step'' is defined by the set of available fonts; each size for which
8194 a font is available counts as a step.
8195
8196 If HEIGHT is a number, that means to use a font that is HEIGHT times
8197 as tall as the frame's default font.
8198
8199 If HEIGHT is a symbol, it is called as a function with the current
8200 height as argument. The function should return the new height to use.
8201
8202 Otherwise, HEIGHT is evaluated to get the new height, with the symbol
8203 `height' bound to the current specified font height.
8204
8205 - (raise FACTOR)
8206
8207 FACTOR must be a number, specifying a multiple of the current
8208 font's height. If it is positive, that means to display the characters
8209 raised. If it is negative, that means to display them lower down. The
8210 amount of raising or lowering is computed without taking account of the
8211 `height' subproperty.
8212
8213 *** Conditional display properties
8214
8215 All display specifications can be conditionalized. If a specification
8216 has the form `(when CONDITION . SPEC)', the specification SPEC applies
8217 only when CONDITION yields a non-nil value when evaluated. During the
8218 evaluation, `object' is bound to the string or buffer having the
8219 conditional display property; `position' and `buffer-position' are
8220 bound to the position within `object' and the buffer position where
8221 the display property was found, respectively. Both positions can be
8222 different when object is a string.
8223
8224 The normal specification consisting of SPEC only is equivalent to
8225 `(when t . SPEC)'.
8226
8227 ** New menu separator types.
8228
8229 Emacs now supports more than one menu separator type. Menu items with
8230 item names consisting of dashes only (including zero dashes) are
8231 treated like before. In addition, the following item names are used
8232 to specify other menu separator types.
8233
8234 - `--no-line' or `--space', or `--:space', or `--:noLine'
8235
8236 No separator lines are drawn, but a small space is inserted where the
8237 separator occurs.
8238
8239 - `--single-line' or `--:singleLine'
8240
8241 A single line in the menu's foreground color.
8242
8243 - `--double-line' or `--:doubleLine'
8244
8245 A double line in the menu's foreground color.
8246
8247 - `--single-dashed-line' or `--:singleDashedLine'
8248
8249 A single dashed line in the menu's foreground color.
8250
8251 - `--double-dashed-line' or `--:doubleDashedLine'
8252
8253 A double dashed line in the menu's foreground color.
8254
8255 - `--shadow-etched-in' or `--:shadowEtchedIn'
8256
8257 A single line with 3D sunken appearance. This is the form
8258 displayed for item names consisting of dashes only.
8259
8260 - `--shadow-etched-out' or `--:shadowEtchedOut'
8261
8262 A single line with 3D raised appearance.
8263
8264 - `--shadow-etched-in-dash' or `--:shadowEtchedInDash'
8265
8266 A single dashed line with 3D sunken appearance.
8267
8268 - `--shadow-etched-out-dash' or `--:shadowEtchedOutDash'
8269
8270 A single dashed line with 3D raise appearance.
8271
8272 - `--shadow-double-etched-in' or `--:shadowDoubleEtchedIn'
8273
8274 Two lines with 3D sunken appearance.
8275
8276 - `--shadow-double-etched-out' or `--:shadowDoubleEtchedOut'
8277
8278 Two lines with 3D raised appearance.
8279
8280 - `--shadow-double-etched-in-dash' or `--:shadowDoubleEtchedInDash'
8281
8282 Two dashed lines with 3D sunken appearance.
8283
8284 - `--shadow-double-etched-out-dash' or `--:shadowDoubleEtchedOutDash'
8285
8286 Two dashed lines with 3D raised appearance.
8287
8288 Under LessTif/Motif, the last four separator types are displayed like
8289 the corresponding single-line separators.
8290
8291 ** New frame parameters for scroll bar colors.
8292
8293 The new frame parameters `scroll-bar-foreground' and
8294 `scroll-bar-background' can be used to change scroll bar colors.
8295 Their value must be either a color name, a string, or nil to specify
8296 that scroll bars should use a default color. For toolkit scroll bars,
8297 default colors are toolkit specific. For non-toolkit scroll bars, the
8298 default background is the background color of the frame, and the
8299 default foreground is black.
8300
8301 The X resource name of these parameters are `scrollBarForeground'
8302 (class ScrollBarForeground) and `scrollBarBackground' (class
8303 `ScrollBarBackground').
8304
8305 Setting these parameters overrides toolkit specific X resource
8306 settings for scroll bar colors.
8307
8308 ** You can set `redisplay-dont-pause' to a non-nil value to prevent
8309 display updates from being interrupted when input is pending.
8310
8311 ** Changing a window's width may now change its window start if it
8312 starts on a continuation line. The new window start is computed based
8313 on the window's new width, starting from the start of the continued
8314 line as the start of the screen line with the minimum distance from
8315 the original window start.
8316
8317 ** The variable `hscroll-step' and the functions
8318 `hscroll-point-visible' and `hscroll-window-column' have been removed
8319 now that proper horizontal scrolling is implemented.
8320
8321 ** Windows can now be made fixed-width and/or fixed-height.
8322
8323 A window is fixed-size if its buffer has a buffer-local variable
8324 `window-size-fixed' whose value is not nil. A value of `height' makes
8325 windows fixed-height, a value of `width' makes them fixed-width, any
8326 other non-nil value makes them both fixed-width and fixed-height.
8327
8328 The following code makes all windows displaying the current buffer
8329 fixed-width and fixed-height.
8330
8331 (set (make-local-variable 'window-size-fixed) t)
8332
8333 A call to enlarge-window on a window gives an error if that window is
8334 fixed-width and it is tried to change the window's width, or if the
8335 window is fixed-height, and it is tried to change its height. To
8336 change the size of a fixed-size window, bind `window-size-fixed'
8337 temporarily to nil, for example
8338
8339 (let ((window-size-fixed nil))
8340 (enlarge-window 10))
8341
8342 Likewise, an attempt to split a fixed-height window vertically,
8343 or a fixed-width window horizontally results in a error.
8344
8345 ** The cursor-type frame parameter is now supported on MS-DOS
8346 terminals. When Emacs starts, it by default changes the cursor shape
8347 to a solid box, as it does on Unix. The `cursor-type' frame parameter
8348 overrides this as it does on Unix, except that the bar cursor is
8349 horizontal rather than vertical (since the MS-DOS display doesn't
8350 support a vertical-bar cursor).
8351
8352
8353 \f
8354 * Emacs 20.7 is a bug-fix release with few user-visible changes
8355
8356 ** It is now possible to use CCL-based coding systems for keyboard
8357 input.
8358
8359 ** ange-ftp now handles FTP security extensions, like Kerberos.
8360
8361 ** Rmail has been extended to recognize more forms of digest messages.
8362
8363 ** Now, most coding systems set in keyboard coding system work not
8364 only for character input, but also in incremental search. The
8365 exceptions are such coding systems that handle 2-byte character sets
8366 (e.g euc-kr, euc-jp) and that use ISO's escape sequence
8367 (e.g. iso-2022-jp). They are ignored in incremental search.
8368
8369 ** Support for Macintosh PowerPC-based machines running GNU/Linux has
8370 been added.
8371
8372 \f
8373 * Emacs 20.6 is a bug-fix release with one user-visible change
8374
8375 ** Support for ARM-based non-RISCiX machines has been added.
8376
8377
8378 \f
8379 * Emacs 20.5 is a bug-fix release with no user-visible changes.
8380
8381 ** Not new, but not mentioned before:
8382 M-w when Transient Mark mode is enabled disables the mark.
8383 \f
8384 * Changes in Emacs 20.4
8385
8386 ** Init file may be called .emacs.el.
8387
8388 You can now call the Emacs init file `.emacs.el'.
8389 Formerly the name had to be `.emacs'. If you use the name
8390 `.emacs.el', you can byte-compile the file in the usual way.
8391
8392 If both `.emacs' and `.emacs.el' exist, the latter file
8393 is the one that is used.
8394
8395 ** shell-command, and shell-command-on-region, now return
8396 the exit code of the command (unless it is asynchronous).
8397 Also, you can specify a place to put the error output,
8398 separate from the command's regular output.
8399 Interactively, the variable shell-command-default-error-buffer
8400 says where to put error output; set it to a buffer name.
8401 In calls from Lisp, an optional argument ERROR-BUFFER specifies
8402 the buffer name.
8403
8404 When you specify a non-nil error buffer (or buffer name), any error
8405 output is inserted before point in that buffer, with \f\n to separate
8406 it from the previous batch of error output. The error buffer is not
8407 cleared, so error output from successive commands accumulates there.
8408
8409 ** Setting the default value of enable-multibyte-characters to nil in
8410 the .emacs file, either explicitly using setq-default, or via Custom,
8411 is now essentially equivalent to using --unibyte: all buffers
8412 created during startup will be made unibyte after loading .emacs.
8413
8414 ** C-x C-f now handles the wildcards * and ? in file names. For
8415 example, typing C-x C-f c*.c RET visits all the files whose names
8416 match c*.c. To visit a file whose name contains * or ?, add the
8417 quoting sequence /: to the beginning of the file name.
8418
8419 ** The M-x commands keep-lines, flush-lines and count-matches
8420 now have the same feature as occur and query-replace:
8421 if the pattern contains any upper case letters, then
8422 they never ignore case.
8423
8424 ** The end-of-line format conversion feature previously mentioned
8425 under `* Emacs 20.1 changes for MS-DOS and MS-Windows' actually
8426 applies to all operating systems. Emacs recognizes from the contents
8427 of a file what convention it uses to separate lines--newline, CRLF, or
8428 just CR--and automatically converts the contents to the normal Emacs
8429 convention (using newline to separate lines) for editing. This is a
8430 part of the general feature of coding system conversion.
8431
8432 If you subsequently save the buffer, Emacs converts the text back to
8433 the same format that was used in the file before.
8434
8435 You can turn off end-of-line conversion by setting the variable
8436 `inhibit-eol-conversion' to non-nil, e.g. with Custom in the MULE group.
8437
8438 ** The character set property `prefered-coding-system' has been
8439 renamed to `preferred-coding-system', for the sake of correct spelling.
8440 This is a fairly internal feature, so few programs should be affected.
8441
8442 ** Mode-line display of end-of-line format is changed.
8443 The indication of the end-of-line format of the file visited by a
8444 buffer is now more explicit when that format is not the usual one for
8445 your operating system. For example, the DOS-style end-of-line format
8446 is displayed as "(DOS)" on Unix and GNU/Linux systems. The usual
8447 end-of-line format is still displayed as a single character (colon for
8448 Unix, backslash for DOS and Windows, and forward slash for the Mac).
8449
8450 The values of the variables eol-mnemonic-unix, eol-mnemonic-dos,
8451 eol-mnemonic-mac, and eol-mnemonic-undecided, which are strings,
8452 control what is displayed in the mode line for each end-of-line
8453 format. You can now customize these variables.
8454
8455 ** In the previous version of Emacs, tar-mode didn't work well if a
8456 filename contained non-ASCII characters. Now this is fixed. Such a
8457 filename is decoded by file-name-coding-system if the default value of
8458 enable-multibyte-characters is non-nil.
8459
8460 ** The command temp-buffer-resize-mode toggles a minor mode
8461 in which temporary buffers (such as help buffers) are given
8462 windows just big enough to hold the whole contents.
8463
8464 ** If you use completion.el, you must now run the function
8465 dynamic-completion-mode to enable it. Just loading the file
8466 doesn't have any effect.
8467
8468 ** In Flyspell mode, the default is now to make just one Ispell process,
8469 not one per buffer.
8470
8471 ** If you use iswitchb but do not call (iswitchb-default-keybindings) to
8472 use the default keybindings, you will need to add the following line:
8473 (add-hook 'minibuffer-setup-hook 'iswitchb-minibuffer-setup)
8474
8475 ** Auto-show mode is no longer enabled just by loading auto-show.el.
8476 To control it, set `auto-show-mode' via Custom or use the
8477 `auto-show-mode' command.
8478
8479 ** Handling of X fonts' ascent/descent parameters has been changed to
8480 avoid redisplay problems. As a consequence, compared with previous
8481 versions the line spacing and frame size now differ with some font
8482 choices, typically increasing by a pixel per line. This change
8483 occurred in version 20.3 but was not documented then.
8484
8485 ** If you select the bar cursor style, it uses the frame's
8486 cursor-color, rather than the cursor foreground pixel.
8487
8488 ** In multibyte mode, Rmail decodes incoming MIME messages using the
8489 character set specified in the message. If you want to disable this
8490 feature, set the variable rmail-decode-mime-charset to nil.
8491
8492 ** Not new, but not mentioned previously in NEWS: when you use #! at
8493 the beginning of a file to make it executable and specify an
8494 interpreter program, Emacs looks on the second line for the -*- mode
8495 and variable specification, as well as on the first line.
8496
8497 ** Support for IBM codepage encoding of non-ASCII characters.
8498
8499 The new command M-x codepage-setup creates a special coding system
8500 that can be used to convert text between a specific IBM codepage and
8501 one of the character sets built into Emacs which matches that
8502 codepage. For example, codepage 850 corresponds to Latin-1 character
8503 set, codepage 855 corresponds to Cyrillic-ISO character set, etc.
8504
8505 Windows codepages 1250, 1251 and some others, where Windows deviates
8506 from the corresponding ISO character set, are also supported.
8507
8508 IBM box-drawing characters and other glyphs which don't have
8509 equivalents in the corresponding ISO character set, are converted to
8510 a character defined by dos-unsupported-char-glyph on MS-DOS, and to
8511 `?' on other systems.
8512
8513 IBM codepages are widely used on MS-DOS and MS-Windows, so this
8514 feature is most useful on those platforms, but it can also be used on
8515 Unix.
8516
8517 Emacs compiled for MS-DOS automatically loads the support for the
8518 current codepage when it starts.
8519
8520 ** Mail changes
8521
8522 *** When mail is sent using compose-mail (C-x m), and if
8523 `mail-send-nonascii' is set to the new default value `mime',
8524 appropriate MIME headers are added. The headers are added only if
8525 non-ASCII characters are present in the body of the mail, and no other
8526 MIME headers are already present. For example, the following three
8527 headers are added if the coding system used in the *mail* buffer is
8528 latin-1:
8529
8530 MIME-version: 1.0
8531 Content-type: text/plain; charset=iso-8859-1
8532 Content-Transfer-Encoding: 8bit
8533
8534 *** The new variable default-sendmail-coding-system specifies the
8535 default way to encode outgoing mail. This has higher priority than
8536 default-buffer-file-coding-system but has lower priority than
8537 sendmail-coding-system and the local value of
8538 buffer-file-coding-system.
8539
8540 You should not set this variable manually. Instead, set
8541 sendmail-coding-system to specify a fixed encoding for all outgoing
8542 mail.
8543
8544 *** When you try to send a message that contains non-ASCII characters,
8545 if the coding system specified by those variables doesn't handle them,
8546 Emacs will ask you to select a suitable coding system while showing a
8547 list of possible coding systems.
8548
8549 ** CC Mode changes
8550
8551 *** c-default-style can now take an association list that maps major
8552 modes to style names. When this variable is an alist, Java mode no
8553 longer hardcodes a setting to "java" style. See the variable's
8554 docstring for details.
8555
8556 *** It's now possible to put a list as the offset on a syntactic
8557 symbol. The list is evaluated recursively until a non-nil offset is
8558 found. This is useful to combine several lineup functions to act in a
8559 prioritized order on a single line. However, none of the supplied
8560 lineup functions use this feature currently.
8561
8562 *** New syntactic symbol catch-clause, which is used on the "catch" and
8563 "finally" lines in try-catch constructs in C++ and Java.
8564
8565 *** New cleanup brace-catch-brace on c-cleanup-list, which does for
8566 "catch" lines what brace-elseif-brace does for "else if" lines.
8567
8568 *** The braces of Java anonymous inner classes are treated separately
8569 from the braces of other classes in auto-newline mode. Two new
8570 symbols inexpr-class-open and inexpr-class-close may be used on
8571 c-hanging-braces-alist to control the automatic newlines used for
8572 anonymous classes.
8573
8574 *** Support for the Pike language added, along with new Pike specific
8575 syntactic symbols: inlambda, lambda-intro-cont
8576
8577 *** Support for Java anonymous classes via new syntactic symbol
8578 inexpr-class. New syntactic symbol inexpr-statement for Pike
8579 support and gcc-style statements inside expressions. New lineup
8580 function c-lineup-inexpr-block.
8581
8582 *** New syntactic symbol brace-entry-open which is used in brace lists
8583 (i.e. static initializers) when a list entry starts with an open
8584 brace. These used to be recognized as brace-list-entry's.
8585 c-electric-brace also recognizes brace-entry-open braces
8586 (brace-list-entry's can no longer be electrified).
8587
8588 *** New command c-indent-line-or-region, not bound by default.
8589
8590 *** `#' is only electric when typed in the indentation of a line.
8591
8592 *** Parentheses are now electric (via the new command c-electric-paren)
8593 for auto-reindenting lines when parens are typed.
8594
8595 *** In "gnu" style, inline-open offset is now set to zero.
8596
8597 *** Uniform handling of the inclass syntactic symbol. The indentation
8598 associated with it is now always relative to the class opening brace.
8599 This means that the indentation behavior has changed in some
8600 circumstances, but only if you've put anything besides 0 on the
8601 class-open syntactic symbol (none of the default styles do that).
8602
8603 ** Gnus changes.
8604
8605 *** New functionality for using Gnus as an offline newsreader has been
8606 added. A plethora of new commands and modes have been added. See the
8607 Gnus manual for the full story.
8608
8609 *** The nndraft backend has returned, but works differently than
8610 before. All Message buffers are now also articles in the nndraft
8611 group, which is created automatically.
8612
8613 *** `gnus-alter-header-function' can now be used to alter header
8614 values.
8615
8616 *** `gnus-summary-goto-article' now accept Message-ID's.
8617
8618 *** A new Message command for deleting text in the body of a message
8619 outside the region: `C-c C-v'.
8620
8621 *** You can now post to component group in nnvirtual groups with
8622 `C-u C-c C-c'.
8623
8624 *** `nntp-rlogin-program' -- new variable to ease customization.
8625
8626 *** `C-u C-c C-c' in `gnus-article-edit-mode' will now inhibit
8627 re-highlighting of the article buffer.
8628
8629 *** New element in `gnus-boring-article-headers' -- `long-to'.
8630
8631 *** `M-i' symbolic prefix command. See the section "Symbolic
8632 Prefixes" in the Gnus manual for details.
8633
8634 *** `L' and `I' in the summary buffer now take the symbolic prefix
8635 `a' to add the score rule to the "all.SCORE" file.
8636
8637 *** `gnus-simplify-subject-functions' variable to allow greater
8638 control over simplification.
8639
8640 *** `A T' -- new command for fetching the current thread.
8641
8642 *** `/ T' -- new command for including the current thread in the
8643 limit.
8644
8645 *** `M-RET' is a new Message command for breaking cited text.
8646
8647 *** \\1-expressions are now valid in `nnmail-split-methods'.
8648
8649 *** The `custom-face-lookup' function has been removed.
8650 If you used this function in your initialization files, you must
8651 rewrite them to use `face-spec-set' instead.
8652
8653 *** Canceling now uses the current select method. Symbolic prefix
8654 `a' forces normal posting method.
8655
8656 *** New command to translate M******** sm*rtq**t*s into proper text
8657 -- `W d'.
8658
8659 *** For easier debugging of nntp, you can set `nntp-record-commands'
8660 to a non-nil value.
8661
8662 *** nntp now uses ~/.authinfo, a .netrc-like file, for controlling
8663 where and how to send AUTHINFO to NNTP servers.
8664
8665 *** A command for editing group parameters from the summary buffer
8666 has been added.
8667
8668 *** A history of where mails have been split is available.
8669
8670 *** A new article date command has been added -- `article-date-iso8601'.
8671
8672 *** Subjects can be simplified when threading by setting
8673 `gnus-score-thread-simplify'.
8674
8675 *** A new function for citing in Message has been added --
8676 `message-cite-original-without-signature'.
8677
8678 *** `article-strip-all-blank-lines' -- new article command.
8679
8680 *** A new Message command to kill to the end of the article has
8681 been added.
8682
8683 *** A minimum adaptive score can be specified by using the
8684 `gnus-adaptive-word-minimum' variable.
8685
8686 *** The "lapsed date" article header can be kept continually
8687 updated by the `gnus-start-date-timer' command.
8688
8689 *** Web listserv archives can be read with the nnlistserv backend.
8690
8691 *** Old dejanews archives can now be read by nnweb.
8692
8693 *** `gnus-posting-styles' has been re-activated.
8694
8695 ** Changes to TeX and LaTeX mode
8696
8697 *** The new variable `tex-start-options-string' can be used to give
8698 options for the TeX run. The default value causes TeX to run in
8699 nonstopmode. For an interactive TeX run set it to nil or "".
8700
8701 *** The command `tex-feed-input' sends input to the Tex Shell. In a
8702 TeX buffer it is bound to the keys C-RET, C-c RET, and C-c C-m (some
8703 of these keys may not work on all systems). For instance, if you run
8704 TeX interactively and if the TeX run stops because of an error, you
8705 can continue it without leaving the TeX buffer by typing C-RET.
8706
8707 *** The Tex Shell Buffer is now in `compilation-shell-minor-mode'.
8708 All error-parsing commands of the Compilation major mode are available
8709 but bound to keys that don't collide with the shell. Thus you can use
8710 the Tex Shell for command line executions like a usual shell.
8711
8712 *** The commands `tex-validate-region' and `tex-validate-buffer' check
8713 the matching of braces and $'s. The errors are listed in a *Occur*
8714 buffer and you can use C-c C-c or mouse-2 to go to a particular
8715 mismatch.
8716
8717 ** Changes to RefTeX mode
8718
8719 *** The table of contents buffer can now also display labels and
8720 file boundaries in addition to sections. Use `l', `i', and `c' keys.
8721
8722 *** Labels derived from context (the section heading) are now
8723 lowercase by default. To make the label legal in LaTeX, latin-1
8724 characters will lose their accent. All Mule characters will be
8725 removed from the label.
8726
8727 *** The automatic display of cross reference information can also use
8728 a window instead of the echo area. See variable `reftex-auto-view-crossref'.
8729
8730 *** kpsewhich can be used by RefTeX to find TeX and BibTeX files. See the
8731 customization group `reftex-finding-files'.
8732
8733 *** The option `reftex-bibfile-ignore-list' has been renamed to
8734 `reftex-bibfile-ignore-regexps' and indeed can be fed with regular
8735 expressions.
8736
8737 *** Multiple Selection buffers are now hidden buffers.
8738
8739 ** New/deleted modes and packages
8740
8741 *** The package snmp-mode.el provides major modes for editing SNMP and
8742 SNMPv2 MIBs. It has entries on `auto-mode-alist'.
8743
8744 *** The package sql.el provides a major mode, M-x sql-mode, for
8745 editing SQL files, and M-x sql-interactive-mode for interacting with
8746 SQL interpreters. It has an entry on `auto-mode-alist'.
8747
8748 *** M-x highlight-changes-mode provides a minor mode displaying buffer
8749 changes with a special face.
8750
8751 *** ispell4.el has been deleted. It got in the way of ispell.el and
8752 this was hard to fix reliably. It has long been obsolete -- use
8753 Ispell 3.1 and ispell.el.
8754 \f
8755 * MS-DOS changes in Emacs 20.4
8756
8757 ** Emacs compiled for MS-DOS now supports MULE features better.
8758 This includes support for display of all ISO 8859-N character sets,
8759 conversion to and from IBM codepage encoding of non-ASCII characters,
8760 and automatic setup of the MULE environment at startup. For details,
8761 check out the section `MS-DOS and MULE' in the manual.
8762
8763 The MS-DOS installation procedure automatically configures and builds
8764 Emacs with input method support if it finds an unpacked Leim
8765 distribution when the config.bat script is run.
8766
8767 ** Formerly, the value of lpr-command did not affect printing on
8768 MS-DOS unless print-region-function was set to nil, but now it
8769 controls whether an external program is invoked or output is written
8770 directly to a printer port. Similarly, in the previous version of
8771 Emacs, the value of ps-lpr-command did not affect PostScript printing
8772 on MS-DOS unless ps-printer-name was set to something other than a
8773 string (eg. t or `pipe'), but now it controls whether an external
8774 program is used. (These changes were made so that configuration of
8775 printing variables would be almost identical across all platforms.)
8776
8777 ** In the previous version of Emacs, PostScript and non-PostScript
8778 output was piped to external programs, but because most print programs
8779 available for MS-DOS and MS-Windows cannot read data from their standard
8780 input, on those systems the data to be output is now written to a
8781 temporary file whose name is passed as the last argument to the external
8782 program.
8783
8784 An exception is made for `print', a standard program on Windows NT,
8785 and `nprint', a standard program on Novell Netware. For both of these
8786 programs, the command line is constructed in the appropriate syntax
8787 automatically, using only the value of printer-name or ps-printer-name
8788 as appropriate--the value of the relevant `-switches' variable is
8789 ignored, as both programs have no useful switches.
8790
8791 ** The value of the variable dos-printer (cf. dos-ps-printer), if it has
8792 a value, overrides the value of printer-name (cf. ps-printer-name), on
8793 MS-DOS and MS-Windows only. This has been true since version 20.3, but
8794 was not documented clearly before.
8795
8796 ** All the Emacs games now work on MS-DOS terminals.
8797 This includes Tetris and Snake.
8798 \f
8799 * Lisp changes in Emacs 20.4
8800
8801 ** New functions line-beginning-position and line-end-position
8802 return the position of the beginning or end of the current line.
8803 They both accept an optional argument, which has the same
8804 meaning as the argument to beginning-of-line or end-of-line.
8805
8806 ** find-file and allied functions now have an optional argument
8807 WILDCARD. If this is non-nil, they do wildcard processing,
8808 and visit all files that match the wildcard pattern.
8809
8810 ** Changes in the file-attributes function.
8811
8812 *** The file size returned by file-attributes may be an integer or a float.
8813 It is an integer if the size fits in a Lisp integer, float otherwise.
8814
8815 *** The inode number returned by file-attributes may be an integer (if
8816 the number fits in a Lisp integer) or a cons cell containing two
8817 integers.
8818
8819 ** The new function directory-files-and-attributes returns a list of
8820 files in a directory and their attributes. It accepts the same
8821 arguments as directory-files and has similar semantics, except that
8822 file names and attributes are returned.
8823
8824 ** The new function file-attributes-lessp is a helper function for
8825 sorting the list generated by directory-files-and-attributes. It
8826 accepts two arguments, each a list of a file name and its attributes.
8827 It compares the file names of each according to string-lessp and
8828 returns the result.
8829
8830 ** The new function file-expand-wildcards expands a wildcard-pattern
8831 to produce a list of existing files that match the pattern.
8832
8833 ** New functions for base64 conversion:
8834
8835 The function base64-encode-region converts a part of the buffer
8836 into the base64 code used in MIME. base64-decode-region
8837 performs the opposite conversion. Line-breaking is supported
8838 optionally.
8839
8840 Functions base64-encode-string and base64-decode-string do a similar
8841 job on the text in a string. They return the value as a new string.
8842
8843 **
8844 The new function process-running-child-p
8845 will tell you if a subprocess has given control of its
8846 terminal to its own child process.
8847
8848 ** interrupt-process and such functions have a new feature:
8849 when the second argument is `lambda', they send a signal
8850 to the running child of the subshell, if any, but if the shell
8851 itself owns its terminal, no signal is sent.
8852
8853 ** There are new widget types `plist' and `alist' which can
8854 be used for customizing variables whose values are plists or alists.
8855
8856 ** easymenu.el now understands `:key-sequence' and `:style button'.
8857 :included is an alias for :visible.
8858
8859 easy-menu-add-item now understands the values returned by
8860 easy-menu-remove-item and easy-menu-item-present-p. This can be used
8861 to move or copy menu entries.
8862
8863 ** Multibyte editing changes
8864
8865 *** The definitions of sref and char-bytes are changed. Now, sref is
8866 an alias of aref and char-bytes always returns 1. This change is to
8867 make some Emacs Lisp code which works on 20.2 and earlier also
8868 work on the latest Emacs. Such code uses a combination of sref and
8869 char-bytes in a loop typically as below:
8870 (setq char (sref str idx)
8871 idx (+ idx (char-bytes idx)))
8872 The byte-compiler now warns that this is obsolete.
8873
8874 If you want to know how many bytes a specific multibyte character
8875 (say, CH) occupies in a multibyte buffer, use this code:
8876 (charset-bytes (char-charset ch))
8877
8878 *** In multibyte mode, when you narrow a buffer to some region, and the
8879 region is preceded or followed by non-ASCII codes, inserting or
8880 deleting at the head or the end of the region may signal this error:
8881
8882 Byte combining across boundary of accessible buffer text inhibited
8883
8884 This is to avoid some bytes being combined together into a character
8885 across the boundary.
8886
8887 *** The functions find-charset-region and find-charset-string include
8888 `unknown' in the returned list in the following cases:
8889 o The current buffer or the target string is unibyte and
8890 contains 8-bit characters.
8891 o The current buffer or the target string is multibyte and
8892 contains invalid characters.
8893
8894 *** The functions decode-coding-region and encode-coding-region remove
8895 text properties of the target region. Ideally, they should correctly
8896 preserve text properties, but for the moment, it's hard. Removing
8897 text properties is better than preserving them in a less-than-correct
8898 way.
8899
8900 *** prefer-coding-system sets EOL conversion of default coding systems.
8901 If the argument to prefer-coding-system specifies a certain type of
8902 end of line conversion, the default coding systems set by
8903 prefer-coding-system will specify that conversion type for end of line.
8904
8905 *** The new function thai-compose-string can be used to properly
8906 compose Thai characters in a string.
8907
8908 ** The primitive `define-prefix-command' now takes an optional third
8909 argument NAME, which should be a string. It supplies the menu name
8910 for the created keymap. Keymaps created in order to be displayed as
8911 menus should always use the third argument.
8912
8913 ** The meanings of optional second arguments for read-char,
8914 read-event, and read-char-exclusive are flipped. Now the second
8915 arguments are INHERIT-INPUT-METHOD. These functions use the current
8916 input method (if any) if and only if INHERIT-INPUT-METHOD is non-nil.
8917
8918 ** The new function clear-this-command-keys empties out the contents
8919 of the vector that (this-command-keys) returns. This is useful in
8920 programs that read passwords, to prevent the passwords from echoing
8921 inadvertently as part of the next command in certain cases.
8922
8923 ** The new macro `with-temp-message' displays a temporary message in
8924 the echo area, while executing some Lisp code. Like `progn', it
8925 returns the value of the last form, but it also restores the previous
8926 echo area contents.
8927
8928 (with-temp-message MESSAGE &rest BODY)
8929
8930 ** The function `require' now takes an optional third argument
8931 NOERROR. If it is non-nil, then there is no error if the
8932 requested feature cannot be loaded.
8933
8934 ** In the function modify-face, an argument of (nil) for the
8935 foreground color, background color or stipple pattern
8936 means to clear out that attribute.
8937
8938 ** The `outer-window-id' frame property of an X frame
8939 gives the window number of the outermost X window for the frame.
8940
8941 ** Temporary buffers made with with-output-to-temp-buffer are now
8942 read-only by default, and normally use the major mode Help mode
8943 unless you put them in some other non-Fundamental mode before the
8944 end of with-output-to-temp-buffer.
8945
8946 ** The new functions gap-position and gap-size return information on
8947 the gap of the current buffer.
8948
8949 ** The new functions position-bytes and byte-to-position provide a way
8950 to convert between character positions and byte positions in the
8951 current buffer.
8952
8953 ** vc.el defines two new macros, `edit-vc-file' and `with-vc-file', to
8954 facilitate working with version-controlled files from Lisp programs.
8955 These macros check out a given file automatically if needed, and check
8956 it back in after any modifications have been made.
8957 \f
8958 * Installation Changes in Emacs 20.3
8959
8960 ** The default value of load-path now includes most subdirectories of
8961 the site-specific directories /usr/local/share/emacs/site-lisp and
8962 /usr/local/share/emacs/VERSION/site-lisp, in addition to those
8963 directories themselves. Both immediate subdirectories and
8964 subdirectories multiple levels down are added to load-path.
8965
8966 Not all subdirectories are included, though. Subdirectories whose
8967 names do not start with a letter or digit are excluded.
8968 Subdirectories named RCS or CVS are excluded. Also, a subdirectory
8969 which contains a file named `.nosearch' is excluded. You can use
8970 these methods to prevent certain subdirectories from being searched.
8971
8972 Emacs finds these subdirectories and adds them to load-path when it
8973 starts up. While it would be cleaner to find the subdirectories each
8974 time Emacs loads a file, that would be much slower.
8975
8976 This feature is an incompatible change. If you have stored some Emacs
8977 Lisp files in a subdirectory of the site-lisp directory specifically
8978 to prevent them from being used, you will need to rename the
8979 subdirectory to start with a non-alphanumeric character, or create a
8980 `.nosearch' file in it, in order to continue to achieve the desired
8981 results.
8982
8983 ** Emacs no longer includes an old version of the C preprocessor from
8984 GCC. This was formerly used to help compile Emacs with C compilers
8985 that had limits on the significant length of an identifier, but in
8986 fact we stopped supporting such compilers some time ago.
8987 \f
8988 * Changes in Emacs 20.3
8989
8990 ** The new command C-x z (repeat) repeats the previous command
8991 including its argument. If you repeat the z afterward,
8992 it repeats the command additional times; thus, you can
8993 perform many repetitions with one keystroke per repetition.
8994
8995 ** Emacs now supports "selective undo" which undoes only within a
8996 specified region. To do this, set point and mark around the desired
8997 region and type C-u C-x u (or C-u C-_). You can then continue undoing
8998 further, within the same region, by repeating the ordinary undo
8999 command C-x u or C-_. This will keep undoing changes that were made
9000 within the region you originally specified, until either all of them
9001 are undone, or it encounters a change which crosses the edge of that
9002 region.
9003
9004 In Transient Mark mode, undoing when a region is active requests
9005 selective undo.
9006
9007 ** If you specify --unibyte when starting Emacs, then all buffers are
9008 unibyte, except when a Lisp program specifically creates a multibyte
9009 buffer. Setting the environment variable EMACS_UNIBYTE has the same
9010 effect. The --no-unibyte option overrides EMACS_UNIBYTE and directs
9011 Emacs to run normally in multibyte mode.
9012
9013 The option --unibyte does not affect the reading of Emacs Lisp files,
9014 though. If you want a Lisp file to be read in unibyte mode, use
9015 -*-unibyte: t;-*- on its first line. That will force Emacs to
9016 load that file in unibyte mode, regardless of how Emacs was started.
9017
9018 ** toggle-enable-multibyte-characters no longer has a key binding and
9019 no longer appears in the menu bar. We've realized that changing the
9020 enable-multibyte-characters variable in an existing buffer is
9021 something that most users not do.
9022
9023 ** You can specify a coding system to use for the next cut or paste
9024 operations through the window system with the command C-x RET X.
9025 The coding system can make a difference for communication with other
9026 applications.
9027
9028 C-x RET x specifies a coding system for all subsequent cutting and
9029 pasting operations.
9030
9031 ** You can specify the printer to use for commands that do printing by
9032 setting the variable `printer-name'. Just what a printer name looks
9033 like depends on your operating system. You can specify a different
9034 printer for the Postscript printing commands by setting
9035 `ps-printer-name'.
9036
9037 ** Emacs now supports on-the-fly spell checking by the means of a
9038 minor mode. It is called M-x flyspell-mode. You don't have to remember
9039 any other special commands to use it, and you will hardly notice it
9040 except when you make a spelling error. Flyspell works by highlighting
9041 incorrect words as soon as they are completed or as soon as the cursor
9042 hits a new word.
9043
9044 Flyspell mode works with whichever dictionary you have selected for
9045 Ispell in Emacs. In TeX mode, it understands TeX syntax so as not
9046 to be confused by TeX commands.
9047
9048 You can correct a misspelled word by editing it into something
9049 correct. You can also correct it, or accept it as correct, by
9050 clicking on the word with Mouse-2; that gives you a pop-up menu
9051 of various alternative replacements and actions.
9052
9053 Flyspell mode also proposes "automatic" corrections. M-TAB replaces
9054 the current misspelled word with a possible correction. If several
9055 corrections are made possible, M-TAB cycles through them in
9056 alphabetical order, or in order of decreasing likelihood if
9057 flyspell-sort-corrections is nil.
9058
9059 Flyspell mode also flags an error when a word is repeated, if
9060 flyspell-mark-duplications-flag is non-nil.
9061
9062 ** Changes in input method usage.
9063
9064 Now you can use arrow keys (right, left, down, up) for selecting among
9065 the alternatives just the same way as you do by C-f, C-b, C-n, and C-p
9066 respectively.
9067
9068 You can use the ENTER key to accept the current conversion.
9069
9070 If you type TAB to display a list of alternatives, you can select one
9071 of the alternatives with Mouse-2.
9072
9073 The meaning of the variable `input-method-verbose-flag' is changed so
9074 that you can set it to t, nil, `default', or `complex-only'.
9075
9076 If the value is nil, extra guidance is never given.
9077
9078 If the value is t, extra guidance is always given.
9079
9080 If the value is `complex-only', extra guidance is always given only
9081 when you are using complex input methods such as chinese-py.
9082
9083 If the value is `default' (this is the default), extra guidance is
9084 given in the following case:
9085 o When you are using a complex input method.
9086 o When you are using a simple input method but not in the minibuffer.
9087
9088 If you are using Emacs through a very slow line, setting
9089 input-method-verbose-flag to nil or to complex-only is a good choice,
9090 and if you are using an input method you are not familiar with,
9091 setting it to t is helpful.
9092
9093 The old command select-input-method is now called set-input-method.
9094
9095 In the language environment "Korean", you can use the following
9096 keys:
9097 Shift-SPC toggle-korean-input-method
9098 C-F9 quail-hangul-switch-symbol-ksc
9099 F9 quail-hangul-switch-hanja
9100 These key bindings are canceled when you switch to another language
9101 environment.
9102
9103 ** The minibuffer history of file names now records the specified file
9104 names, not the entire minibuffer input. For example, if the
9105 minibuffer starts out with /usr/foo/, you might type in /etc/passwd to
9106 get
9107
9108 /usr/foo//etc/passwd
9109
9110 which stands for the file /etc/passwd.
9111
9112 Formerly, this used to put /usr/foo//etc/passwd in the history list.
9113 Now this puts just /etc/passwd in the history list.
9114
9115 ** If you are root, Emacs sets backup-by-copying-when-mismatch to t
9116 at startup, so that saving a file will be sure to preserve
9117 its owner and group.
9118
9119 ** find-func.el can now also find the place of definition of Emacs
9120 Lisp variables in user-loaded libraries.
9121
9122 ** C-x r t (string-rectangle) now deletes the existing rectangle
9123 contents before inserting the specified string on each line.
9124
9125 ** There is a new command delete-whitespace-rectangle
9126 which deletes whitespace starting from a particular column
9127 in all the lines on a rectangle. The column is specified
9128 by the left edge of the rectangle.
9129
9130 ** You can now store a number into a register with C-u NUMBER C-x r n REG,
9131 increment it by INC with C-u INC C-x r + REG (to increment by one, omit
9132 C-u INC), and insert it in the buffer with C-x r g REG. This is useful
9133 for writing keyboard macros.
9134
9135 ** The new command M-x speedbar displays a frame in which directories,
9136 files, and tags can be displayed, manipulated, and jumped to. The
9137 frame defaults to 20 characters in width, and is the same height as
9138 the frame that it was started from. Some major modes define
9139 additional commands for the speedbar, including Rmail, GUD/GDB, and
9140 info.
9141
9142 ** query-replace-regexp is now bound to C-M-%.
9143
9144 ** In Transient Mark mode, when the region is active, M-x
9145 query-replace and the other replace commands now operate on the region
9146 contents only.
9147
9148 ** M-x write-region, when used interactively, now asks for
9149 confirmation before overwriting an existing file. When you call
9150 the function from a Lisp program, a new optional argument CONFIRM
9151 says whether to ask for confirmation in this case.
9152
9153 ** If you use find-file-literally and the file is already visited
9154 non-literally, the command asks you whether to revisit the file
9155 literally. If you say no, it signals an error.
9156
9157 ** Major modes defined with the "derived mode" feature
9158 now use the proper name for the mode hook: WHATEVER-mode-hook.
9159 Formerly they used the name WHATEVER-mode-hooks, but that is
9160 inconsistent with Emacs conventions.
9161
9162 ** shell-command-on-region (and shell-command) reports success or
9163 failure if the command produces no output.
9164
9165 ** Set focus-follows-mouse to nil if your window system or window
9166 manager does not transfer focus to another window when you just move
9167 the mouse.
9168
9169 ** mouse-menu-buffer-maxlen has been renamed to
9170 mouse-buffer-menu-maxlen to be consistent with the other related
9171 function and variable names.
9172
9173 ** The new variable auto-coding-alist specifies coding systems for
9174 reading specific files. This has higher priority than
9175 file-coding-system-alist.
9176
9177 ** If you set the variable unibyte-display-via-language-environment to
9178 t, then Emacs displays non-ASCII characters are displayed by
9179 converting them to the equivalent multibyte characters according to
9180 the current language environment. As a result, they are displayed
9181 according to the current fontset.
9182
9183 ** C-q's handling of codes in the range 0200 through 0377 is changed.
9184
9185 The codes in the range 0200 through 0237 are inserted as one byte of
9186 that code regardless of the values of nonascii-translation-table and
9187 nonascii-insert-offset.
9188
9189 For the codes in the range 0240 through 0377, if
9190 enable-multibyte-characters is non-nil and nonascii-translation-table
9191 nor nonascii-insert-offset can't convert them to valid multibyte
9192 characters, they are converted to Latin-1 characters.
9193
9194 ** If you try to find a file that is not read-accessible, you now get
9195 an error, rather than an empty buffer and a warning.
9196
9197 ** In the minibuffer history commands M-r and M-s, an upper case
9198 letter in the regular expression forces case-sensitive search.
9199
9200 ** In the *Help* buffer, cross-references to commands and variables
9201 are inferred and hyperlinked. Use C-h m in Help mode for the relevant
9202 command keys.
9203
9204 ** M-x apropos-command, with a prefix argument, no longer looks for
9205 user option variables--instead it looks for noninteractive functions.
9206
9207 Meanwhile, the command apropos-variable normally searches for
9208 user option variables; with a prefix argument, it looks at
9209 all variables that have documentation.
9210
9211 ** When you type a long line in the minibuffer, and the minibuffer
9212 shows just one line, automatically scrolling works in a special way
9213 that shows you overlap with the previous line of text. The variable
9214 minibuffer-scroll-overlap controls how many characters of overlap
9215 it should show; the default is 20.
9216
9217 Meanwhile, Resize Minibuffer mode is still available; in that mode,
9218 the minibuffer grows taller (up to a point) as needed to show the whole
9219 of your input.
9220
9221 ** The new command M-x customize-changed-options lets you customize
9222 all the options whose meanings or default values have changed in
9223 recent Emacs versions. You specify a previous Emacs version number as
9224 argument, and the command creates a customization buffer showing all
9225 the customizable options which were changed since that version.
9226 Newly added options are included as well.
9227
9228 If you don't specify a particular version number argument,
9229 then the customization buffer shows all the customizable options
9230 for which Emacs versions of changes are recorded.
9231
9232 This function is also bound to the Changed Options entry in the
9233 Customize menu.
9234
9235 ** When you run M-x grep with a prefix argument, it figures out
9236 the tag around point and puts that into the default grep command.
9237
9238 ** The new command M-* (pop-tag-mark) pops back through a history of
9239 buffer positions from which M-. or other tag-finding commands were
9240 invoked.
9241
9242 ** The new variable comment-padding specifies the number of spaces
9243 that `comment-region' will insert before the actual text of the comment.
9244 The default is 1.
9245
9246 ** In Fortran mode the characters `.', `_' and `$' now have symbol
9247 syntax, not word syntax. Fortran mode now supports `imenu' and has
9248 new commands fortran-join-line (M-^) and fortran-narrow-to-subprogram
9249 (C-x n d). M-q can be used to fill a statement or comment block
9250 sensibly.
9251
9252 ** GUD now supports jdb, the Java debugger, and pdb, the Python debugger.
9253
9254 ** If you set the variable add-log-keep-changes-together to a non-nil
9255 value, the command `C-x 4 a' will automatically notice when you make
9256 two entries in one day for one file, and combine them.
9257
9258 ** You can use the command M-x diary-mail-entries to mail yourself a
9259 reminder about upcoming diary entries. See the documentation string
9260 for a sample shell script for calling this function automatically
9261 every night.
9262
9263 ** Desktop changes
9264
9265 *** All you need to do to enable use of the Desktop package, is to set
9266 the variable desktop-enable to t with Custom.
9267
9268 *** Minor modes are now restored. Which minor modes are restored
9269 and how modes are restored is controlled by `desktop-minor-mode-table'.
9270
9271 ** There is no need to do anything special, now, to enable Gnus to
9272 read and post multi-lingual articles.
9273
9274 ** Outline mode has now support for showing hidden outlines when
9275 doing an isearch. In order for this to happen search-invisible should
9276 be set to open (the default). If an isearch match is inside a hidden
9277 outline the outline is made visible. If you continue pressing C-s and
9278 the match moves outside the formerly invisible outline, the outline is
9279 made invisible again.
9280
9281 ** Mail reading and sending changes
9282
9283 *** The Rmail e command now switches to displaying the whole header of
9284 the message before it lets you edit the message. This is so that any
9285 changes you make in the header will not be lost if you subsequently
9286 toggle.
9287
9288 *** The w command in Rmail, which writes the message body into a file,
9289 now works in the summary buffer as well. (The command to delete the
9290 summary buffer is now Q.) The default file name for the w command, if
9291 the message has no subject, is stored in the variable
9292 rmail-default-body-file.
9293
9294 *** Most of the commands and modes that operate on mail and netnews no
9295 longer depend on the value of mail-header-separator. Instead, they
9296 handle whatever separator the buffer happens to use.
9297
9298 *** If you set mail-signature to a value which is not t, nil, or a string,
9299 it should be an expression. When you send a message, this expression
9300 is evaluated to insert the signature.
9301
9302 *** The new Lisp library feedmail.el (version 8) enhances processing of
9303 outbound email messages. It works in coordination with other email
9304 handling packages (e.g., rmail, VM, gnus) and is responsible for
9305 putting final touches on messages and actually submitting them for
9306 transmission. Users of the emacs program "fakemail" might be
9307 especially interested in trying feedmail.
9308
9309 feedmail is not enabled by default. See comments at the top of
9310 feedmail.el for set-up instructions. Among the bigger features
9311 provided by feedmail are:
9312
9313 **** you can park outgoing messages into a disk-based queue and
9314 stimulate sending some or all of them later (handy for laptop users);
9315 there is also a queue for draft messages
9316
9317 **** you can get one last look at the prepped outbound message and
9318 be prompted for confirmation
9319
9320 **** does smart filling of address headers
9321
9322 **** can generate a MESSAGE-ID: line and a DATE: line; the date can be
9323 the time the message was written or the time it is being sent; this
9324 can make FCC copies more closely resemble copies that recipients get
9325
9326 **** you can specify an arbitrary function for actually transmitting
9327 the message; included in feedmail are interfaces for /bin/[r]mail,
9328 /usr/lib/sendmail, and elisp smtpmail; it's easy to write a new
9329 function for something else (10-20 lines of elisp)
9330
9331 ** Dired changes
9332
9333 *** The Dired function dired-do-toggle, which toggles marked and unmarked
9334 files, is now bound to "t" instead of "T".
9335
9336 *** dired-at-point has been added to ffap.el. It allows one to easily
9337 run Dired on the directory name at point.
9338
9339 *** Dired has a new command: %g. It searches the contents of
9340 files in the directory and marks each file that contains a match
9341 for a specified regexp.
9342
9343 ** VC Changes
9344
9345 *** New option vc-ignore-vc-files lets you turn off version control
9346 conveniently.
9347
9348 *** VC Dired has been completely rewritten. It is now much
9349 faster, especially for CVS, and works very similar to ordinary
9350 Dired.
9351
9352 VC Dired is invoked by typing C-x v d and entering the name of the
9353 directory to display. By default, VC Dired gives you a recursive
9354 listing of all files at or below the given directory which are
9355 currently locked (for CVS, all files not up-to-date are shown).
9356
9357 You can change the listing format by setting vc-dired-recurse to nil,
9358 then it shows only the given directory, and you may also set
9359 vc-dired-terse-display to nil, then it shows all files under version
9360 control plus the names of any subdirectories, so that you can type `i'
9361 on such lines to insert them manually, as in ordinary Dired.
9362
9363 All Dired commands operate normally in VC Dired, except for `v', which
9364 is redefined as the version control prefix. That means you may type
9365 `v l', `v =' etc. to invoke `vc-print-log', `vc-diff' and the like on
9366 the file named in the current Dired buffer line. `v v' invokes
9367 `vc-next-action' on this file, or on all files currently marked.
9368
9369 The new command `v t' (vc-dired-toggle-terse-mode) allows you to
9370 toggle between terse display (only locked files) and full display (all
9371 VC files plus subdirectories). There is also a special command,
9372 `* l', to mark all files currently locked.
9373
9374 Giving a prefix argument to C-x v d now does the same thing as in
9375 ordinary Dired: it allows you to supply additional options for the ls
9376 command in the minibuffer, to fine-tune VC Dired's output.
9377
9378 *** Under CVS, if you merge changes from the repository into a working
9379 file, and CVS detects conflicts, VC now offers to start an ediff
9380 session to resolve them.
9381
9382 Alternatively, you can use the new command `vc-resolve-conflicts' to
9383 resolve conflicts in a file at any time. It works in any buffer that
9384 contains conflict markers as generated by rcsmerge (which is what CVS
9385 uses as well).
9386
9387 *** You can now transfer changes between branches, using the new
9388 command vc-merge (C-x v m). It is implemented for RCS and CVS. When
9389 you invoke it in a buffer under version-control, you can specify
9390 either an entire branch or a pair of versions, and the changes on that
9391 branch or between the two versions are merged into the working file.
9392 If this results in any conflicts, they may be resolved interactively,
9393 using ediff.
9394
9395 ** Changes in Font Lock
9396
9397 *** The face and variable previously known as font-lock-reference-face
9398 are now called font-lock-constant-face to better reflect their typical
9399 use for highlighting constants and labels. (Its face properties are
9400 unchanged.) The variable font-lock-reference-face remains for now for
9401 compatibility reasons, but its value is font-lock-constant-face.
9402
9403 ** Frame name display changes
9404
9405 *** The command set-frame-name lets you set the name of the current
9406 frame. You can use the new command select-frame-by-name to select and
9407 raise a frame; this is mostly useful on character-only terminals, or
9408 when many frames are invisible or iconified.
9409
9410 *** On character-only terminal (not a window system), changing the
9411 frame name is now reflected on the mode line and in the Buffers/Frames
9412 menu.
9413
9414 ** Comint (subshell) changes
9415
9416 *** In Comint modes, the commands to kill, stop or interrupt a
9417 subjob now also kill pending input. This is for compatibility
9418 with ordinary shells, where the signal characters do this.
9419
9420 *** There are new commands in Comint mode.
9421
9422 C-c C-x fetches the "next" line from the input history;
9423 that is, the line after the last line you got.
9424 You can use this command to fetch successive lines, one by one.
9425
9426 C-c SPC accumulates lines of input. More precisely, it arranges to
9427 send the current line together with the following line, when you send
9428 the following line.
9429
9430 C-c C-a if repeated twice consecutively now moves to the process mark,
9431 which separates the pending input from the subprocess output and the
9432 previously sent input.
9433
9434 C-c M-r now runs comint-previous-matching-input-from-input;
9435 it searches for a previous command, using the current pending input
9436 as the search string.
9437
9438 *** New option compilation-scroll-output can be set to scroll
9439 automatically in compilation-mode windows.
9440
9441 ** C mode changes
9442
9443 *** Multiline macros are now handled, both as they affect indentation,
9444 and as recognized syntax. New syntactic symbol cpp-macro-cont is
9445 assigned to second and subsequent lines of a multiline macro
9446 definition.
9447
9448 *** A new style "user" which captures all non-hook-ified
9449 (i.e. top-level) .emacs file variable settings and customizations.
9450 Style "cc-mode" is an alias for "user" and is deprecated. "gnu"
9451 style is still the default however.
9452
9453 *** "java" style now conforms to Sun's JDK coding style.
9454
9455 *** There are new commands c-beginning-of-defun, c-end-of-defun which
9456 are alternatives which you could bind to C-M-a and C-M-e if you prefer
9457 them. They do not have key bindings by default.
9458
9459 *** New and improved implementations of M-a (c-beginning-of-statement)
9460 and M-e (c-end-of-statement).
9461
9462 *** C++ namespace blocks are supported, with new syntactic symbols
9463 namespace-open, namespace-close, and innamespace.
9464
9465 *** File local variable settings of c-file-style and c-file-offsets
9466 makes the style variables local to that buffer only.
9467
9468 *** New indentation functions c-lineup-close-paren,
9469 c-indent-one-line-block, c-lineup-dont-change.
9470
9471 *** Improvements (hopefully!) to the way CC Mode is loaded. You
9472 should now be able to do a (require 'cc-mode) to get the entire
9473 package loaded properly for customization in your .emacs file. A new
9474 variable c-initialize-on-load controls this and is t by default.
9475
9476 ** Changes to hippie-expand.
9477
9478 *** New customization variable `hippie-expand-dabbrev-skip-space'. If
9479 non-nil, trailing spaces may be included in the abbreviation to search for,
9480 which then gives the same behavior as the original `dabbrev-expand'.
9481
9482 *** New customization variable `hippie-expand-dabbrev-as-symbol'. If
9483 non-nil, characters of syntax '_' is considered part of the word when
9484 expanding dynamically.
9485
9486 *** New customization variable `hippie-expand-no-restriction'. If
9487 non-nil, narrowed buffers are widened before they are searched.
9488
9489 *** New customization variable `hippie-expand-only-buffers'. If
9490 non-empty, buffers searched are restricted to the types specified in
9491 this list. Useful for example when constructing new special-purpose
9492 expansion functions with `make-hippie-expand-function'.
9493
9494 *** Text properties of the expansion are no longer copied.
9495
9496 ** Changes in BibTeX mode.
9497
9498 *** Any titleword matching a regexp in the new variable
9499 bibtex-autokey-titleword-ignore (case sensitive) is ignored during
9500 automatic key generation. This replaces variable
9501 bibtex-autokey-titleword-first-ignore, which only checked for matches
9502 against the first word in the title.
9503
9504 *** Autokey generation now uses all words from the title, not just
9505 capitalized words. To avoid conflicts with existing customizations,
9506 bibtex-autokey-titleword-ignore is set up such that words starting with
9507 lowerkey characters will still be ignored. Thus, if you want to use
9508 lowercase words from the title, you will have to overwrite the
9509 bibtex-autokey-titleword-ignore standard setting.
9510
9511 *** Case conversion of names and title words for automatic key
9512 generation is more flexible. Variable bibtex-autokey-preserve-case is
9513 replaced by bibtex-autokey-titleword-case-convert and
9514 bibtex-autokey-name-case-convert.
9515
9516 ** Changes in vcursor.el.
9517
9518 *** Support for character terminals is available: there is a new keymap
9519 and the vcursor will appear as an arrow between buffer text. A
9520 variable `vcursor-interpret-input' allows input from the vcursor to be
9521 entered exactly as if typed. Numerous functions, including
9522 `vcursor-compare-windows', have been rewritten to improve consistency
9523 in the selection of windows and corresponding keymaps.
9524
9525 *** vcursor options can now be altered with M-x customize under the
9526 Editing group once the package is loaded.
9527
9528 *** Loading vcursor now does not define keys by default, as this is
9529 generally a bad side effect. Use M-x customize to set
9530 vcursor-key-bindings to t to restore the old behavior.
9531
9532 *** vcursor-auto-disable can be `copy', which turns off copying from the
9533 vcursor, but doesn't disable it, after any non-vcursor command.
9534
9535 ** Ispell changes.
9536
9537 *** You can now spell check comments and strings in the current
9538 buffer with M-x ispell-comments-and-strings. Comments and strings
9539 are identified by syntax tables in effect.
9540
9541 *** Generic region skipping implemented.
9542 A single buffer can be broken into a number of regions where text will
9543 and will not be checked. The definitions of the regions can be user
9544 defined. New applications and improvements made available by this
9545 include:
9546
9547 o URLs are automatically skipped
9548 o EMail message checking is vastly improved.
9549
9550 *** Ispell can highlight the erroneous word even on non-window terminals.
9551
9552 ** Changes to RefTeX mode
9553
9554 RefTeX has been updated in order to make it more usable with very
9555 large projects (like a several volume math book). The parser has been
9556 re-written from scratch. To get maximum speed from RefTeX, check the
9557 section `Optimizations' in the manual.
9558
9559 *** New recursive parser.
9560
9561 The old version of RefTeX created a single large buffer containing the
9562 entire multifile document in order to parse the document. The new
9563 recursive parser scans the individual files.
9564
9565 *** Parsing only part of a document.
9566
9567 Reparsing of changed document parts can now be made faster by enabling
9568 partial scans. To use this feature, read the documentation string of
9569 the variable `reftex-enable-partial-scans' and set the variable to t.
9570
9571 (setq reftex-enable-partial-scans t)
9572
9573 *** Storing parsing information in a file.
9574
9575 This can improve startup times considerably. To turn it on, use
9576
9577 (setq reftex-save-parse-info t)
9578
9579 *** Using multiple selection buffers
9580
9581 If the creation of label selection buffers is too slow (this happens
9582 for large documents), you can reuse these buffers by setting
9583
9584 (setq reftex-use-multiple-selection-buffers t)
9585
9586 *** References to external documents.
9587
9588 The LaTeX package `xr' allows to cross-reference labels in external
9589 documents. RefTeX can provide information about the external
9590 documents as well. To use this feature, set up the \externaldocument
9591 macros required by the `xr' package and rescan the document with
9592 RefTeX. The external labels can then be accessed with the `x' key in
9593 the selection buffer provided by `reftex-reference' (bound to `C-c )').
9594 The `x' key also works in the table of contents buffer.
9595
9596 *** Many more labeled LaTeX environments are recognized by default.
9597
9598 The built-in command list now covers all the standard LaTeX commands,
9599 and all of the major packages included in the LaTeX distribution.
9600
9601 Also, RefTeX now understands the \appendix macro and changes
9602 the enumeration of sections in the *toc* buffer accordingly.
9603
9604 *** Mouse support for selection and *toc* buffers
9605
9606 The mouse can now be used to select items in the selection and *toc*
9607 buffers. See also the new option `reftex-highlight-selection'.
9608
9609 *** New keymaps for selection and table of contents modes.
9610
9611 The selection processes for labels and citation keys, and the table of
9612 contents buffer now have their own keymaps: `reftex-select-label-map',
9613 `reftex-select-bib-map', `reftex-toc-map'. The selection processes
9614 have a number of new keys predefined. In particular, TAB lets you
9615 enter a label with completion. Check the on-the-fly help (press `?'
9616 at the selection prompt) or read the Info documentation to find out
9617 more.
9618
9619 *** Support for the varioref package
9620
9621 The `v' key in the label selection buffer toggles \ref versus \vref.
9622
9623 *** New hooks
9624
9625 Three new hooks can be used to redefine the way labels, references,
9626 and citations are created. These hooks are
9627 `reftex-format-label-function', `reftex-format-ref-function',
9628 `reftex-format-cite-function'.
9629
9630 *** Citations outside LaTeX
9631
9632 The command `reftex-citation' may also be used outside LaTeX (e.g. in
9633 a mail buffer). See the Info documentation for details.
9634
9635 *** Short context is no longer fontified.
9636
9637 The short context in the label menu no longer copies the
9638 fontification from the text in the buffer. If you prefer it to be
9639 fontified, use
9640
9641 (setq reftex-refontify-context t)
9642
9643 ** file-cache-minibuffer-complete now accepts a prefix argument.
9644 With a prefix argument, it does not try to do completion of
9645 the file name within its directory; it only checks for other
9646 directories that contain the same file name.
9647
9648 Thus, given the file name Makefile, and assuming that a file
9649 Makefile.in exists in the same directory, ordinary
9650 file-cache-minibuffer-complete will try to complete Makefile to
9651 Makefile.in and will therefore never look for other directories that
9652 have Makefile. A prefix argument tells it not to look for longer
9653 names such as Makefile.in, so that instead it will look for other
9654 directories--just as if the name were already complete in its present
9655 directory.
9656
9657 ** New modes and packages
9658
9659 *** There is a new alternative major mode for Perl, Cperl mode.
9660 It has many more features than Perl mode, and some people prefer
9661 it, but some do not.
9662
9663 *** There is a new major mode, M-x vhdl-mode, for editing files of VHDL
9664 code.
9665
9666 *** M-x which-function-mode enables a minor mode that displays the
9667 current function name continuously in the mode line, as you move
9668 around in a buffer.
9669
9670 Which Function mode is effective in major modes which support Imenu.
9671
9672 *** Gametree is a major mode for editing game analysis trees. The author
9673 uses it for keeping notes about his postal Chess games, but it should
9674 be helpful for other two-player games as well, as long as they have an
9675 established system of notation similar to Chess.
9676
9677 *** The new minor mode checkdoc-minor-mode provides Emacs Lisp
9678 documentation string checking for style and spelling. The style
9679 guidelines are found in the Emacs Lisp programming manual.
9680
9681 *** The net-utils package makes some common networking features
9682 available in Emacs. Some of these functions are wrappers around
9683 system utilities (ping, nslookup, etc); others are implementations of
9684 simple protocols (finger, whois) in Emacs Lisp. There are also
9685 functions to make simple connections to TCP/IP ports for debugging and
9686 the like.
9687
9688 *** highlight-changes-mode is a minor mode that uses colors to
9689 identify recently changed parts of the buffer text.
9690
9691 *** The new package `midnight' lets you specify things to be done
9692 within Emacs at midnight--by default, kill buffers that you have not
9693 used in a considerable time. To use this feature, customize
9694 the user option `midnight-mode' to t.
9695
9696 *** The file generic-x.el defines a number of simple major modes.
9697
9698 apache-generic-mode: For Apache and NCSA httpd configuration files
9699 samba-generic-mode: Samba configuration files
9700 fvwm-generic-mode: For fvwm initialization files
9701 x-resource-generic-mode: For X resource files
9702 hosts-generic-mode: For hosts files (.rhosts, /etc/hosts, etc)
9703 mailagent-rules-generic-mode: For mailagent .rules files
9704 javascript-generic-mode: For JavaScript files
9705 vrml-generic-mode: For VRML files
9706 java-manifest-generic-mode: For Java MANIFEST files
9707 java-properties-generic-mode: For Java property files
9708 mailrc-generic-mode: For .mailrc files
9709
9710 Platform-specific modes:
9711
9712 prototype-generic-mode: For Solaris/Sys V prototype files
9713 pkginfo-generic-mode: For Solaris/Sys V pkginfo files
9714 alias-generic-mode: For C shell alias files
9715 inf-generic-mode: For MS-Windows INF files
9716 ini-generic-mode: For MS-Windows INI files
9717 reg-generic-mode: For MS-Windows Registry files
9718 bat-generic-mode: For MS-Windows BAT scripts
9719 rc-generic-mode: For MS-Windows Resource files
9720 rul-generic-mode: For InstallShield scripts
9721 \f
9722 * Lisp changes in Emacs 20.3 since the Emacs Lisp Manual was published
9723
9724 ** If you want a Lisp file to be read in unibyte mode,
9725 use -*-unibyte: t;-*- on its first line.
9726 That will force Emacs to read that file in unibyte mode.
9727 Otherwise, the file will be loaded and byte-compiled in multibyte mode.
9728
9729 Thus, each lisp file is read in a consistent way regardless of whether
9730 you started Emacs with --unibyte, so that a Lisp program gives
9731 consistent results regardless of how Emacs was started.
9732
9733 ** The new function assoc-default is useful for searching an alist,
9734 and using a default value if the key is not found there. You can
9735 specify a comparison predicate, so this function is useful for
9736 searching comparing a string against an alist of regular expressions.
9737
9738 ** The functions unibyte-char-to-multibyte and
9739 multibyte-char-to-unibyte convert between unibyte and multibyte
9740 character codes, in a way that is appropriate for the current language
9741 environment.
9742
9743 ** The functions read-event, read-char and read-char-exclusive now
9744 take two optional arguments. PROMPT, if non-nil, specifies a prompt
9745 string. SUPPRESS-INPUT-METHOD, if non-nil, says to disable the
9746 current input method for reading this one event.
9747
9748 ** Two new variables print-escape-nonascii and print-escape-multibyte
9749 now control whether to output certain characters as
9750 backslash-sequences. print-escape-nonascii applies to single-byte
9751 non-ASCII characters; print-escape-multibyte applies to multibyte
9752 characters. Both of these variables are used only when printing
9753 in readable fashion (prin1 uses them, princ does not).
9754 \f
9755 * Lisp changes in Emacs 20.3 before the Emacs Lisp Manual was published
9756
9757 ** Compiled Emacs Lisp files made with the modified "MBSK" version
9758 of Emacs 20.2 do not work in Emacs 20.3.
9759
9760 ** Buffer positions are now measured in characters, as they were
9761 in Emacs 19 and before. This means that (forward-char 1)
9762 always increases point by 1.
9763
9764 The function chars-in-region now just subtracts its arguments. It is
9765 considered obsolete. The function char-boundary-p has been deleted.
9766
9767 See below for additional changes relating to multibyte characters.
9768
9769 ** defcustom, defface and defgroup now accept the keyword `:version'.
9770 Use this to specify in which version of Emacs a certain variable's
9771 default value changed. For example,
9772
9773 (defcustom foo-max 34 "*Maximum number of foo's allowed."
9774 :type 'integer
9775 :group 'foo
9776 :version "20.3")
9777
9778 (defgroup foo-group nil "The foo group."
9779 :version "20.3")
9780
9781 If an entire new group is added or the variables in it have the
9782 default values changed, then just add a `:version' to that group. It
9783 is recommended that new packages added to the distribution contain a
9784 `:version' in the top level group.
9785
9786 This information is used to control the customize-changed-options command.
9787
9788 ** It is now an error to change the value of a symbol whose name
9789 starts with a colon--if it is interned in the standard obarray.
9790
9791 However, setting such a symbol to its proper value, which is that
9792 symbol itself, is not an error. This is for the sake of programs that
9793 support previous Emacs versions by explicitly setting these variables
9794 to themselves.
9795
9796 If you set the variable keyword-symbols-constant-flag to nil,
9797 this error is suppressed, and you can set these symbols to any
9798 values whatever.
9799
9800 ** There is a new debugger command, R.
9801 It evaluates an expression like e, but saves the result
9802 in the buffer *Debugger-record*.
9803
9804 ** Frame-local variables.
9805
9806 You can now make a variable local to various frames. To do this, call
9807 the function make-variable-frame-local; this enables frames to have
9808 local bindings for that variable.
9809
9810 These frame-local bindings are actually frame parameters: you create a
9811 frame-local binding in a specific frame by calling
9812 modify-frame-parameters and specifying the variable name as the
9813 parameter name.
9814
9815 Buffer-local bindings take precedence over frame-local bindings.
9816 Thus, if the current buffer has a buffer-local binding, that binding is
9817 active; otherwise, if the selected frame has a frame-local binding,
9818 that binding is active; otherwise, the default binding is active.
9819
9820 It would not be hard to implement window-local bindings, but it is not
9821 clear that this would be very useful; windows tend to come and go in a
9822 very transitory fashion, so that trying to produce any specific effect
9823 through a window-local binding would not be very robust.
9824
9825 ** `sregexq' and `sregex' are two new functions for constructing
9826 "symbolic regular expressions." These are Lisp expressions that, when
9827 evaluated, yield conventional string-based regexps. The symbolic form
9828 makes it easier to construct, read, and maintain complex patterns.
9829 See the documentation in sregex.el.
9830
9831 ** parse-partial-sexp's return value has an additional element which
9832 is used to pass information along if you pass it to another call to
9833 parse-partial-sexp, starting its scan where the first call ended.
9834 The contents of this field are not yet finalized.
9835
9836 ** eval-region now accepts a fourth optional argument READ-FUNCTION.
9837 If it is non-nil, that function is used instead of `read'.
9838
9839 ** unload-feature by default removes the feature's functions from
9840 known hooks to avoid trouble, but a package providing FEATURE can
9841 define a hook FEATURE-unload-hook to be run by unload-feature instead.
9842
9843 ** read-from-minibuffer no longer returns the argument DEFAULT-VALUE
9844 when the user enters empty input. It now returns the null string, as
9845 it did in Emacs 19. The default value is made available in the
9846 history via M-n, but it is not applied here as a default.
9847
9848 The other, more specialized minibuffer-reading functions continue to
9849 return the default value (not the null string) when the user enters
9850 empty input.
9851
9852 ** The new variable read-buffer-function controls which routine to use
9853 for selecting buffers. For example, if you set this variable to
9854 `iswitchb-read-buffer', iswitchb will be used to read buffer names.
9855 Other functions can also be used if they accept the same arguments as
9856 `read-buffer' and return the selected buffer name as a string.
9857
9858 ** The new function read-passwd reads a password from the terminal,
9859 echoing a period for each character typed. It takes three arguments:
9860 a prompt string, a flag which says "read it twice to make sure", and a
9861 default password to use if the user enters nothing.
9862
9863 ** The variable fill-nobreak-predicate gives major modes a way to
9864 specify not to break a line at certain places. Its value is a
9865 function which is called with no arguments, with point located at the
9866 place where a break is being considered. If the function returns
9867 non-nil, then the line won't be broken there.
9868
9869 ** window-end now takes an optional second argument, UPDATE.
9870 If this is non-nil, then the function always returns an accurate
9871 up-to-date value for the buffer position corresponding to the
9872 end of the window, even if this requires computation.
9873
9874 ** other-buffer now takes an optional argument FRAME
9875 which specifies which frame's buffer list to use.
9876 If it is nil, that means use the selected frame's buffer list.
9877
9878 ** The new variable buffer-display-time, always local in every buffer,
9879 holds the value of (current-time) as of the last time that a window
9880 was directed to display this buffer.
9881
9882 ** It is now meaningful to compare two window-configuration objects
9883 with `equal'. Two window-configuration objects are equal if they
9884 describe equivalent arrangements of windows, in the same frame--in
9885 other words, if they would give the same results if passed to
9886 set-window-configuration.
9887
9888 ** compare-window-configurations is a new function that compares two
9889 window configurations loosely. It ignores differences in saved buffer
9890 positions and scrolling, and considers only the structure and sizes of
9891 windows and the choice of buffers to display.
9892
9893 ** The variable minor-mode-overriding-map-alist allows major modes to
9894 override the key bindings of a minor mode. The elements of this alist
9895 look like the elements of minor-mode-map-alist: (VARIABLE . KEYMAP).
9896
9897 If the VARIABLE in an element of minor-mode-overriding-map-alist has a
9898 non-nil value, the paired KEYMAP is active, and totally overrides the
9899 map (if any) specified for the same variable in minor-mode-map-alist.
9900
9901 minor-mode-overriding-map-alist is automatically local in all buffers,
9902 and it is meant to be set by major modes.
9903
9904 ** The function match-string-no-properties is like match-string
9905 except that it discards all text properties from the result.
9906
9907 ** The function load-average now accepts an optional argument
9908 USE-FLOATS. If it is non-nil, the load average values are returned as
9909 floating point numbers, rather than as integers to be divided by 100.
9910
9911 ** The new variable temporary-file-directory specifies the directory
9912 to use for creating temporary files. The default value is determined
9913 in a reasonable way for your operating system; on GNU and Unix systems
9914 it is based on the TMP and TMPDIR environment variables.
9915
9916 ** Menu changes
9917
9918 *** easymenu.el now uses the new menu item format and supports the
9919 keywords :visible and :filter. The existing keyword :keys is now
9920 better supported.
9921
9922 The variable `easy-menu-precalculate-equivalent-keybindings' controls
9923 a new feature which calculates keyboard equivalents for the menu when
9924 you define the menu. The default is t. If you rarely use menus, you
9925 can set the variable to nil to disable this precalculation feature;
9926 then the calculation is done only if you use the menu bar.
9927
9928 *** A new format for menu items is supported.
9929
9930 In a keymap, a key binding that has the format
9931 (STRING . REAL-BINDING) or (STRING HELP-STRING . REAL-BINDING)
9932 defines a menu item. Now a menu item definition may also be a list that
9933 starts with the symbol `menu-item'.
9934
9935 The format is:
9936 (menu-item ITEM-NAME) or
9937 (menu-item ITEM-NAME REAL-BINDING . ITEM-PROPERTY-LIST)
9938 where ITEM-NAME is an expression which evaluates to the menu item
9939 string, and ITEM-PROPERTY-LIST has the form of a property list.
9940 The supported properties include
9941
9942 :enable FORM Evaluate FORM to determine whether the
9943 item is enabled.
9944 :visible FORM Evaluate FORM to determine whether the
9945 item should appear in the menu.
9946 :filter FILTER-FN
9947 FILTER-FN is a function of one argument,
9948 which will be REAL-BINDING.
9949 It should return a binding to use instead.
9950 :keys DESCRIPTION
9951 DESCRIPTION is a string that describes an equivalent keyboard
9952 binding for REAL-BINDING. DESCRIPTION is expanded with
9953 `substitute-command-keys' before it is used.
9954 :key-sequence KEY-SEQUENCE
9955 KEY-SEQUENCE is a key-sequence for an equivalent
9956 keyboard binding.
9957 :key-sequence nil
9958 This means that the command normally has no
9959 keyboard equivalent.
9960 :help HELP HELP is the extra help string (not currently used).
9961 :button (TYPE . SELECTED)
9962 TYPE is :toggle or :radio.
9963 SELECTED is a form, to be evaluated, and its
9964 value says whether this button is currently selected.
9965
9966 Buttons are at the moment only simulated by prefixes in the menu.
9967 Eventually ordinary X-buttons may be supported.
9968
9969 (menu-item ITEM-NAME) defines unselectable item.
9970
9971 ** New event types
9972
9973 *** The new event type `mouse-wheel' is generated by a wheel on a
9974 mouse (such as the MS Intellimouse). The event contains a delta that
9975 corresponds to the amount and direction that the wheel is rotated,
9976 which is typically used to implement a scroll or zoom. The format is:
9977
9978 (mouse-wheel POSITION DELTA)
9979
9980 where POSITION is a list describing the position of the event in the
9981 same format as a mouse-click event, and DELTA is a signed number
9982 indicating the number of increments by which the wheel was rotated. A
9983 negative DELTA indicates that the wheel was rotated backwards, towards
9984 the user, and a positive DELTA indicates that the wheel was rotated
9985 forward, away from the user.
9986
9987 As of now, this event type is generated only on MS Windows.
9988
9989 *** The new event type `drag-n-drop' is generated when a group of
9990 files is selected in an application outside of Emacs, and then dragged
9991 and dropped onto an Emacs frame. The event contains a list of
9992 filenames that were dragged and dropped, which are then typically
9993 loaded into Emacs. The format is:
9994
9995 (drag-n-drop POSITION FILES)
9996
9997 where POSITION is a list describing the position of the event in the
9998 same format as a mouse-click event, and FILES is the list of filenames
9999 that were dragged and dropped.
10000
10001 As of now, this event type is generated only on MS Windows.
10002
10003 ** Changes relating to multibyte characters.
10004
10005 *** The variable enable-multibyte-characters is now read-only;
10006 any attempt to set it directly signals an error. The only way
10007 to change this value in an existing buffer is with set-buffer-multibyte.
10008
10009 *** In a string constant, `\ ' now stands for "nothing at all". You
10010 can use it to terminate a hex escape which is followed by a character
10011 that could otherwise be read as part of the hex escape.
10012
10013 *** String indices are now measured in characters, as they were
10014 in Emacs 19 and before.
10015
10016 The function chars-in-string has been deleted.
10017 The function concat-chars has been renamed to `string'.
10018
10019 *** The function set-buffer-multibyte sets the flag in the current
10020 buffer that says whether the buffer uses multibyte representation or
10021 unibyte representation. If the argument is nil, it selects unibyte
10022 representation. Otherwise it selects multibyte representation.
10023
10024 This function does not change the contents of the buffer, viewed
10025 as a sequence of bytes. However, it does change the contents
10026 viewed as characters; a sequence of two bytes which is treated as
10027 one character when the buffer uses multibyte representation
10028 will count as two characters using unibyte representation.
10029
10030 This function sets enable-multibyte-characters to record which
10031 representation is in use. It also adjusts various data in the buffer
10032 (including its markers, overlays and text properties) so that they are
10033 consistent with the new representation.
10034
10035 *** string-make-multibyte takes a string and converts it to multibyte
10036 representation. Most of the time, you don't need to care
10037 about the representation, because Emacs converts when necessary;
10038 however, it makes a difference when you compare strings.
10039
10040 The conversion of non-ASCII characters works by adding the value of
10041 nonascii-insert-offset to each character, or by translating them
10042 using the table nonascii-translation-table.
10043
10044 *** string-make-unibyte takes a string and converts it to unibyte
10045 representation. Most of the time, you don't need to care about the
10046 representation, but it makes a difference when you compare strings.
10047
10048 The conversion from multibyte to unibyte representation
10049 loses information; the only time Emacs performs it automatically
10050 is when inserting a multibyte string into a unibyte buffer.
10051
10052 *** string-as-multibyte takes a string, and returns another string
10053 which contains the same bytes, but treats them as multibyte.
10054
10055 *** string-as-unibyte takes a string, and returns another string
10056 which contains the same bytes, but treats them as unibyte.
10057
10058 *** The new function compare-strings lets you compare
10059 portions of two strings. Unibyte strings are converted to multibyte,
10060 so that a unibyte string can match a multibyte string.
10061 You can specify whether to ignore case or not.
10062
10063 *** assoc-ignore-case now uses compare-strings so that
10064 it can treat unibyte and multibyte strings as equal.
10065
10066 *** Regular expression operations and buffer string searches now
10067 convert the search pattern to multibyte or unibyte to accord with the
10068 buffer or string being searched.
10069
10070 One consequence is that you cannot always use \200-\377 inside of
10071 [...] to match all non-ASCII characters. This does still work when
10072 searching or matching a unibyte buffer or string, but not when
10073 searching or matching a multibyte string. Unfortunately, there is no
10074 obvious choice of syntax to use within [...] for that job. But, what
10075 you want is just to match all non-ASCII characters, the regular
10076 expression [^\0-\177] works for it.
10077
10078 *** Structure of coding system changed.
10079
10080 All coding systems (including aliases and subsidiaries) are named
10081 by symbols; the symbol's `coding-system' property is a vector
10082 which defines the coding system. Aliases share the same vector
10083 as the principal name, so that altering the contents of this
10084 vector affects the principal name and its aliases. You can define
10085 your own alias name of a coding system by the function
10086 define-coding-system-alias.
10087
10088 The coding system definition includes a property list of its own. Use
10089 the new functions `coding-system-get' and `coding-system-put' to
10090 access such coding system properties as post-read-conversion,
10091 pre-write-conversion, character-translation-table-for-decode,
10092 character-translation-table-for-encode, mime-charset, and
10093 safe-charsets. For instance, (coding-system-get 'iso-latin-1
10094 'mime-charset) gives the corresponding MIME-charset parameter
10095 `iso-8859-1'.
10096
10097 Among the coding system properties listed above, safe-charsets is new.
10098 The value of this property is a list of character sets which this
10099 coding system can correctly encode and decode. For instance:
10100 (coding-system-get 'iso-latin-1 'safe-charsets) => (ascii latin-iso8859-1)
10101
10102 Here, "correctly encode" means that the encoded character sets can
10103 also be handled safely by systems other than Emacs as far as they
10104 are capable of that coding system. Though, Emacs itself can encode
10105 the other character sets and read it back correctly.
10106
10107 *** The new function select-safe-coding-system can be used to find a
10108 proper coding system for encoding the specified region or string.
10109 This function requires a user interaction.
10110
10111 *** The new functions find-coding-systems-region and
10112 find-coding-systems-string are helper functions used by
10113 select-safe-coding-system. They return a list of all proper coding
10114 systems to encode a text in some region or string. If you don't want
10115 a user interaction, use one of these functions instead of
10116 select-safe-coding-system.
10117
10118 *** The explicit encoding and decoding functions, such as
10119 decode-coding-region and encode-coding-string, now set
10120 last-coding-system-used to reflect the actual way encoding or decoding
10121 was done.
10122
10123 *** The new function detect-coding-with-language-environment can be
10124 used to detect a coding system of text according to priorities of
10125 coding systems used by some specific language environment.
10126
10127 *** The functions detect-coding-region and detect-coding-string always
10128 return a list if the arg HIGHEST is nil. Thus, if only ASCII
10129 characters are found, they now return a list of single element
10130 `undecided' or its subsidiaries.
10131
10132 *** The new functions coding-system-change-eol-conversion and
10133 coding-system-change-text-conversion can be used to get a different
10134 coding system than what specified only in how end-of-line or text is
10135 converted.
10136
10137 *** The new function set-selection-coding-system can be used to set a
10138 coding system for communicating with other X clients.
10139
10140 *** The function `map-char-table' now passes as argument only valid
10141 character codes, plus generic characters that stand for entire
10142 character sets or entire subrows of a character set. In other words,
10143 each time `map-char-table' calls its FUNCTION argument, the key value
10144 either will be a valid individual character code, or will stand for a
10145 range of characters.
10146
10147 *** The new function `char-valid-p' can be used for checking whether a
10148 Lisp object is a valid character code or not.
10149
10150 *** The new function `charset-after' returns a charset of a character
10151 in the current buffer at position POS.
10152
10153 *** Input methods are now implemented using the variable
10154 input-method-function. If this is non-nil, its value should be a
10155 function; then, whenever Emacs reads an input event that is a printing
10156 character with no modifier bits, it calls that function, passing the
10157 event as an argument. Often this function will read more input, first
10158 binding input-method-function to nil.
10159
10160 The return value should be a list of the events resulting from input
10161 method processing. These events will be processed sequentially as
10162 input, before resorting to unread-command-events. Events returned by
10163 the input method function are not passed to the input method function,
10164 not even if they are printing characters with no modifier bits.
10165
10166 The input method function is not called when reading the second and
10167 subsequent events of a key sequence.
10168
10169 *** You can customize any language environment by using
10170 set-language-environment-hook and exit-language-environment-hook.
10171
10172 The hook `exit-language-environment-hook' should be used to undo
10173 customizations that you made with set-language-environment-hook. For
10174 instance, if you set up a special key binding for a specific language
10175 environment by set-language-environment-hook, you should set up
10176 exit-language-environment-hook to restore the normal key binding.
10177 \f
10178 * Changes in Emacs 20.1
10179
10180 ** Emacs has a new facility for customization of its many user
10181 options. It is called M-x customize. With this facility you can look
10182 at the many user options in an organized way; they are grouped into a
10183 tree structure.
10184
10185 M-x customize also knows what sorts of values are legitimate for each
10186 user option and ensures that you don't use invalid values.
10187
10188 With M-x customize, you can set options either for the present Emacs
10189 session or permanently. (Permanent settings are stored automatically
10190 in your .emacs file.)
10191
10192 ** Scroll bars are now on the left side of the window.
10193 You can change this with M-x customize-option scroll-bar-mode.
10194
10195 ** The mode line no longer includes the string `Emacs'.
10196 This makes more space in the mode line for other information.
10197
10198 ** When you select a region with the mouse, it is highlighted
10199 immediately afterward. At that time, if you type the DELETE key, it
10200 kills the region.
10201
10202 The BACKSPACE key, and the ASCII character DEL, do not do this; they
10203 delete the character before point, as usual.
10204
10205 ** In an incremental search the whole current match is highlighted
10206 on terminals which support this. (You can disable this feature
10207 by setting search-highlight to nil.)
10208
10209 ** In the minibuffer, in some cases, you can now use M-n to
10210 insert the default value into the minibuffer as text. In effect,
10211 the default value (if the minibuffer routines know it) is tacked
10212 onto the history "in the future". (The more normal use of the
10213 history list is to use M-p to insert minibuffer input used in the
10214 past.)
10215
10216 ** In Text mode, now only blank lines separate paragraphs.
10217 This makes it possible to get the full benefit of Adaptive Fill mode
10218 in Text mode, and other modes derived from it (such as Mail mode).
10219 TAB in Text mode now runs the command indent-relative; this
10220 makes a practical difference only when you use indented paragraphs.
10221
10222 As a result, the old Indented Text mode is now identical to Text mode,
10223 and is an alias for it.
10224
10225 If you want spaces at the beginning of a line to start a paragraph,
10226 use the new mode, Paragraph Indent Text mode.
10227
10228 ** Scrolling changes
10229
10230 *** Scroll commands to scroll a whole screen now preserve the screen
10231 position of the cursor, if scroll-preserve-screen-position is non-nil.
10232
10233 In this mode, if you scroll several screens back and forth, finishing
10234 on the same screen where you started, the cursor goes back to the line
10235 where it started.
10236
10237 *** If you set scroll-conservatively to a small number, then when you
10238 move point a short distance off the screen, Emacs will scroll the
10239 screen just far enough to bring point back on screen, provided that
10240 does not exceed `scroll-conservatively' lines.
10241
10242 *** The new variable scroll-margin says how close point can come to the
10243 top or bottom of a window. It is a number of screen lines; if point
10244 comes within that many lines of the top or bottom of the window, Emacs
10245 recenters the window.
10246
10247 ** International character set support (MULE)
10248
10249 Emacs now supports a wide variety of international character sets,
10250 including European variants of the Latin alphabet, as well as Chinese,
10251 Devanagari (Hindi and Marathi), Ethiopian, Greek, IPA, Japanese,
10252 Korean, Lao, Russian, Thai, Tibetan, and Vietnamese scripts. These
10253 features have been merged from the modified version of Emacs known as
10254 MULE (for "MULti-lingual Enhancement to GNU Emacs")
10255
10256 Users of these scripts have established many more-or-less standard
10257 coding systems for storing files. Emacs uses a single multibyte
10258 character encoding within Emacs buffers; it can translate from a wide
10259 variety of coding systems when reading a file and can translate back
10260 into any of these coding systems when saving a file.
10261
10262 Keyboards, even in the countries where these character sets are used,
10263 generally don't have keys for all the characters in them. So Emacs
10264 supports various "input methods", typically one for each script or
10265 language, to make it possible to type them.
10266
10267 The Emacs internal multibyte encoding represents a non-ASCII
10268 character as a sequence of bytes in the range 0200 through 0377.
10269
10270 The new prefix key C-x RET is used for commands that pertain
10271 to multibyte characters, coding systems, and input methods.
10272
10273 You can disable multibyte character support as follows:
10274
10275 (setq-default enable-multibyte-characters nil)
10276
10277 Calling the function standard-display-european turns off multibyte
10278 characters, unless you specify a non-nil value for the second
10279 argument, AUTO. This provides compatibility for people who are
10280 already using standard-display-european to continue using unibyte
10281 characters for their work until they want to change.
10282
10283 *** Input methods
10284
10285 An input method is a kind of character conversion which is designed
10286 specifically for interactive input. In Emacs, typically each language
10287 has its own input method (though sometimes several languages which use
10288 the same characters can share one input method). Some languages
10289 support several input methods.
10290
10291 The simplest kind of input method works by mapping ASCII letters into
10292 another alphabet. This is how the Greek and Russian input methods
10293 work.
10294
10295 A more powerful technique is composition: converting sequences of
10296 characters into one letter. Many European input methods use
10297 composition to produce a single non-ASCII letter from a sequence which
10298 consists of a letter followed by diacritics. For example, a' is one
10299 sequence of two characters that might be converted into a single
10300 letter.
10301
10302 The input methods for syllabic scripts typically use mapping followed
10303 by conversion. The input methods for Thai and Korean work this way.
10304 First, letters are mapped into symbols for particular sounds or tone
10305 marks; then, sequences of these which make up a whole syllable are
10306 mapped into one syllable sign--most often a "composite character".
10307
10308 None of these methods works very well for Chinese and Japanese, so
10309 they are handled specially. First you input a whole word using
10310 phonetic spelling; then, after the word is in the buffer, Emacs
10311 converts it into one or more characters using a large dictionary.
10312
10313 Since there is more than one way to represent a phonetically spelled
10314 word using Chinese characters, Emacs can only guess which one to use;
10315 typically these input methods give you a way to say "guess again" if
10316 the first guess is wrong.
10317
10318 *** The command C-x RET m (toggle-enable-multibyte-characters)
10319 turns multibyte character support on or off for the current buffer.
10320
10321 If multibyte character support is turned off in a buffer, then each
10322 byte is a single character, even codes 0200 through 0377--exactly as
10323 they did in Emacs 19.34. This includes the features for support for
10324 the European characters, ISO Latin-1 and ISO Latin-2.
10325
10326 However, there is no need to turn off multibyte character support to
10327 use ISO Latin-1 or ISO Latin-2; the Emacs multibyte character set
10328 includes all the characters in these character sets, and Emacs can
10329 translate automatically to and from either one.
10330
10331 *** Visiting a file in unibyte mode.
10332
10333 Turning off multibyte character support in the buffer after visiting a
10334 file with multibyte code conversion will display the multibyte
10335 sequences already in the buffer, byte by byte. This is probably not
10336 what you want.
10337
10338 If you want to edit a file of unibyte characters (Latin-1, for
10339 example), you can do it by specifying `no-conversion' as the coding
10340 system when reading the file. This coding system also turns off
10341 multibyte characters in that buffer.
10342
10343 If you turn off multibyte character support entirely, this turns off
10344 character conversion as well.
10345
10346 *** Displaying international characters on X Windows.
10347
10348 A font for X typically displays just one alphabet or script.
10349 Therefore, displaying the entire range of characters Emacs supports
10350 requires using many fonts.
10351
10352 Therefore, Emacs now supports "fontsets". Each fontset is a
10353 collection of fonts, each assigned to a range of character codes.
10354
10355 A fontset has a name, like a font. Individual fonts are defined by
10356 the X server; fontsets are defined within Emacs itself. But once you
10357 have defined a fontset, you can use it in a face or a frame just as
10358 you would use a font.
10359
10360 If a fontset specifies no font for a certain character, or if it
10361 specifies a font that does not exist on your system, then it cannot
10362 display that character. It will display an empty box instead.
10363
10364 The fontset height and width are determined by the ASCII characters
10365 (that is, by the font in the fontset which is used for ASCII
10366 characters).
10367
10368 *** Defining fontsets.
10369
10370 Emacs does not use any fontset by default. Its default font is still
10371 chosen as in previous versions. You can tell Emacs to use a fontset
10372 with the `-fn' option or the `Font' X resource.
10373
10374 Emacs creates a standard fontset automatically according to the value
10375 of standard-fontset-spec. This fontset's short name is
10376 `fontset-standard'. Bold, italic, and bold-italic variants of the
10377 standard fontset are created automatically.
10378
10379 If you specify a default ASCII font with the `Font' resource or `-fn'
10380 argument, a fontset is generated from it. This works by replacing the
10381 FOUNDARY, FAMILY, ADD_STYLE, and AVERAGE_WIDTH fields of the font name
10382 with `*' then using this to specify a fontset. This fontset's short
10383 name is `fontset-startup'.
10384
10385 Emacs checks resources of the form Fontset-N where N is 0, 1, 2...
10386 The resource value should have this form:
10387 FONTSET-NAME, [CHARSET-NAME:FONT-NAME]...
10388 FONTSET-NAME should have the form of a standard X font name, except:
10389 * most fields should be just the wild card "*".
10390 * the CHARSET_REGISTRY field should be "fontset"
10391 * the CHARSET_ENCODING field can be any nickname of the fontset.
10392 The construct CHARSET-NAME:FONT-NAME can be repeated any number
10393 of times; each time specifies the font for one character set.
10394 CHARSET-NAME should be the name of a character set, and FONT-NAME
10395 should specify an actual font to use for that character set.
10396
10397 Each of these fontsets has an alias which is made from the
10398 last two font name fields, CHARSET_REGISTRY and CHARSET_ENCODING.
10399 You can refer to the fontset by that alias or by its full name.
10400
10401 For any character sets that you don't mention, Emacs tries to choose a
10402 font by substituting into FONTSET-NAME. For instance, with the
10403 following resource,
10404 Emacs*Fontset-0: -*-fixed-medium-r-normal-*-24-*-*-*-*-*-fontset-24
10405 the font for ASCII is generated as below:
10406 -*-fixed-medium-r-normal-*-24-*-ISO8859-1
10407 Here is the substitution rule:
10408 Change CHARSET_REGISTRY and CHARSET_ENCODING to that of the charset
10409 defined in the variable x-charset-registries. For instance, ASCII has
10410 the entry (ascii . "ISO8859-1") in this variable. Then, reduce
10411 sequences of wild cards -*-...-*- with a single wildcard -*-.
10412 (This is to prevent use of auto-scaled fonts.)
10413
10414 The function which processes the fontset resource value to create the
10415 fontset is called create-fontset-from-fontset-spec. You can also call
10416 that function explicitly to create a fontset.
10417
10418 With the X resource Emacs.Font, you can specify a fontset name just
10419 like an actual font name. But be careful not to specify a fontset
10420 name in a wildcard resource like Emacs*Font--that tries to specify the
10421 fontset for other purposes including menus, and they cannot handle
10422 fontsets.
10423
10424 *** The command M-x set-language-environment sets certain global Emacs
10425 defaults for a particular choice of language.
10426
10427 Selecting a language environment typically specifies a default input
10428 method and which coding systems to recognize automatically when
10429 visiting files. However, it does not try to reread files you have
10430 already visited; the text in those buffers is not affected. The
10431 language environment may also specify a default choice of coding
10432 system for new files that you create.
10433
10434 It makes no difference which buffer is current when you use
10435 set-language-environment, because these defaults apply globally to the
10436 whole Emacs session.
10437
10438 For example, M-x set-language-environment RET Latin-1 RET
10439 chooses the Latin-1 character set. In the .emacs file, you can do this
10440 with (set-language-environment "Latin-1").
10441
10442 *** The command C-x RET f (set-buffer-file-coding-system)
10443 specifies the file coding system for the current buffer. This
10444 specifies what sort of character code translation to do when saving
10445 the file. As an argument, you must specify the name of one of the
10446 coding systems that Emacs supports.
10447
10448 *** The command C-x RET c (universal-coding-system-argument)
10449 lets you specify a coding system when you read or write a file.
10450 This command uses the minibuffer to read a coding system name.
10451 After you exit the minibuffer, the specified coding system
10452 is used for *the immediately following command*.
10453
10454 So if the immediately following command is a command to read or
10455 write a file, it uses the specified coding system for that file.
10456
10457 If the immediately following command does not use the coding system,
10458 then C-x RET c ultimately has no effect.
10459
10460 For example, C-x RET c iso-8859-1 RET C-x C-f temp RET
10461 visits the file `temp' treating it as ISO Latin-1.
10462
10463 *** You can specify the coding system for a file using the -*-
10464 construct. Include `coding: CODINGSYSTEM;' inside the -*-...-*-
10465 to specify use of coding system CODINGSYSTEM. You can also
10466 specify the coding system in a local variable list at the end
10467 of the file.
10468
10469 *** The command C-x RET t (set-terminal-coding-system) specifies
10470 the coding system for terminal output. If you specify a character
10471 code for terminal output, all characters output to the terminal are
10472 translated into that character code.
10473
10474 This feature is useful for certain character-only terminals built in
10475 various countries to support the languages of those countries.
10476
10477 By default, output to the terminal is not translated at all.
10478
10479 *** The command C-x RET k (set-keyboard-coding-system) specifies
10480 the coding system for keyboard input.
10481
10482 Character code translation of keyboard input is useful for terminals
10483 with keys that send non-ASCII graphic characters--for example,
10484 some terminals designed for ISO Latin-1 or subsets of it.
10485
10486 By default, keyboard input is not translated at all.
10487
10488 Character code translation of keyboard input is similar to using an
10489 input method, in that both define sequences of keyboard input that
10490 translate into single characters. However, input methods are designed
10491 to be convenient for interactive use, while the code translations are
10492 designed to work with terminals.
10493
10494 *** The command C-x RET p (set-buffer-process-coding-system)
10495 specifies the coding system for input and output to a subprocess.
10496 This command applies to the current buffer; normally, each subprocess
10497 has its own buffer, and thus you can use this command to specify
10498 translation to and from a particular subprocess by giving the command
10499 in the corresponding buffer.
10500
10501 By default, process input and output are not translated at all.
10502
10503 *** The variable file-name-coding-system specifies the coding system
10504 to use for encoding file names before operating on them.
10505 It is also used for decoding file names obtained from the system.
10506
10507 *** The command C-\ (toggle-input-method) activates or deactivates
10508 an input method. If no input method has been selected before, the
10509 command prompts for you to specify the language and input method you
10510 want to use.
10511
10512 C-u C-\ (select-input-method) lets you switch to a different input
10513 method. C-h C-\ (or C-h I) describes the current input method.
10514
10515 *** Some input methods remap the keyboard to emulate various keyboard
10516 layouts commonly used for particular scripts. How to do this
10517 remapping properly depends on your actual keyboard layout. To specify
10518 which layout your keyboard has, use M-x quail-set-keyboard-layout.
10519
10520 *** The command C-h C (describe-coding-system) displays
10521 the coding systems currently selected for various purposes, plus
10522 related information.
10523
10524 *** The command C-h h (view-hello-file) displays a file called
10525 HELLO, which has examples of text in many languages, using various
10526 scripts.
10527
10528 *** The command C-h L (describe-language-support) displays
10529 information about the support for a particular language.
10530 You specify the language as an argument.
10531
10532 *** The mode line now contains a letter or character that identifies
10533 the coding system used in the visited file. It normally follows the
10534 first dash.
10535
10536 A dash indicates the default state of affairs: no code conversion
10537 (except CRLF => newline if appropriate). `=' means no conversion
10538 whatsoever. The ISO 8859 coding systems are represented by digits
10539 1 through 9. Other coding systems are represented by letters:
10540
10541 A alternativnyj (Russian)
10542 B big5 (Chinese)
10543 C cn-gb-2312 (Chinese)
10544 C iso-2022-cn (Chinese)
10545 D in-is13194-devanagari (Indian languages)
10546 E euc-japan (Japanese)
10547 I iso-2022-cjk or iso-2022-ss2 (Chinese, Japanese, Korean)
10548 J junet (iso-2022-7) or old-jis (iso-2022-jp-1978-irv) (Japanese)
10549 K euc-korea (Korean)
10550 R koi8 (Russian)
10551 Q tibetan
10552 S shift_jis (Japanese)
10553 T lao
10554 T tis620 (Thai)
10555 V viscii or vscii (Vietnamese)
10556 i iso-2022-lock (Chinese, Japanese, Korean)
10557 k iso-2022-kr (Korean)
10558 v viqr (Vietnamese)
10559 z hz (Chinese)
10560
10561 When you are using a character-only terminal (not a window system),
10562 two additional characters appear in between the dash and the file
10563 coding system. These two characters describe the coding system for
10564 keyboard input, and the coding system for terminal output.
10565
10566 *** The new variable rmail-file-coding-system specifies the code
10567 conversion to use for RMAIL files. The default value is nil.
10568
10569 When you read mail with Rmail, each message is decoded automatically
10570 into Emacs' internal format. This has nothing to do with
10571 rmail-file-coding-system. That variable controls reading and writing
10572 Rmail files themselves.
10573
10574 *** The new variable sendmail-coding-system specifies the code
10575 conversion for outgoing mail. The default value is nil.
10576
10577 Actually, there are three different ways of specifying the coding system
10578 for sending mail:
10579
10580 - If you use C-x RET f in the mail buffer, that takes priority.
10581 - Otherwise, if you set sendmail-coding-system non-nil, that specifies it.
10582 - Otherwise, the default coding system for new files is used,
10583 if that is non-nil. That comes from your language environment.
10584 - Otherwise, Latin-1 is used.
10585
10586 *** The command C-h t (help-with-tutorial) accepts a prefix argument
10587 to specify the language for the tutorial file. Currently, English,
10588 Japanese, Korean and Thai are supported. We welcome additional
10589 translations.
10590
10591 ** An easy new way to visit a file with no code or format conversion
10592 of any kind: Use M-x find-file-literally. There is also a command
10593 insert-file-literally which inserts a file into the current buffer
10594 without any conversion.
10595
10596 ** C-q's handling of octal character codes is changed.
10597 You can now specify any number of octal digits.
10598 RET terminates the digits and is discarded;
10599 any other non-digit terminates the digits and is then used as input.
10600
10601 ** There are new commands for looking up Info documentation for
10602 functions, variables and file names used in your programs.
10603
10604 Type M-x info-lookup-symbol to look up a symbol in the buffer at point.
10605 Type M-x info-lookup-file to look up a file in the buffer at point.
10606
10607 Precisely which Info files are used to look it up depends on the major
10608 mode. For example, in C mode, the GNU libc manual is used.
10609
10610 ** M-TAB in most programming language modes now runs the command
10611 complete-symbol. This command performs completion on the symbol name
10612 in the buffer before point.
10613
10614 With a numeric argument, it performs completion based on the set of
10615 symbols documented in the Info files for the programming language that
10616 you are using.
10617
10618 With no argument, it does completion based on the current tags tables,
10619 just like the old binding of M-TAB (complete-tag).
10620
10621 ** File locking works with NFS now.
10622
10623 The lock file for FILENAME is now a symbolic link named .#FILENAME,
10624 in the same directory as FILENAME.
10625
10626 This means that collision detection between two different machines now
10627 works reasonably well; it also means that no file server or directory
10628 can become a bottleneck.
10629
10630 The new method does have drawbacks. It means that collision detection
10631 does not operate when you edit a file in a directory where you cannot
10632 create new files. Collision detection also doesn't operate when the
10633 file server does not support symbolic links. But these conditions are
10634 rare, and the ability to have collision detection while using NFS is
10635 so useful that the change is worth while.
10636
10637 When Emacs or a system crashes, this may leave behind lock files which
10638 are stale. So you may occasionally get warnings about spurious
10639 collisions. When you determine that the collision is spurious, just
10640 tell Emacs to go ahead anyway.
10641
10642 ** If you wish to use Show Paren mode to display matching parentheses,
10643 it is no longer sufficient to load paren.el. Instead you must call
10644 show-paren-mode.
10645
10646 ** If you wish to use Delete Selection mode to replace a highlighted
10647 selection when you insert new text, it is no longer sufficient to load
10648 delsel.el. Instead you must call the function delete-selection-mode.
10649
10650 ** If you wish to use Partial Completion mode to complete partial words
10651 within symbols or filenames, it is no longer sufficient to load
10652 complete.el. Instead you must call the function partial-completion-mode.
10653
10654 ** If you wish to use uniquify to rename buffers for you,
10655 it is no longer sufficient to load uniquify.el. You must also
10656 set uniquify-buffer-name-style to one of the non-nil legitimate values.
10657
10658 ** Changes in View mode.
10659
10660 *** Several new commands are available in View mode.
10661 Do H in view mode for a list of commands.
10662
10663 *** There are two new commands for entering View mode:
10664 view-file-other-frame and view-buffer-other-frame.
10665
10666 *** Exiting View mode does a better job of restoring windows to their
10667 previous state.
10668
10669 *** New customization variable view-scroll-auto-exit. If non-nil,
10670 scrolling past end of buffer makes view mode exit.
10671
10672 *** New customization variable view-exits-all-viewing-windows. If
10673 non-nil, view-mode will at exit restore all windows viewing buffer,
10674 not just the selected window.
10675
10676 *** New customization variable view-read-only. If non-nil, visiting a
10677 read-only file automatically enters View mode, and toggle-read-only
10678 turns View mode on or off.
10679
10680 *** New customization variable view-remove-frame-by-deleting controls
10681 how to remove a not needed frame at view mode exit. If non-nil,
10682 delete the frame, if nil make an icon of it.
10683
10684 ** C-x v l, the command to print a file's version control log,
10685 now positions point at the entry for the file's current branch version.
10686
10687 ** C-x v =, the command to compare a file with the last checked-in version,
10688 has a new feature. If the file is currently not locked, so that it is
10689 presumably identical to the last checked-in version, the command now asks
10690 which version to compare with.
10691
10692 ** When using hideshow.el, incremental search can temporarily show hidden
10693 blocks if a match is inside the block.
10694
10695 The block is hidden again if the search is continued and the next match
10696 is outside the block. By customizing the variable
10697 isearch-hide-immediately you can choose to hide all the temporarily
10698 shown blocks only when exiting from incremental search.
10699
10700 By customizing the variable hs-isearch-open you can choose what kind
10701 of blocks to temporarily show during isearch: comment blocks, code
10702 blocks, all of them or none.
10703
10704 ** The new command C-x 4 0 (kill-buffer-and-window) kills the
10705 current buffer and deletes the selected window. It asks for
10706 confirmation first.
10707
10708 ** C-x C-w, which saves the buffer into a specified file name,
10709 now changes the major mode according to that file name.
10710 However, the mode will not be changed if
10711 (1) a local variables list or the `-*-' line specifies a major mode, or
10712 (2) the current major mode is a "special" mode,
10713 not suitable for ordinary files, or
10714 (3) the new file name does not particularly specify any mode.
10715
10716 This applies to M-x set-visited-file-name as well.
10717
10718 However, if you set change-major-mode-with-file-name to nil, then
10719 these commands do not change the major mode.
10720
10721 ** M-x occur changes.
10722
10723 *** If the argument to M-x occur contains upper case letters,
10724 it performs a case-sensitive search.
10725
10726 *** In the *Occur* buffer made by M-x occur,
10727 if you type g or M-x revert-buffer, this repeats the search
10728 using the same regular expression and the same buffer as before.
10729
10730 ** In Transient Mark mode, the region in any one buffer is highlighted
10731 in just one window at a time. At first, it is highlighted in the
10732 window where you set the mark. The buffer's highlighting remains in
10733 that window unless you select to another window which shows the same
10734 buffer--then the highlighting moves to that window.
10735
10736 ** The feature to suggest key bindings when you use M-x now operates
10737 after the command finishes. The message suggesting key bindings
10738 appears temporarily in the echo area. The previous echo area contents
10739 come back after a few seconds, in case they contain useful information.
10740
10741 ** Each frame now independently records the order for recently
10742 selected buffers, so that the default for C-x b is now based on the
10743 buffers recently selected in the selected frame.
10744
10745 ** Outline mode changes.
10746
10747 *** Outline mode now uses overlays (this is the former noutline.el).
10748
10749 *** Incremental searches skip over invisible text in Outline mode.
10750
10751 ** When a minibuffer window is active but not the selected window, if
10752 you try to use the minibuffer, you used to get a nested minibuffer.
10753 Now, this not only gives an error, it also cancels the minibuffer that
10754 was already active.
10755
10756 The motive for this change is so that beginning users do not
10757 unknowingly move away from minibuffers, leaving them active, and then
10758 get confused by it.
10759
10760 If you want to be able to have recursive minibuffers, you must
10761 set enable-recursive-minibuffers to non-nil.
10762
10763 ** Changes in dynamic abbrevs.
10764
10765 *** Expanding dynamic abbrevs with M-/ is now smarter about case
10766 conversion. If the expansion has mixed case not counting the first
10767 character, and the abbreviation matches the beginning of the expansion
10768 including case, then the expansion is copied verbatim.
10769
10770 The expansion is also copied verbatim if the abbreviation itself has
10771 mixed case. And using SPC M-/ to copy an additional word always
10772 copies it verbatim except when the previous copied word is all caps.
10773
10774 *** The values of `dabbrev-case-replace' and `dabbrev-case-fold-search'
10775 are no longer Lisp expressions. They have simply three possible
10776 values.
10777
10778 `dabbrev-case-replace' has these three values: nil (don't preserve
10779 case), t (do), or `case-replace' (do like M-x query-replace).
10780 `dabbrev-case-fold-search' has these three values: nil (don't ignore
10781 case), t (do), or `case-fold-search' (do like search).
10782
10783 ** Minibuffer history lists are truncated automatically now to a
10784 certain length. The variable history-length specifies how long they
10785 can be. The default value is 30.
10786
10787 ** Changes in Mail mode.
10788
10789 *** The key C-x m no longer runs the `mail' command directly.
10790 Instead, it runs the command `compose-mail', which invokes the mail
10791 composition mechanism you have selected with the variable
10792 `mail-user-agent'. The default choice of user agent is
10793 `sendmail-user-agent', which gives behavior compatible with the old
10794 behavior.
10795
10796 C-x 4 m now runs compose-mail-other-window, and C-x 5 m runs
10797 compose-mail-other-frame.
10798
10799 *** While composing a reply to a mail message, from Rmail, you can use
10800 the command C-c C-r to cite just the region from the message you are
10801 replying to. This copies the text which is the selected region in the
10802 buffer that shows the original message.
10803
10804 *** The command C-c C-i inserts a file at the end of the message,
10805 with separator lines around the contents.
10806
10807 *** The command M-x expand-mail-aliases expands all mail aliases
10808 in suitable mail headers. Emacs automatically extracts mail alias
10809 definitions from your mail alias file (e.g., ~/.mailrc). You do not
10810 need to expand mail aliases yourself before sending mail.
10811
10812 *** New features in the mail-complete command.
10813
10814 **** The mail-complete command now inserts the user's full name,
10815 for local users or if that is known. The variable mail-complete-style
10816 controls the style to use, and whether to do this at all.
10817 Its values are like those of mail-from-style.
10818
10819 **** The variable mail-passwd-command lets you specify a shell command
10820 to run to fetch a set of password-entries that add to the ones in
10821 /etc/passwd.
10822
10823 **** The variable mail-passwd-file now specifies a list of files to read
10824 to get the list of user ids. By default, one file is used:
10825 /etc/passwd.
10826
10827 ** You can "quote" a file name to inhibit special significance of
10828 special syntax, by adding `/:' to the beginning. Thus, if you have a
10829 directory named `/foo:', you can prevent it from being treated as a
10830 reference to a remote host named `foo' by writing it as `/:/foo:'.
10831
10832 Emacs uses this new construct automatically when necessary, such as
10833 when you start it with a working directory whose name might otherwise
10834 be taken to be magic.
10835
10836 ** There is a new command M-x grep-find which uses find to select
10837 files to search through, and grep to scan them. The output is
10838 available in a Compile mode buffer, as with M-x grep.
10839
10840 M-x grep now uses the -e option if the grep program supports that.
10841 (-e prevents problems if the search pattern starts with a dash.)
10842
10843 ** In Dired, the & command now flags for deletion the files whose names
10844 suggest they are probably not needed in the long run.
10845
10846 In Dired, * is now a prefix key for mark-related commands.
10847
10848 new key dired.el binding old key
10849 ------- ---------------- -------
10850 * c dired-change-marks c
10851 * m dired-mark m
10852 * * dired-mark-executables * (binding deleted)
10853 * / dired-mark-directories / (binding deleted)
10854 * @ dired-mark-symlinks @ (binding deleted)
10855 * u dired-unmark u
10856 * DEL dired-unmark-backward DEL
10857 * ? dired-unmark-all-files C-M-?
10858 * ! dired-unmark-all-marks
10859 * % dired-mark-files-regexp % m
10860 * C-n dired-next-marked-file M-}
10861 * C-p dired-prev-marked-file M-{
10862
10863 ** Rmail changes.
10864
10865 *** When Rmail cannot convert your incoming mail into Babyl format, it
10866 saves the new mail in the file RMAILOSE.n, where n is an integer
10867 chosen to make a unique name. This way, Rmail will not keep crashing
10868 each time you run it.
10869
10870 *** In Rmail, the variable rmail-summary-line-count-flag now controls
10871 whether to include the line count in the summary. Non-nil means yes.
10872
10873 *** In Rmail summary buffers, d and C-d (the commands to delete
10874 messages) now take repeat counts as arguments. A negative argument
10875 means to move in the opposite direction.
10876
10877 *** In Rmail, the t command now takes an optional argument which lets
10878 you specify whether to show the message headers in full or pruned.
10879
10880 *** In Rmail, the new command w (rmail-output-body-to-file) writes
10881 just the body of the current message into a file, without the headers.
10882 It takes the file name from the message subject, by default, but you
10883 can edit that file name in the minibuffer before it is actually used
10884 for output.
10885
10886 ** Gnus changes.
10887
10888 *** nntp.el has been totally rewritten in an asynchronous fashion.
10889
10890 *** Article prefetching functionality has been moved up into
10891 Gnus.
10892
10893 *** Scoring can now be performed with logical operators like
10894 `and', `or', `not', and parent redirection.
10895
10896 *** Article washing status can be displayed in the
10897 article mode line.
10898
10899 *** gnus.el has been split into many smaller files.
10900
10901 *** Suppression of duplicate articles based on Message-ID.
10902
10903 (setq gnus-suppress-duplicates t)
10904
10905 *** New variables for specifying what score and adapt files
10906 are to be considered home score and adapt files. See
10907 `gnus-home-score-file' and `gnus-home-adapt-files'.
10908
10909 *** Groups can inherit group parameters from parent topics.
10910
10911 *** Article editing has been revamped and is now usable.
10912
10913 *** Signatures can be recognized in more intelligent fashions.
10914 See `gnus-signature-separator' and `gnus-signature-limit'.
10915
10916 *** Summary pick mode has been made to look more nn-like.
10917 Line numbers are displayed and the `.' command can be
10918 used to pick articles.
10919
10920 *** Commands for moving the .newsrc.eld from one server to
10921 another have been added.
10922
10923 `M-x gnus-change-server'
10924
10925 *** A way to specify that "uninteresting" fields be suppressed when
10926 generating lines in buffers.
10927
10928 *** Several commands in the group buffer can be undone with
10929 `C-M-_'.
10930
10931 *** Scoring can be done on words using the new score type `w'.
10932
10933 *** Adaptive scoring can be done on a Subject word-by-word basis:
10934
10935 (setq gnus-use-adaptive-scoring '(word))
10936
10937 *** Scores can be decayed.
10938
10939 (setq gnus-decay-scores t)
10940
10941 *** Scoring can be performed using a regexp on the Date header. The
10942 Date is normalized to compact ISO 8601 format first.
10943
10944 *** A new command has been added to remove all data on articles from
10945 the native server.
10946
10947 `M-x gnus-group-clear-data-on-native-groups'
10948
10949 *** A new command for reading collections of documents
10950 (nndoc with nnvirtual on top) has been added -- `C-M-d'.
10951
10952 *** Process mark sets can be pushed and popped.
10953
10954 *** A new mail-to-news backend makes it possible to post
10955 even when the NNTP server doesn't allow posting.
10956
10957 *** A new backend for reading searches from Web search engines
10958 (DejaNews, Alta Vista, InReference) has been added.
10959
10960 Use the `G w' command in the group buffer to create such
10961 a group.
10962
10963 *** Groups inside topics can now be sorted using the standard
10964 sorting functions, and each topic can be sorted independently.
10965
10966 See the commands under the `T S' submap.
10967
10968 *** Subsets of the groups can be sorted independently.
10969
10970 See the commands under the `G P' submap.
10971
10972 *** Cached articles can be pulled into the groups.
10973
10974 Use the `Y c' command.
10975
10976 *** Score files are now applied in a more reliable order.
10977
10978 *** Reports on where mail messages end up can be generated.
10979
10980 `M-x nnmail-split-history'
10981
10982 *** More hooks and functions have been added to remove junk
10983 from incoming mail before saving the mail.
10984
10985 See `nnmail-prepare-incoming-header-hook'.
10986
10987 *** The nnml mail backend now understands compressed article files.
10988
10989 *** To enable Gnus to read/post multi-lingual articles, you must execute
10990 the following code, for instance, in your .emacs.
10991
10992 (add-hook 'gnus-startup-hook 'gnus-mule-initialize)
10993
10994 Then, when you start Gnus, it will decode non-ASCII text automatically
10995 and show appropriate characters. (Note: if you are using gnus-mime
10996 from the SEMI package, formerly known as TM, you should NOT add this
10997 hook to gnus-startup-hook; gnus-mime has its own method of handling
10998 this issue.)
10999
11000 Since it is impossible to distinguish all coding systems
11001 automatically, you may need to specify a choice of coding system for a
11002 particular news group. This can be done by:
11003
11004 (gnus-mule-add-group NEWSGROUP 'CODING-SYSTEM)
11005
11006 Here NEWSGROUP should be a string which names a newsgroup or a tree
11007 of newsgroups. If NEWSGROUP is "XXX.YYY", all news groups under
11008 "XXX.YYY" (including "XXX.YYY.ZZZ") will use the specified coding
11009 system. CODING-SYSTEM specifies which coding system to use (for both
11010 for reading and posting).
11011
11012 CODING-SYSTEM can also be a cons cell of the form
11013 (READ-CODING-SYSTEM . POST-CODING-SYSTEM)
11014 Then READ-CODING-SYSTEM is used when you read messages from the
11015 newsgroups, while POST-CODING-SYSTEM is used when you post messages
11016 there.
11017
11018 Emacs knows the right coding systems for certain newsgroups by
11019 default. Here are some of these default settings:
11020
11021 (gnus-mule-add-group "fj" 'iso-2022-7)
11022 (gnus-mule-add-group "alt.chinese.text" 'hz-gb-2312)
11023 (gnus-mule-add-group "alt.hk" 'hz-gb-2312)
11024 (gnus-mule-add-group "alt.chinese.text.big5" 'cn-big5)
11025 (gnus-mule-add-group "soc.culture.vietnamese" '(nil . viqr))
11026
11027 When you reply by mail to an article, these settings are ignored;
11028 the mail is encoded according to sendmail-coding-system, as usual.
11029
11030 ** CC mode changes.
11031
11032 *** If you edit primarily one style of C (or C++, Objective-C, Java)
11033 code, you may want to make the CC Mode style variables have global
11034 values so that you can set them directly in your .emacs file. To do
11035 this, set c-style-variables-are-local-p to nil in your .emacs file.
11036 Note that this only takes effect if you do it *before* cc-mode.el is
11037 loaded.
11038
11039 If you typically edit more than one style of C (or C++, Objective-C,
11040 Java) code in a single Emacs session, you may want to make the CC Mode
11041 style variables have buffer local values. By default, all buffers
11042 share the same style variable settings; to make them buffer local, set
11043 c-style-variables-are-local-p to t in your .emacs file. Note that you
11044 must do this *before* CC Mode is loaded.
11045
11046 *** The new variable c-indentation-style holds the C style name
11047 of the current buffer.
11048
11049 *** The variable c-block-comments-indent-p has been deleted, because
11050 it is no longer necessary. C mode now handles all the supported styles
11051 of block comments, with no need to say which one you will use.
11052
11053 *** There is a new indentation style "python", which specifies the C
11054 style that the Python developers like.
11055
11056 *** There is a new c-cleanup-list option: brace-elseif-brace.
11057 This says to put ...} else if (...) {... on one line,
11058 just as brace-else-brace says to put ...} else {... on one line.
11059
11060 ** VC Changes [new]
11061
11062 *** In vc-retrieve-snapshot (C-x v r), if you don't specify a snapshot
11063 name, it retrieves the *latest* versions of all files in the current
11064 directory and its subdirectories (aside from files already locked).
11065
11066 This feature is useful if your RCS directory is a link to a common
11067 master directory, and you want to pick up changes made by other
11068 developers.
11069
11070 You can do the same thing for an individual file by typing C-u C-x C-q
11071 RET in a buffer visiting that file.
11072
11073 *** VC can now handle files under CVS that are being "watched" by
11074 other developers. Such files are made read-only by CVS. To get a
11075 writable copy, type C-x C-q in a buffer visiting such a file. VC then
11076 calls "cvs edit", which notifies the other developers of it.
11077
11078 *** vc-version-diff (C-u C-x v =) now suggests reasonable defaults for
11079 version numbers, based on the current state of the file.
11080
11081 ** Calendar changes.
11082
11083 *** A new function, list-holidays, allows you list holidays or
11084 subclasses of holidays for ranges of years. Related menu items allow
11085 you do this for the year of the selected date, or the
11086 following/previous years.
11087
11088 *** There is now support for the Baha'i calendar system. Use `pb' in
11089 the *Calendar* buffer to display the current Baha'i date. The Baha'i
11090 calendar, or "Badi calendar" is a system of 19 months with 19 days
11091 each, and 4 intercalary days (5 during a Gregorian leap year). The
11092 calendar begins May 23, 1844, with each of the months named after a
11093 supposed attribute of God.
11094
11095 ** ps-print changes
11096
11097 There are some new user variables and subgroups for customizing the page
11098 layout.
11099
11100 *** Headers & Footers (subgroup)
11101
11102 Some printer systems print a header page and force the first page to
11103 be printed on the back of the header page when using duplex. If your
11104 printer system has this behavior, set variable
11105 `ps-banner-page-when-duplexing' to t.
11106
11107 If variable `ps-banner-page-when-duplexing' is non-nil, it prints a
11108 blank page as the very first printed page. So, it behaves as if the
11109 very first character of buffer (or region) were a form feed ^L (\014).
11110
11111 The variable `ps-spool-config' specifies who is responsible for
11112 setting duplex mode and page size. Valid values are:
11113
11114 lpr-switches duplex and page size are configured by `ps-lpr-switches'.
11115 Don't forget to set `ps-lpr-switches' to select duplex
11116 printing for your printer.
11117
11118 setpagedevice duplex and page size are configured by ps-print using the
11119 setpagedevice PostScript operator.
11120
11121 nil duplex and page size are configured by ps-print *not* using
11122 the setpagedevice PostScript operator.
11123
11124 The variable `ps-spool-tumble' specifies how the page images on
11125 opposite sides of a sheet are oriented with respect to each other. If
11126 `ps-spool-tumble' is nil, ps-print produces output suitable for
11127 bindings on the left or right. If `ps-spool-tumble' is non-nil,
11128 ps-print produces output suitable for bindings at the top or bottom.
11129 This variable takes effect only if `ps-spool-duplex' is non-nil.
11130 The default value is nil.
11131
11132 The variable `ps-header-frame-alist' specifies a header frame
11133 properties alist. Valid frame properties are:
11134
11135 fore-color Specify the foreground frame color.
11136 Value should be a float number between 0.0 (black
11137 color) and 1.0 (white color), or a string which is a
11138 color name, or a list of 3 float numbers which
11139 correspond to the Red Green Blue color scale, each
11140 float number between 0.0 (dark color) and 1.0 (bright
11141 color). The default is 0 ("black").
11142
11143 back-color Specify the background frame color (similar to fore-color).
11144 The default is 0.9 ("gray90").
11145
11146 shadow-color Specify the shadow color (similar to fore-color).
11147 The default is 0 ("black").
11148
11149 border-color Specify the border color (similar to fore-color).
11150 The default is 0 ("black").
11151
11152 border-width Specify the border width.
11153 The default is 0.4.
11154
11155 Any other property is ignored.
11156
11157 Don't change this alist directly; instead use Custom, or the
11158 `ps-value', `ps-get', `ps-put' and `ps-del' functions (see there for
11159 documentation).
11160
11161 Ps-print can also print footers. The footer variables are:
11162 `ps-print-footer', `ps-footer-offset', `ps-print-footer-frame',
11163 `ps-footer-font-family', `ps-footer-font-size', `ps-footer-line-pad',
11164 `ps-footer-lines', `ps-left-footer', `ps-right-footer' and
11165 `ps-footer-frame-alist'. These variables are similar to those
11166 controlling headers.
11167
11168 *** Color management (subgroup)
11169
11170 If `ps-print-color-p' is non-nil, the buffer's text will be printed in
11171 color.
11172
11173 *** Face Management (subgroup)
11174
11175 If you need to print without worrying about face background colors,
11176 set the variable `ps-use-face-background' which specifies if face
11177 background should be used. Valid values are:
11178
11179 t always use face background color.
11180 nil never use face background color.
11181 (face...) list of faces whose background color will be used.
11182
11183 *** N-up printing (subgroup)
11184
11185 The variable `ps-n-up-printing' specifies the number of pages per
11186 sheet of paper.
11187
11188 The variable `ps-n-up-margin' specifies the margin in points (pt)
11189 between the sheet border and the n-up printing.
11190
11191 If variable `ps-n-up-border-p' is non-nil, a border is drawn around
11192 each page.
11193
11194 The variable `ps-n-up-filling' specifies how the page matrix is filled
11195 on each sheet of paper. Following are the valid values for
11196 `ps-n-up-filling' with a filling example using a 3x4 page matrix:
11197
11198 `left-top' 1 2 3 4 `left-bottom' 9 10 11 12
11199 5 6 7 8 5 6 7 8
11200 9 10 11 12 1 2 3 4
11201
11202 `right-top' 4 3 2 1 `right-bottom' 12 11 10 9
11203 8 7 6 5 8 7 6 5
11204 12 11 10 9 4 3 2 1
11205
11206 `top-left' 1 4 7 10 `bottom-left' 3 6 9 12
11207 2 5 8 11 2 5 8 11
11208 3 6 9 12 1 4 7 10
11209
11210 `top-right' 10 7 4 1 `bottom-right' 12 9 6 3
11211 11 8 5 2 11 8 5 2
11212 12 9 6 3 10 7 4 1
11213
11214 Any other value is treated as `left-top'.
11215
11216 *** Zebra stripes (subgroup)
11217
11218 The variable `ps-zebra-color' controls the zebra stripes grayscale or
11219 RGB color.
11220
11221 The variable `ps-zebra-stripe-follow' specifies how zebra stripes
11222 continue on next page. Visually, valid values are (the character `+'
11223 to the right of each column indicates that a line is printed):
11224
11225 `nil' `follow' `full' `full-follow'
11226 Current Page -------- ----------- --------- ----------------
11227 1 XXXXX + 1 XXXXXXXX + 1 XXXXXX + 1 XXXXXXXXXXXXX +
11228 2 XXXXX + 2 XXXXXXXX + 2 XXXXXX + 2 XXXXXXXXXXXXX +
11229 3 XXXXX + 3 XXXXXXXX + 3 XXXXXX + 3 XXXXXXXXXXXXX +
11230 4 + 4 + 4 + 4 +
11231 5 + 5 + 5 + 5 +
11232 6 + 6 + 6 + 6 +
11233 7 XXXXX + 7 XXXXXXXX + 7 XXXXXX + 7 XXXXXXXXXXXXX +
11234 8 XXXXX + 8 XXXXXXXX + 8 XXXXXX + 8 XXXXXXXXXXXXX +
11235 9 XXXXX + 9 XXXXXXXX + 9 XXXXXX + 9 XXXXXXXXXXXXX +
11236 10 + 10 +
11237 11 + 11 +
11238 -------- ----------- --------- ----------------
11239 Next Page -------- ----------- --------- ----------------
11240 12 XXXXX + 12 + 10 XXXXXX + 10 +
11241 13 XXXXX + 13 XXXXXXXX + 11 XXXXXX + 11 +
11242 14 XXXXX + 14 XXXXXXXX + 12 XXXXXX + 12 +
11243 15 + 15 XXXXXXXX + 13 + 13 XXXXXXXXXXXXX +
11244 16 + 16 + 14 + 14 XXXXXXXXXXXXX +
11245 17 + 17 + 15 + 15 XXXXXXXXXXXXX +
11246 18 XXXXX + 18 + 16 XXXXXX + 16 +
11247 19 XXXXX + 19 XXXXXXXX + 17 XXXXXX + 17 +
11248 20 XXXXX + 20 XXXXXXXX + 18 XXXXXX + 18 +
11249 21 + 21 XXXXXXXX +
11250 22 + 22 +
11251 -------- ----------- --------- ----------------
11252
11253 Any other value is treated as `nil'.
11254
11255
11256 *** Printer management (subgroup)
11257
11258 The variable `ps-printer-name-option' determines the option used by
11259 some utilities to indicate the printer name; it's used only when
11260 `ps-printer-name' is a non-empty string. If you're using the lpr
11261 utility to print, for example, `ps-printer-name-option' should be set
11262 to "-P".
11263
11264 The variable `ps-manual-feed' indicates if the printer requires manual
11265 paper feeding. If it's nil, automatic feeding takes place. If it's
11266 non-nil, manual feeding takes place.
11267
11268 The variable `ps-end-with-control-d' specifies whether C-d (\x04)
11269 should be inserted at end of the generated PostScript. Non-nil means
11270 do so.
11271
11272 *** Page settings (subgroup)
11273
11274 If variable `ps-warn-paper-type' is nil, it's *not* treated as an
11275 error if the PostScript printer doesn't have a paper with the size
11276 indicated by `ps-paper-type'; the default paper size will be used
11277 instead. If `ps-warn-paper-type' is non-nil, an error is signaled if
11278 the PostScript printer doesn't support a paper with the size indicated
11279 by `ps-paper-type'. This is used when `ps-spool-config' is set to
11280 `setpagedevice'.
11281
11282 The variable `ps-print-upside-down' determines the orientation for
11283 printing pages: nil means `normal' printing, non-nil means
11284 `upside-down' printing (that is, the page is rotated by 180 degrees).
11285
11286 The variable `ps-selected-pages' specifies which pages to print. If
11287 it's nil, all pages are printed. If it's a list, list elements may be
11288 integers specifying a single page to print, or cons cells (FROM . TO)
11289 specifying to print from page FROM to TO. Invalid list elements, that
11290 is integers smaller than one, or elements whose FROM is greater than
11291 its TO, are ignored.
11292
11293 The variable `ps-even-or-odd-pages' specifies how to print even/odd
11294 pages. Valid values are:
11295
11296 nil print all pages.
11297
11298 `even-page' print only even pages.
11299
11300 `odd-page' print only odd pages.
11301
11302 `even-sheet' print only even sheets.
11303 That is, if `ps-n-up-printing' is 1, it behaves like
11304 `even-page', but for values greater than 1, it'll
11305 print only the even sheet of paper.
11306
11307 `odd-sheet' print only odd sheets.
11308 That is, if `ps-n-up-printing' is 1, it behaves like
11309 `odd-page'; but for values greater than 1, it'll print
11310 only the odd sheet of paper.
11311
11312 Any other value is treated as nil.
11313
11314 If you set `ps-selected-pages' (see there for documentation), pages
11315 are filtered by `ps-selected-pages', and then by
11316 `ps-even-or-odd-pages'. For example, if we have:
11317
11318 (setq ps-selected-pages '(1 4 (6 . 10) (12 . 16) 20))
11319
11320 and we combine this with `ps-even-or-odd-pages' and
11321 `ps-n-up-printing', we get:
11322
11323 `ps-n-up-printing' = 1:
11324 `ps-even-or-odd-pages' PAGES PRINTED
11325 nil 1, 4, 6, 7, 8, 9, 10, 12, 13, 14, 15, 16, 20
11326 even-page 4, 6, 8, 10, 12, 14, 16, 20
11327 odd-page 1, 7, 9, 13, 15
11328 even-sheet 4, 6, 8, 10, 12, 14, 16, 20
11329 odd-sheet 1, 7, 9, 13, 15
11330
11331 `ps-n-up-printing' = 2:
11332 `ps-even-or-odd-pages' PAGES PRINTED
11333 nil 1/4, 6/7, 8/9, 10/12, 13/14, 15/16, 20
11334 even-page 4/6, 8/10, 12/14, 16/20
11335 odd-page 1/7, 9/13, 15
11336 even-sheet 6/7, 10/12, 15/16
11337 odd-sheet 1/4, 8/9, 13/14, 20
11338
11339 *** Miscellany (subgroup)
11340
11341 The variable `ps-error-handler-message' specifies where error handler
11342 messages should be sent.
11343
11344 It is also possible to add a user-defined PostScript prologue code in
11345 front of all generated prologue code by setting the variable
11346 `ps-user-defined-prologue'.
11347
11348 The variable `ps-line-number-font' specifies the font for line numbers.
11349
11350 The variable `ps-line-number-font-size' specifies the font size in
11351 points for line numbers.
11352
11353 The variable `ps-line-number-color' specifies the color for line
11354 numbers. See `ps-zebra-color' for documentation.
11355
11356 The variable `ps-line-number-step' specifies the interval in which
11357 line numbers are printed. For example, if `ps-line-number-step' is set
11358 to 2, the printing will look like:
11359
11360 1 one line
11361 one line
11362 3 one line
11363 one line
11364 5 one line
11365 one line
11366 ...
11367
11368 Valid values are:
11369
11370 integer an integer specifying the interval in which line numbers are
11371 printed. If it's smaller than or equal to zero, 1
11372 is used.
11373
11374 `zebra' specifies that only the line number of the first line in a
11375 zebra stripe is to be printed.
11376
11377 Any other value is treated as `zebra'.
11378
11379 The variable `ps-line-number-start' specifies the starting point in
11380 the interval given by `ps-line-number-step'. For example, if
11381 `ps-line-number-step' is set to 3, and `ps-line-number-start' is set to
11382 3, the output will look like:
11383
11384 one line
11385 one line
11386 3 one line
11387 one line
11388 one line
11389 6 one line
11390 one line
11391 one line
11392 9 one line
11393 one line
11394 ...
11395
11396 The variable `ps-postscript-code-directory' specifies the directory
11397 where the PostScript prologue file used by ps-print is found.
11398
11399 The variable `ps-line-spacing' determines the line spacing in points,
11400 for ordinary text, when generating PostScript (similar to
11401 `ps-font-size').
11402
11403 The variable `ps-paragraph-spacing' determines the paragraph spacing,
11404 in points, for ordinary text, when generating PostScript (similar to
11405 `ps-font-size').
11406
11407 The variable `ps-paragraph-regexp' specifies the paragraph delimiter.
11408
11409 The variable `ps-begin-cut-regexp' and `ps-end-cut-regexp' specify the
11410 start and end of a region to cut out when printing.
11411
11412 ** hideshow changes.
11413
11414 *** now supports hiding of blocks of single line comments (like // for
11415 C++, ; for lisp).
11416
11417 *** Support for java-mode added.
11418
11419 *** When doing `hs-hide-all' it is now possible to also hide the comments
11420 in the file if `hs-hide-comments-when-hiding-all' is set.
11421
11422 *** The new function `hs-hide-initial-comment' hides the comments at
11423 the beginning of the files. Finally those huge RCS logs don't stay in your
11424 way! This is run by default when entering the `hs-minor-mode'.
11425
11426 *** Now uses overlays instead of `selective-display', so is more
11427 robust and a lot faster.
11428
11429 *** A block beginning can span multiple lines.
11430
11431 *** The new variable `hs-show-hidden-short-form' if t, directs hideshow
11432 to show only the beginning of a block when it is hidden. See the
11433 documentation for more details.
11434
11435 ** Changes in Enriched mode.
11436
11437 *** When you visit a file in enriched-mode, Emacs will make sure it is
11438 filled to the current fill-column. This behavior is now independent
11439 of the size of the window. When you save the file, the fill-column in
11440 use is stored as well, so that the whole buffer need not be refilled
11441 the next time unless the fill-column is different.
11442
11443 *** use-hard-newlines is now a minor mode. When it is enabled, Emacs
11444 distinguishes between hard and soft newlines, and treats hard newlines
11445 as paragraph boundaries. Otherwise all newlines inserted are marked
11446 as soft, and paragraph boundaries are determined solely from the text.
11447
11448 ** Font Lock mode
11449
11450 *** Custom support
11451
11452 The variables font-lock-face-attributes, font-lock-display-type and
11453 font-lock-background-mode are now obsolete; the recommended way to specify the
11454 faces to use for Font Lock mode is with M-x customize-group on the new custom
11455 group font-lock-highlighting-faces. If you set font-lock-face-attributes in
11456 your ~/.emacs file, Font Lock mode will respect its value. However, you should
11457 consider converting from setting that variable to using M-x customize.
11458
11459 You can still use X resources to specify Font Lock face appearances.
11460
11461 *** Maximum decoration
11462
11463 Fontification now uses the maximum level of decoration supported by
11464 default. Previously, fontification used a mode-specific default level
11465 of decoration, which is typically the minimum level of decoration
11466 supported. You can set font-lock-maximum-decoration to nil
11467 to get the old behavior.
11468
11469 *** New support
11470
11471 Support is now provided for Java, Objective-C, AWK and SIMULA modes.
11472
11473 Note that Font Lock mode can be turned on without knowing exactly what modes
11474 support Font Lock mode, via the command global-font-lock-mode.
11475
11476 *** Configurable support
11477
11478 Support for C, C++, Objective-C and Java can be more easily configured for
11479 additional types and classes via the new variables c-font-lock-extra-types,
11480 c++-font-lock-extra-types, objc-font-lock-extra-types and, you guessed it,
11481 java-font-lock-extra-types. These value of each of these variables should be a
11482 list of regexps matching the extra type names. For example, the default value
11483 of c-font-lock-extra-types is ("\\sw+_t") which means fontification follows the
11484 convention that C type names end in _t. This results in slower fontification.
11485
11486 Of course, you can change the variables that specify fontification in whatever
11487 way you wish, typically by adding regexps. However, these new variables make
11488 it easier to make specific and common changes for the fontification of types.
11489
11490 *** Adding highlighting patterns to existing support
11491
11492 You can use the new function font-lock-add-keywords to add your own
11493 highlighting patterns, such as for project-local or user-specific constructs,
11494 for any mode.
11495
11496 For example, to highlight `FIXME:' words in C comments, put:
11497
11498 (font-lock-add-keywords 'c-mode '(("\\<FIXME:" 0 font-lock-warning-face t)))
11499
11500 in your ~/.emacs.
11501
11502 *** New faces
11503
11504 Font Lock now defines two new faces, font-lock-builtin-face and
11505 font-lock-warning-face. These are intended to highlight builtin keywords,
11506 distinct from a language's normal keywords, and objects that should be brought
11507 to user attention, respectively. Various modes now use these new faces.
11508
11509 *** Changes to fast-lock support mode
11510
11511 The fast-lock package, one of the two Font Lock support modes, can now process
11512 cache files silently. You can use the new variable fast-lock-verbose, in the
11513 same way as font-lock-verbose, to control this feature.
11514
11515 *** Changes to lazy-lock support mode
11516
11517 The lazy-lock package, one of the two Font Lock support modes, can now fontify
11518 according to the true syntactic context relative to other lines. You can use
11519 the new variable lazy-lock-defer-contextually to control this feature. If
11520 non-nil, changes to the buffer will cause subsequent lines in the buffer to be
11521 refontified after lazy-lock-defer-time seconds of idle time. If nil, then only
11522 the modified lines will be refontified; this is the same as the previous Lazy
11523 Lock mode behavior and the behavior of Font Lock mode.
11524
11525 This feature is useful in modes where strings or comments can span lines.
11526 For example, if a string or comment terminating character is deleted, then if
11527 this feature is enabled subsequent lines in the buffer will be correctly
11528 refontified to reflect their new syntactic context. Previously, only the line
11529 containing the deleted character would be refontified and you would have to use
11530 the command M-g M-g (font-lock-fontify-block) to refontify some lines.
11531
11532 As a consequence of this new feature, two other variables have changed:
11533
11534 Variable `lazy-lock-defer-driven' is renamed `lazy-lock-defer-on-scrolling'.
11535 Variable `lazy-lock-defer-time' can now only be a time, i.e., a number.
11536 Buffer modes for which on-the-fly deferral applies can be specified via the
11537 new variable `lazy-lock-defer-on-the-fly'.
11538
11539 If you set these variables in your ~/.emacs, then you may have to change those
11540 settings.
11541
11542 ** Ada mode changes.
11543
11544 *** There is now better support for using find-file.el with Ada mode.
11545 If you switch between spec and body, the cursor stays in the same
11546 procedure (modulo overloading). If a spec has no body file yet, but
11547 you try to switch to its body file, Ada mode now generates procedure
11548 stubs.
11549
11550 *** There are two new commands:
11551 - `ada-make-local' : invokes gnatmake on the current buffer
11552 - `ada-check-syntax' : check syntax of current buffer.
11553
11554 The user options `ada-compiler-make', `ada-make-options',
11555 `ada-language-version', `ada-compiler-syntax-check', and
11556 `ada-compile-options' are used within these commands.
11557
11558 *** Ada mode can now work with Outline minor mode. The outline level
11559 is calculated from the indenting, not from syntactic constructs.
11560 Outlining does not work if your code is not correctly indented.
11561
11562 *** The new function `ada-gnat-style' converts the buffer to the style of
11563 formatting used in GNAT. It places two blanks after a comment start,
11564 places one blank between a word end and an opening '(', and puts one
11565 space between a comma and the beginning of a word.
11566
11567 ** Scheme mode changes.
11568
11569 *** Scheme mode indentation now uses many of the facilities of Lisp
11570 mode; therefore, the variables to customize it are the variables used
11571 for Lisp mode which have names starting with `lisp-'. The variables
11572 with names starting with `scheme-' which used to do this no longer
11573 have any effect.
11574
11575 If you want to use different indentation for Scheme and Lisp, this is
11576 still possible, but now you must do it by adding a hook to
11577 scheme-mode-hook, which could work by setting the `lisp-' indentation
11578 variables as buffer-local variables.
11579
11580 *** DSSSL mode is a variant of Scheme mode, for editing DSSSL scripts.
11581 Use M-x dsssl-mode.
11582
11583 ** Changes to the emacsclient program
11584
11585 *** If a socket can't be found, and environment variables LOGNAME or
11586 USER are set, emacsclient now looks for a socket based on the UID
11587 associated with the name. That is an emacsclient running as root
11588 can connect to an Emacs server started by a non-root user.
11589
11590 *** The emacsclient program now accepts an option --no-wait which tells
11591 it to return immediately without waiting for you to "finish" the
11592 buffer in Emacs.
11593
11594 *** The new option --alternate-editor allows to specify an editor to
11595 use if Emacs is not running. The environment variable
11596 ALTERNATE_EDITOR can be used for the same effect; the command line
11597 option takes precedence.
11598
11599 ** M-x eldoc-mode enables a minor mode in which the echo area
11600 constantly shows the parameter list for function being called at point
11601 (in Emacs Lisp and Lisp Interaction modes only).
11602
11603 ** C-x n d now runs the new command narrow-to-defun,
11604 which narrows the accessible parts of the buffer to just
11605 the current defun.
11606
11607 ** Emacs now handles the `--' argument in the standard way; all
11608 following arguments are treated as ordinary file names.
11609
11610 ** On MSDOS and Windows, the bookmark file is now called _emacs.bmk,
11611 and the saved desktop file is now called _emacs.desktop (truncated if
11612 necessary).
11613
11614 ** When you kill a buffer that visits a file,
11615 if there are any registers that save positions in the file,
11616 these register values no longer become completely useless.
11617 If you try to go to such a register with C-x j, then you are
11618 asked whether to visit the file again. If you say yes,
11619 it visits the file and then goes to the same position.
11620
11621 ** When you visit a file that changes frequently outside Emacs--for
11622 example, a log of output from a process that continues to run--it may
11623 be useful for Emacs to revert the file without querying you whenever
11624 you visit the file afresh with C-x C-f.
11625
11626 You can request this behavior for certain files by setting the
11627 variable revert-without-query to a list of regular expressions. If a
11628 file's name matches any of these regular expressions, find-file and
11629 revert-buffer revert the buffer without asking for permission--but
11630 only if you have not edited the buffer text yourself.
11631
11632 ** set-default-font has been renamed to set-frame-font
11633 since it applies only to the current frame.
11634
11635 ** In TeX mode, you can use the variable tex-main-file to specify the
11636 file for tex-file to run TeX on. (By default, tex-main-file is nil,
11637 and tex-file runs TeX on the current visited file.)
11638
11639 This is useful when you are editing a document that consists of
11640 multiple files. In each of the included files, you can set up a local
11641 variable list which specifies the top-level file of your document for
11642 tex-main-file. Then tex-file will run TeX on the whole document
11643 instead of just the file you are editing.
11644
11645 ** RefTeX mode
11646
11647 RefTeX mode is a new minor mode with special support for \label, \ref
11648 and \cite macros in LaTeX documents. RefTeX distinguishes labels of
11649 different environments (equation, figure, ...) and has full support for
11650 multifile documents. To use it, select a buffer with a LaTeX document and
11651 turn the mode on with M-x reftex-mode. Here are the main user commands:
11652
11653 C-c ( reftex-label
11654 Creates a label semi-automatically. RefTeX is context sensitive and
11655 knows which kind of label is needed.
11656
11657 C-c ) reftex-reference
11658 Offers in a menu all labels in the document, along with context of the
11659 label definition. The selected label is referenced as \ref{LABEL}.
11660
11661 C-c [ reftex-citation
11662 Prompts for a regular expression and displays a list of matching BibTeX
11663 database entries. The selected entry is cited with a \cite{KEY} macro.
11664
11665 C-c & reftex-view-crossref
11666 Views the cross reference of a \ref or \cite command near point.
11667
11668 C-c = reftex-toc
11669 Shows a table of contents of the (multifile) document. From there you
11670 can quickly jump to every section.
11671
11672 Under X, RefTeX installs a "Ref" menu in the menu bar, with additional
11673 commands. Press `?' to get help when a prompt mentions this feature.
11674 Full documentation and customization examples are in the file
11675 reftex.el. You can use the finder to view the file documentation:
11676 C-h p --> tex --> reftex.el
11677
11678 ** Changes in BibTeX mode.
11679
11680 *** Info documentation is now available.
11681
11682 *** Don't allow parentheses in string constants anymore. This confused
11683 both the BibTeX program and Emacs BibTeX mode.
11684
11685 *** Renamed variable bibtex-mode-user-optional-fields to
11686 bibtex-user-optional-fields.
11687
11688 *** Removed variable bibtex-include-OPTannote
11689 (use bibtex-user-optional-fields instead).
11690
11691 *** New interactive functions to copy and kill fields and complete
11692 entries to the BibTeX kill ring, from where they can be yanked back by
11693 appropriate functions.
11694
11695 *** New interactive functions for repositioning and marking of
11696 entries. They are bound by default to C-M-l and C-M-h.
11697
11698 *** New hook bibtex-clean-entry-hook. It is called after entry has
11699 been cleaned.
11700
11701 *** New variable bibtex-field-delimiters, which replaces variables
11702 bibtex-field-{left|right}-delimiter.
11703
11704 *** New variable bibtex-entry-delimiters to determine how entries
11705 shall be delimited.
11706
11707 *** Allow preinitialization of fields. See documentation of
11708 bibtex-user-optional-fields, bibtex-entry-field-alist, and
11709 bibtex-include-OPTkey for details.
11710
11711 *** Book and InBook entries require either an author or an editor
11712 field. This is now supported by bibtex.el. Alternative fields are
11713 prefixed with `ALT'.
11714
11715 *** New variable bibtex-entry-format, which replaces variable
11716 bibtex-clean-entry-zap-empty-opts and allows specification of many
11717 formatting options performed on cleaning an entry (see variable
11718 documentation).
11719
11720 *** Even more control on how automatic keys are generated. See
11721 documentation of bibtex-generate-autokey for details. Transcriptions
11722 for foreign languages other than German are now handled, too.
11723
11724 *** New boolean user option bibtex-comma-after-last-field to decide if
11725 comma should be inserted at end of last field.
11726
11727 *** New boolean user option bibtex-align-at-equal-sign to determine if
11728 alignment should be made at left side of field contents or at equal
11729 signs. New user options to control entry layout (e.g. indentation).
11730
11731 *** New function bibtex-fill-entry to realign entries.
11732
11733 *** New function bibtex-reformat to reformat region or buffer.
11734
11735 *** New function bibtex-convert-alien to convert a BibTeX database
11736 from alien sources.
11737
11738 *** New function bibtex-complete-key (similar to bibtex-complete-string)
11739 to complete prefix to a key defined in buffer. Mainly useful in
11740 crossref entries.
11741
11742 *** New function bibtex-count-entries to count entries in buffer or
11743 region.
11744
11745 *** Added support for imenu.
11746
11747 *** The function `bibtex-validate' now checks current region instead
11748 of buffer if mark is active. Now it shows all errors of buffer in a
11749 `compilation mode' buffer. You can use the normal commands (e.g.
11750 `next-error') for compilation modes to jump to errors.
11751
11752 *** New variable `bibtex-string-file-path' to determine where the files
11753 from `bibtex-string-files' are searched.
11754
11755 ** Iso Accents mode now supports Latin-3 as an alternative.
11756
11757 ** The command next-error now opens blocks hidden by hideshow.
11758
11759 ** The function using-unix-filesystems has been replaced by the
11760 functions add-untranslated-filesystem and remove-untranslated-filesystem.
11761 Each of these functions takes the name of a drive letter or directory
11762 as an argument.
11763
11764 When a filesystem is added as untranslated, all files on it are read
11765 and written in binary mode (no cr/lf translation is performed).
11766
11767 ** browse-url changes
11768
11769 *** New methods for: Grail (browse-url-generic), MMM (browse-url-mmm),
11770 Lynx in a separate xterm (browse-url-lynx-xterm) or in an Emacs window
11771 (browse-url-lynx-emacs), remote W3 (browse-url-w3-gnudoit), generic
11772 non-remote-controlled browsers (browse-url-generic) and associated
11773 customization variables.
11774
11775 *** New commands `browse-url-of-region' and `browse-url'.
11776
11777 *** URLs marked up with <URL:...> (RFC1738) work if broken across
11778 lines. Browsing methods can be associated with URL regexps
11779 (e.g. mailto: URLs) via `browse-url-browser-function'.
11780
11781 ** Changes in Ediff
11782
11783 *** Clicking Mouse-2 on a brief command description in Ediff control panel
11784 pops up the Info file for this command.
11785
11786 *** There is now a variable, ediff-autostore-merges, which controls whether
11787 the result of a merge is saved in a file. By default, this is done only when
11788 merge is done from a session group (eg, when merging files in two different
11789 directories).
11790
11791 *** Since Emacs 19.31 (this hasn't been announced before), Ediff can compare
11792 and merge groups of files residing in different directories, or revisions of
11793 files in the same directory.
11794
11795 *** Since Emacs 19.31, Ediff can apply multi-file patches interactively.
11796 The patches must be in the context format or GNU unified format. (The bug
11797 related to the GNU format has now been fixed.)
11798
11799 ** Changes in Viper
11800
11801 *** The startup file is now .viper instead of .vip
11802 *** All variable/function names have been changed to start with viper-
11803 instead of vip-.
11804 *** C-\ now simulates the meta-key in all Viper states.
11805 *** C-z in Insert state now escapes to Vi for the duration of the next
11806 Viper command. In Vi and Insert states, C-z behaves as before.
11807 *** C-c \ escapes to Vi for one command if Viper is in Insert or Emacs states.
11808 *** _ is no longer the meta-key in Vi state.
11809 *** The variable viper-insert-state-cursor-color can be used to change cursor
11810 color when Viper is in insert state.
11811 *** If search lands the cursor near the top or the bottom of the window,
11812 Viper pulls the window up or down to expose more context. The variable
11813 viper-adjust-window-after-search controls this behavior.
11814
11815 ** Etags changes.
11816
11817 *** In C, C++, Objective C and Java, Etags tags global variables by
11818 default. The resulting tags files are inflated by 30% on average.
11819 Use --no-globals to turn this feature off. Etags can also tag
11820 variables which are members of structure-like constructs, but it does
11821 not by default. Use --members to turn this feature on.
11822
11823 *** C++ member functions are now recognized as tags.
11824
11825 *** Java is tagged like C++. In addition, "extends" and "implements"
11826 constructs are tagged. Files are recognised by the extension .java.
11827
11828 *** Etags can now handle programs written in Postscript. Files are
11829 recognised by the extensions .ps and .pdb (Postscript with C syntax).
11830 In Postscript, tags are lines that start with a slash.
11831
11832 *** Etags now handles Objective C and Objective C++ code. The usual C and
11833 C++ tags are recognized in these languages; in addition, etags
11834 recognizes special Objective C syntax for classes, class categories,
11835 methods and protocols.
11836
11837 *** Etags also handles Cobol. Files are recognised by the extension
11838 .cobol. The tagged lines are those containing a word that begins in
11839 column 8 and ends in a full stop, i.e. anything that could be a
11840 paragraph name.
11841
11842 *** Regexps in Etags now support intervals, as in ed or grep. The syntax of
11843 an interval is \{M,N\}, and it means to match the preceding expression
11844 at least M times and as many as N times.
11845
11846 ** The format for specifying a custom format for time-stamp to insert
11847 in files has changed slightly.
11848
11849 With the new enhancements to the functionality of format-time-string,
11850 time-stamp-format will change to be eventually compatible with it.
11851 This conversion is being done in two steps to maintain compatibility
11852 with old time-stamp-format values.
11853
11854 In the new scheme, alternate case is signified by the number-sign
11855 (`#') modifier, rather than changing the case of the format character.
11856 This feature is as yet incompletely implemented for compatibility
11857 reasons.
11858
11859 In the old time-stamp-format, all numeric fields defaulted to their
11860 natural width. (With format-time-string, each format has a
11861 fixed-width default.) In this version, you can specify the colon
11862 (`:') modifier to a numeric conversion to mean "give me the historical
11863 time-stamp-format width default." Do not use colon if you are
11864 specifying an explicit width, as in "%02d".
11865
11866 Numbers are no longer truncated to the requested width, except in the
11867 case of "%02y", which continues to give a two-digit year. Digit
11868 truncation probably wasn't being used for anything else anyway.
11869
11870 The new formats will work with old versions of Emacs. New formats are
11871 being recommended now to allow time-stamp-format to change in the
11872 future to be compatible with format-time-string. The new forms being
11873 recommended now will continue to work then.
11874
11875 See the documentation string for the variable time-stamp-format for
11876 details.
11877
11878 ** There are some additional major modes:
11879
11880 dcl-mode, for editing VMS DCL files.
11881 m4-mode, for editing files of m4 input.
11882 meta-mode, for editing MetaFont and MetaPost source files.
11883
11884 ** In Shell mode, the command shell-copy-environment-variable lets you
11885 copy the value of a specified environment variable from the subshell
11886 into Emacs.
11887
11888 ** New Lisp packages include:
11889
11890 *** battery.el displays battery status for laptops.
11891
11892 *** M-x bruce (named after Lenny Bruce) is a program that might
11893 be used for adding some indecent words to your email.
11894
11895 *** M-x crisp-mode enables an emulation for the CRiSP editor.
11896
11897 *** M-x dirtrack arranges for better tracking of directory changes
11898 in shell buffers.
11899
11900 *** The new library elint.el provides for linting of Emacs Lisp code.
11901 See the documentation for `elint-initialize', `elint-current-buffer'
11902 and `elint-defun'.
11903
11904 *** M-x expand-add-abbrevs defines a special kind of abbrev which is
11905 meant for programming constructs. These abbrevs expand like ordinary
11906 ones, when you type SPC, but only at the end of a line and not within
11907 strings or comments.
11908
11909 These abbrevs can act as templates: you can define places within an
11910 abbrev for insertion of additional text. Once you expand the abbrev,
11911 you can then use C-x a p and C-x a n to move back and forth to these
11912 insertion points. Thus you can conveniently insert additional text
11913 at these points.
11914
11915 *** filecache.el remembers the location of files so that you
11916 can visit them by short forms of their names.
11917
11918 *** find-func.el lets you find the definition of the user-loaded
11919 Emacs Lisp function at point.
11920
11921 *** M-x handwrite converts text to a "handwritten" picture.
11922
11923 *** M-x iswitchb-buffer is a command for switching to a buffer, much like
11924 switch-buffer, but it reads the argument in a more helpful way.
11925
11926 *** M-x landmark implements a neural network for landmark learning.
11927
11928 *** M-x locate provides a convenient interface to the `locate' program.
11929
11930 *** M4 mode is a new mode for editing files of m4 input.
11931
11932 *** mantemp.el creates C++ manual template instantiations
11933 from the GCC error messages which indicate which instantiations are needed.
11934
11935 *** mouse-copy.el provides a one-click copy and move feature.
11936 You can drag a region with M-mouse-1, and it is automatically
11937 inserted at point. M-Shift-mouse-1 deletes the text from its
11938 original place after inserting the copy.
11939
11940 *** mouse-drag.el lets you do scrolling by dragging Mouse-2
11941 on the buffer.
11942
11943 You click the mouse and move; that distance either translates into the
11944 velocity to scroll (with mouse-drag-throw) or the distance to scroll
11945 (with mouse-drag-drag). Horizontal scrolling is enabled when needed.
11946
11947 Enable mouse-drag with:
11948 (global-set-key [down-mouse-2] 'mouse-drag-throw)
11949 -or-
11950 (global-set-key [down-mouse-2] 'mouse-drag-drag)
11951
11952 *** mspools.el is useful for determining which mail folders have
11953 mail waiting to be read in them. It works with procmail.
11954
11955 *** Octave mode is a major mode for editing files of input for Octave.
11956 It comes with a facility for communicating with an Octave subprocess.
11957
11958 *** ogonek
11959
11960 The ogonek package provides functions for changing the coding of
11961 Polish diacritic characters in buffers. Codings known from various
11962 platforms are supported such as ISO8859-2, Mazovia, IBM Latin2, and
11963 TeX. For example, you can change the coding from Mazovia to
11964 ISO8859-2. Another example is a change of coding from ISO8859-2 to
11965 prefix notation (in which `/a' stands for the aogonek character, for
11966 instance) and vice versa.
11967
11968 To use this package load it using
11969 M-x load-library [enter] ogonek
11970 Then, you may get an explanation by calling one of
11971 M-x ogonek-jak -- in Polish
11972 M-x ogonek-how -- in English
11973 The info specifies the commands and variables provided as well as the
11974 ways of customization in `.emacs'.
11975
11976 *** Interface to ph.
11977
11978 Emacs provides a client interface to CCSO Nameservers (ph/qi)
11979
11980 The CCSO nameserver is used in many universities to provide directory
11981 services about people. ph.el provides a convenient Emacs interface to
11982 these servers.
11983
11984 *** uce.el is useful for replying to unsolicited commercial email.
11985
11986 *** vcursor.el implements a "virtual cursor" feature.
11987 You can move the virtual cursor with special commands
11988 while the real cursor does not move.
11989
11990 *** webjump.el is a "hot list" package which you can set up
11991 for visiting your favorite web sites.
11992
11993 *** M-x winner-mode is a minor mode which saves window configurations,
11994 so you can move back to other configurations that you have recently used.
11995
11996 ** movemail change
11997
11998 Movemail no longer needs to be installed setuid root in order for POP
11999 mail retrieval to function properly. This is because it no longer
12000 supports the RPOP (reserved-port POP) protocol; instead, it uses the
12001 user's POP password to authenticate to the mail server.
12002
12003 This change was made earlier, but not reported in NEWS before.
12004 \f
12005 * Emacs 20.1 changes for MS-DOS and MS-Windows.
12006
12007 ** Changes in handling MS-DOS/MS-Windows text files.
12008
12009 Emacs handles three different conventions for representing
12010 end-of-line: CRLF for MSDOS, LF for Unix and GNU, and CR (used on the
12011 Macintosh). Emacs determines which convention is used in a specific
12012 file based on the contents of that file (except for certain special
12013 file names), and when it saves the file, it uses the same convention.
12014
12015 To save the file and change the end-of-line convention, you can use
12016 C-x RET f (set-buffer-file-coding-system) to specify a different
12017 coding system for the buffer. Then, when you save the file, the newly
12018 specified coding system will take effect. For example, to save with
12019 LF, specify undecided-unix (or some other ...-unix coding system); to
12020 save with CRLF, specify undecided-dos.
12021 \f
12022 * Lisp Changes in Emacs 20.1
12023
12024 ** Byte-compiled files made with Emacs 20 will, in general, work in
12025 Emacs 19 as well, as long as the source code runs in Emacs 19. And
12026 vice versa: byte-compiled files made with Emacs 19 should also run in
12027 Emacs 20, as long as the program itself works in Emacs 20.
12028
12029 ** Windows-specific functions and variables have been renamed
12030 to start with w32- instead of win32-.
12031
12032 In hacker language, calling something a "win" is a form of praise. We
12033 don't want to praise a non-free Microsoft system, so we don't call it
12034 "win".
12035
12036 ** Basic Lisp changes
12037
12038 *** A symbol whose name starts with a colon now automatically
12039 evaluates to itself. Therefore such a symbol can be used as a constant.
12040
12041 *** The defined purpose of `defconst' has been changed. It should now
12042 be used only for values that should not be changed whether by a program
12043 or by the user.
12044
12045 The actual behavior of defconst has not been changed.
12046
12047 *** There are new macros `when' and `unless'
12048
12049 (when CONDITION BODY...) is short for (if CONDITION (progn BODY...))
12050 (unless CONDITION BODY...) is short for (if CONDITION nil BODY...)
12051
12052 *** Emacs now defines functions caar, cadr, cdar and cddr with their
12053 usual Lisp meanings. For example, caar returns the car of the car of
12054 its argument.
12055
12056 *** equal, when comparing strings, now ignores their text properties.
12057
12058 *** The new function `functionp' tests whether an object is a function.
12059
12060 *** arrayp now returns t for char-tables and bool-vectors.
12061
12062 *** Certain primitives which use characters (as integers) now get an
12063 error if the integer is not a valid character code. These primitives
12064 include insert-char, char-to-string, and the %c construct in the
12065 `format' function.
12066
12067 *** The `require' function now insists on adding a suffix, either .el
12068 or .elc, to the file name. Thus, (require 'foo) will not use a file
12069 whose name is just foo. It insists on foo.el or foo.elc.
12070
12071 *** The `autoload' function, when the file name does not contain
12072 either a directory name or the suffix .el or .elc, insists on
12073 adding one of these suffixes.
12074
12075 *** string-to-number now takes an optional second argument BASE
12076 which specifies the base to use when converting an integer.
12077 If BASE is omitted, base 10 is used.
12078
12079 We have not implemented other radices for floating point numbers,
12080 because that would be much more work and does not seem useful.
12081
12082 *** substring now handles vectors as well as strings.
12083
12084 *** The Common Lisp function eql is no longer defined normally.
12085 You must load the `cl' library to define it.
12086
12087 *** The new macro `with-current-buffer' lets you evaluate an expression
12088 conveniently with a different current buffer. It looks like this:
12089
12090 (with-current-buffer BUFFER BODY-FORMS...)
12091
12092 BUFFER is the expression that says which buffer to use.
12093 BODY-FORMS say what to do in that buffer.
12094
12095 *** The new primitive `save-current-buffer' saves and restores the
12096 choice of current buffer, like `save-excursion', but without saving or
12097 restoring the value of point or the mark. `with-current-buffer'
12098 works using `save-current-buffer'.
12099
12100 *** The new macro `with-temp-file' lets you do some work in a new buffer and
12101 write the output to a specified file. Like `progn', it returns the value
12102 of the last form.
12103
12104 *** The new macro `with-temp-buffer' lets you do some work in a new buffer,
12105 which is discarded after use. Like `progn', it returns the value of the
12106 last form. If you wish to return the buffer contents, use (buffer-string)
12107 as the last form.
12108
12109 *** The new function split-string takes a string, splits it at certain
12110 characters, and returns a list of the substrings in between the
12111 matches.
12112
12113 For example, (split-string "foo bar lose" " +") returns ("foo" "bar" "lose").
12114
12115 *** The new macro with-output-to-string executes some Lisp expressions
12116 with standard-output set up so that all output feeds into a string.
12117 Then it returns that string.
12118
12119 For example, if the current buffer name is `foo',
12120
12121 (with-output-to-string
12122 (princ "The buffer is ")
12123 (princ (buffer-name)))
12124
12125 returns "The buffer is foo".
12126
12127 ** Non-ASCII characters are now supported, if enable-multibyte-characters
12128 is non-nil.
12129
12130 These characters have character codes above 256. When inserted in the
12131 buffer or stored in a string, they are represented as multibyte
12132 characters that occupy several buffer positions each.
12133
12134 *** When enable-multibyte-characters is non-nil, a single character in
12135 a buffer or string can be two or more bytes (as many as four).
12136
12137 Buffers and strings are still made up of unibyte elements;
12138 character positions and string indices are always measured in bytes.
12139 Therefore, moving forward one character can increase the buffer
12140 position by 2, 3 or 4. The function forward-char moves by whole
12141 characters, and therefore is no longer equivalent to
12142 (lambda (n) (goto-char (+ (point) n))).
12143
12144 ASCII characters (codes 0 through 127) are still single bytes, always.
12145 Sequences of byte values 128 through 255 are used to represent
12146 non-ASCII characters. These sequences are called "multibyte
12147 characters".
12148
12149 The first byte of a multibyte character is always in the range 128
12150 through 159 (octal 0200 through 0237). These values are called
12151 "leading codes". The second and subsequent bytes are always in the
12152 range 160 through 255 (octal 0240 through 0377). The first byte, the
12153 leading code, determines how many bytes long the sequence is.
12154
12155 *** The function forward-char moves over characters, and therefore
12156 (forward-char 1) may increase point by more than 1 if it moves over a
12157 multibyte character. Likewise, delete-char always deletes a
12158 character, which may be more than one buffer position.
12159
12160 This means that some Lisp programs, which assume that a character is
12161 always one buffer position, need to be changed.
12162
12163 However, all ASCII characters are always one buffer position.
12164
12165 *** The regexp [\200-\377] no longer matches all non-ASCII characters,
12166 because when enable-multibyte-characters is non-nil, these characters
12167 have codes that are not in the range octal 200 to octal 377. However,
12168 the regexp [^\000-\177] does match all non-ASCII characters,
12169 guaranteed.
12170
12171 *** The function char-boundary-p returns non-nil if position POS is
12172 between two characters in the buffer (not in the middle of a
12173 character).
12174
12175 When the value is non-nil, it says what kind of character follows POS:
12176
12177 0 if POS is at an ASCII character or at the end of range,
12178 1 if POS is before a 2-byte length multi-byte form,
12179 2 if POS is at a head of 3-byte length multi-byte form,
12180 3 if POS is at a head of 4-byte length multi-byte form,
12181 4 if POS is at a head of multi-byte form of a composite character.
12182
12183 *** The function char-bytes returns how many bytes the character CHAR uses.
12184
12185 *** Strings can contain multibyte characters. The function
12186 `length' returns the string length counting bytes, which may be
12187 more than the number of characters.
12188
12189 You can include a multibyte character in a string constant by writing
12190 it literally. You can also represent it with a hex escape,
12191 \xNNNNNNN..., using as many digits as necessary. Any character which
12192 is not a valid hex digit terminates this construct. If you want to
12193 follow it with a character that is a hex digit, write backslash and
12194 newline in between; that will terminate the hex escape.
12195
12196 *** The function concat-chars takes arguments which are characters
12197 and returns a string containing those characters.
12198
12199 *** The function sref access a multibyte character in a string.
12200 (sref STRING INDX) returns the character in STRING at INDEX. INDEX
12201 counts from zero. If INDEX is at a position in the middle of a
12202 character, sref signals an error.
12203
12204 *** The function chars-in-string returns the number of characters
12205 in a string. This is less than the length of the string, if the
12206 string contains multibyte characters (the length counts bytes).
12207
12208 *** The function chars-in-region returns the number of characters
12209 in a region from BEG to END. This is less than (- END BEG) if the
12210 region contains multibyte characters (the length counts bytes).
12211
12212 *** The function string-to-list converts a string to a list of
12213 the characters in it. string-to-vector converts a string
12214 to a vector of the characters in it.
12215
12216 *** The function store-substring alters part of the contents
12217 of a string. You call it as follows:
12218
12219 (store-substring STRING IDX OBJ)
12220
12221 This says to alter STRING, by storing OBJ starting at index IDX in
12222 STRING. OBJ may be either a character or a (smaller) string.
12223 This function really does alter the contents of STRING.
12224 Since it is impossible to change the length of an existing string,
12225 it is an error if OBJ doesn't fit within STRING's actual length.
12226
12227 *** char-width returns the width (in columns) of the character CHAR,
12228 if it were displayed in the current buffer and the selected window.
12229
12230 *** string-width returns the width (in columns) of the text in STRING,
12231 if it were displayed in the current buffer and the selected window.
12232
12233 *** truncate-string-to-width shortens a string, if necessary,
12234 to fit within a certain number of columns. (Of course, it does
12235 not alter the string that you give it; it returns a new string
12236 which contains all or just part of the existing string.)
12237
12238 (truncate-string-to-width STR END-COLUMN &optional START-COLUMN PADDING)
12239
12240 This returns the part of STR up to column END-COLUMN.
12241
12242 The optional argument START-COLUMN specifies the starting column.
12243 If this is non-nil, then the first START-COLUMN columns of the string
12244 are not included in the resulting value.
12245
12246 The optional argument PADDING, if non-nil, is a padding character to be added
12247 at the beginning and end the resulting string, to extend it to exactly
12248 WIDTH columns. If PADDING is nil, that means do not pad; then, if STRING
12249 is narrower than WIDTH, the value is equal to STRING.
12250
12251 If PADDING and START-COLUMN are both non-nil, and if there is no clean
12252 place in STRING that corresponds to START-COLUMN (because one
12253 character extends across that column), then the padding character
12254 PADDING is added one or more times at the beginning of the result
12255 string, so that its columns line up as if it really did start at
12256 column START-COLUMN.
12257
12258 *** When the functions in the list after-change-functions are called,
12259 the third argument is the number of bytes in the pre-change text, not
12260 necessarily the number of characters. It is, in effect, the
12261 difference in buffer position between the beginning and the end of the
12262 changed text, before the change.
12263
12264 *** The characters Emacs uses are classified in various character
12265 sets, each of which has a name which is a symbol. In general there is
12266 one character set for each script, not for each language.
12267
12268 **** The function charsetp tests whether an object is a character set name.
12269
12270 **** The variable charset-list holds a list of character set names.
12271
12272 **** char-charset, given a character code, returns the name of the character
12273 set that the character belongs to. (The value is a symbol.)
12274
12275 **** split-char, given a character code, returns a list containing the
12276 name of the character set, followed by one or two byte-values
12277 which identify the character within that character set.
12278
12279 **** make-char, given a character set name and one or two subsequent
12280 byte-values, constructs a character code. This is roughly the
12281 opposite of split-char.
12282
12283 **** find-charset-region returns a list of the character sets
12284 of all the characters between BEG and END.
12285
12286 **** find-charset-string returns a list of the character sets
12287 of all the characters in a string.
12288
12289 *** Here are the Lisp facilities for working with coding systems
12290 and specifying coding systems.
12291
12292 **** The function coding-system-list returns a list of all coding
12293 system names (symbols). With optional argument t, it returns a list
12294 of all distinct base coding systems, not including variants.
12295 (Variant coding systems are those like latin-1-dos, latin-1-unix
12296 and latin-1-mac which specify the end-of-line conversion as well
12297 as what to do about code conversion.)
12298
12299 **** coding-system-p tests a symbol to see if it is a coding system
12300 name. It returns t if so, nil if not.
12301
12302 **** file-coding-system-alist specifies which coding systems to use
12303 for certain file names. It works like network-coding-system-alist,
12304 except that the PATTERN is matched against the file name.
12305
12306 Each element has the format (PATTERN . VAL), where PATTERN determines
12307 which file names the element applies to. PATTERN should be a regexp
12308 to match against a file name.
12309
12310 VAL is a coding system, a cons cell containing two coding systems, or
12311 a function symbol. If VAL is a coding system, it is used for both
12312 decoding what received from the network stream and encoding what sent
12313 to the network stream. If VAL is a cons cell containing two coding
12314 systems, the car specifies the coding system for decoding, and the cdr
12315 specifies the coding system for encoding.
12316
12317 If VAL is a function symbol, the function must return a coding system
12318 or a cons cell containing two coding systems, which is used as above.
12319
12320 **** The variable network-coding-system-alist specifies
12321 the coding system to use for network sockets.
12322
12323 Each element has the format (PATTERN . VAL), where PATTERN determines
12324 which network sockets the element applies to. PATTERN should be
12325 either a port number or a regular expression matching some network
12326 service names.
12327
12328 VAL is a coding system, a cons cell containing two coding systems, or
12329 a function symbol. If VAL is a coding system, it is used for both
12330 decoding what received from the network stream and encoding what sent
12331 to the network stream. If VAL is a cons cell containing two coding
12332 systems, the car specifies the coding system for decoding, and the cdr
12333 specifies the coding system for encoding.
12334
12335 If VAL is a function symbol, the function must return a coding system
12336 or a cons cell containing two coding systems, which is used as above.
12337
12338 **** process-coding-system-alist specifies which coding systems to use
12339 for certain subprocess. It works like network-coding-system-alist,
12340 except that the PATTERN is matched against the program name used to
12341 start the subprocess.
12342
12343 **** The variable default-process-coding-system specifies the coding
12344 systems to use for subprocess (and net connection) input and output,
12345 when nothing else specifies what to do. The value is a cons cell
12346 (OUTPUT-CODING . INPUT-CODING). OUTPUT-CODING applies to output
12347 to the subprocess, and INPUT-CODING applies to input from it.
12348
12349 **** The variable coding-system-for-write, if non-nil, specifies the
12350 coding system to use for writing a file, or for output to a synchronous
12351 subprocess.
12352
12353 It also applies to any asynchronous subprocess or network connection,
12354 but in a different way: the value of coding-system-for-write when you
12355 start the subprocess or connection affects that subprocess or
12356 connection permanently or until overridden.
12357
12358 The variable coding-system-for-write takes precedence over
12359 file-coding-system-alist, process-coding-system-alist and
12360 network-coding-system-alist, and all other methods of specifying a
12361 coding system for output. But most of the time this variable is nil.
12362 It exists so that Lisp programs can bind it to a specific coding
12363 system for one operation at a time.
12364
12365 **** coding-system-for-read applies similarly to input from
12366 files, subprocesses or network connections.
12367
12368 **** The function process-coding-system tells you what
12369 coding systems(s) an existing subprocess is using.
12370 The value is a cons cell,
12371 (DECODING-CODING-SYSTEM . ENCODING-CODING-SYSTEM)
12372 where DECODING-CODING-SYSTEM is used for decoding output from
12373 the subprocess, and ENCODING-CODING-SYSTEM is used for encoding
12374 input to the subprocess.
12375
12376 **** The function set-process-coding-system can be used to
12377 change the coding systems in use for an existing subprocess.
12378
12379 ** Emacs has a new facility to help users manage the many
12380 customization options. To make a Lisp program work with this facility,
12381 you need to use the new macros defgroup and defcustom.
12382
12383 You use defcustom instead of defvar, for defining a user option
12384 variable. The difference is that you specify two additional pieces of
12385 information (usually): the "type" which says what values are
12386 legitimate, and the "group" which specifies the hierarchy for
12387 customization.
12388
12389 Thus, instead of writing
12390
12391 (defvar foo-blurgoze nil
12392 "*Non-nil means that foo will act very blurgozely.")
12393
12394 you would now write this:
12395
12396 (defcustom foo-blurgoze nil
12397 "*Non-nil means that foo will act very blurgozely."
12398 :type 'boolean
12399 :group foo)
12400
12401 The type `boolean' means that this variable has only
12402 two meaningful states: nil and non-nil. Other type values
12403 describe other possibilities; see the manual for Custom
12404 for a description of them.
12405
12406 The "group" argument is used to specify a group which the option
12407 should belong to. You define a new group like this:
12408
12409 (defgroup ispell nil
12410 "Spell checking using Ispell."
12411 :group 'processes)
12412
12413 The "group" argument in defgroup specifies the parent group. The root
12414 group is called `emacs'; it should not contain any variables itself,
12415 but only other groups. The immediate subgroups of `emacs' correspond
12416 to the keywords used by C-h p. Under these subgroups come
12417 second-level subgroups that belong to individual packages.
12418
12419 Each Emacs package should have its own set of groups. A simple
12420 package should have just one group; a more complex package should
12421 have a hierarchy of its own groups. The sole or root group of a
12422 package should be a subgroup of one or more of the "keyword"
12423 first-level subgroups.
12424
12425 ** New `widget' library for inserting UI components in buffers.
12426
12427 This library, used by the new custom library, is documented in a
12428 separate manual that accompanies Emacs.
12429
12430 ** easy-mmode
12431
12432 The easy-mmode package provides macros and functions that make
12433 developing minor modes easier. Roughly, the programmer has to code
12434 only the functionality of the minor mode. All the rest--toggles,
12435 predicate, and documentation--can be done in one call to the macro
12436 `easy-mmode-define-minor-mode' (see the documentation). See also
12437 `easy-mmode-define-keymap'.
12438
12439 ** Text property changes
12440
12441 *** The `intangible' property now works on overlays as well as on a
12442 text property.
12443
12444 *** The new functions next-char-property-change and
12445 previous-char-property-change scan through the buffer looking for a
12446 place where either a text property or an overlay might change. The
12447 functions take two arguments, POSITION and LIMIT. POSITION is the
12448 starting position for the scan. LIMIT says where to stop the scan.
12449
12450 If no property change is found before LIMIT, the value is LIMIT. If
12451 LIMIT is nil, scan goes to the beginning or end of the accessible part
12452 of the buffer. If no property change is found, the value is the
12453 position of the beginning or end of the buffer.
12454
12455 *** In the `local-map' text property or overlay property, the property
12456 value can now be a symbol whose function definition is a keymap. This
12457 is an alternative to using the keymap itself.
12458
12459 ** Changes in invisibility features
12460
12461 *** Isearch can now temporarily show parts of the buffer which are
12462 hidden by an overlay with a invisible property, when the search match
12463 is inside that portion of the buffer. To enable this the overlay
12464 should have a isearch-open-invisible property which is a function that
12465 would be called having the overlay as an argument, the function should
12466 make the overlay visible.
12467
12468 During incremental search the overlays are shown by modifying the
12469 invisible and intangible properties, if beside this more actions are
12470 needed the overlay should have a isearch-open-invisible-temporary
12471 which is a function. The function is called with 2 arguments: one is
12472 the overlay and the second is nil when it should show the overlay and
12473 t when it should hide it.
12474
12475 *** add-to-invisibility-spec, remove-from-invisibility-spec
12476
12477 Modes that use overlays to hide portions of a buffer should set the
12478 invisible property of the overlay to the mode's name (or another symbol)
12479 and modify the `buffer-invisibility-spec' to include that symbol.
12480 Use `add-to-invisibility-spec' and `remove-from-invisibility-spec' to
12481 manipulate the `buffer-invisibility-spec'.
12482 Here is an example of how to do this:
12483
12484 ;; If we want to display an ellipsis:
12485 (add-to-invisibility-spec '(my-symbol . t))
12486 ;; If you don't want ellipsis:
12487 (add-to-invisibility-spec 'my-symbol)
12488
12489 ...
12490 (overlay-put (make-overlay beginning end) 'invisible 'my-symbol)
12491
12492 ...
12493 ;; When done with the overlays:
12494 (remove-from-invisibility-spec '(my-symbol . t))
12495 ;; Or respectively:
12496 (remove-from-invisibility-spec 'my-symbol)
12497
12498 ** Changes in syntax parsing.
12499
12500 *** The syntax-directed buffer-scan functions (such as
12501 `parse-partial-sexp', `forward-word' and similar functions) can now
12502 obey syntax information specified by text properties, if the variable
12503 `parse-sexp-lookup-properties' is non-nil.
12504
12505 If the value of `parse-sexp-lookup-properties' is nil, the behavior
12506 is as before: the syntax-table of the current buffer is always
12507 used to determine the syntax of the character at the position.
12508
12509 When `parse-sexp-lookup-properties' is non-nil, the syntax of a
12510 character in the buffer is calculated thus:
12511
12512 a) if the `syntax-table' text-property of that character
12513 is a cons, this cons becomes the syntax-type;
12514
12515 Valid values of `syntax-table' text-property are: nil, a valid
12516 syntax-table, and a valid syntax-table element, i.e.,
12517 a cons cell of the form (SYNTAX-CODE . MATCHING-CHAR).
12518
12519 b) if the character's `syntax-table' text-property
12520 is a syntax table, this syntax table is used
12521 (instead of the syntax-table of the current buffer) to
12522 determine the syntax type of the character.
12523
12524 c) otherwise the syntax-type is determined by the syntax-table
12525 of the current buffer.
12526
12527 *** The meaning of \s in regular expressions is also affected by the
12528 value of `parse-sexp-lookup-properties'. The details are the same as
12529 for the syntax-directed buffer-scan functions.
12530
12531 *** There are two new syntax-codes, `!' and `|' (numeric values 14
12532 and 15). A character with a code `!' starts a comment which is ended
12533 only by another character with the same code (unless quoted). A
12534 character with a code `|' starts a string which is ended only by
12535 another character with the same code (unless quoted).
12536
12537 These codes are mainly meant for use as values of the `syntax-table'
12538 text property.
12539
12540 *** The function `parse-partial-sexp' has new semantics for the sixth
12541 arg COMMENTSTOP. If it is `syntax-table', parse stops after the start
12542 of a comment or a string, or after end of a comment or a string.
12543
12544 *** The state-list which the return value from `parse-partial-sexp'
12545 (and can also be used as an argument) now has an optional ninth
12546 element: the character address of the start of last comment or string;
12547 nil if none. The fourth and eighth elements have special values if the
12548 string/comment is started by a "!" or "|" syntax-code.
12549
12550 *** Since new features of `parse-partial-sexp' allow a complete
12551 syntactic parsing, `font-lock' no longer supports
12552 `font-lock-comment-start-regexp'.
12553
12554 ** Changes in face features
12555
12556 *** The face functions are now unconditionally defined in Emacs, even
12557 if it does not support displaying on a device that supports faces.
12558
12559 *** The function face-documentation returns the documentation string
12560 of a face (or nil if it doesn't have one).
12561
12562 *** The function face-bold-p returns t if a face should be bold.
12563 set-face-bold-p sets that flag.
12564
12565 *** The function face-italic-p returns t if a face should be italic.
12566 set-face-italic-p sets that flag.
12567
12568 *** You can now specify foreground and background colors for text
12569 by adding elements of the form (foreground-color . COLOR-NAME)
12570 and (background-color . COLOR-NAME) to the list of faces in
12571 the `face' property (either the character's text property or an
12572 overlay property).
12573
12574 This means that you no longer need to create named faces to use
12575 arbitrary colors in a Lisp package.
12576
12577 ** Changes in file-handling functions
12578
12579 *** File-access primitive functions no longer discard an extra redundant
12580 directory name from the beginning of the file name. In other words,
12581 they no longer do anything special with // or /~. That conversion
12582 is now done only in substitute-in-file-name.
12583
12584 This makes it possible for a Lisp program to open a file whose name
12585 begins with ~.
12586
12587 *** If copy-file is unable to set the date of the output file,
12588 it now signals an error with the condition file-date-error.
12589
12590 *** The inode number returned by file-attributes may be an integer (if
12591 the number fits in a Lisp integer) or a list of integers.
12592
12593 *** insert-file-contents can now read from a special file,
12594 as long as the arguments VISIT and REPLACE are nil.
12595
12596 *** The RAWFILE arg to find-file-noselect, if non-nil, now suppresses
12597 character code conversion as well as other things.
12598
12599 Meanwhile, this feature does work with remote file names
12600 (formerly it did not).
12601
12602 *** Lisp packages which create temporary files should use the TMPDIR
12603 environment variable to decide which directory to put them in.
12604
12605 *** interpreter-mode-alist elements now specify regexps
12606 instead of constant strings.
12607
12608 *** expand-file-name no longer treats `//' or `/~' specially. It used
12609 to delete all the text of a file name up through the first slash of
12610 any `//' or `/~' sequence. Now it passes them straight through.
12611
12612 substitute-in-file-name continues to treat those sequences specially,
12613 in the same way as before.
12614
12615 *** The variable `format-alist' is more general now.
12616 The FROM-FN and TO-FN in a format definition can now be strings
12617 which specify shell commands to use as filters to perform conversion.
12618
12619 *** The new function access-file tries to open a file, and signals an
12620 error if that fails. If the open succeeds, access-file does nothing
12621 else, and returns nil.
12622
12623 *** The function insert-directory now signals an error if the specified
12624 directory cannot be listed.
12625
12626 ** Changes in minibuffer input
12627
12628 *** The functions read-buffer, read-variable, read-command, read-string
12629 read-file-name, read-from-minibuffer and completing-read now take an
12630 additional argument which specifies the default value. If this
12631 argument is non-nil, it should be a string; that string is used in two
12632 ways:
12633
12634 It is returned if the user enters empty input.
12635 It is available through the history command M-n.
12636
12637 *** The functions read-string, read-from-minibuffer,
12638 read-no-blanks-input and completing-read now take an additional
12639 argument INHERIT-INPUT-METHOD. If this is non-nil, then the
12640 minibuffer inherits the current input method and the setting of
12641 enable-multibyte-characters from the previously current buffer.
12642
12643 In an interactive spec, you can use M instead of s to read an
12644 argument in this way.
12645
12646 *** All minibuffer input functions discard text properties
12647 from the text you enter in the minibuffer, unless the variable
12648 minibuffer-allow-text-properties is non-nil.
12649
12650 ** Echo area features
12651
12652 *** Clearing the echo area now runs the normal hook
12653 echo-area-clear-hook. Note that the echo area can be used while the
12654 minibuffer is active; in that case, the minibuffer is still active
12655 after the echo area is cleared.
12656
12657 *** The function current-message returns the message currently displayed
12658 in the echo area, or nil if there is none.
12659
12660 ** Keyboard input features
12661
12662 *** tty-erase-char is a new variable that reports which character was
12663 set up as the terminal's erase character when time Emacs was started.
12664
12665 *** num-nonmacro-input-events is the total number of input events
12666 received so far from the terminal. It does not count those generated
12667 by keyboard macros.
12668
12669 ** Frame-related changes
12670
12671 *** make-frame runs the normal hook before-make-frame-hook just before
12672 creating a frame, and just after creating a frame it runs the abnormal
12673 hook after-make-frame-functions with the new frame as arg.
12674
12675 *** The new hook window-configuration-change-hook is now run every time
12676 the window configuration has changed. The frame whose configuration
12677 has changed is the selected frame when the hook is run.
12678
12679 *** Each frame now independently records the order for recently
12680 selected buffers, in its buffer-list frame parameter, so that the
12681 value of other-buffer is now based on the buffers recently displayed
12682 in the selected frame.
12683
12684 *** The value of the frame parameter vertical-scroll-bars
12685 is now `left', `right' or nil. A non-nil value specifies
12686 which side of the window to put the scroll bars on.
12687
12688 ** X Windows features
12689
12690 *** You can examine X resources for other applications by binding
12691 x-resource-class around a call to x-get-resource. The usual value of
12692 x-resource-class is "Emacs", which is the correct value for Emacs.
12693
12694 *** In menus, checkboxes and radio buttons now actually work.
12695 The menu displays the current status of the box or button.
12696
12697 *** The function x-list-fonts now takes an optional fourth argument
12698 MAXIMUM which sets a limit on how many matching fonts to return.
12699 A smaller value of MAXIMUM makes the function faster.
12700
12701 If the only question is whether *any* font matches the pattern,
12702 it is good to supply 1 for this argument.
12703
12704 ** Subprocess features
12705
12706 *** A reminder: it is no longer necessary for subprocess filter
12707 functions and sentinels to do save-match-data, because Emacs does this
12708 automatically.
12709
12710 *** The new function shell-command-to-string executes a shell command
12711 and returns the output from the command as a string.
12712
12713 *** The new function process-contact returns t for a child process,
12714 and (HOSTNAME SERVICE) for a net connection.
12715
12716 ** An error in running pre-command-hook or post-command-hook
12717 does clear the variable to nil. The documentation was wrong before.
12718
12719 ** In define-key-after, if AFTER is t, the new binding now always goes
12720 at the end of the keymap. If the keymap is a menu, this means it
12721 goes after the other menu items.
12722
12723 ** If you have a program that makes several changes in the same area
12724 of the buffer, you can use the macro combine-after-change-calls
12725 around that Lisp code to make it faster when after-change hooks
12726 are in use.
12727
12728 The macro arranges to call the after-change functions just once for a
12729 series of several changes--if that seems safe.
12730
12731 Don't alter the variables after-change-functions and
12732 after-change-function within the body of a combine-after-change-calls
12733 form.
12734
12735 ** If you define an abbrev (with define-abbrev) whose EXPANSION
12736 is not a string, then the abbrev does not expand in the usual sense,
12737 but its hook is still run.
12738
12739 ** Normally, the Lisp debugger is not used (even if you have enabled it)
12740 for errors that are handled by condition-case.
12741
12742 If you set debug-on-signal to a non-nil value, then the debugger is called
12743 regardless of whether there is a handler for the condition. This is
12744 useful for debugging problems that happen inside of a condition-case.
12745
12746 This mode of operation seems to be unreliable in other ways. Errors that
12747 are normal and ought to be handled, perhaps in timers or process
12748 filters, will instead invoke the debugger. So don't say you weren't
12749 warned.
12750
12751 ** The new variable ring-bell-function lets you specify your own
12752 way for Emacs to "ring the bell".
12753
12754 ** If run-at-time's TIME argument is t, the action is repeated at
12755 integral multiples of REPEAT from the epoch; this is useful for
12756 functions like display-time.
12757
12758 ** You can use the function locate-library to find the precise file
12759 name of a Lisp library. This isn't new, but wasn't documented before.
12760
12761 ** Commands for entering view mode have new optional arguments that
12762 can be used from Lisp. Low-level entrance to and exit from view mode
12763 is done by functions view-mode-enter and view-mode-exit.
12764
12765 ** batch-byte-compile-file now makes Emacs return a nonzero status code
12766 if there is an error in compilation.
12767
12768 ** pop-to-buffer, switch-to-buffer-other-window and
12769 switch-to-buffer-other-frame now accept an additional optional
12770 argument NORECORD, much like switch-to-buffer. If it is non-nil,
12771 they don't put the buffer at the front of the buffer list.
12772
12773 ** If your .emacs file leaves the *scratch* buffer non-empty,
12774 Emacs does not display the startup message, so as to avoid changing
12775 the *scratch* buffer.
12776
12777 ** The new function regexp-opt returns an efficient regexp to match a string.
12778 The arguments are STRINGS and (optionally) PAREN. This function can be used
12779 where regexp matching or searching is intensively used and speed is important,
12780 e.g., in Font Lock mode.
12781
12782 ** The variable buffer-display-count is local to each buffer,
12783 and is incremented each time the buffer is displayed in a window.
12784 It starts at 0 when the buffer is created.
12785
12786 ** The new function compose-mail starts composing a mail message
12787 using the user's chosen mail composition agent (specified with the
12788 variable mail-user-agent). It has variants compose-mail-other-window
12789 and compose-mail-other-frame.
12790
12791 ** The `user-full-name' function now takes an optional parameter which
12792 can either be a number (the UID) or a string (the login name). The
12793 full name of the specified user will be returned.
12794
12795 ** Lisp packages that load files of customizations, or any other sort
12796 of user profile, should obey the variable init-file-user in deciding
12797 where to find it. They should load the profile of the user name found
12798 in that variable. If init-file-user is nil, meaning that the -q
12799 option was used, then Lisp packages should not load the customization
12800 files at all.
12801
12802 ** format-time-string now allows you to specify the field width
12803 and type of padding. This works as in printf: you write the field
12804 width as digits in the middle of a %-construct. If you start
12805 the field width with 0, it means to pad with zeros.
12806
12807 For example, %S normally specifies the number of seconds since the
12808 minute; %03S means to pad this with zeros to 3 positions, %_3S to pad
12809 with spaces to 3 positions. Plain %3S pads with zeros, because that
12810 is how %S normally pads to two positions.
12811
12812 ** thing-at-point now supports a new kind of "thing": url.
12813
12814 ** imenu.el changes.
12815
12816 You can now specify a function to be run when selecting an
12817 item from menu created by imenu.
12818
12819 An example of using this feature: if we define imenu items for the
12820 #include directives in a C file, we can open the included file when we
12821 select one of those items.
12822 \f
12823 * For older news, see the file ONEWS
12824
12825 ----------------------------------------------------------------------
12826 Copyright information:
12827
12828 Copyright (C) 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
12829
12830 Permission is granted to anyone to make or distribute verbatim copies
12831 of this document as received, in any medium, provided that the
12832 copyright notice and this permission notice are preserved,
12833 thus giving the recipient permission to redistribute in turn.
12834
12835 Permission is granted to distribute modified versions
12836 of this document, or of portions of it,
12837 under the above conditions, provided also that they
12838 carry prominent notices stating who last changed them.
12839 \f
12840 Local variables:
12841 mode: outline
12842 paragraph-separate: "[ \f]*$"
12843 end:
12844
12845 arch-tag: 1aca9dfa-2ac4-4d14-bebf-0007cee12793