(calculator-mode-map): Fix typo in menu entry.
[bpt/emacs.git] / etc / NEWS.19
CommitLineData
a933dad1 1GNU Emacs NEWS -- history of user-visible changes. 1992.
0a33da51 2Copyright (C) 1993, 1994, 1995, 2001, 2006, 2007 Free Software Foundation, Inc.
a933dad1
DL
3See the end for copying conditions.
4
9a21d88b
KS
5This file is about changes in emacs versions 19.
6
7
a933dad1 8\f
2eba3201 9* Emacs 19.34 is a bug-fix release with no user-visible changes.
9a21d88b
KS
10
11
2eba3201
GM
12\f
13* Changes in Emacs 19.33.
14
15** Bibtex mode no longer turns on Auto Fill automatically. (No major
16mode should do that--it is the user's choice.)
17
18** The variable normal-auto-fill-function specifies the function to
19use for auto-fill-function, if and when Auto Fill is turned on.
20Major modes can set this locally to alter how Auto Fill works.
9a21d88b
KS
21
22
2eba3201
GM
23\f
24* Editing Changes in Emacs 19.32
25
26** C-x f with no argument now signals an error.
27To set the fill column at the current column, use C-u C-x f.
28
29** Expanding dynamic abbrevs with M-/ is now smarter about case
30conversion. If you type the abbreviation with mixed case, and it
31matches the beginning of the expansion including case, then the
32expansion is copied verbatim. Using SPC M-/ to copy an additional
33word always copies it verbatim except when the previous copied word is
34all caps.
35
36** On a non-windowing terminal, which can display only one Emacs frame
37at a time, creating a new frame with C-x 5 2 also selects that frame.
38
39When using a display that can show multiple frames at once, C-x 5 2
40does make the frame visible, but does not select it. This is the same
41as in previous Emacs versions.
42
43** You can use C-x 5 2 to create multiple frames on MSDOS, just as on a
44non-X terminal on Unix. Of course, only one frame is visible at any
45time, since your terminal doesn't have the ability to display multiple
46frames.
47
48** On Windows, set win32-pass-alt-to-system to a non-nil value
49if you would like tapping the Alt key to invoke the Windows menu.
50This feature is not enabled by default; since the Alt key is also the
51Meta key, it is too easy and painful to activate this feature by
52accident.
53
54** The command apply-macro-to-region-lines repeats the last defined
55keyboard macro once for each complete line within the current region.
56It does this line by line, by moving point to the beginning of that
57line and then executing the macro.
58
59This command is not new, but was never documented before.
60
61** You can now use Mouse-1 to place the region around a string constant
62(something surrounded by doublequote characters or other delimiter
63characters of like syntax) by double-clicking on one of the delimiting
64characters.
65
66** Font Lock mode
67
68*** Font Lock support modes
69
70Font Lock can be configured to use Fast Lock mode and Lazy Lock mode (see
71below) in a flexible way. Rather than adding the appropriate function to the
72hook font-lock-mode-hook, you can use the new variable font-lock-support-mode
73to control which modes have Fast Lock mode or Lazy Lock mode turned on when
74Font Lock mode is enabled.
75
76For example, to use Fast Lock mode when Font Lock mode is turned on, put:
77
78 (setq font-lock-support-mode 'fast-lock-mode)
79
80in your ~/.emacs.
81
82*** lazy-lock
83
84The lazy-lock package speeds up Font Lock mode by making fontification occur
85only when necessary, such as when a previously unfontified part of the buffer
86becomes visible in a window. When you create a buffer with Font Lock mode and
87Lazy Lock mode turned on, the buffer is not fontified. When certain events
88occur (such as scrolling), Lazy Lock makes sure that the visible parts of the
89buffer are fontified. Lazy Lock also defers on-the-fly fontification until
90Emacs has been idle for a given amount of time.
91
92To use this package, put in your ~/.emacs:
93
94 (setq font-lock-support-mode 'lazy-lock-mode)
95
dfd67a62 96To control the package behavior, see the documentation for `lazy-lock-mode'.
2eba3201
GM
97
98** Changes in BibTeX mode.
99
100*** For all entries allow spaces and tabs between opening brace or
101paren and key.
102
103*** Non-escaped double-quoted characters (as in `Sch"of') are now
104supported.
105
106** Gnus changes.
107
108Gnus, the Emacs news reader, has undergone further rewriting. Many new
109commands and variables have been added. There should be no
110significant incompatibilities between this Gnus version and the
111previously released version, except in the message composition area.
112
113Below is a list of the more user-visible changes. Coding changes
114between Gnus 5.1 and 5.2 are more extensive.
115
116*** A new message composition mode is used. All old customization
117variables for mail-mode, rnews-reply-mode and gnus-msg are now
118obsolete.
119
120*** Gnus is now able to generate "sparse" threads -- threads where
121missing articles are represented by empty nodes.
122
123 (setq gnus-build-sparse-threads 'some)
124
125*** Outgoing articles are stored on a special archive server.
126
127 To disable this: (setq gnus-message-archive-group nil)
128
129*** Partial thread regeneration now happens when articles are
130referred.
131
132*** Gnus can make use of GroupLens predictions:
133
134 (setq gnus-use-grouplens t)
135
136*** A trn-line tree buffer can be displayed.
137
138 (setq gnus-use-trees t)
139
140*** An nn-like pick-and-read minor mode is available for the summary
141buffers.
142
143 (add-hook 'gnus-summary-mode-hook 'gnus-pick-mode)
144
145*** In binary groups you can use a special binary minor mode:
146
147 `M-x gnus-binary-mode'
148
149*** Groups can be grouped in a folding topic hierarchy.
150
151 (add-hook 'gnus-group-mode-hook 'gnus-topic-mode)
152
153*** Gnus can re-send and bounce mail.
154
155 Use the `S D r' and `S D b'.
156
157*** Groups can now have a score, and bubbling based on entry frequency
158is possible.
159
160 (add-hook 'gnus-summary-exit-hook 'gnus-summary-bubble-group)
161
162*** Groups can be process-marked, and commands can be performed on
163groups of groups.
164
165*** Caching is possible in virtual groups.
166
167*** nndoc now understands all kinds of digests, mail boxes, rnews news
168batches, ClariNet briefs collections, and just about everything else.
169
170*** Gnus has a new backend (nnsoup) to create/read SOUP packets.
171
172*** The Gnus cache is much faster.
173
174*** Groups can be sorted according to many criteria.
175
176 For instance: (setq gnus-group-sort-function 'gnus-group-sort-by-rank)
177
178*** New group parameters have been introduced to set list-address and
179expiration times.
180
181*** All formatting specs allow specifying faces to be used.
182
183*** There are several more commands for setting/removing/acting on
184process marked articles on the `M P' submap.
185
186*** The summary buffer can be limited to show parts of the available
187articles based on a wide range of criteria. These commands have been
188bound to keys on the `/' submap.
189
190*** Articles can be made persistent -- as an alternative to saving
191articles with the `*' command.
192
193*** All functions for hiding article elements are now toggles.
194
195*** Article headers can be buttonized.
196
197 (add-hook 'gnus-article-display-hook 'gnus-article-add-buttons-to-head)
198
199*** All mail backends support fetching articles by Message-ID.
200
201*** Duplicate mail can now be treated properly. See the
202`nnmail-treat-duplicates' variable.
203
204*** All summary mode commands are available directly from the article
205buffer.
206
207*** Frames can be part of `gnus-buffer-configuration'.
208
209*** Mail can be re-scanned by a daemonic process.
210
211*** Gnus can make use of NoCeM files to filter spam.
212
213 (setq gnus-use-nocem t)
214
215*** Groups can be made permanently visible.
216
217 (setq gnus-permanently-visible-groups "^nnml:")
218
219*** Many new hooks have been introduced to make customizing easier.
220
221*** Gnus respects the Mail-Copies-To header.
222
223*** Threads can be gathered by looking at the References header.
224
225 (setq gnus-summary-thread-gathering-function
226 'gnus-gather-threads-by-references)
227
228*** Read articles can be stored in a special backlog buffer to avoid
229refetching.
230
231 (setq gnus-keep-backlog 50)
232
233*** A clean copy of the current article is always stored in a separate
234buffer to allow easier treatment.
235
236*** Gnus can suggest where to save articles. See `gnus-split-methods'.
237
238*** Gnus doesn't have to do as much prompting when saving.
239
240 (setq gnus-prompt-before-saving t)
241
242*** gnus-uu can view decoded files asynchronously while fetching
243articles.
244
245 (setq gnus-uu-grabbed-file-functions 'gnus-uu-grab-view)
246
247*** Filling in the article buffer now works properly on cited text.
248
249*** Hiding cited text adds buttons to toggle hiding, and how much
250cited text to hide is now customizable.
251
252 (setq gnus-cited-lines-visible 2)
253
254*** Boring headers can be hidden.
255
256 (add-hook 'gnus-article-display-hook 'gnus-article-hide-boring-headers)
257
258*** Default scoring values can now be set from the menu bar.
259
260*** Further syntax checking of outgoing articles have been added.
261
262The Gnus manual has been expanded. It explains all these new features
263in greater detail.
9a21d88b 264
2eba3201
GM
265\f
266* Lisp Changes in Emacs 19.32
267
268** The function set-visited-file-name now accepts an optional
269second argument NO-QUERY. If it is non-nil, then the user is not
270asked for confirmation in the case where the specified file already
271exists.
272
273** The variable print-length applies to printing vectors and bitvectors,
274as well as lists.
275
276** The new function keymap-parent returns the parent keymap
277of a given keymap.
278
279** The new function set-keymap-parent specifies a new parent for a
280given keymap. The arguments are KEYMAP and PARENT. PARENT must be a
281keymap or nil.
282
283** Sometimes menu keymaps use a command name, a symbol, which is really
284an automatically generated alias for some other command, the "real"
285name. In such a case, you should give that alias symbol a non-nil
286menu-alias property. That property tells the menu system to look for
287equivalent keys for the real name instead of equivalent keys for the
288alias.
9a21d88b
KS
289
290
2eba3201
GM
291\f
292* Editing Changes in Emacs 19.31
293
294** Freedom of the press restricted in the United States.
295
296Emacs has been censored in accord with the Communications Decency Act.
297This includes removing some features of the doctor program. That law
298was described by its supporters as a ban on pornography, but it bans
299far more than that. The Emacs distribution has never contained any
300pornography, but parts of it were nonetheless prohibited.
301
302For information on US government censorship of the Internet, and what
303you can do to bring back freedom of the press, see the web site
304`http://www.vtw.org/'.
305
306** A note about C mode indentation customization.
307
308The old (Emacs 19.29) ways of specifying a C indentation style
309do not normally work in the new implementation of C mode.
310It has its own methods of customizing indentation, which are
311much more powerful than the old C mode. See the Editing Programs
312chapter of the manual for details.
313
314However, you can load the library cc-compat to make the old
315customization variables take effect.
316
317** Marking with the mouse.
318
319When you mark a region with the mouse, the region now remains
320highlighted until the next input event, regardless of whether you are
321using M-x transient-mark-mode.
322
323** Improved Windows NT/95 support.
324
325*** Emacs now supports scroll bars on Windows NT and Windows 95.
326
327*** Emacs now supports subprocesses on Windows 95. (Subprocesses used
328to work on NT only and not on 95.)
329
330*** There are difficulties with subprocesses, though, due to problems
331in Windows, beyond the control of Emacs. They work fine as long as
332you run Windows applications. The problems arise when you run a DOS
333application in a subprocesses. Since current shells run as DOS
334applications, these problems are significant.
335
336If you run a DOS application in a subprocess, then the application is
337likely to busy-wait, which means that your machine will be 100% busy.
338However, if you don't mind the temporary heavy load, the subprocess
339will work OK as long as you tell it to terminate before you start any
340other DOS application as a subprocess.
341
342Emacs is unable to terminate or interrupt a DOS subprocess.
343You have to do this by providing input directly to the subprocess.
344
345If you run two DOS applications at the same time in two separate
346subprocesses, even if one of them is asynchronous, you will probably
347have to reboot your machine--until then, it will remain 100% busy.
348Windows simply does not cope when one Windows process tries to run two
349separate DOS subprocesses. Typing CTL-ALT-DEL and then choosing
350Shutdown seems to work although it may take a few minutes.
351
352** M-x resize-minibuffer-mode.
353
354This command, not previously mentioned in NEWS, toggles a mode in
355which the minibuffer window expands to show as many lines as the
356minibuffer contains.
357
358** `title' frame parameter and resource.
359
360The `title' X resource now specifies just the frame title, nothing else.
361It does not affect the name used for looking up other X resources.
362It works by setting the new `title' frame parameter, which likewise
363affects just the displayed title of the frame.
364
365The `name' parameter continues to do what it used to do:
366it specifies the frame name for looking up X resources,
367and also serves as the default for the displayed title
368when the `title' parameter is unspecified or nil.
369
370** Emacs now uses the X toolkit by default, if you have a new
371enough version of X installed (X11R5 or newer).
372
373** When you compile Emacs with the Motif widget set, Motif handles the
374F10 key by activating the menu bar. To avoid confusion, the usual
375Emacs binding of F10 is replaced with a no-op when using Motif.
376
377If you want to be able to use F10 in Emacs, you can rebind the Motif
378menubar to some other key which you don't use. To do so, add
379something like this to your X resources file. This example rebinds
380the Motif menu bar activation key to S-F12:
381
382 Emacs*defaultVirtualBindings: osfMenuBar : Shift<Key>F12
383
384** In overwrite mode, DEL now inserts spaces in most cases
385to replace the characters it "deletes".
386
387** The Rmail summary now shows the number of lines in each message.
388
389** Rmail has a new command M-x unforward-rmail-message, which extracts
390a forwarded message from the message that forwarded it. To use it,
391select a message which contains a forwarded message and then type the command.
392It inserts the forwarded message as a separate Rmail message
393immediately after the selected one.
394
395This command also undoes the textual modifications that are standardly
396made, as part of forwarding, by Rmail and other mail reader programs.
397
398** Turning off saving of .saves-... files in your home directory.
399
400Each Emacs session writes a file named .saves-... in your home
401directory to record which files M-x recover-session should recover.
402If you exit Emacs normally with C-x C-c, it deletes that file. If
403Emacs or the operating system crashes, the file remains for M-x
404recover-session.
405
406You can turn off the writing of these files by setting
407auto-save-list-file-name to nil. If you do this, M-x recover-session
408will not work.
409
410Some previous Emacs versions failed to delete these files even on
411normal exit. This is fixed now. If you are thinking of turning off
412this feature because of past experiences with versions that had this
413bug, it would make sense to check whether you still want to do so
414now that the bug is fixed.
415
416** Changes to Version Control (VC)
417
418There is a new variable, vc-follow-symlinks. It indicates what to do
419when you visit a link to a file that is under version control.
420Editing the file through the link bypasses the version control system,
421which is dangerous and probably not what you want.
422
423If this variable is t, VC follows the link and visits the real file,
424telling you about it in the echo area. If it is `ask' (the default),
425VC asks for confirmation whether it should follow the link. If nil,
426the link is visited and a warning displayed.
427
428** iso-acc.el now lets you specify a choice of language.
429Languages include "latin-1" (the default) and "latin-2" (which
430is designed for entering ISO Latin-2 characters).
431
432There are also choices for specific human languages such as French and
433Portuguese. These are subsets of Latin-1, which differ in that they
434enable only the accent characters needed for particular language.
435The other accent characters, not needed for the chosen language,
436remain normal.
437
438** Posting articles and sending mail now has M-TAB completion on various
439header fields (Newsgroups, To, CC, ...).
440
441Completion in the Newsgroups header depends on the list of groups
442known to your news reader. Completion in the Followup-To header
443offers those groups which are in the Newsgroups header, since
444Followup-To usually just holds one of those.
445
446Completion in fields that hold mail addresses works based on the list
447of local users plus your aliases. Additionally, if your site provides
448a mail directory or a specific host to use for any unrecognized user
449name, you can arrange to query that host for completion also. (See the
450documentation of variables `mail-directory-process' and
451`mail-directory-stream'.)
452
453** A greatly extended sgml-mode offers new features such as (to be configured)
454skeletons with completing read for tags and attributes, typing named
455characters including optionally all 8bit characters, making tags invisible
456with optional alternate display text, skipping and deleting tag(pair)s.
457
458Note: since Emacs' syntax feature cannot limit the special meaning of ', " and
459- to inside <>, for some texts the result, especially of font locking, may be
460wrong (see `sgml-specials' if you get wrong results).
461
462The derived html-mode configures this with tags and attributes more or
463less HTML3ish. It also offers optional quick keys like C-c 1 for
464headline or C-c u for unordered list (see `html-quick-keys'). Edit /
465Text Properties / Face or M-g combinations create tags as applicable.
466Outline minor mode is supported and level 1 font-locking tries to
467fontify tag contents (which only works when they fit on one line, due
468to a limitation in font-lock).
469
470External viewing via browse-url can occur automatically upon saving.
471
472** M-x imenu-add-to-menubar now adds to the menu bar for the current
473buffer only. If you want to put an Imenu item in the menu bar for all
474buffers that use a particular major mode, use the mode hook, as in
475this example:
476
477 (add-hook 'emacs-lisp-mode-hook
478 '(lambda () (imenu-add-to-menubar "Index")))
479
480** Changes in BibTeX mode.
481
482*** Field names may now contain digits, hyphens, and underscores.
483
484*** Font Lock mode is now supported.
485
486*** bibtex-make-optional-field is no longer interactive.
487
488*** If bibtex-maintain-sorted-entries is non-nil, inserting new
489entries is now done with a faster algorithm. However, inserting
490will fail in this case if the buffer contains invalid entries or
491isn't in sorted order, so you should finish each entry with C-c C-c
492(bibtex-close-entry) after you have inserted or modified it.
493The default value of bibtex-maintain-sorted-entries is nil.
494
495*** Function `show-all' is no longer bound to a key, since C-u C-c C-q
496does the same job.
497
498*** Entries with quotes inside quote-delimited fields (as `author =
499"Stefan Sch{\"o}f"') are now supported.
500
501*** Case in field names doesn't matter anymore when searching for help
502text.
503
504** Font Lock mode
505
506*** Global Font Lock mode
507
508Font Lock mode can be turned on globally, in buffers that support it, by the
509new command global-font-lock-mode. You can use the new variable
510font-lock-global-modes to control which modes have Font Lock mode automagically
511turned on. By default, this variable is set so that Font Lock mode is turned
512on globally where the buffer mode supports it.
513
514For example, to automagically turn on Font Lock mode where supported, put:
515
516 (global-font-lock-mode t)
517
518in your ~/.emacs.
519
520*** Local Refontification
521
522In Font Lock mode, editing a line automatically refontifies that line only.
523However, if your change alters the syntactic context for following lines,
524those lines remain incorrectly fontified. To refontify them, use the new
525command M-g M-g (font-lock-fontify-block).
526
527In certain major modes, M-g M-g refontifies the entire current function.
528(The variable font-lock-mark-block-function controls how to find the
529current function.) In other major modes, M-g M-g refontifies 16 lines
530above and below point.
531
532With a prefix argument N, M-g M-g refontifies N lines above and below point.
533
534** Follow mode
535
536Follow mode is a new minor mode combining windows showing the same
537buffer into one tall "virtual window". The windows are typically two
538side-by-side windows. Follow mode makes them scroll together as if
539they were a unit. To use it, go to a frame with just one window,
540split it into two side-by-side windows using C-x 3, and then type M-x
541follow-mode.
542
543M-x follow-mode turns off Follow mode if it is already enabled.
544
545To display two side-by-side windows and activate Follow mode, use the
546command M-x follow-delete-other-windows-and-split.
547
548** hide-show changes.
549
550The hooks hs-hide-hooks and hs-show-hooks have been renamed
551to hs-hide-hook and hs-show-hook, to follow the convention for
552normal hooks.
553
554** Simula mode now has a menu containing the most important commands.
555The new command simula-indent-exp is bound to C-M-q.
556
557** etags can now handle programs written in Erlang. Files are
558recognised by the extensions .erl and .hrl. The tagged lines are
559those that begin a function, record, or macro.
560
561** MSDOS Changes
562
563*** It is now possible to compile Emacs with the version 2 of DJGPP.
564Compilation with DJGPP version 1 also still works.
565
566*** The documentation of DOS-specific aspects of Emacs was rewritten
567and expanded; see the ``MS-DOS'' node in the on-line docs.
568
569*** Emacs now uses ~ for backup file names, not .bak.
570
571*** You can simulate mouse-3 on two-button mice by simultaneously
572pressing both mouse buttons.
573
574*** A number of packages and commands which previously failed or had
575restricted functionality on MS-DOS, now work. The most important ones
576are:
577
578**** Printing (both with `M-x lpr-buffer' and with `ps-print' package)
579now works.
580
581**** `Ediff' works (in a single-frame mode).
582
583**** `M-x display-time' can be used on MS-DOS (due to the new
584implementation of Emacs timers, see below).
585
586**** `Dired' supports Unix-style shell wildcards.
587
588**** The `c-macro-expand' command now works as on other platforms.
589
590**** `M-x recover-session' works.
591
592**** `M-x list-colors-display' displays all the available colors.
593
594**** The `TPU-EDT' package works.
9a21d88b 595
2eba3201
GM
596\f
597* Lisp changes in Emacs 19.31.
598
599** The function using-unix-filesystems on Windows NT and Windows 95
600tells Emacs to read and write files assuming that they reside on a
601remote Unix filesystem. No CR/LF translation is done on any files in
602this case. Invoking using-unix-filesystems with t activates this
603behavior, and invoking it with any other value deactivates it.
604
605** Change in system-type and system-configuration values.
606
607The value of system-type on a Linux-based GNU system is now `lignux',
608not `linux'. This means that some programs which use `system-type'
609need to be changed. The value of `system-configuration' will also
610be different.
611
612It is generally recommended to use `system-configuration' rather
613than `system-type'.
614
615See the file LINUX-GNU in this directory for more about this.
616
617** The functions shell-command and dired-call-process
618now run file name handlers for default-directory, if it has them.
619
620** Undoing the deletion of text now restores the positions of markers
621that pointed into or next to the deleted text.
622
623** Timers created with run-at-time now work internally to Emacs, and
624no longer use a separate process. Therefore, they now work more
625reliably and can be used for shorter time delays.
626
627The new function run-with-timer is a convenient way to set up a timer
628to run a specified amount of time after the present. A call looks
629like this:
630
631 (run-with-timer SECS REPEAT FUNCTION ARGS...)
632
633SECS says how many seconds should elapse before the timer happens.
634It may be an integer or a floating point number. When the timer
635becomes ripe, the action is to call FUNCTION with arguments ARGS.
636
637REPEAT gives the interval for repeating the timer (measured in
638seconds). It may be an integer or a floating point number. nil or 0
639means don't repeat at all--call FUNCTION just once.
640
641*** with-timeout provides an easy way to do something but give
642up if too much time passes.
643
644 (with-timeout (SECONDS TIMEOUT-FORMS...) BODY...)
645
646This executes BODY, but gives up after SECONDS seconds.
647If it gives up, it runs the TIMEOUT-FORMS and returns the value
648of the last one of them. Normally it returns the value of the last
649form in BODY.
650
651*** You can now arrange to call a function whenever Emacs is idle for
652a certain length of time. To do this, call run-with-idle-timer. A
653call looks like this:
654
655 (run-with-idle-timer SECS REPEAT FUNCTION ARGS...)
656
657SECS says how many seconds of idleness should elapse before the timer
658runs. It may be an integer or a floating point number. When the
659timer becomes ripe, the action is to call FUNCTION with arguments
660ARGS.
661
662Emacs becomes idle whenever it finishes executing a keyboard or mouse
663command. It remains idle until it receives another keyboard or mouse
664command.
665
666REPEAT, if non-nil, means this timer should be activated again each
667time Emacs becomes idle and remains idle for SECS seconds The timer
668does not repeat if Emacs *remains* idle; it runs at most once after
669each time Emacs becomes idle.
670
671If REPEAT is nil, the timer runs just once, the first time Emacs is
672idle for SECS seconds.
673
674*** post-command-idle-hook is now obsolete; you shouldn't use it at
675all, because it interferes with the idle timer mechanism. If your
676programs use post-command-idle-hook, convert them to use idle timers
677instead.
678
679*** y-or-n-p-with-timeout lets you ask a question but give up if
680there is no answer within a certain time.
681
682 (y-or-n-p-with-timeout PROMPT SECONDS DEFAULT-VALUE)
683
684asks the question PROMPT (just like y-or-n-p). If the user answers
685within SECONDS seconds, it returns the answer that the user gave.
686Otherwise it gives up after SECONDS seconds, and returns DEFAULT-VALUE.
687
688** Minor change to `encode-time': you can now pass more than seven
689arguments. If you do that, the first six arguments have the usual
690meaning, the last argument is interpreted as the time zone, and the
691arguments in between are ignored.
692
693This means that it works to use the list returned by `decode-time' as
694the list of arguments for `encode-time'.
695
696** The default value of load-path now includes the directory
697/usr/local/share/emacs/VERSION/site-lisp In addition to
698/usr/local/share/emacs/site-lisp. You can use this new directory for
699site-specific Lisp packages that belong with a particular Emacs
700version.
701
702It is not unusual for a Lisp package that works well in one Emacs
703version to cause trouble in another. Sometimes packages need updating
704for incompatible changes; sometimes they look at internal data that
705has changed; sometimes the package has been installed in Emacs itself
706and the installed version should be used. Whatever the reason for the
707problem, this new feature makes it easier to solve.
708
709** When your program contains a fixed file name (like .completions or
710.abbrev.defs), the file name usually needs to be different on operating
711systems with limited file name syntax.
712
713Now you can avoid ad-hoc conditionals by using the function
714convert-standard-filename to convert the file name to a proper form
715for each operating system. Here is an example of use, from the file
716completions.el:
717
718(defvar save-completions-file-name
719 (convert-standard-filename "~/.completions")
720 "*The filename to save completions to.")
721
722This sets the variable save-completions-file-name to a value that
723depends on the operating system, because the definition of
724convert-standard-filename depends on the operating system. On
725Unix-like systems, it returns the specified file name unchanged. On
726MS-DOS, it adapts the name to fit the limitations of that system.
727
728** The interactive spec N now returns the numeric prefix argument
729rather than the raw prefix argument. (It still reads a number using the
730minibuffer if there is no prefix argument at all.)
731
732** When a process is deleted, this no longer disconnects the process
733marker from its buffer position.
734
735** The variable garbage-collection-messages now controls whether
736Emacs displays a message at the beginning and end of garbage collection.
737The default is nil, meaning there are no messages.
738
739** The variable debug-ignored-errors specifies certain kinds of errors
740that should not enter the debugger. Its value is a list of error
741condition symbols and/or regular expressions. If the error has any
742of the condition symbols listed, or if any of the regular expressions
743matches the error message, then that error does not enter the debugger,
744regardless of the value of debug-on-error.
745
746This variable is initialized to match certain common but uninteresting
747errors that happen often during editing.
748
749** The new function error-message-string converts an error datum
750into its error message. The error datum is what condition-case
751puts into the variable, to describe the error that happened.
752
753** Anything that changes which buffer appears in a given window
754now runs the window-scroll-functions for that window.
755
756** The new function get-buffer-window-list returns a list of windows displaying
757a buffer. The function is called with the buffer (a buffer object or a buffer
758name) and two optional arguments specifying the minibuffer windows and frames
759to search. Therefore this function takes optional args like next-window etc.,
760and not get-buffer-window.
761
762** buffer-substring now runs the hook buffer-access-fontify-functions,
763calling each function with two arguments--the range of the buffer
764being accessed. buffer-substring-no-properties does not call them.
765
766If you use this feature, you should set the variable
767buffer-access-fontified-property to a non-nil symbol, which is a
768property name. Then, if all the characters in the buffer range have a
769non-nil value for that property, the buffer-access-fontify-functions
770are not called. When called, these functions should put a non-nil
771property on the text that they fontify, so that they won't get called
772over and over for the same text.
773
774** Changes in lisp-mnt.el
775
776*** The lisp-mnt package can now recognize file headers that are written
777in the formats used by the `what' command and the RCS `ident' command:
778
779;; @(#) HEADER: text
780;; $HEADER: text $
781
782in addition to the normal
783
784;; HEADER: text
785
786*** The commands lm-verify and lm-synopsis are now interactive. lm-verify
787checks that the library file has proper sections and headers, and
788lm-synopsis extracts first line "synopsis'"information.
789
790
791\f
a933dad1
DL
792* Editing Changes in Emacs 19.30.
793
794** Be sure to recompile your byte-compiled Emacs Lisp files
795if you last compiled them with Emacs 19.28 or earlier.
796You can use M-x byte-force-recompile to recompile all the .elc files
797in a specified directory.
798
799** Emacs now provides multiple-frame support on Windows NT
800and Windows 95.
801
802** M-x column-number-mode toggles a minor mode which displays
803the current column number in the mode line.
804
805** Line Number mode is now enabled by default.
806
807** M-x what-line now displays the line number in the accessible
808portion of the buffer as well as the line number in the full buffer,
809when narrowing is in effect.
810
811** If you type a M-x command that has an equivalent key binding,
812the equivalent is shown in the minibuffer before the command executes.
813This feature is enabled by default for the sake of beginning users.
814You can turn the feature off by setting suggest-key-bindings to nil.
815
816** The menu bar is now visible on text-only terminals. To choose a
817command from the menu bar when you have no mouse, type M-`
818(Meta-Backquote) or F10. To turn off menu bar display,
819do (menu-bar-mode -1).
820
821** Whenever you invoke a minibuffer, it appears in the minibuffer
822window that the current frame uses.
823
824Emacs can only use one minibuffer window at a time. If you activate
825the minibuffer while a minibuffer window is active in some other
826frame, the outer minibuffer window disappears while the inner one is
827active.
828
829** Echo area messages always appear in the minibuffer window that the
830current frame uses. If a minibuffer is active in some other frame,
831the echo area message does not hide it even temporarily.
832
833** The minibuffer now has a menu-bar menu. You can use it to exit or
834abort the minibuffer, or to ask for completion.
835
836** Dead-key and composite character processing is done in the standard
837X11R6 manner (through the default "input method" using the
838/usr/lib/X11/locale/*/Compose databases of key combinations). I.e. if
839it works in xterm, it should also work in emacs now.
840
841** Mouse changes
842
843*** You can now use the mouse when running Emacs in an xterm.
844Use M-x xterm-mouse-mode to let emacs take control over the mouse.
845
846*** C-mouse-1 now once again provides a menu of buffers to select.
847S-mouse-1 is now the way to select a default font for the frame.
848
849*** There is a new mouse-scroll-min-lines variable to control the
850minimum number of lines scrolled by dragging the mouse outside a
851window's edge.
852
853*** Dragging mouse-1 on a vertical line that separates windows
854now moves the line, thus changing the widths of the two windows.
855(This feature is available only if you don't have vertical scroll bars.
856If you do use them, a scroll bar separates two side-by-side windows.)
857
858*** Double-click mouse-1 on a character with "symbol" syntax (such as
859underscore, in C mode) selects the entire symbol surrounding that
860character. (Double-click mouse-1 on a letter selects a whole word.)
861
862** When incremental search wraps around to the beginning (or end) of
863the buffer, if you keep on searching until you go past the original
864starting point of the search, the echo area changes from "Wrapped" to
865"Overwrapped". That tells you that you are revisiting matches that
866you have already seen.
867
868** Filling changes.
869
870*** If the variable colon-double-space is non-nil, the explicit fill
871commands put two spaces after a colon.
872
873*** Auto-Fill mode now supports Adaptive Fill mode just as the
874explicit fill commands do. The variable adaptive-fill-regexp
875specifies a regular expression to match text at the beginning of
876a line that should be the fill prefix.
877
878*** Adaptive Fill mode can take a fill prefix from the first line of a
879paragraph, *provided* that line is not a paragraph-starter line.
880
881Paragraph-starter lines are indented lines that start a new
882paragraph because they are indented. This indentation shouldn't
883be copied to additional lines.
884
885Whether indented lines are paragraph lines depends on the value of the
886variable paragraph-start. Some major modes set this; you can set it
887by hand or in mode hooks as well. For editing text in which paragraph
888first lines are not indented, and which contains paragraphs in which
889all lines are indented, you should use Indented Text mode or arrange
890for paragraph-start not to match these lines.
891
892*** You can specify more complex ways of choosing a fill prefix
893automatically by setting `adaptive-fill-function'. This function
894is called with point after the left margin of a line, and it should
895return the appropriate fill prefix based on that line.
896If it returns nil, that means it sees no fill prefix in that line.
897
898** Gnus changes.
899
900Gnus, the Emacs news reader, has been rewritten and expanded. Most
901things that worked with the old version should still work with the new
902version. Code that relies heavily on Gnus internals is likely to
903fail, though.
904
905*** Incompatibilities with the old GNUS.
906
907**** All interactive commands have kept their names, but many internal
908functions have changed names.
909
910**** The summary mode gnus-uu commands have been moved from the `C-c
911C-v' keymap to the `X' keymap.
912
913**** There can now be several summary buffers active at once.
914Variables that are relevant to each summary buffer are buffer-local to
915that buffer.
916
917**** Old hilit code doesn't work at all. Gnus performs its own
918highlighting based not only on what's visible in the buffer, but on
919other data structures.
920
177c0ea7 921**** Old packages like `expire-kill' will no longer work.
a933dad1
DL
922
923**** `C-c C-l' in the group buffer no longer switches to a different
924buffer, but instead lists killed groups in the group buffer.
925
926*** New features.
927
928**** The look of all buffers can be changed by setting format-like
929variables.
177c0ea7 930
a933dad1
DL
931**** Local spool and several NNTP servers can be used at once.
932
933**** Groups can be combined into virtual groups.
934
935**** Different mail formats can be read much the same way as one would
936read newsgroups. All the mail backends implement mail expiry schemes.
937
938**** Gnus can use various strategies for gathering threads that have
939lost their roots (thereby gathering loose sub-threads into one thread)
940or it can go back and retrieve enough headers to build a complete
941thread.
942
943**** Killed groups can be read.
944
945**** Gnus can do partial group updates - you do not have to retrieve
946the entire active file just to check for new articles in a few groups.
947
948**** Gnus implements a sliding scale of subscribedness to groups.
949
950**** You can score articles according to any number of criteria. You
951can get Gnus to score articles for you using adaptive scoring.
952
953**** Gnus maintains a dribble buffer that is auto-saved the normal
954Emacs manner, so it should be difficult to lose much data on what you
955have read if your machine should go down.
956
957**** Gnus now has its own startup file (`.gnus.el') to avoid
958cluttering up the `.emacs' file.
959
960**** You can set the process mark on both groups and articles and
961perform operations on all the marked items.
962
963**** You can grep through a subset of groups and create a group from
964the results.
965
966**** You can list subsets of groups using matches on group names or
967group descriptions.
968
969**** You can browse foreign servers and subscribe to groups from those
970servers.
971
972**** Gnus can pre-fetch articles asynchronously on a second connection
973to the servers.
974
975**** You can cache articles locally.
976
977**** Gnus can fetch FAQs to and descriptions of groups.
978
979**** Digests (and other files) can be used as the basis for groups.
980
981**** Articles can be highlighted and customized.
982
983** Changes to Version Control (VC)
984
985*** General changes (all backends).
986
987VC directory listings (C-x v d) are now kept up to date when you do a
988vc-next-action (C-x v v) on the marked files. The `g' command updates
989the buffer properly. `=' in a VC dired buffer produces a version
990control diff, not an ordinary diff.
991
992*** CVS changes.
993
994Under CVS, you no longer need to type C-x C-q before you can edit a
995file. VC doesn't write-protect unmodified buffers anymore; you can
996freely change them at any time. The mode line keeps track of the
997file status.
998
999If you do want unmodified files to be write-protected, set your
1000CVSREAD environment variable. VC sees this and behaves accordingly;
dfd67a62 1001that will give you the behavior of Emacs 19.29, similar to that under
a933dad1
DL
1002RCS and SCCS. In this mode, if the variable vc-mistrust-permissions
1003is nil, VC learns the modification state from the file permissions.
1004When setting CVSREAD for the first time, you should check out the
1005whole module anew, so that the file permissions are set correctly.
1006
1007VC also works with remote repositories now. When you visit a file, it
1008doesn't run "cvs status" anymore, so there shouldn't be any long delays.
1009
1010Directory listings under VC/CVS have been enhanced. Type C-x v d, and
1011you get a list of all files in or below the current directory that are
1012not up-to-date. The actual status (modified, merge, conflict, ...) is
1013displayed for each file. If you give a prefix argument (C-u C-x v d),
1014up-to-date files are also listed. You can mark any number of files,
1015and execute the next logical version control command on them (C-x v v).
1016
1017*** Starting a new branch.
1018
177c0ea7 1019If you try to lock a version that is not the latest on its branch,
a933dad1
DL
1020VC asks for confirmation in the minibuffer. If you say no, it offers
1021to lock the latest version instead.
1022
1023*** RCS non-strict locking.
1024
1025VC can now handle RCS non-strict locking, too. In this mode, working
1026files are always writable and you needn't lock the file before making
1027changes, similar to the default mode under CVS. To enable non-strict
1028locking for a file, use the "rcs -U" command.
1029
1030*** Sharing RCS master files.
1031
1032If you share RCS subdirs with other users (through symbolic links),
1033and you always want to work on the latest version, set
1034vc-consult-headers to nil and vc-mistrust-permissions to `t'.
1035Then you see the state of the *latest* version on the mode line, not
1036that of your working file. When you do a check out, VC overwrites
1037your working file with the latest version from the master.
1038
1039*** RCS customization.
1040
1041There is a new variable vc-consult-headers. If it is t (the default),
9a21d88b 1042VC searches for RCS headers in working files (like `$Id$') and
a933dad1
DL
1043determines the state of the file from them, not from the master file.
1044This is fast and more reliable when you use branches. (The variable
1045was already present in Emacs 19.29, but didn't get mentioned in the
1046NEWS.)
1047
1048** Calendar changes.
1049
1050*** New calendars supported: Chinese, Coptic, Ethiopic
1051
1052Here are the commands for converting to and from these calendars:
1053
1054 gC: calendar-goto-chinese-date
1055 gk: calendar-goto-coptic-date
1056 ge: calendar-goto-ethiopic-date
1057
1058 pC: calendar-print-chinese-date
1059 pk: calendar-print-coptic-date
1060 pe: calendar-print-ethiopic-date
1061
1062*** Printed calendars
1063
1064Calendar mode now has commands to produce fancy printed calendars via
1065LaTeX. You can ask for a calendar for one or more days, weeks, months
1066or years. The commands all start with `t'; see the manual for a list
1067of them.
1068
1069*** New sexp diary entry type
1070
177c0ea7 1071Reminders that apply in the days leading up to an event.
a933dad1
DL
1072
1073** The CC-mode package now provides the default C and C++ modes.
1074See the manual for documentation of its features.
1075
1076** The uniquify package chooses buffer names differently when you
1077visit multiple files with the same name (in different directories).
1078
1079** RMAIL now always uses the movemail program when it renames an
1080inbox file, so that it can interlock properly with the mailer
1081no matter where it is delivering mail.
1082
1083** tex-start-of-header and tex-end-of-header are now regular expressions,
1084not strings.
1085
1086** To enable automatic uncompression of compressed files,
1087type M-x auto-compression-mode. (This command used to be called
1088toggle-auto-compression, but was not documented before.) In Lisp,
1089you can do
1090
1091 (auto-compression-mode 1)
1092
1093to turn the mode on.
1094
1095** The new pc-select package emulates the key bindings for cutting and
1096pasting, and selection of regions, found in Windows, Motif, and the
1097Macintosh.
1098
1099** Help buffers now use a special major mode, Help mode. This mode
1100normally turns on View mode; it also provides a hook, help-mode-hook,
1101which you can use for other customization.
1102
1103** Apropos now uses faces for enhanced legibility. It now describes
1104symbol properties as well as their function definitions and variable
1105values. You can use Mouse-2 or RET to get more information about a
1106function definition, variable, or property.
1107
1108** Font Lock mode
1109
1110*** Supports Scheme, TCL and Help modes
1111
1112For example, to automatically turn on Font Lock mode in the *Help*
1113buffer, put:
1114
1115 (add-hook 'help-mode-hook 'turn-on-font-lock)
1116
1117in your ~/.emacs.
1118
1119*** Enhanced fontification
1120
1121The structure of font-lock-keywords is extended to allow "anchored" keywords.
1122Typically, a keyword item of font-lock-keywords comprises a regexp to search
1123for and information to specify how the regexp should be highlighted. However,
1124the highlighting information is extended so that it can be another keyword
1125item. This keyword item, its regexp and highlighting information, is processed
1126before resuming with the keyword item of which it is part.
1127
1128For example, a typical keyword item might be:
1129
1130 ("\\<anchor\\>" (0 anchor-face))
1131
1132which fontifies each occurrence of the discrete word "anchor" in the value of
1133the variable anchor-face. However, the highlighting information can be used to
1134fontify text that is anchored to the word "anchor". For example:
1135
1136 ("\\<anchor\\>" (0 anchor-face) ("\\=[ ,]*\\(item\\)" nil nil (1 item-face)))
1137
1138which fontifies each occurrence of "anchor" as above, but for each occurrence
1139of "anchor", each occurrence of "item", in any following comma separated list,
1140is fontified in the value of the variable item-face. Thus the "item" text is
1141anchored to the "anchor" text. See the variable documentation for further
1142information.
1143
1144This feature is used to extend the level and quality of fontification in a
1145number of modes. For example, C/C++ modes now have level 3 decoration that
1146includes the fontification of variable and function names in declaration lists.
1147In this instance, the "anchor" described in the above example is a type or
1148class name, and an "item" is a variable or function name.
1149
1150*** Fontification levels
1151
1152The variables font-lock-maximum-decoration and font-lock-maximum-size are
1153extended to specify levels and sizes for specific modes. The variable
1154font-lock-maximum-decoration specifies the preferred level of fontification for
1155modes that provide multiple levels (typically from "subdued" to "gaudy"). The
1156variable font-lock-maximum-size specifies the buffer size for which buffer
1157fontification is suppressed when Font Lock mode is turned on (typically because
1158it would take too long).
1159
1160These variables can now specify values for individual modes, by supplying
1161lists of mode names and values. For example, to use the above mentioned level
11623 decoration for buffers in C/C++ modes, and default decoration otherwise, put:
1163
1164 (setq font-lock-maximum-decoration '((c-mode . 3) (c++-mode . 3)))
1165
1166in your ~/.emacs. Maximum buffer size values for individual modes are
1167specified in the same way with the variable font-lock-maximum-size.
1168
1169*** Font Lock configuration
1170
1171The mechanism to provide default settings for Font Lock mode are the variables
1172font-lock-defaults and font-lock-maximum-decoration. Typically, you should
1173only need to change the value of font-lock-maximum-decoration. However, to
1174support Font Lock mode for buffers in modes that currently do not support Font
1175Lock mode, you should set a buffer local value of font-lock-defaults for that
1176mode, typically via its mode hook.
1177
1178These variables are used by Font Lock mode to set the values of the variables
1179font-lock-keywords, font-lock-keywords-only, font-lock-syntax-table,
1180font-lock-beginning-of-syntax-function and font-lock-keywords-case-fold-search.
1181
1182You need not set these variables directly, and should not set them yourself
1183since the underlining mechanism may change in future.
1184
1185** Archive mode is now the default mode for various sorts of
1186archive files (files whose names end with .arc, .lzh, .zip, and .zoo).
1187
1188** You can automatically update the years in copyright notice by
1189means of (add-hook 'write-file-hooks 'copyright-update).
1190Optionally it can update the GPL version as well.
1191
1192** Scripts of various languages (Shell, AWK, Perl, makefiles ...) can
1193be automatically provided with a magic number and be made executable
1194by their respective modes under control of various user variables.
1195The mode must call (executable-set-magic "perl") or
1196(executable-set-magic "make" "-f"). The latter for example has no
1197effect on [Mm]akefile.
1198
1199** Shell script mode now supports over 15 different shells. The new
1200command C-c ! executes the region, and optionally beginning of script
1201as well, by passing them to the shell.
1202
1203Cases such as `sh' being a `bash' are now accounted for.
1204Fontification now also does variables, the magic number and all
1205builtin commands. Shell script mode no longer mingles `tab-width' and
1206indentation style. The variable `sh-tab-width' has been renamed to
1207`sh-indentation'. Empty lines are now indented like previous
1208non-empty line, rather than just previous line.
1209
1210The annoying $ variable prompting has been eliminated. Instead, shell
1211script mode uses `comint-dynamic-completion' for commands, variables
1212and filenames.
1213
1214** Two-column mode now automatically scrolls both buffers together,
1215which makes it possible to eliminate the special scrolling commands
1216that used to do so.
1217
1218The commands that operate in two-column mode are no longer bound to
1219keys outside that mode. f2 o will now position at the same point in
1220associated buffer.
1221
1222the new command f2 RET inserts a newline in both buffers, at point and
1223at the corresponding position in the associated buffer.
1224
1225** Skeleton commands now work smoothly as abbrev definitions. The
1226element < no longer exists, ' is a new element.
1227
1228** The autoinsert insert facility for prefilling empty files as soon
1229as they are found has been extended to accommodate skeletons or calling
1230functions. See the function auto-insert.
1231
1232** TPU-edt Changes
1233
1234Loading tpu-edt no longer turns on tpu-edt mode. In fact, it is no
1235longer necessary to explicitly load tpu-edt. All you need to do to
1236turn on tpu-edt is run the tpu-edt function. Here's how to run
1237tpu-edt instead of loading the file:
177c0ea7 1238
a933dad1
DL
1239 Running Emacs: Type emacs -f tpu-edt
1240 not emacs -l tpu-edt
1241
1242 Within Emacs: Type M-x tpu-edt <ret>
1243 not M-x load-library <ret> tpu-edt <ret>
177c0ea7 1244
a933dad1
DL
1245 In .emacs: Use (tpu-edt)
1246 not (load "tpu-edt")
177c0ea7 1247
a933dad1
DL
1248The default name of the tpu-edt X key definition file has changed from
1249~/.tpu-gnu-keys to ~/.tpu-keys. If you don't rename the file yourself,
1250tpu-edt will offer to rename it the first time you invoke it under
1251x-windows.
1252
1253** MS-DOS Enhancements:
1254
1255*** Better mouse control by adding the following functions [in dosfns.c]
1256msdos-mouse-enable, msdos-mouse-disable, msdos-mouse-init.
1257
1258*** If another foreground/background color than the default is setup in
1259your ~/_emacs, then the screen briefly flickers with the default
1260colors before changing to the colors you have specified. To avoid
1261this, the EMACSCOLORS environment variable exists. It shall be
1262defined as a string with the following elements:
177c0ea7 1263
a933dad1 1264 set EMACSCOLORS=fb;fb
177c0ea7 1265
a933dad1
DL
1266The first set of "fb" defines the initial foreground and background
1267colors using standard dos color numbers (0=black,.., 7=white).
1268If specified, the second set of "fb" defines the colors which are
1269restored when you leave emacs.
177c0ea7 1270
a933dad1
DL
1271*** The new SUSPEND environment variable can now be set as the shell to
1272use when suspending emacs. This can be used to override the stupid
1273limitation on the environment of sub-shells in MS-DOS (they are just
1274large enough to hold the currently defined variables, not leaving
1275room for more); to overcome this limitation, add this to autoexec.bat:
177c0ea7 1276
a933dad1
DL
1277 set SUSPEND=%COMSPEC% /E:2000
1278
1279** The escape character can now be displayed on X frames. Try
1280this:
1281 (aset standard-display-table 27 (vector 27))
1282after first creating a display table (you can do that by loading
1283the disp-table library).
1284
1285** The new command-line option --eval specifies an expression to evaluate
1286from the command line.
1287
1288** etags has now the ability to tag Perl files. They are recognised
1289either by the .pm and .pl suffixes or by a first line which starts
1290with `#!' and specifies a Perl interpreter. The tagged lines are
1291those beginning with the `sub' keyword.
1292
1293New suffixes recognised are .hpp for C++; .f90 for Fortran; .bib,
1294.ltx, .TeX for TeX (.bbl, .dtx removed); .ml for Lisp; .prolog for
1295prolog (.pl is now Perl).
1296
1297** The files etc/termcap.dat and etc/termcap.ucb have been replaced
1298with a new, merged, and much more comprehensive termcap file. The
1299new file should include all the special entries from the old one.
1300This new file is under active development as part of the ncurses
1301project. If you have any questions about this file, or problems with
1302an entry in it, email terminfo@ccil.org.
9a21d88b 1303
a933dad1
DL
1304\f
1305* Lisp changes in Emacs 19.30.
1306
1307** New Data Types
1308
1309*** There is a new data type called a char-table which is an array
1310indexed by a character. Currently this is mostly equivalent to a
1311vector of length 256, but in the future, when a wider character set is
1312in use, it will be different. To create one, call
1313 (make-char-table SUBTYPE INITIAL-VALUE)
1314
1315SUBTYPE is a symbol that identifies the specific use of this
1316character table. It can be any of these values:
1317
1318 syntax-table
1319 display-table
1320 keyboard-translate-table
1321 case-table
1322
1323The function `char-table-subtype' returns the subtype of a char-table.
1324You cannot alter the subtype of an existing char-table.
1325
1326A char-table has an element for each character code. It also has some
1327"extra slots". The number of extra slots depends on the subtype and
1328their use depends on the subtype. (Each subtype symbol has a
1329`char-table-extra-slots' property that says how many extra slots to
1330make.) Use (char-table-extra-slot TABLE N) to access extra slot N and
1331(set-char-table-extra-slot TABLE N VALUE) to store VALUE in slot N.
1332
1333A char-table T can have a parent, which should be another char-table
1334P. If you look for the value in T for character C, and the table T
1335actually holds nil, P's element for character C is used instead.
1336The functions `char-table-parent' and `set-char-table-parent'
1337let you read or set the parent of a char-table.
1338
1339To scan all the values in a char-table, do not try to loop through all
1340possible character codes. That would work for now, but will not work
1341in the future. Instead, call map-char-table. (map-char-table
1342FUNCTION TABLE) calls FUNCTION once for each character or character
1343set that has a distinct value in TABLE. FUNCTION gets two arguments,
1344RANGE and VALUE. RANGE specifies a range of TABLE that has one
1345uniform value, and VALUE is the value in TABLE for that range.
1346
1347Currently, RANGE is always a vector containing a single character
1348and it refers to that character alone. In the future, other kinds
1349of ranges will occur. You can set the value for a given range
1350with (set-char-table-range TABLE RANGE VALUE) and examine the value
1351for a range with (char-table-range TABLE RANGE).
1352
1353*** Syntax tables are now represented as char-tables.
1354All syntax tables other than the standard syntax table
1355normally have the standard syntax table as their parent.
1356Their subtype is `syntax-table'.
1357
1358*** Display tables are now represented as char-tables.
1359Their subtype is `display-table'.
1360
1361*** Case tables are now represented as char-tables.
1362Their subtype is `case-table'.
1363
1364*** The value of keyboard-translate-table may now be a char-table
1365instead of a string. Normally the char-tables used for this purpose
1366have the subtype `keyboard-translate-table', but that is not required.
1367
1368*** A new data type called a bool-vector is a vector of values
1369that are either t or nil. To create one, do
1370 (make-bool-vector LENGTH INITIAL-VALUE)
1371
1372** You can now specify, for each marker, how it should relocate when
1373text is inserted at the place where the marker points. This is called
1374the "insertion type" of the marker.
1375
1376To set the insertion type, do (set-marker-insertion-type MARKER TYPE).
1377If TYPE is t, it means the marker advances when text is inserted. If
1378TYPE is nil, it means the marker does not advance. (In Emacs 19.29,
1379markers did not advance.)
1380
1381The function marker-insertion-type reports the insertion type of a
1382given marker. The function copy-marker takes a second argument TYPE
1383which specifies the insertion type of the new copied marker.
1384
1385** When you create an overlay, you can specify the insertion type of
1386the beginning and of the end. To do this, you can use two new
1387arguments to make-overlay: front-advance and rear-advance.
1388
1389** The new function overlays-in returns a list of the overlays that
1390overlap a specified range of the buffer. The returned list includes
1391empty overlays at the beginning of this range, as well as within the
1392range.
1393
1394** The new hook window-scroll-functions is run when a window has been
1395scrolled. The functions in this list are called just before
1396redisplay, after the new window-start has been computed. Each function
1397is called with two arguments--the window that has been scrolled, and its
1398new window-start position.
1399
1400This hook is useful for on-the-fly fontification and other features
1401that affect how the redisplayed text will look when it is displayed.
1402
1403The window-end value of the window is not valid when these functions
1404are called. The computation of window-end is byproduct of actual
1405redisplay of the window contents, which means it has not yet happened
1406when the hook is run. Computing window-end specially in advance for
1407the sake of these functions would cause a slowdown.
1408
1409The hook functions can determine where the text on the window will end
1410by calling vertical-motion starting with the window-start position.
1411
1412** The new hook redisplay-end-trigger-functions is run whenever
1413redisplay in window uses text that extends past a specified end
1414trigger position. You set the end trigger position with the function
1415set-window-redisplay-end-trigger. The functions are called with two
1416arguments: the window, and the end trigger position. Storing nil for
1417the end trigger position turns off the feature, and the trigger value
1418is automatically reset to nil just after the hook is run.
1419
1420You can use the function window-redisplay-end-trigger to read a
1421window's current end trigger value.
1422
1423** The new function insert-file-contents-literally inserts the
1424contents of a file without any character set translation or decoding.
1425
1426** The new function safe-length computes the length of a list.
1427It never gets an error--it treats any non-list like nil.
1428If given a circular list, it returns an upper bound for the number
1429of elements before the circularity.
1430
1431** replace-match now takes a fifth argument, SUBEXP. If SUBEXP is
1432non-nil, that says to replace just subexpression number SUBEXP of the
1433regexp that was matched, not the entire match. For example, after
1434matching `foo \(ba*r\)' calling replace-match with 1 as SUBEXP means
1435to replace just the text that matched `\(ba*r\)'.
1436
1437** The new keymap special-event-map defines bindings for certain
1438events that should be handled at a very low level--as soon as they
1439are read. The read-event function processes these events itself,
1440and never returns them.
1441
1442Events that are handled in this way do not echo, they are never
1443grouped into key sequences, and they never appear in the value of
1444last-command-event or (this-command-keys). They do not discard a
1445numeric argument, they cannot be unread with unread-command-events,
1446they may not appear in a keyboard macro, and they are not recorded
1447in a keyboard macro while you are defining one.
1448
1449These events do, however, appear in last-input-event immediately after
1450they are read, and this is the way for the event's definition to find
1451the actual event.
1452
1453The events types iconify-frame, make-frame-visible and delete-frame
1454are normally handled in this way.
1455
1456** encode-time now supports simple date arithmetic by means of
1457out-of-range values for its SEC, MINUTE, HOUR, DAY, and MONTH
1458arguments; for example, day 0 means the day preceding the given month.
1459Also, the ZONE argument can now be a TZ-style string.
1460
1461** command-execute and call-interactively now accept an optional third
1462argument KEYS. If specified and non-nil, this specifies the key
1463sequence containing the events that were used to invoke the command.
1464
1465** The environment variable NAME, if set, now specifies the value of
1466(user-full-name), when Emacs starts up.
9a21d88b
KS
1467
1468
a933dad1
DL
1469\f
1470* User Editing Changes in Emacs 19.29
1471
1472** If you run out of memory.
1473
1474If you get the error message "Virtual memory exhausted", type C-x s.
1475That way of saving files has the least additional memory needs. Emacs
147619.29 keeps a reserve of memory which it makes available when this
1477error happens; that is to ensure that C-x s can complete its work.
1478
1479Once you have saved your data, you can exit and restart Emacs, or use
1480M-x kill-some-buffers to free up space. If you kill buffers
1481containing a substantial amount of text, you can go on editing.
1482
1483Do not use M-x buffer-menu to save or kill buffers when you are out of
1484memory, because that needs a fair amount memory itself and you may not
1485have enough to get it started.
1486
1487** The format of compiled files has changed incompatibly.
1488
1489Byte-compiled files made with Emacs 19.29 normally use a new format
1490that will not work in older Emacs versions. You can compile files
1491in the old format if you wish; see "Changes in compilation," below.
1492
1493** Emacs 19.29 supports the DEC Alpha.
1494
1495** Emacs runs on Windows NT.
1496
1497This port does not yet support windowing features. It works like a
1498text-only terminal, but it does support a mouse.
1499
1500In general, support for non-GNU-like operating systems is not a high
1501priority for the GNU project. We merged in the support for Windows NT
1502because that system is expected to be very widely used.
1503
1504** Emacs supports Motif widgets.
1505
1506You can build Emacs with Motif widgets by specifying --with-x-toolkit=motif
1507when you run configure.
1508
1509Motif defines collections of windows called "tab groups", and uses the
1510tab key and the cursor keys to move between windows in a tab group.
1511Emacs naturally does not support this--it has other uses for the tab
1512key and cursor keys. Emacs does not support Motif accelerators either,
1513because it uses its normal keymap event binding features.
1514
1515We give higher priority to operation with a free widget set than to
1516operation with a proprietary one.
1517
1518** If Emacs or the computer crashes, you can recover all the files you
1519were editing from their auto save files by typing M-x recover-session.
1520This first shows you a list of recorded interrupted sessions. Move
1521point to the one you choose, and type C-c C-c.
1522
1523Then recover-session asks about each of the files that were being
1524edited during that session, asking whether to recover that file. If
1525you answer y, it calls recover-file, which works in its normal
1526fashion. It shows the dates of the original file and its auto-save
1527file and asks once again whether to recover that file.
1528
1529When recover-session is done, the files you've chosen to recover
1530are present in Emacs buffers. You should then save them.
1531Only this--saving them--updates the files themselves.
1532
1533** Menu bar menus now stay up if you click on the menu bar item and
1534release the mouse button within a certain amount of time. This is in
1535the X Toolkit version.
1536
1537** The menu bar menus have been rearranged and split up to make for a
1538better organization. Two new menu bar menus, Tools and Search,
1539contain items that were formerly in the Files and Edit menus, as well
1540as some that did not exist in the menu bar menus before.
1541
1542** Emacs can now display on more than one X display at the same time.
1543Use the command make-frame-on-display to create a frame, specifying
1544which display to use.
1545
1546** M-x talk-connect sets up a multi-user talk connection
1547via Emacs. Specify the X display of the person you want to talk to.
1548You can talk to any number of people (within reason) by using
1549this command repeatedly to specify different people.
1550
1551Emacs does not make a fuss about security; the people who you talk to
1552can use all Emacs features, including visiting and editing files. If
1553this frightens you, don't use M-x talk-connect.
1554
1555** The range of integer values is now at least 2**28 on all machines.
1556This means the maximum size of a buffer is at least 2**27-1,
1557or 134,217,727.
1558
1559** When you start Emacs, you can now specify option names in
1560long GNU form (starting with `--') and you can abbreviate the names.
1561
1562You can now specify the options in any order.
1563The previous requirements about the order of options
1564have been eliminated.
1565
1566The -L or --directory option lets you specify an additional
1567directory to search for Lisp libraries (including libraries
1568that you specify with the -l or --load options).
1569
1570** Incremental search in Transient Mark mode, if the mark is already
1571active, now leaves the mark active and does not change its position.
1572You can make incremental search deactivate the mark once again with
1573this expression.
1574
1575 (add-hook 'isearch-mode-hook 'deactivate-mark)
1576
1577** C-delete now deletes a word backwards. This is for compatibility
1578with some editors in the PC world. (This key is not available on
1579ordinary ASCII terminals, because C-delete is not a distinct character
1580on those terminals.)
1581
1582** ESC ESC ESC is now a command to escape from various temporary modes
1583and states.
1584
1585** M-x pc-bindings-mode sets up bindings compatible with many PC editors.
1586In particular, Delete and its variants delete forward instead of backward.
1587Use Backspace to delete backward.
1588
1589C-Backspace kills backward a word (as C-Delete normally would).
1590M-Backspace does undo.
1591Home and End move to beginning and end of line
1592C-Home and C-End move to beginning and end of buffer.
1593
1594** The key sequence for evaluating a Lisp expression using the minibuffer
1595is now ESC :. It used to be ESC ESC, but we moved it to make way for
1596the ESC ESC ESC feature, on the grounds that people who evaluate Lisp
1597expressions are experienced users and can cope with a change.
1598If you prefer the old ESC ESC binding, put in your `~/.emacs':
1599
1600 (global-set-key "\e\e" 'eval-expression)
1601
1602** The f1 function key is now equivalent to the help key. This is
1603done with key-translation-map; delete the binding for f1 in that map
1604if you want to use f1 for something else.
1605
1606** Mouse-3, in the simplest case, still sets the region. But now, it
1607places the mark where point was, and sets point where you click.
1608(It used to set the mark where you click and leave point alone.)
1609
1610If you position point with Mouse-1, then scroll with the scroll bar
1611and use Mouse-3, Mouse-3 uses the position you specified with Mouse-1
1612even if it has scrolled off the screen (and point is no longer there).
1613This makes it easier to select a region with the mouse which is bigger
1614than a screenful.
1615
1616Any editing of the buffer, and any cursor motion or scrolling for any
1617reason other than the scroll bar, cancels the special state set up by
1618Mouse-1--so that a subsequent Mouse-3 click will use the actual value
1619of point.
1620
1621** C-mouse-3 now pops up a mode-specific menu of commands--normally
1622the same ones available in the mode's own menu bar menus.
1623
1624** C-mouse-2 now pops up a menu of faces, indentation, justification,
1625and certain other text properties. This menu is also available
1626through the menu-bar Edit menu. It is meant for use with Enriched
1627mode.
1628
1629*** You can use this menu to change the face of the region.
1630You can also set the face of the region with the new M-g command.
1631
177c0ea7 1632*** The menu also includes commands for indenting the region,
a933dad1
DL
1633which locally changes the values of left-margin and fill-column that
1634are used.
1635
1636*** All fill functions now indent every line to the left-margin. If
1637there is also a fill-prefix, that goes after the margin indentation.
1638
1639*** Open-line and newline also make sure that the lines they create
1640are indented to the left margin.
1641
1642*** It also allows you to set the "justification" of the region:
1643whether it should be centered, flush right, and so forth. The fill
1644functions (including auto-fill-mode) will maintain the justification
1645and indentation that you request.
1646
1647*** The new function `list-colors-display' shows you what colors are
1648available. This is also accessible from the C-mouse-2 menu.
1649
1650** You can now save and load files including their faces and other
1651text-properties by using Enriched-mode. Files are saved in an
1652extended version of the MIME text/enriched format. You can use the
1653menus described above, or M-g and other keyboard commands, to
1654alter the formatting information.
1655
1656** C-mouse-1 now pops up the menu for changing the frame's default font.
1657
1658** You can input Hyper, Super, Meta, and Alt characters, as well as
1659non-ASCII control characters, on an ASCII-only terminal.
1660To do this, use
1661
1662 C-x @ h -- hyper
1663 C-x @ s -- super
1664 C-x @ m -- meta
1665 C-x @ a -- alt
1666 C-x @ S -- shift
1667 C-x @ c -- control
1668
1669These are not ordinary key sequences; they operate through
1670function-key-map, which means they can be used even in the
1671middle of an ordinary key sequence.
1672
1673** Outline minor mode and Hideif mode now use C-c @ as their prefix
1674character.
1675
1676** Echo area messages are now logged in the "*Messages*" buffer. The
1677size of this buffer is limited to message-log-max lines.
1678
1679** RET in various special modes for read-only buffers that contain
1680lists of items now selects the item point is on. These modes include
1681Dired, Compilation buffers, Buffer-menu, Tar mode, and Occur mode.
1682(In Info, RET follows the reference near point; in completion list
1683buffers, RET chooses the completion around point.)
1684
1685** set-background-color now updates the modeline face in a special
1686way. If that face was previously set up to be reverse video, the
1687reverse of the default face, then set-background-color updates it so
1688that it remains the reverse of the default face.
1689
1690** The functions raise-frame and lower-frame are now commands.
1691When used interactively, they apply to the selected frame.
1692
1693** M-x buffer-menu now displays the buffer list in the selected window.
1694Use M-x buffer-menu-other-window to display it in another window.
1695
1696** M-w followed by a kill command now *does not* append the text in
1697the kill ring. In consequence, M-w followed by C-w works as you would
1698expect: it leaves the top of the kill ring matching the region that
1699you killed.
1700
1701** In Lisp mode, the C-M-x command now executes defvar forms in a
1702special way: it unconditionally sets the variable to the specified
1703default value, if there is one. Normal execution of defvar does not
1704alter the variable if it already has a non-void value.
1705
1706** In completion list buffers, the left and right arrow keys run the
1707new commands previous-completion and next-completion. They move one
1708completion at a time.
1709
1710** While doing completion in the minibuffer, the `prior' or `pageup'
1711key switches to the completion list window.
1712
1713** When you exit the minibuffer with empty contents, the empty string
1714is not put in the minibuffer history.
1715
1716** The default buffer for insert-buffer is now the "first" buffer
1717other than the current one. If you have more than one window, this
1718is a buffer visible in another window. (Usually it is the buffer
1719that C-M-v would scroll.)
1720
1721** The etags program is now capable of recording tags based on regular
1722expressions provided on the command line.
1723
1724This new feature allows easy support for constructs not normally
1725handled by etags, such as the macros frequently used in big C/C++
1726projects to define project-specific structures. It also enables the
1727use of etags and TAGS files for languages not supported by etags.
1728
1729The Emacs manual section on Tags contains explanations and examples
1730for Emacs's DEFVAR, VHDL, Cobol, Postscript and TCL.
1731
1732** Various mode-specific commands that used to be bound to C-c LETTER
1733have been moved.
1734
1735*** In gnus-uu mode, gnus-uu-interactive-scan-directory is now on C-c C-d,
1736and gnus-uu-interactive-save-current-file is on C-c C-z.
1737
1738*** In Scribe mode, scribe-insert-environment is now on C-c C-v,
1739scribe-chapter is on C-c C-c, scribe-subsection is on C-c C-s,
1740scribe-section is on C-c C-t, scribe-bracket-region-be is on C-c C-e,
1741scribe-italicize-word is on C-c C-i, scribe-bold-word is on C-c C-b,
1742and scribe-underline-word is on C-c C-u.
1743
1744*** In Gomoku mode, gomoku-human-takes-back is now on C-c C-b,
1745gomoku-human-plays is on C-c C-p, gomoku-human-resigns is on C-c C-r,
1746and gomoku-emacs-plays is on C-c C-e.
1747
1748*** In the Outline mode defined in allout.el,
1749outline-rebullet-current-heading is now on C-c *.
1750
1751** M-s in Info now searches through the nodes of the Info file,
1752just like s. The alias M-s was added so that you can use the same
1753command for searches in both Info and Rmail.
1754
1755** iso-acc.el now lets you enter inverted-! and inverted-?
1756with the sequences ~! and ~?.
1757
1758** M-x compare-windows now pushes mark in both windows before
1759it starts moving point.
1760
1761** There are two new commands in Dired, A (dired-do-search)
1762and Q (dired-do-query-replace). These are similar to tags-search and
1763tags-query-replace, but instead of searching the list of files that
1764appears in a tags table, they search all the files marked in Dired.
1765
1766** Changes to dabbrev.
1767
1768A new function, `dabbrev-completion' (bound to M-C-/), expands the
1769unique part of an abbreviation.
1770
1771Dabbrev now looks for expansions in other buffers, looks for symbols
1772instead of words and it works in the minibuffer.
1773
1774Dabbrev can be customized to work for shell scripts, with variables
1775that sometimes have and sometimes haven't a leading "$". See the
1776variable 'dabbrev-abbrev-skip-leading-regexp'.
1777
1778** In Rmail, the command rmail-input-menu has been eliminated. The
1779feature of selecting an Rmail file from a menu is now implemented in
1780another way.
1781
1782** Bookmarks changes.
1783
1784*** It now works to set bookmarks in Info nodes.
1785
177c0ea7 1786*** Bookmarks can have annotations; type "C-h m" after doing
a933dad1
DL
1787"M-x list-bookmarks", for more information on annotations.
1788
1789*** The bookmark-jump popup menu function is now `bookmark-menu-jump', for
1790those who bind it to a mouse click.
1791
1792*** The default bookmarks file name is now "~/.emacs.bmk". If you
1793already have a bookmarks file, it will be renamed automagically when
1794you next load it.
1795
1796** New package, ps-print.
1797
1798The ps-print package generates PostScript printouts of buffers or
1799regions, and includes face attributes such as color, underlining,
1800boldface and italics in the printed output.
1801
1802** New package, msb.
1803
1804The msb package provides a buffer-menu in the menubar with separate
1805menus for different types of buffers.
1806
1807** `cpp.el' is a new library that can highlight or hide parts of a C
1808file according to C preprocessor conditionals. To try it, run the
1809command M-x cpp-highlight-buffer.
1810
1811** Changes in CC mode.
1812
1813*** c-set-offset and related functions and variables can now accept
1814variable symbols. Also ++ and -- which mean 2* positive and negative
1815c-basic-offset respectively.
1816
1817*** New variable, c-recognize-knr-p, which controls whether K&R C
1818constructs will be recognized. Trying to recognize K&R constructs is a
1819time hog so if you're programming strictly in ANSI C, set this
1820variable to nil (it should already be nil in c++-mode).
1821
1822*** New variable, c-hanging-comment-ender-p for controlling
1823c-fill-paragraph's behavior.
1824
1825*** New syntactic symbol: statement-case-open. This is assigned to lines
1826containing an open brace just after a case/default label.
1827
1828*** New variable, c-progress-interval, which controls minibuffer update
1829message displays during long re-indention. This is a new feature
1830which prints percentage complete messages at specified intervals.
1831
177c0ea7 1832** Makefile mode changes.
a933dad1
DL
1833
1834*** The electric keys are not enabled by default.
1835
1836*** There is now a mode-specific menu bar menu.
1837
1838*** The mode supports font-lock, add-log, and imenu.
1839
1840*** The command M-TAB does completion of target names and variable names.
1841
1842** icomplete.el now works more like a minor mode. Use M-x icomplete-mode
1843to turn it on and off.
1844
1845Icomplete now supports an `icomplete-minibuffer-setup-hook', which is
1846run on minibuffer setup whenever icompletion will be occurring. This
1847hook can be used to customize interoperation of icomplete with other
1848minibuffer-specific packages, eg rsz-mini. See the doc string for
1849more info.
1850
1851** Ediff change.
1852
1853Use ediff-revision instead of vc-ediff. It also replaces rcs-ediff,
1854for those who use that; if you want to use a version control package
1855other than vc.el, you must set the variable
1856ediff-version-control-package to specify which package.
1857
1858** VC now supports branches with RCS.
1859
1860You can use C-u C-x C-q to select any branch or version by number.
1861It reads the version number or branch number with the minibuffer,
1862then checks out the file unlocked.
1863
1864Type C-x C-q again to lock the selected branch or version.
1865When you check in changes to that branch or version, there are two
1866possibilities:
1867
1868-- If you've selected a branch, or a version at the tip of a branch,
1869then the new version adds to that branch. If you wish to create a
1870new branch, use C-u C-x C-q to specify a version number when you check
1871in the new version.
1872
1873-- If you've selected an inner version which is not the latest in its
1874branch, then the new version automatically creates a new branch.
1875
1876** VC now supports CVS as well as RCS and SCCS.
1877
1878Since there are no locks in CVS, some things behave slightly
1879different when the backend is CVS. When vc-next-action is invoked
1880in a directory handled by CVS, it does the following:
1881
1882 If the file is not already registered, this registers it for version
1883control. This does a "cvs add", but no "cvs commit".
1884 If the file is added but not committed, it is committed.
1885 If the file has not been changed, neither in your working area or
1886in the repository, a message is printed and nothing is done.
1887 If your working file is changed, but the repository file is
1888unchanged, this pops up a buffer for entry of a log message; when you
1889finish the log message with C-c C-c, that checks in the resulting
1890changes along with the log message as change commentary. A writable
1891file remains in existence.
1892
1893 If vc-next-action changes the repository file, it asks you
1894whether to merge in the changes into your working copy.
1895
1896vc-directory, when started in a CVS file hierarchy, reports
1897all files that are modified (and thus need to be committed).
1898(When the backend is RCS or SCCS vc-directory reports all
1899locked files).
1900
1901VC has no support for running the initial "cvs checkout" to get a
1902working copy of a module. You can only use VC in a working copy of
1903a module.
1904
1905You can disable the CVS support as follows:
1906
1907 (setq vc-master-templates (delq 'vc-find-cvs-master vc-master-templates))
1908
1909or by setting vc-handle-cvs to nil.
1910
1911This may be desirable if you run a non-standard version of CVS, or
1912if CVS was compiled with FORCE_USE_EDITOR or (possibly)
1913RELATIVE_REPOS.
1914
1915** Comint and shell mode changes:
1916
1917*** Completion works with file names containing quoted characters.
1918
1919File names containing special characters (such as " ", "!", etc.) that are
1920quoted with a "\" character are recognised during completion. Special
1921characters are quoted when they are inserted during completion.
1922
1923*** You can use M-x comint-truncate-buffer to truncate the buffer.
1924
1925When this command is run, the buffer is truncated to a maximum number
1926of lines, specified by the variable comint-buffer-maximum-size. Just
1927like the command comint-strip-ctrl-m, this can be run automatically
1928during process output by doing this:
1929
1930(add-hook 'comint-output-filter-functions
1931 'comint-truncate-buffer)
1932
1933** Telnet mode buffer name changed.
1934
1935The buffer name for a Telnet buffer is now *telnet-HOST*, not
1936 *HOST-telnet*. This is for consistency with other Emacs packages.
1937
1938** M-x man (man) is now faster and more robust. On systems where the
1939entire man page is indented, the indentation is removed.
1940
1941The user option names that used to end in -p now end in -flag. The
1942new names are: Man-reuse-okay-flag, Man-downcase-section-letters-flag,
1943Man-circular-pages-flag. The Man-notify user option has been renamed to
1944Man-notify-method and accepts one more value, `pushy', that just
1945switches the current buffer to the manpage buffer, without switching
1946frames nor changing your windows configuration.
1947
1948A new user option Man-fontify-manpage-flag disables fontification
1949(thus speeding up man) when set to nil. Default is to fontify if a
1950window system is used. Two new user options Man-overstrike-face
1951(default 'bold) and Man-underline-face (default 'underline) can be set
1952to the preferred faces to be used for the words that man overstrikes
1953and underlines. Useful for those who like coloured man pages.
1954
1955Two new interactive functions are provided: Man-cleanup-manpage and
1956Man-fontify-manpage. Both can be used on a buffer that contains the
1957output of a `rsh host man manpage' command, or the output of an
1958`nroff -man -Tman manpage' command to make them readable.
1959Man-cleanup-manpage is faster, but does not fontify.
1960
1961** The new function modify-face makes it easy to specify
1962all the attributes of a face, all at once.
1963
1964** Faces now support background stippling.
1965
1966Use the command set-face-stipple to specify the stipple-pattern for a
1967face. Use face-stipple to access the specified stipple pattern. The
1968existing face functions now handle the stipple pattern when
1969appropriate.
1970
1971If you specify one of the standard gray colors as a face background
1972color, and your display doesn't handle gray, Emacs automatically uses
1973stipple instead to get the same effect.
1974
1975** Changes in Font Lock mode.
1976
1977*** Fontification
1978
1979Two new default faces are provided; `font-lock-variable-name-face' and
1980`font-lock-reference-face'. The face `font-lock-doc-string-face' has
1981been removed since it is the same as the existing
1982`font-lock-string-face'. Where appropriate, fontification
1983automatically uses these new faces.
1984
1985Fontification via commands `font-lock-mode' and
1986`font-lock-fontify-buffer' is now cleanly interruptible (i.e., with
1987C-g). If you interrupt during the fontification process, the buffer
1988remains in its previous modified state and all highlighting is removed
1989from the buffer.
1990
1991For C/C++ modes, Font Lock mode is much faster but highlights much
1992more. Other modes are faster/more extensive/more discriminatory, or a
1993combination of these.
1994
1995To enable Font Lock mode, add the new function `turn-on-font-lock' in
1996one of the following ways:
1997
1998 (add-hook 'c-mode-hook 'turn-on-font-lock)
1999
2000Or for any visited file with:
2001
2002 (add-hook 'find-file-hooks 'turn-on-font-lock)
2003
2004*** Supports color and grayscale displays
2005
2006Font Lock mode supports different ways of highlighting, depending on
2007the type of display and background shade. Attributes (face color,
2008bold, italic and underline, and display type and background mode) can
2009be controlled either from Emacs Lisp or X resources.
2010
2011See the new variables `font-lock-display-type' and
2012`font-lock-face-attributes'.
2013
2014*** Supports more modes
2015
2016The following modes are directly supported:
2017
2018ada-mode, asm-mode, bibtex-mode, c++-c-mode, c++-mode, c-mode,
2019change-log-mode, compilation-mode, dired-mode, emacs-lisp-mode,
2020fortran-mode, latex-mode, lisp-mode, mail-mode, makefile-mode,
2021outline-mode, pascal-mode, perl-mode, plain-tex-mode, rmail-mode,
2022rmail-summary-mode, scheme-mode, shell-mode, slitex-mode, tex-mode,
2023texinfo-mode.
2024
2025See the new variables `font-lock-defaults-alist' and
2026`font-lock-defaults'.
2027
2028Some modes support different levels of fontification. You can choose
2029to use the minimum or maximum available decoration by changing the
2030value of the new variable `font-lock-maximum-decoration'.
2031
2032Programmers are urged to make available to the community their own
2033keywords for modes not yet supported. See font-lock.el for
2034information about efficiency.
2035
2036*** fast-lock
2037
2038The fast-lock package speeds up Font Lock mode by saving font choices
2039in associated cache files. When you visit a file with Font Lock mode
2040and Fast Lock mode turned on for the first time, the file's buffer is
2041fontified as normal. When certain events occur (such as exiting
2042Emacs), Fast Lock saves the highlighting in a cache file. When you
2043subsequently visit this file, its cache is used to restore the
2044highlighting.
2045
2046To use this package, put in your `~/.emacs':
2047
2048 (add-hook 'font-lock-mode-hook 'turn-on-fast-lock)
2049
2050To control the use of caches, see the documentation for `fast-lock-mode'.
2051
2052** You can tell pop-to-buffer to display certain buffers in the selected
2053window rather than finding some other window to display them in.
2054There are two variables you can use to specify these buffers.
2055
2056same-window-buffer-names holds a list of buffer names; if a buffer's
2057name appears in this list, pop-to-buffer puts it in the selected window.
2058
2059same-window-regexps holds a list of regexps--if any one of them
2060matches a buffer's name, then pop-to-buffer puts that buffer in the
2061selected window.
2062
2063The default values of these variables are not nil: they list various
2064buffers that normally appear, when you as for them, in the selected
2065window. These include shell buffers, mail buffers, telnet buffers,
2066and others. By removing elements from these variables, you can ask
2067Emacs to display those buffers in separate windows.
2068
2069** The special-display-buffer-names and special-display-regexps lists
2070have been generalized. An element may now be a list. The car of the list
2071is the buffer name or regular expression for matching buffer names.
2072
2073The cdr of the list can be an alist specifying additional frame
2074parameters for use in constructing the special display frame.
2075
2076Alternatively, the cdr can have this form:
2077
2078 (FUNCTION ARGS...)
2079
2080where FUNCTION is a symbol. Then the frame is constructed by calling
2081FUNCTION; its first argument is the buffer, and its remaining
2082arguments are ARGS.
2083
2084** If the environment variable REPLYTO is set, its value is the default
2085for mail-default-reply-to.
2086
2087** When you send a message in Emacs, if you specify an Rmail file with
2088the FCC: header field, Emacs converts the message to Rmail format
2089before writing it. Thus, the file never contains anything but Rmail
2090format messages.
2091
2092** The new variable mail-from-style controls whether the From: header
2093should include the sender's full name, and if so, which format to use.
2094
2095** The new variable mail-personal-alias-file specifies the name of the
2096user's personal aliases. This defaults to the file ~/.mailrc.
2097mailabbrev.el used to have its own variable for this purpose
2098(mail-abbrev-mailrc-file). That variable is no longer used.
2099
2100** In Buffer-Menu mode, the d and C-d commands (which mark buffers for
2101deletion) now accept a prefix argument which serves as a repeat count.
2102
2103** Changes in BibTeX mode.
2104
2105*** Reference keys can now be entered with TAB completion. All
2106reference keys defined in that buffer and all labels that appear in
2107crossreference entries are object to completion.
2108
2109*** Braces are supported as field delimiters in addition to quotes.
2110BibTeX entries may have brace-delimited and quote-delimited fields
2111intermixed. The delimiters generated for new entries are specified by
2112the variables bibtex-field-left-delimiter and
2113bibtex-field-right-delimiter on a buffer-local basis. Those variables
2114default to braces, since it is easier to put quote accented characters
2115(as the german umlauts) into a brace-delimited entry.
2116
2117*** The function bibtex-clean-entry can now be invoked with a prefix
2118argument. In this case, a label is automatically generated from
2119various fields in the record. If bibtex-clean-entry is invoked on a
2120record without label, a label is also generated automatically.
2121Various variables (all beginning with `bibtex-autokey-') control the
2122creation of that key. The variable bibtex-autokey-edit-before-use
2123determines, if the user is allowed to edit auto-generated reference
2124keys before they are used.
2125
2126*** A New function bibtex-complete-string completes strings with
2127respect to the strings defined in this buffer and a set of predefined
2128strings (initialized to the string macros defined in the standard
2129BibTeX style files) in the same way in which ispell-complete-word
2130works with respect to words in a dictionary. Candidates for
2131bibtex-complete-string are initialized from variable
2132bibtex-predefined-strings and by parsing the files found in
2133bibtex-string-files for @String definitions.
2134
2135*** Every reference/field pair has now attached a comment which
2136appears in the echo area when this field is edited. These comments
2137should provide useful hints for BibTeX usage, especially for BibTeX
2138beginners. New variable bibtex-help-message determines if these help
2139messages are to appear in the minibuffer when moving to a text entry.
2140
2141*** Inscriptions of menu bar changed from "Entry Types" to
2142"Entry-Types" and "Bibtex Edit" to "BibTeX-Edit".
2143
2144*** The variable bibtex-include-OPTcrossref is now not longer a binary
2145switch but a list of reference names which should contain a crossref
2146field. E.g., you can tell bibtex-mode you want a crossref field for
2147@InProceedings and @InBook entries but for no other.
2148
2149*** The function validate-bibtex-buffer was completely rewritten to
2150validate if a buffer is syntactically correct. find-bibtex-duplicates
2151is no longer a function itself but was moved into
2152validate-bibtex-buffer.
2153
2154*** Cleaning a BibTeX entry tests, if necessary fields are there.
2155E.g., if you tell bibtex-mode to include a crossref entry, some fields
2156are optional which would be required without the crossref entry. If
2157you now leave the crossref entry empty and do a bibtex-clean-entry
2158with some now required fields left empty, version 2.0 of bibtex.el
2159complains about the absence of these fields, whereas version 1.3
2160didn't.
2161
2162*** Default value for variables bibtex-maintain-sorted-entries and
2163bibtex-sort-ignore-string-entries is now t.
2164
2165*** All interactive functions are renamed to begin with `bibtex-'.
2166
2167*** Keybindings with \C-c\C-e entry changed for unification. Often
2168used reference types are now on control-modified keys, mediocre used
2169types are on unmodified keys, seldom used types are on shift-modified
2170keys and almost never used types on meta-modified keys.
9a21d88b 2171
a933dad1
DL
2172\f
2173* Configuration Changes in Emacs 19.29
2174
2175** Emacs now uses directory /usr/local/share for most of its installed
2176files. This follows a GNU convention for directory usage.
2177
2178** The option --with-x11 is no longer supported.
2179X11 is the only version of X that Emacs 19.29 supports;
2180use --with-x if you need to request X support explicitly.
2181(Normally this should not be necessary, since configure should
2182automatically enable X support if X is installed on your machine.)
2183
2184** If you use the site-init.el file to set the variable
2185mail-host-address to a string in the dumped Emacs, that string becomes
2186the default host address for initializing user-mail-address.
2187It is used instead of the value of (system-name).
9a21d88b 2188
a933dad1
DL
2189\f
2190* Lisp-Level Changes in Emacs 19.29
2191
2192** Basic Lisp
2193
2194*** The range of integer values is now at least 2**28 on all machines.
2195This means the maximum size of a buffer is at least 2**27-1,
2196or 134,217,727.
2197
2198*** You can now use Common Lisp syntax for the backquote and comma
2199macros. Thus, you can now write `(x ,y z) instead of (` (x (, y) z)).
2200
2201The old syntax is still accepted.
2202
2203*** The new function rassoc is like assoc, except that it compares the
2204key against the cdr of each alist element, where assoc would compare
2205it against the car of each alist element.
2206
2207*** The new function unintern deletes a symbol from an obarray. The
2208first argument can be the symbol to delete, or a string giving its
2209name. The second argument specifies the obarray (nil means the
2210current default obarray).
2211
2212If the specified symbol is not in the obarray, or if there's no symbol
2213in the obarray matching the specified string, unintern does nothing
2214and returns nil. If it does delete a symbol, it returns t.
2215
2216*** You can specify an alternative read function for use by load and
2217eval-region by binding the variable load-read-function to some other
2218function. This function should accept one argument just like read.
2219If load-read-function is nil, load and eval-region use ordinary read.
2220
2221*** The new function `type-of' takes any object as argument, and
2222returns a symbol identifying the type of that object--one of `symbol',
2223`integer', `float', `string', `cons', `vector', `marker', `overlay',
2224`window', `buffer', `subr', `compiled-function',
2225`window-configuration', `process'.
2226
2227*** When you use eval-after-load for a file that is already loaded, it
2228executes the FORM right away. As before, if the file is not yet
2229loaded, it arranges to execute FORM if and when the file is loaded
2230later. The result is: if you have called eval-after-load for a file,
2231and if that file has been loaded, then regardless of the order of
2232these two events, the specified form has been evaluated.
2233
2234*** The Lisp construct #@NUMBER now skips the next NUMBER characters,
2235treating them as a comment.
2236
2237You would not want to use this in a file you edit by hand, but it is
2238useful for commenting out parts of machine-generated files.
2239
2240*** Two new functions, `plist-get' and `plist-put',
2241allow you to modify and retrieve values from lists formatted as property-lists.
2242They work like `get' and `put', but operate on any list.
2243`plist-put' returns the modified property-list; you must store it
2244back where you got it.
2245
2246*** The new function add-to-list is called with two elements,
2247a variable that holds a list and a new element.
2248It adds the element to the list unless it is already present.
2249It compares elements using `equal'. Here is an example:
2250
2251(setq foo '(a b)) => (a b)
2252
2253(add-to-list 'foo 'c) => (c a b)
2254
2255(add-to-list 'foo 'b) => (c a b)
2256
2257foo => (c a b)
2258
2259** Changes in compilation.
2260
2261Functions and variables loaded from a byte-compiled file
2262now refer to the file for their doc strings.
2263
2264This has a few consequences:
2265
2266-- Loading the file is faster and uses less memory.
2267-- Reference to doc strings is a little slower (the same speed
2268 as reference to the doc strings of primitive and preloaded functions).
2269-- The compiled files will not work in old versions of Emacs.
2270-- If you move the compiled file after loading it, Emacs can no longer
2271 find these doc strings.
2272-- If you alter the compiled file (such as by compiling a new
2273 version), then further access to documentation strings will get
2274 nonsense results.
2275
2276The byte compiler now optionally supports lazy loading of compiled
2277functions' definitions. If you enable this feature when you compile,
2278loading the compiled file does not actually bring the function
2279definitions into core. Instead it creates references to the compiled
2280file, and brings each function's definition into core the first time
2281you call that function, or when you force it with the new function
2282`fetch-bytecode'.
2283
2284Using the lazy loading feature has a few consequences:
2285
2286-- Loading the file is faster and uses less memory.
2287-- Calling any function in the file for the first time is slower.
2288-- If you move the compiled file after loading it, Emacs can no longer
2289 find the function definitions.
2290-- If you alter the compiled file (such as by compiling a new
2291 version), then further access to functions not already loaded
2292 will get nonsense results.
2293
2294To enable the lazy loading feature, set up a non-nil file local
2295variable binding for the variable `byte-compile-dynamic' in the Lisp
2296source file. For example, put this on the first line:
2297
2298 -*-byte-compile-dynamic: t;-*-
2299
2300It's a good idea to use the lazy loading feature for a file that
2301contains many functions, most of which are not actually used by a
2302given user in a given session.
2303
2304To turn off the basic feature of referring to the file for doc
2305strings, set byte-compile-dynamic-docstrings to nil. You can do this
2306globally, or for one source file by adding this to the first line:
2307
2308 -*-byte-compile-dynamic-docstrings: nil;-*-
2309
2310** Strings
2311
2312*** Do not pass integer arguments to `concat' (or `vconcat' or
2313`append'). We are phasing out the old unrecommended support for
2314integers as arguments to these functions, in preparation for treating
2315numbers as single characters in a future release. To concatenate
2316numbers in string form, use `number-to-string' first, or rewrite the
2317call to use `format' instead of `concat'.
2318
2319*** The new function match-string returns the string of text matched at
2320the given parenthesized expression by the last regexp search, or nil
2321if there was no match. If the last match was by `string-match' on a
2322string, the string must be given. Therefore, this function can be
2323used in place of `buffer-substring' and `substring', when using
2324`match-beginning' and `match-end' to find match positions.
2325
2326 (match-string N) or (match-string N STRING)
2327
2328*** The function replace-match now accepts an optional fourth argument,
2329STRING. Use this after performing string-match on STRING, to replace
2330the portion of STRING that was matched. When used in this way,
2331replace-match returns a newly created string which is the same as
2332STRING except for the matched portion.
2333
2334*** The new function buffer-substring-no-properties
2335is like buffer-substring except that the string it returns
2336has no text properties.
2337
2338*** The function `equal' now considers two strings to be different
2339if they don't have the same text properties.
2340
2341** Completion
2342
2343*** all-completions now takes an optional fourth argument.
2344If that argument is non-nil, completions that start with a space
2345are ignored unless the initial string also starts with a space.
2346(This used to happen unconditionally.)
2347
2348** Local Variables
2349
2350*** Local hook variables.
2351
2352There is now a clean way to give a hook variable a buffer-local value.
2353Call the function `make-local-hook' to do this.
2354
2355Once a hook variable is buffer-local, you can add hooks to it either
2356globally or locally. run-hooks runs the local hook functions
2357of the current buffer, then all the global hook functions.
2358
2359The functions add-hook and remove-hook take an additional optional
2360argument LOCAL which says whether to add (or remove) a local hook
2361function or a global one.
2362
2363Local hooks use t as an element of the (local) value of the hook
2364variable as a flag meaning to use the global value also.
2365
2366*** The new function local-variable-p tells you whether a particular
2367variable is buffer-local in the current buffer or a specified buffer.
2368
2369** Editing Facilities
2370
2371*** The function copy-region-as-kill no longer sets this-command;
2372as a result, a following kill command will not normally append
2373to the text saved by copy-region-as-kill.
2374
2375*** Regular expression searching and matching no longer performs full
2376Posix backtracking by default. They now stop with the first match found
2377instead of looking for the longest match--just as they did in Emacs 18.
2378The reason for this change is to get higher speed.
2379
2380There are new functions you can use if you really want to search or
2381match with Posix behavior: posix-search-forward,
2382posix-search-backward, posix-looking-at, and posix-string-match. Call
2383these just like re-search-forward, re-search-backward, looking-at, and
2384string-match.
2385
2386** Files
2387
2388*** The new variable `format-alist' defines file formats,
2389which are ways of translating between the data in a file and things
2390(text, text-properties, and possibly other information) in a buffer.
2391
2392`format-alist' has one element for each format. Each element is a
2393list like this:
2394 (NAME DOC-STRING REGEXP FROM-FN TO-FN MODIFY MODE-FN)
2395containing the name of the format, a documentation string, a regular
2396expression which is used to recognize files in that format, a decoding
2397function, an encoding function, a flag that indicates whether the
2398encoding function modifies the buffer, and a mode function.
2399
177c0ea7 2400FROM-FN is called to decode files in that format; it gets two args, BEGIN
a933dad1
DL
2401 and END, and can make any modifications it likes, returning the new
2402 end position. It must make sure that the beginning of the file no
2403 longer matches REGEXP, or else it will get called again.
2404TO-FN is called to encode a region into that format; it is also passed BEGIN
2405 and END, and either returns a list of annotations as in
2406 `write-region-annotate-functions', or modifies the region and returns
2407 the new end position.
2408MODIFY, if non-nil, means the TO-FN modifies the region. If nil, TO-FN may
2409 not make any changes and should return a list of annotations.
2410
2411`insert-file-contents' checks the beginning of the file that it is
2412inserting to see if it matches one of the regexps. If so, then it
2413calls the decoding function, and then looks for another match. When
2414visiting a file, it also calls the mode function, and sets the
2415variable `buffer-file-format' to the list of formats that the file
2416used.
2417
2418`write-region' calls the encoding functions for each format in
2419`buffer-file-format' before it writes the file. To save a file in a
2420different format, either set `buffer-file-format' to a different
2421value, or call the new function `format-write-file'.
2422
2423Since some encoding functions may be slow, you can request that
2424auto-save use a format different from the buffer's default by setting
2425the variable `auto-save-file-format' to the desired format. This will
2426determine the format of all auto-save files.
2427
2428*** The new function file-ownership-preserved-p tells you whether
2429deleting a file and recreating it would keep the file's owner
2430unchanged.
2431
2432*** The new function file-regular-p returns t if a file
2433is a "regular" file (not a directory, symlink, named pipe,
2434terminal, or other I/O device).
2435
2436*** The new function file-name-sans-extension discards the extension
2437of a file name. You call it with a file name, and returns a string
2438lacking the extension.
2439
2440*** The variable path-separator is a string which says which
2441character separates directories in a search path. It is ":"
2442for Unix and GNU systems, ";" for MSDOG and Windows NT.
2443
2444** Commands and Key Sequences
2445
2446*** Key sequences consisting of C-c followed by {, }, <, >, : or ; are
2447now reserved for major modes. Sequences consisting of C-c followed by
2448any other punctuation character are now meant for minor modes. We don't
2449plan to convert all existing major modes to stop using those sequences,
2450but we hope to keep them to a minimum.
2451
2452*** When the post-command-hook or the pre-command-hook gets an error, the error
2453is silently ignored. Emacs no longer sets the hook variable to nil when this
2454happens. Meanwhile, the hook functions can now alter the hook variable in
2455a normal fashion; there is no need to do anything special.
2456
2457*** define-key, lookup-key, and various other functions for changing or
2458looking up key bindings now let you write an event type with a list
2459like (ctrl meta newline) or (meta ?d), as in XEmacs. (ctrl meta newline)
2460is equivalent to the event type symbol C-M-newline, and (meta ?d)
2461is equivalent to the character ?\M-d.
2462
2463*** The function event-convert-list converts a list such as
2464(meta ?d) into the corresponding event type (a symbol or integer).
2465
2466*** In an interactive spec, `k' means to read a key sequence. In this
2467key sequence, upper case characters and shifted function keys which
2468have no bindings are converted to lower case if that makes them
2469defined.
2470
2471The new interactive code `K' reads a key sequence similarly, but does
2472not convert the last event. `K' is useful for reading a key sequence
2473to be given a binding.
2474
2475*** The variable overriding-local-map now has no effect on the menu bar
2476display unless overriding-local-map-menu-flag is non-nil. This is why
2477incremental search no longer temporarily changes the menu bars.
2478
2479Note that overriding-local-map does still affect the execution of key
2480sequences entered using the menu bar. So if you use
2481overriding-local-map, and a menu bar key sequence comes in, you should
2482make sure to clear overriding-local-map before that key sequence gets
2483looked up and executed. But this is what you'd normally do anyway:
2484programs that use overriding-local-map normally exit and "put back"
2485any event such as menu-bar that they do not handle specially.
2486
2487*** The new variable `overriding-terminal-local-map' is like
2488overriding-local-map, but is specific to a single terminal.
2489
2490*** delete-frame events.
2491
2492When you use the X window manager's "delete window" command, this now
2493generates a delete-frame event. The standard definition of this event
2494is a command that deletes the frame that received the event, and kills
2495Emacs when the last visible or iconified frame is deleted. You can
2496rebind the event to some other command if you wish.
2497
2498*** Two new types of events, iconify-frame and make-frame-visible,
2499indicate that the user iconified or deiconified a frame with the
2500window manager. Since the window manager has already done the work,
2501the default definition for both event types in Emacs is to do nothing.
2502
2503** Frames and X
2504
2505*** Certain Lisp variables are now local to an X terminal (in other
2506words, all the screens of a single X server). The value in effect, at
2507any given time, is the one that belongs to the terminal of the
2508selected frame. The terminal-local variables are
2509default-minibuffer-frame, system-key-alist, defining-kbd-macro, and
2510last-kbd-macro. There is no way for Lisp programs to create others.
2511
2512The terminal-local variables cannot be buffer-local.
2513
2514*** When you create an X frame, for the `top' and `left' frame
2515parameters, you can now use values of the form (+ N) or (- N), where N
2516is an integer. (+ N) means N pixels to the right of the left edge of
2517the screen and (- N) means N pixels to the left of the right edge. In
2518both cases, N may be zero (exactly at the edge) or negative (putting
2519the window partly off the screen).
2520
2521The function x-parse-geometry can return values of these forms
2522for certain inputs.
2523
2524*** The variable menu-bar-file-menu has been renamed to
2525menu-bar-files-menu to match the actual item that appears in the menu.
2526(All the other such variable names do match.)
2527
2528*** The new function active-minibuffer-window returns the minibuffer window
2529currently active, or nil if none is now active.
2530
2531*** In the functions next-window, previous-window, next-frame,
2532previous-frame, get-buffer-window, get-lru-window, get-largest-window
2533and delete-windows-on, if you specify 0 for the last argument,
2534it means to consider all visible and iconified frames.
2535
2536*** When you set a frame's cursor type with modify-frame-parameters,
2537you can now specify (bar . INTEGER) as the cursor type. This stands
2538for a bar cursor of width INTEGER.
2539
2540*** The new function facep returns t if its argument is a face name
2541(or if it is a vector such as is used internally by the Lisp code
2542to represent a face).
2543
2544*** Each frame can now have a buffer-predicate function,
2545which is the `buffer-predicate' frame parameter.
2546When `other-buffer' looks for an alternative buffer, it considers
2547only the buffers that fit the selected frame's buffer predicate (if it
2548has one). This is useful for applications that make their own frames.
2549
2550*** When you create an X frame, you can now specify the frame parameter
2551`display'. This says which display to put the frame on. The value
2552should be a display name--a string of the form
2553"HOST:DPYNUMBER.SCREENNUMBER".
2554
2555The functions x-server-... and x-display-... now take an optional
2556argument which specifies the display to ask about. You can use either
2557a display name string or a frame. A value of nil stands for the
2558selected frame.
2559
2560To close the connection to an X display, use the function
2561x-close-connection. Specify which display with a display name. You
2562cannot close the connection if Emacs still has frames open on that
2563display.
2564
2565x-display-list returns a list indicating which displays Emacs has
2566connections to. Its elements are display names (strings).
2567
2568*** The icon-type frame parameter may now be a file name.
2569Then the contents of that file specify the icon bitmap to use
2570for that frame.
2571
2572*** The title of an Emacs frame, displayed by most window managers, is
2573set from frame-title-format or icon-title-format. These have the same
2574structure as mode-line-format.
2575
2576*** x-display-grayscale-p is a new function that returns non-nil if
2577your X server can display shades of gray. Currently it returns
2578non-nil for color displays (because they can display shades of gray);
2579we may change it in the next version to return nil for color displays.
2580
2581*** The frame parameter scroll-bar-width specifies the width of the
2582scrollbar in pixels.
2583
2584** Buffers
2585
2586*** Creating a buffer with get-buffer-create does not obey
2587default-major-mode. That variable is now handled in a separate
2588function, set-buffer-major-mode. get-buffer-create and generate-new-buffer
2589always leave the newly created buffer in Fundamental mode.
2590
2591Creating a new buffer by visiting a file or with switch-to-buffer,
2592pop-to-buffer, and similar functions does call set-buffer-major-mode
2593to select the default major mode specified with default-major-mode.
2594
2595*** You can now create an "indirect buffer". An indirect buffer shares
2596its text, including text properties, with another buffer (the "base
2597buffer"), but has its own major mode, local variables, overlays, and
2598narrowing. An indirect buffer has a name of its own, distinct from
2599those of the base buffer and all other buffers. An indirect buffer
2600cannot itself be visiting a file (though its base buffer can be).
2601The base buffer cannot itself be indirect.
2602
2603Use (make-indirect-buffer BASE-BUFFER NAME) to make an indirect buffer
2604named NAME whose base is BASE-BUFFER. If BASE-BUFFER is an indirect
2605buffer, its base buffer is used as the base for the new buffer.
2606
2607You can make an indirect buffer current, or switch to it in a window,
2608just as you would a non-indirect buffer.
2609
2610The function buffer-base-buffer, given an indirect buffer, returns its
2611base buffer. It returns nil when given an ordinary buffer (not
2612indirect).
2613
2614The library `noutline' has versions of Outline mode and Outline minor
2615mode which let you display different parts of the outline in different
2616indirect buffers.
2617
2618** Subprocesses
2619
2620*** The functions call-process and call-process-region now allow
2621you to direct error message output from the subprocess into a
2622separate destination, instead of mixing it with ordinary output.
2623To do this, specify for the third argument, BUFFER, a list of the form
2624 (BUFFER-OR-NAME ERROR-DESTINATION)
2625BUFFER-OR-NAME specifies where to put ordinary output; it should
2626be a buffer or buffer name, or t, nil or 0. This is what would
2627have been the BUFFER argument, ordinarily.
2628
2629ERROR-DESTINATION specifies where to put the error output.
2630nil means discard it, t means mix it with the ordinary output,
2631and a string specifies a file name to write this output into.
2632
2633You can't specify a buffer to put the error output in; that is not
2634easy to implement directly. You can put the error output into a
2635buffer by sending it to a temporary file and then inserting the file
2636into a buffer.
2637
2638*** Comint mode changes:
2639
2640**** The variable comint-completion-addsuffix can also be a cons pair
2641of the form (DIRSUFFIX . FILESUFFIX), where DIRSUFFIX and FILESUFFIX are
2642strings added on unambiguous or exact completion of directories and file
2643names, respectively.
2644
2645** Text properties
2646
2647*** You can now specify which values of the `invisible' property
2648make text invisible in a given buffer. The variable
2649`buffer-invisibility-spec', which is always local in all buffers,
2650controls this.
2651
2652If its value is t, then any non-nil `invisible' property makes
2653a character invisible.
2654
2655If its value is a list, then a character is invisible if its
2656`invisible' property value appears as a member of the list, or if it
2657appears as the car of a member of the list.
2658
2659When the `invisible' property value appears as the car of a member of
2660the `buffer-invisibility-spec' list, then the cdr of that member has
2661an effect. If it is non-nil, then an ellipsis appears in place of the
2662character. (This happens only for the *last* invisible character in a
2663series of consecutive invisible characters, and only at the end of a
2664line.)
2665
2666If a character's `invisible' property is a list, then Emacs checks each
2667element of the list against `buffer-invisibility-spec'. If any element
2668matches, the character is invisible.
2669
2670*** The command `list-text-properties-at' shows what text properties
2671are in effect at point.
2672
2673*** Frame objects now exist in Emacs even on systems that don't support
2674X Windows. You can create multiple frames, and switch between them
2675using select-frame. The selected frame is actually displayed on your
2676terminal; other frames are not displayed at all. The selected frame
2677number appears in the mode line after `Emacs', except for frame 1.
2678
2679Switching frames on ASCII terminals is therefore more or less
2680equivalent to switching between different window configurations.
2681
2682*** The new variable window-size-change-functions holds a list of
2683functions to be called if window sizes change (or if windows are
2684created or deleted). The functions are called once for each frame on
2685which changes have occurred, with the frame as the sole argument.
2686This takes place shortly before redisplay.
2687
2688*** The modification hook functions of overlays now work differently.
2689They are called both before and after each change. This makes it
2690possible for the functions to determine exactly what the change was.
2691
2692This change affects three overlay properties: the modification-hooks
2693property, a list of functions called for deletions overlapping the
2694overlay's range and for insertions inside it; the
2695insert-in-front-hooks, a list of functions called for insertions at
2696the beginning of the overlay; and the insert-behind-hooks, a list of
2697functions called for insertions at the end of the overlay.
2698
2699Each function is called both before and after each change that it
2700applies to. Before the change, it is called with four arguments:
2701 (funcall FUNCTION OVERLAY nil START END)
2702START and END are the same arguments that the before-change-functions
2703receive.
2704
2705After the change, each function is called with five arguments:
2706 (funcall FUNCTION OVERLAY t START END OLDSIZE)
2707The last arguments, START and END and OLDSIZE,
2708are the same arguments that the after-change-functions receive.
2709
2710This means the function must accept either four or five arguments.
2711
2712*** You can set defaults for text-properties with the new variable
2713`default-text-properties'. Its value is a property list; the values
2714specified there are used whenever a character (or its category) does
2715not specify a value.
2716
2717*** The `face' property of a character or an overlay can now be a list
2718of face names. Formerly it had to be just one face name.
2719
2720*** Changes in handling the `intangible' text property.
2721
2722**** If inhibit-point-motion-hooks is non-nil, then `intangible' properties
2723are ignored.
2724
2725**** Moving to just before a stretch of intangible text
2726is no longer special in any way. Point stays at that place.
2727
2728**** When you move point backwards into the midst of intangible text,
2729point moves back to the beginning of that text. (It used to move
2730forward to the end of that text, which was not very useful.)
2731
2732**** When moving across intangible text, Emacs stops wherever the
2733property value changes. So if you have two stretches of intangible
2734text, with different non-nil intangible properties, it is possible to
2735place point between them.
2736
2737** Overlays
2738
2739*** Overlay changes.
2740
2741**** The new function previous-overlay-change returns the position of
2742the previous overlay start or end, before a specified position. This
2743is the backwards-moving counterpart of next-overlay-change.
2744
2745**** overlay-get now supports category properties on an overlay
2746the same way get-text-property supports them as text properties.
2747
2748Specifically, if an overlay does not have the property PROP that you
2749ask for, but it does have a `category' property which is a symbol,
2750then that symbol's PROP property is used.
2751
2752**** If an overlay has a non-nil `evaporate' property, it will be
2753deleted if it ever becomes empty (i.e., when it spans no characters).
2754
2755**** If an overlay has a `before-string' and/or `after-string' property,
2756these strings are displayed at the overlay's endpoints.
2757
2758** Filling
2759
2760*** The new variable fill-paragraph-function provides a way for major
2761modes to override the filling of paragraphs. If this is non-nil,
2762fill-paragraph calls it as a function, passing along its sole
2763argument. If the function returns non-nil, fill-paragraph assumes it
2764has done the job and simply passes on whatever value it returned.
2765
2766The usual use of this feature is to fill comments in programming
2767language modes.
2768
2769*** Text filling and justification changes:
2770
2771**** The new variable use-hard-newlines can be used to make a
2772distinction between "hard" and "soft" newlines; the fill functions
2773will then never remove a newline that was manually inserted. Hard
2774newlines are marked with a non-nil `hard' text-property.
2775
2776**** The fill-column and left-margin can now be modified by text-properties.
2777Most lisp programs should use the new functions (current-fill-column) and
2778(current-left-margin), which return the proper values to use for the
2779current line.
2780
177c0ea7 2781**** There are new functions for dealing with margins:
a933dad1
DL
2782
2783***** Set-left-margin and set-right-margin (set the value for a region
2784and re-fill). These functions take three arguments: two to specify
2785a region, and the desired margin value.
2786
2787***** Increase-left-margin, decrease-left-margin, increase-right-margin, and
2788decrease-right-margin (change settings relative to current values, and
2789re-fill).
2790
2791***** move-to-left-margin moves point there, optionally adding
2792indentation or changing tabs to spaces in order to make that possible.
2793beginning-of-line-text also moves past the fill-prefix and any
2794indentation added to center or right-justify a line, to the beginning
2795of the text that the user actually typed.
2796
2797***** delete-to-left-margin removes any left-margin indentation, but
2798does not change the property.
2799
2800**** The paragraph-movement functions look for the paragraph-start and
2801paragraph-separate regexps at the current left margin, not at the
2802beginning of the line. This means that those regexps should NOT use ^
2803to anchor the search. However, for backwards compatibility, a ^ at
2804the beginning of the regexp will be ignored, so most packages won't break.
2805
2806**** justify-current-line is now capable of doing left, center, or
2807right justification as well as full justification.
2808
2809**** The fill functions can do any kind of justification based on the new
2810`justification' text-property and `default-justification' variable,
2811or arguments to the functions. They also have a new option which
2812defeats the normal removal of extra whitespace.
2813
2814**** The new function `current-justification' returns the kind of
2815justification used for the current line. The new function
2816`set-justification' can be used to change it, including re-justifying
2817the text of the region according to the new value.
2818
2819**** Filling and auto-fill are disabled if justification is `none'.
2820
177c0ea7 2821**** The auto-fill-function is now called regardless of whether
a933dad1
DL
2822the fill-column has been exceeded; the function can determine on its
2823own whether filling (or justification) is necessary.
2824
2825** Processes
2826
2827*** process-tty-name is a new function that returns the name of the
2828terminal that the process itself reads and writes on (not the name of
2829the pty that Emacs uses to talk with that terminal).
2830
2831*** Errors in process filters and sentinels are now normally caught
2832automatically, so that they don't abort other Lisp programs.
2833
2834Setting debug-on-error non-nil turns off this feature; then errors in
2835filters and sentinels are not caught. As a result, they can invoke
2836the debugger, under the control of debug-on-error.
2837
2838*** Emacs now preserves the match data around the execution of process
2839filters and sentinels. You can use search and match functions freely
2840in filters and sentinels without explicitly bothering to save the
2841match data.
2842
2843** Display
2844
2845*** The variable message-log-max controls how messages are logged in the
2846"*Messages*" buffer. An integer value means to keep that many lines;
2847t means to log with no limit; nil means disable message logging. Lisp
2848code that calls `message' excessively (e.g. isearch.el) should probably
2849bind this variable to nil.
2850
2851*** Display tables now have a new element, at index 261, specifying the
2852glyph to use for the separator between two side-by-side windows. By
2853default, this is the vertical bar character `|'. Probably the only
2854other useful character to store for this element is a space, to make
2855less visual separation between two side-by-side windows displaying
2856related information.
2857
2858*** The new mode-line-format spec %c displays the current column number.
2859
2860*** The new variable blink-matching-delay specifies how long to keep
2861the cursor at the matching open-paren, after you insert a close-paren.
2862This is useful mainly on systems which can wait for a fraction of a
2863second--you can then specify fractional values such as 0.5.
2864
2865*** Faster processing of buffers with long lines
2866
2867The new variable cache-long-line-scans determines whether Emacs
2868should use caches to handle long lines more quickly. This variable is
2869buffer-local, in all buffers.
2870
2871Normally, the line-motion functions work by scanning the buffer for
2872newlines. Columnar operations (like `move-to-column' and
2873`compute-motion') also work by scanning the buffer, summing character
2874widths as they go. This works well for ordinary text, but if the
2875buffer's lines are very long (say, more than 500 characters), these
2876motion functions will take longer to execute. Emacs may also take
2877longer to update the display.
2878
2879If cache-long-line-scans is non-nil, these motion functions cache
2880the results of their scans, and consult the cache to avoid rescanning
2881regions of the buffer until the text is modified. The caches are most
2882beneficial when they prevent the most searching---that is, when the
2883buffer contains long lines and large regions of characters with the
2884same, fixed screen width.
2885
2886When cache-long-line-scans is non-nil, processing short lines will
2887become slightly slower (because of the overhead of consulting the
2888cache), and the caches will use memory roughly proportional to the
2889number of newlines and characters whose screen width varies.
2890
2891The caches require no explicit maintenance; their accuracy is
2892maintained internally by the Emacs primitives. Enabling or disabling
2893the cache should not affect the behavior of any of the motion functions;
2894it should only affect their performance.
2895
2896** System Interface
2897
2898*** The function user-login-name now accepts an optional
2899argument uid. If the argument is non-nil, user-login-name
2900returns the login name for that user id.
2901
2902*** system-name, user-name, user-full-name and user-real-name are now
2903variables as well as functions. The variables hold the same values
2904that the functions would return. The new variable multiple-frames
2905is non-nil if at least two non-minibuffer frames are visible. These
2906variables may be useful in constructing the value of frame-title-format
2907or icon-title-format.
2908
2909*** Changes in time-conversion functions.
2910
2911**** The new function format-time-string takes a format string and a
2912time value. It converts the time to a string, according to the format
2913specified. You can specify what kind of conversion to use with
2914%-specifications.
2915
2916**** The new function decode-time converts a time value into a list of
2917specific items of information: the year, month, day of week, day of
2918month, hour, minute and second. (A time value is a list of two or
2919three integers.)
2920
2921**** The new function encode-time converts specific items of time
2922information--the second, minute, hour, day, month, year, and time
2923zone--into a time value.
9a21d88b
KS
2924
2925
a933dad1
DL
2926\f
2927* Changes in Emacs 19.27
2928
2929There are no changes; however, here is one bug fix made in 19.26 that users
2930think should be documented here.
2931
2932** SPC and DEL in Info now handle menus consistently.
2933
2934SPC and DEL scroll through an entire subtree an Info manual. Once you
2935scroll through a node far enough to reach a menu, SPC begins moving
2936into the subnodes of the menu, starting with the first one. When you
2937reach the end of a subnode, SPC moves into the next subnode, and so
2938on.
2939
2940DEL more or less scrolls through the same text in reverse order.
9a21d88b
KS
2941
2942
a933dad1
DL
2943\f
2944* User Editing Changes in Emacs 19.26
2945
2946** In the X toolkit version, if you click on a menu bar item and
2947release the button quickly outside the menu, the menu remains visible
2948until you click or type something else. If you click on the menu, you
2949select from the menu. Any other mouse click makes the menu disappear.
2950Keyboard input gets rid of the menu and then is processed normally.
2951
2952"Quickly" means within double-click-time milliseconds.
2953
2954** The C-x 5 commands to select a buffer in "another frame" now use an
2955existing iconified frame, if any, deiconifying it. They also raise
2956the frame.
2957
2958** Region highlighting on a black-and-white-only display now uses
2959underlining. Inverse-video had the problem that you couldn't see
2960the cursor.
2961
2962** You can now change the height of a window by pressing mouse-1 on
2963the mode line and dragging it up and down.
2964
2965** If you set the environment variable LC_CTYPE to iso_8859_1 or
2966iso-8859-1, Emacs automatically sets up for display and syntactic
2967handling of the ISO Latin-1 character set.
2968
2969This does not automatically load any of the packages for input of
2970these characters, because it's not yet clear what is right to do.
2971You must still explicitly load either iso-transl or iso-acc.
2972
2973** For a read-only buffer that is also modified, the mode line now displays
2974%* instead of %%.
2975
2976** M-prior (scroll-other-window-down) is a new command that works like
2977M-next (and C-M-v) but scrolls in the opposite direction.
2978
2979M-home moves to the beginning of the buffer, in the other window.
2980M-end moves to the end of the buffer, in the other window. These two
2981commands, along with M-next and M-prior, form a series of commands for
2982moving around in the other window.
2983
2984** In change logs, the mail address is now delimited with <...> instead
2985of (...).
2986
2987This makes it a little more convenient to extract the mail address for
2988use in mailing a message.
2989
2990** In Shell mode and other comint modes, C-a has now returned to
2991its ordinary meaning: move to the beginning of the line.
2992Use C-c C-a to move to the end of the prompt.
2993
2994** If you set mail-signature to t to cause automatic insertion of
2995your .signature file, you now get a -- before the signature.
2996
2997** Setting rmail-highlighted-headers to nil entirely turns off
2998highlighting in Rmail. However, if your motivation for doing this is
2999that the highlighted text doesn't look good on your display, it might
3000be better to change the appearance of the `highlight' face. Once
3001you've done that, you may find Rmail highlighting is useful.
3002
3003** In the calendar, mouse-2 is now used only for commands that apply to a date.
3004If you click it when not on a date, it gives an immediate error.
3005
3006Mouse-3 in the calendar now gives a menu of commands that do not apply
3007to a particular date.
3008
3009The D command displays diary entries from a specified diary file (not
3010your standard diary file).
3011
3012** In the gnus-uu package, the binding for gnus-uu-threaded-decode-and-view
3013is now C-c C-v C-d, not C-c C-v C-h. Thus, C-c C-v C-h is now available
3014for asking for a list of the subcommands of C-c C-v.
3015
3016** You can now specify "who you are" for various Emacs packages by
3017setting just one variable, user-mail-address. This currently applies
3018to posting news with GNUS and to making change log entries. It may
3019apply to additional Emacs features in the future.
9a21d88b 3020
a933dad1
DL
3021\f
3022* Lisp-Level Changes in Emacs 19.26:
3023
3024** The function insert-char now takes an optional third argument
3025which, if non-nil, says the inserted characters should inherit sticky
3026text properties from the surrounding text.
3027
3028** The `diary' library has been renamed to `diary-lib'. If you refer
3029to this library in your Lisp code, you must update the references.
3030
3031** Sending text to a subprocess can read input from subprocesses if it
3032has to wait because the destination subprocess's terminal input buffer
3033is full.
3034
3035It was already possible in unusual occasions for this operation to
3036read subprocess input, but it did not happen very often. It is now
3037more likely to happen.
3038
3039** last-nonmenu-event is now bound to t around filter functions and sentinels.
3040This is to ensure that y-or-n-p and yes-or-no-p use the keyboard by default.
3041
3042** In mode lines, %+ now displays as % for unmodified read-only
3043buffers. It is now the same as %* except in the case of a modified
3044read-only buffer; in that case, %+ displays as *.
3045
3046The old meaning of %+ is now available on %&.
3047It displays * for a modified buffer and - for an unmodified buffer,
3048regardless of read-only status.
3049
3050** You can now use `underline' in the color list of a face.
3051It serves as a last resort, and says to underline the face
3052(if previous color list elements can't be used).
3053
3054** The new function x-color-values returns the list of color values
3055for a given color name (a string). The list contains three integers
3056which give the amounts of red, green and blue in the color: (R G B).
3057
3058** In run-at-time, 0 as the repeat interval means "don't repeat".
3059
3060** The variable trim-versions-without-asking has been renamed to
3061delete-old-versions.
3062
3063** The new function other-window-for-scrolling returns the choice of
3064other window for C-M-v to scroll.
3065
3066** Note that the function fceiling was mistakenly documented as fceil before.
9a21d88b 3067
a933dad1
DL
3068\f
3069* Changes in cc-mode.el in Emacs 19.26:
3070
3071** A new syntactic symbol has been added: substatement-open. It
3072 defines the open brace of a substatement block. These used to get:
3073 ((block-open ...) (substatement . ...)).
3074
3075 Non-block substatement lines still get just ((substatement . ...))
3076
3077 Note that the custom indent function c-adaptive-block-open has been
3078 removed as obsolete.
3079
3080** You can now specify the `hanginess' of closing braces. See
3081 c-hanging-braces-alist.
3082
3083** Recognizes try and catch blocks in C++. They are given the
3084 substatement syntactic symbol.
3085
3086** should be generally more forgiving about non-GNU standard top-level
3087 construct definition styles (i.e. where the function/class/struct
3088 opening brace does not start in column zero).
3089
3090 If you hang the braces that open a top-level construct on the right
3091 edge, and you find you still need to define defun-open-prompt (Emacs
3092 19) please let me know. Note that there may still be performance
3093 issues related to non-column zero opening braces.
3094
3095** c-macro-expand is put on C-c C-e
3096
3097** New style: "Default". Resets indentation to those shipped with
3098 cc-mode.el.
3099
3100** internal defun c-indent-via-language-element has been renamed
3101 c-indent-line for compatibility with c-mode.el and awk-mode.
3102
3103** new buffer-local variable c-comment-start-regexp for (potential)
3104 flexibility in adding new modes based on cc-mode.el
9a21d88b
KS
3105
3106
a933dad1
DL
3107\f
3108* Changes in Emacs 19.25
3109
3110The variable x-cross-pointer-shape (which didn't really exist) has
3111been renamed to x-sensitive-text-pointer-shape, and now does exist.
9a21d88b
KS
3112
3113
a933dad1
DL
3114\f
3115* Changes in Emacs 19.24
3116
3117Here is a list of new Lisp packages introduced since 19.22.
3118
3119derived.el Define new major modes based on old ones.
3120dired-x.el Extra Dired features.
3121double.el New mode for conveniently inputting non-beyond chars.
3122easymenu.el Create menus easily.
3123ediff.el Snazzy diff interface.
3124foldout.el A kind of outline mode designed for editing programs.
3125gnus-uu.el UUdecode in GNUS buffers.
3126ielm.el Interactively evaluate Lisp.
3127 This is a replacement for Lisp Interaction Mode.
3128iso-cvt.el Conversion of beyond-ASCII characters between
3129 various different representations.
3130jka-compr.el Automatic compression/decompression.
3131mldrag.el Drag modeline to change heights of windows.
3132mail-hist.el Provides history for headers of outgoing mail.
3133rsz-mini.el Automatically resizing minibuffers.
3134s-region.el Set region by holding shift.
3135skeleton.el Templates for statement insertion.
3136soundex.el Classifying words by how they sound.
3137tempo.el Template insertion with hotspots.
9a21d88b
KS
3138
3139
a933dad1
DL
3140\f
3141* User Editing Changes in 19.23.
3142
3143** Emacs 19.23 uses Ispell version 3.
3144
3145Previous Emacs 19 versions used Ispell version 4. That version had
3146improvements in storing the dictionary compactly, but these are not
3147very important nowadays. Meanwhile, in parallel to the work on Ispell
31484, many useful features were added to Ispell 3. Until a few months
3149ago, the terms on Ispell 3 did not let us use it; but they have now
3150been changed, so now we are using it. We are dropping Ispell 4.
3151
3152** Emacs 19.23 can run on MS-DOG. See the file MSDOS in the same
3153directory as this file.
3154
3155** Emacs 19.23 can work with an X toolkit. You must specify toolkit
3156operation when you configure Emacs: use the option
3157--with-x-toolkit=yes. (This option uses code developed by Lucid;
3158thanks to Frederic Pierresteguy for helping to adapt it.)
3159
3160** Emacs now has dialog boxes; yes/no and y/n questions automatically
3161use them in commands invoked with the mouse. For more information,
3162see below under "Lisp programming changes".
3163
3164** Menus now display the keyboard equivalents (if any) of the menu
3165commands in parentheses after the menu item.
3166
3167** Kill commands, used in a read-only buffer, now move point across
3168the text they would otherwise have killed. This way, you can use
3169repeated kill commands to transfer text into the kill ring.
3170
3171** There is now a global mark ring in addition to the mark ring that is local
3172to each buffer. The global mark ring stores positions in any buffer. Any
3173time the mark is set and the current buffer is different from the last time
3174the mark was set, the new mark is pushed on the global mark ring as well.
3175The new command C-x C-SPC (pop-global-mark) pops the global mark ring and
3176jumps to the last mark pushed, first switching to that buffer.
3177
3178** Query Replace is now available in the Edit menu.
3179
3180** ESC no longer simply exits a Query Replace. It now exits the Query
3181Replace and remains pending. Thus, ESC A and M-A are now equivalent
3182in Query Replace.
3183
3184To simply exit a Query Replace, type RET or Period.
3185
3186** M-mouse-2 now puts point at the end of the yanked secondary selection.
3187
3188** Mouse-1 in the mode line now simply selects the window above that
3189mode line. Mouse-2 in the mode line selects that window and expands
3190it to fill the frame it is in.
3191
3192** You can now use mouse-2 in a Dired buffer or Tar mode buffer to find
3193a file you click on, in a compilation buffer to go to a particular
3194error message, and in a *Occur* buffer to go to a particular
3195occurrence.
3196
3197(It was already possible to do likewise in Info and in completion list
3198buffers.)
3199
3200What's more, the sensitive areas of the buffer now highlight when you
3201move the mouse over them.
3202
3203** In a completion list buffer, the command RET now chooses the completion
3204that is around or next to point.
3205
3206** If you specify the foreground color for the `mode-line' face, and
3207mode-line-inverse-video is non-nil, then the default background color
3208is the usual foreground color.
3209
3210** revert-buffer now preserves markers pointing within the unchanged
3211text (if any) at the beginning and end of the file.
3212
3213** Version control checkin and checkout preserve all markers if the
3214file does not contain any of the magic version header sequences that
3215are updated automatically by RCS and SCCS. If such version headers
3216are present, checkin and checkout preserve a marker unless it comes
3217between two such sequences. (So it's a good idea to put all the
3218header sequences close together.)
3219
3220** When a large deletion shuts off auto save temporarily in a buffer,
3221you can now turn it on again by saving the buffer with C-x C-s (as was
3222possible in Emacs 18). You can also turn it on again with M-1 M-x
3223auto-save (as has been possible in Emacs 19).
3224
3225** C-x r d now runs the command delete-rectangle.
3226
3227** The new command imenu shows you a menu of interesting places in the
3228current buffer and lets you select one; then it moves point there.
3229The definition of interesting places depends on the major mode, but
3230typically this includes function definitions and such. Normally,
3231imenu displays the menu in a buffer; but if you bind it to a mouse
3232event, it shows a mouse popup menu.
3233
3234** You can make certain chosen buffers, that normally appear in a
3235separate window, appear in special frames of their own. To do this,
3236set special-display-buffer-names to a list of buffer names; any buffer
3237whose name is in that list automatically gets a special frame when it
3238is to be displayed in another window.
3239
3240A good value to try is ("*compilation*" "*grep*" "*TeX Shell*").
3241
3242More generally, you can set special-display-regexps to a list of regular
3243expressions; then each buffer whose name matches any of those regular
3244expressions gets its own frame.
3245
3246The variable special-display-frame-alist specifies the frame
3247parameters for these frames. It has a default value, so you don't
3248need to set it.
3249
3250** If you set sentence-end-double-space to nil, the fill commands
3251expect just one space at the end of a sentence. (If you want the
3252sentence commands to accept single spaces, you must modify the regexp
3253sentence-end also.)
3254
3255** You can suppress the startup echo area message by adding text like
3256this to your .emacs file:
3257
3258(setq inhibit-startup-echo-area-message "YOUR-LOGIN-NAME")
3259
3260Simply setting inhibit-startup-echo-area-message to your login name is
3261not sufficient to inhibit the message; Emacs explicitly checks whether
3262.emacs contains an expression as shown above. Your login name must
3263appear in the expression as a Lisp string constant.
3264
3265This way, you can easily inhibit the message for yourself if you wish,
3266but thoughtless copying of your .emacs file will not inhibit the
3267message for someone else.
3268
3269** Outline minor mode now uses C-c C-o as a prefix instead of just C-c.
3270
3271** In Outline mode, hide-subtree is now C-c C-d. (It was C-c C-h; but
3272that is now a conventional way to ask for help about C-c commands.)
3273
3274** There are two additional commands in Outline mode.
3275M-x hide-sublevels
3276 hides all headers except the topmost N levels.
3277M-x hide-other
3278 hides everything about the body that point is in
3279 plus the headers leading up from there to the top of the tree.
3280
3281** In iso-transl and iso-insert, the sequences for entering A-ring and
3282the AE ligature are now just A and E (plus the initial C-x 8 or Alt).
3283You used to have to enter AA or AE, after the C-x 8 prefix of course.
3284Likewise for lower case a-ring and ae.
3285
3286** iso-transl now defines convenient Alt keys as well as the C-x 8 prefix.
3287Instead of prefixing a sequence with C-x 8, you can add Alt to the
3288first character of the sequence. For example, Alt-" a is now a way
3289to enter an a-umlaut.
3290
3291** CC mode is a greatly improved mode for C and C++.
3292See the following page.
3293
3294** tcl mode is a new major mode. It provides features for
3295editing, indenting and running tcl programs.
3296
3297** Compilation minor mode lets you parse error messages in any buffer,
3298not just a normal compilation output buffer. Type M-x
3299compilation-minor-mode to enable the minor mode; then C-c C-c jumps to
3300the source location for the error at point, as in the `*compilation*'
3301buffer. If you use compilation-minor-mode in an Rlogin buffer, it
3302automatically accesses remote source files by ftp.
3303
3304** Comint and shell mode changes:
3305
3306*** Comint modes (including Shell mode, GUD modes, etc.) now bind
3307C-M-l to the command comint-show-output. This command scrolls the
3308buffer to show the last batch of output from the subprogram.
3309
3310*** Completion in Comint modes now truly operates on the string before
3311point, rather than the word that point is within.
3312
3313*** Comint mode file name completion ignores those files that end with a
3314string in the new variable comint-completion-fignore. This variable's
3315default value is nil.
3316
3317*** Shell mode uses the variable shell-completion-fignore to set
3318comint-completion-fignore. The default value is nil, but some
3319people prefer ("~" "#" "%").
3320
177c0ea7 3321*** The function `comint-watch-for-password-prompt' can be used to
a933dad1
DL
3322suppress echoing when a subprocess asks for a password. To use it,
3323do this:
3324
3325(add-hook 'comint-output-filter-functions
3326 'comint-watch-for-password-prompt)
3327
3328*** You can use M-x shell-strip-ctrl-m to strip ^M characters from
3329process output.
3330
3331*** In Shell mode, TAB now completes environment variables, if possible,
3332and expands directory references.
3333
3334*** You can use M-x comint-run to execute any program of your choice in
3335a comint mode. Some programs such as shells, rlogin, and debuggers
3336have their own specialized modes; this command is one way to use
3337comint to run programs for which no such specialized mode exits. (You
3338can also run a shell with M-x shell and run the program of your choice
3339under the shell--but that gives you the specializations of Shell
3340mode.)
3341
3342** When you run GUD (M-x gdb, M-x dbx, and so on), you can use TAB
3343to do file name completion in the minibuffer.
3344
3345The "Complete" menu includes an item for directory expansion.
3346
3347** GUD working with future versions of GDB will permit TAB for
3348GDB-style symbol completion. This will work with GDB 4.13.
3349
3350** Rmail no longer gets new mail automatically when you visit an Rmail
3351file specified by name--not even if it is your primary Rmail file. To
3352get new mail, type `g'. This feature is an advantage because you now
3353have a choice of whether to get new mail. (This change actually
3354occurred in an earlier version, but wasn't listed here then, since it
3355made the code do what the documentation already said.)
3356
3357** Rmail now highlights certain fields automatically, when you use X
3358windows. The variable rmail-highlighted-headers controls which
3359fields.
3360
3361** If you set rmail-summary-window-size to an integer, Rmail uses
3362a window that many lines high for the summary buffer.
3363
3364** rmail-input-menu is a new command that visits an Rmail file letting
3365you choose which file with a mouse menu. rmail-output-menu is
3366similar; it outputs the current message, using a mouse menu to choose
3367which Rmail file. These commands use the variables
3368rmail-secondary-file-directory and rmail-secondary-file-regexp.
3369
3370** The mh-e package has been changed substantially.
3371See the file ./MH-E-NEWS for details.
3372
3373** The calendar and diary have new features.
3374
3375The menu bar for the calendar contains most of the calendar commands,
3376arranged into logical categories.
3377
3378Mouse-2 now performs specific-date-related commands when clicked on a
3379date in the calendar window and common three-month-related commands
3380when clicked elsewhere in the calendar window.
3381
3382You can set up colored/shaded highlighting of holidays, diary entry
3383dates, and today's date, by setting calendar-holiday-marker,
3384diary-entry-marker, and calendar-today-marker to a face instead of a
3385character. Using a special face is now the default if you are using a
3386window system.
3387
3388** The appt package for displaying appointment reminders has new
3389features.
3390
3391*** The appt alarm window stays for the full duration of
3392appt-display-duration. It no longer disappears when you start typing
3393text.
3394
3395*** You can change the way the appointment window is created/deleted by
3396setting the variables appt-disp-window-function and
3397appt-delete-window-function.
3398
3399For instance, these variables can be set to functions that display
3400appointments in pop-up frames, which are lowered or iconified after
3401appt-display-duration seconds.
3402
3403** desktop.el can now save a list of buffer-local variables,
3404and saves more global ones.
3405
3406** Pascal mode has been completely rewritten. It now features
3407completing of function names, variables and type definitions around
3408current point (like M-TAB does with lisp-symbols). There's also an
3409outline mode (M-x pascal-outline) that hides the bodies of all
3410functions you're not working with.
3411
3412** Edebug has a number of changes:
3413
3414*** Edebug syntax error reporting is improved.
3415
3416*** Top-level forms and defining forms other than defun and defmacro may
3417now be debugged with Edebug.
3418
3419*** Edebug specifications may now contain body, &define, name, arg or
3420arglist, def-body, and def-form, to support definitions.
3421
3422*** edebug-all-defuns is renamed to edebug-all-defs.
3423def-edebug-form-spec is replaced by def-edebug-form whose arguments
3424are unevaluated. The old names are still available for now.
3425
3426*** Frequency counts and coverage data may be displayed for functions being
3427debugged.
3428
3429*** A global break condition is now checked at every stop point.
3430
3431*** The previous condition at a breakpoint may now be edited.
3432
3433*** A new "next" mode stops only after expression evaluation.
3434
3435*** A new command, top-level-nonstop, does not even stop for unwind-protect,
3436as top-level would.
9a21d88b 3437
a933dad1
DL
3438\f
3439* Changes in CC mode in Emacs 19.23.
3440
3441`cc-mode' provides ANSI C, K&R C, and ARM C++ language editing. It
3442represents the merge of c++-mode.el and c-mode.el. cc-mode provides a
3443new, more flexible indentation engine so that indentation
3444customization is more intuitive. There are two steps to calculating
3445indentation: first, CC mode analyzes the line for syntactic content,
3446then based on this content it applies user defined offsets and adds
3447this offset to the indentation of some previous line.
3448
3449The syntactic analysis determines if the line describes a `statement',
3450`substatement', `class-open', `member-init-intro', etc. These are
3451described in detail with C-h v c-offsets-alist. You can change the
3452offsets interactively with C-c C-o (c-set-offsets), or
3453programmatically in your c-mode-common-hook, which is run both by
3454c-mode and c++-mode. You can also set up "styles" in the same way
3455that you could with c-mode.el. The variable c-basic-offset controls
3456the basic offset given to a level of indentation.
3457
3458If, for example, you wanted to change this style:
3459
177c0ea7 3460int foo (int i)
a933dad1
DL
3461{
3462 switch (i) {
3463 case 1:
3464 printf ("its a foo\n");
3465 break;
3466 default:
3467 printf ("don't know what it is\n");
3468 break;
3469 }
3470}
3471
3472into this:
3473
177c0ea7 3474int foo (int i)
a933dad1
DL
3475{
3476 switch (i) {
3477 case 1:
3478 printf ("its a foo\n");
3479 break;
3480 default:
3481 printf ("don't know what it is\n");
3482 break;
3483 }
3484}
3485
3486you could add the following to your .emacs file:
3487
3488(defun my-c-mode-common-hook ()
3489 (c-set-offset 'case-label 2)
3490 (c-set-offset 'statement-case-intro 2))
3491(add-hook 'c-mode-common-hook 'my-c-mode-common-hook)
3492
3493** New variables:
3494
3495c-offsets-alist contains an association list of syntactic symbols and
3496their relative offsets. Do a "C-h v c-offsets-alist" to get a list of
3497all syntactic symbols currently defined, and their meanings. You
3498should not change this variable directly; use the supplied interface
3499commands c-set-offset and c-set-style.
3500
3501c-mode-common-hook is run by both c-mode and c++-mode during their
3502common initializations. You should put any customizations that are
3503the same for both C and C++ into this hook.
3504
3505The variable c-strict-semantics-p is used mainly for debugging. When
3506non-nil, CC mode signals an error if it returns a syntactic symbol
3507that can't be found in c-offsets-alist.
3508
3509If you want CC mode to echo the syntactic analysis for a particular
3510line when you hit the TAB key, set c-echo-semantic-information-p to
3511non-nil.
3512
3513c-basic-offset controls the standard amount of offset for a level of
3514indentation. You can set a syntactic symbol's offset to + or - as a
3515short-hand for positive or negative c-basic-offset.
3516
3517c-comment-only-line-offset lets you control indentation given to lines
3518which contain only a comment, in the case of C++ line style comments,
3519or the introduction to a C block comment. Comment-only lines at
3520column zero can be anchored there independent of the indentation given
3521to other comment-only lines.
3522
3523c-block-comments-indent-p controls the style of C block comment
3524re-indentation. If you put leading stars in front of comment
3525continuation lines, you should set this variable to nil.
3526
3527c-cleanup-list is a list describing certain C and C++ constructs to be
3528"cleaned up" as they are typed, but only when the auto-newline feature
3529is turned on. In C++, make sure this variable contains at least
3530'scope-operator so that double colons will not be separated by a
3531newline.
3532
3533Colons (`:') and braces (`{` and `}') are special in C and C++. For
3534certain constructs, you may like them to hang on the right edge of the
3535code, or you may like them to start a new line of code. You can use
3536the two variables c-hanging-braces-alist and c-hanging-colons-alist
3537to control whether newlines are placed before and/or after colons and
3538braces when certain C and C++ constructs are entered. For example,
3539you can control whether the colon that introduces a C++ member
3540initialization list hangs on the right edge, starts a new line, or has
3541no newlines either before or after it.
3542
3543c-special-indent-hook is run after a line is indented by CC mode. You
3544can perform any custom indentations here.
3545
3546c-delete-function is the function that is called when a single
3547character is deleted with the c-electric-delete command (DEL).
3548
3549c-electric-pound-behavior describes what happens when you enter the
3550`#' that introduces a cpp macro.
3551
3552If c-tab-always-indent is neither t nor nil, then TAB inserts a tab
3553when within strings, comments, and cpp directives, but it reindents
3554the line unconditionally.
3555
3556c-inhibit-startup-warnings-p inhibits warnings about any old
3557version of Emacs you might be running, which could be incompatible
3558with cc-mode.
3559
3560** There are two new minor-mode features in CC mode: auto-newline and
3561hungry-delete. Auto-newline inserts newlines automatically as you
3562type certain constructs. Hungry-delete consumes all preceding
3563whitespace (spaces, tabs, and newlines) when the delete key is hit.
3564You can toggle auto-newline on and off on a per-buffer basis by
3565hitting C-c C-a. You can toggle hungry-delete on and off by hitting
3566C-c C-d. You can toggle them both on and off together with C-c C-t.
3567
3568** Slash (`/') and star (`*') are now both electric characters.
3569
3570** New commands:
3571
3572The new C-c C-o (c-set-offset) command can be used to interactively change
3573the offset for a particular syntactic symbol.
3574
3575The new command C-c : (c-scope-operator) inserts the C++ scope operator in
3576c++-mode only.
3577
3578The new command C-c C-q (c-indent-defun) indents the entire enclosing
3579top-level function or class.
3580
3581The new command C-c C-s (c-show-semantic-information) echos the current
3582syntactic analysis without re-indenting the current line.
3583
3584The new commands M-x c-forward-into-nomenclature and M-x
3585c-backward-into-nomenclature (currently otherwise unbound to a key
3586sequence), make movement easier when using the C++ variable naming
3587convention of VariableNamesWithoutUnderscoresButEachWordCapitalized.
3588
3589** Command from c-mode.el that have been renamed in cc-mode.el:
3590
3591 electric-c-brace => c-electric-brace
3592 electric-c-semi => c-electric-semi&comma
3593 electric-c-sharp-sign => c-electric-pound
3594 mark-c-function => c-mark-function
3595 electric-c-terminator => c-electric-colon
3596 indent-c-exp => c-indent-exp
3597 set-c-style => c-set-style
3598
3599** Variables from c-mode.el that are obsolete with cc-mode.el:
3600
3601 c-indent-level
3602 c-brace-imaginary-offset
3603 c-brace-offset
3604 c-argdecl-indent
3605 c-label-offset
3606 c-continued-statement-offset
3607 c-continued-brace-offset
9a21d88b 3608
a933dad1
DL
3609\f
3610* Lisp programming changes in Emacs 19.23.
3611
3612** To pop up a dialog box, call x-popup-dialog.
3613It takes two arguments, POSITION and CONTENTS.
3614
3615POSITION specifies which frame to place the dialog box over;
3616the dialog box always goes on the center of the frame.
3617POSITION may be a mouse event, a window, a frame,
3618or t meaning use the frame that the mouse is in.
3619
3620CONTENTS specifies the contents of the dialog box.
3621It looks like a single pane of a popup menu:
3622(TITLE ITEM1 ITEM2 ...), where each ITEM has the form (STRING . VALUE).
3623The return value is VALUE from the chosen item.
3624
3625An ITEM may also be just a string--that makes a nonselectable item.
3626An ITEM may also be nil--that means to put all preceding items
3627on the left of the dialog box and all following items on the right.
3628(By default, approximately half appear on each side.)
3629
3630If your Emacs is not using an X toolkit, then it cannot display a
3631real dialog box; so instead it displays a pop-up menu in the center
3632of the frame.
3633
3634** y-or-n-p, yes-or-no-p and map-y-or-n-p now use menus or dialog boxes
3635to ask their question(s) if the command that is running was reached by
3636a mouse event.
3637
3638If you want to control which way these functions work, bind the
3639variable last-nonmenu-event around the call. These functions use the
3640keyboard if that variable holds a keyboard event (actually, any
3641non-list); they use the mouse if that variable holds a mouse event
3642(actually, any list).
3643
3644** The mouse-face property is now implemented, both in overlays and as
3645a text property. It specifies a face to use when the mouse is in the
3646range of text for which the property is specified.
3647
3648** When text has a non-nil `intangible' property, you cannot move point
3649within it or right before it. If you try, point actually moves to the
3650end of the intangible text. Note that this means that backward-char
3651is a no-op when there is an intangible character to the left of point.
3652
3653** minibuffer-exit-hook is a new normal hook that is run when you
3654exit the minibuffer.
3655
3656** The variable x-cross-pointer-shape specifies the cursor shape to use
3657when the mouse is over text that has a mouse-face property.
3658
3659** The new variable interpreter-mode-alist specifies major modes to use
3660for shell scripts that specify a command interpreter. Its elements
3661look like (INTERPRETER . MODE); for example, ("perl" . perl-mode) is
3662one element present by default. This feature applies only when the
3663file name doesn't indicate which mode to use.
3664
3665** If you use a minibuffer-only frame, set the variable
3666minibuffer-auto-raise to t, and entering the minibuffer will then
3667raise the minibuffer frame.
3668
3669** If pop-up-frames is t, display-buffer now looks for an existing
3670window in any visible frame, showing the specified buffer, and uses
3671such a window in preference to making a new frame.
3672
3673** In the functions next-window, previous-window, next-frame,
3674previous-frame, get-buffer-window, get-lru-window, get-largest-window
3675and delete-windows-on, if you specify `visible' for the last argument,
3676it means to consider all visible frames.
3677
3678** Mouse events now give the X and Y coordinates in pixels, rather than
3679in characters. You can convert these values to characters by dividing by
3680the values of (frame-char-width) and (frame-char-height).
3681
3682** The new functions mouse-pixel-position and set-mouse-pixel-position
3683read and set the mouse position in units of pixels. The existing
3684functions mouse-position and set-mouse-position continue to work with
3685units of characters.
3686
3687** The new function compute-motion is useful for computing the width
3688of certain text when it is displayed.
3689
3690** The function vertical-motion now takes an option second argument WINDOW
3691which says which window to use for the display calculations.
3692
3693vertical-motion always operates on the current buffer.
3694It is ok to specify a window displaying some other buffer.
3695Then vertical-motion uses the width, hscroll and display-table of
3696the specified window, but still scans the current buffer.
3697
3698** An error no longer sets last-command to t; the value of last-command
3699does reflect the previous command (the one that got an error).
3700
3701If you do not want a particular command to be recognized as the
3702previous command in the case where it got an error, you must code that
3703command to prevent this. Set this-command to t at the beginning of
3704the command, and set this-command back to its proper value at the end,
3705like this:
3706
3707 (defun foo (args...)
3708 (interactive ...)
3709 (setq this-command t)
3710 ...do the work...
3711 (setq this-command 'foo))
3712
3713or like this:
3714
3715 (defun foo (args...)
3716 (interactive ...)
3717 (let ((old-this-command this-command))
3718 (setq this-command t)
3719 ...do the work...
3720 (setq this-command old-this-command)))
3721
3722The undo and yank commands do this.
3723
3724** If you specify an explicit title for a new frame when you create it,
3725the title is used as the resource name when looking up X resources to
177c0ea7 3726control the shape of that frame. If you don't specify the frame title,
a933dad1
DL
3727the value of x-resource-name is used, as before.
3728
3729** The frame parameter user-position, if non-nil, says that the user
3730has specified the frame position. Emacs reports this to the window
3731manager, to tell it not to override the position that the user
3732specified.
3733
3734** Major modes can now set change-major-mode-hook to arrange for state
3735to be cleaned up when the user switches to a new major mode. The function
3736kill-all-local-variables runs this hook. For best results, make the hook a
3737buffer-local variable so that it will disappear after doing its job and will
3738not interfere with the subsequent major mode.
3739
3740** The new variable overriding-local-map, if non-nil, specifies a keymap
3741that overrides the current local map, all minor mode keymaps, and all
3742text property keymaps. Incremental search uses this feature to override
3743all other keymaps temporarily.
3744
3745** A key definition in a menu keymap can now have additional structure:
3746in addition to (ITEMNAME [HELPSTRING] . COMMAND) which was allowed
3747before, the form (ITEMNAME [HELPSTRING] (...) . COMMAND) is
3748allowed. (HELPSTRING is optional, and is not currently used.)
3749
3750Here (...) represents a sublist containing information about keyboard
3751key sequences that run the same command COMMAND. Displaying the menu
3752automatically creates and updates the sublist when appropriate; you
3753need never set these up yourself.
3754
3755lookup-key, key-binding, and similar functions return just COMMAND,
3756not the whole binding.
3757
3758To precompute this information for a given keymap, you can do
3759 (x-popup-menu nil KEYMAP).
3760
3761** When you specify coordinates for x-popup-menu as a list ((XOFFSET
3762YOFFSET) WINDOW), the coordinates are now measured in pixels.
3763
3764** where-is-internal now takes just four arguments:
3765DEFINITION KEYMAP FIRSTONLY NOINDIRECT.
3766The single argument KEYMAP replaces two arguments KEYMAP and KEYMAP1.
3767
3768If KEYMAP is non-nil, where-is-internal searches only KEYMAP and the
3769global keymap.
3770
3771If KEYMAP is nil, where-is-internal searches all the currently active
3772keymaps, but finds the active keymaps as if overriding-local-map were
3773nil.
3774
3775If you pass a list of the form (keymap) as KEYMAP, where-is-internal
3776searches only the global map. (This is not a special case--it follows
3777from the specifications above.)
3778
3779If you pass the value of overriding-local-map as KEYMAP, where-is-internal
3780searches in exactly the same was as command execution does.
3781
3782** Use the macro define-derived-mode to define a new major mode that
3783inherits the definition of another major mode. Here's how to define a
3784command named hypertext-mode that inherits from the command text-mode:
3785
3786 (define-derived-mode hypertext-mode text-mode "Hypertext"
3787 "Major mode for hypertext.\n\n\\{hypertext-mode-map}"
3788 (setq case-fold-search nil))
3789
3790 (define-key hypertext-mode-map [down-mouse-3] 'do-hyper-link)
3791
3792The new mode has its own keymap, which inherits from that of the
3793original mode. It also has its own syntax and abbrev tables, which
3794are initialized by copying those of the original mode. It also has
3795its own mode hook. All are given names made by appending a suffix
3796to the name of the new mode.
3797
3798** A syntax table can now inherit the data for some characters from
3799standard-syntax-table, while specifying other characters itself.
3800Syntax code 13 means "inherit this character from the standard syntax
3801table." In modify-syntax-entry, the character `@' represents this code.
3802
3803The function `make-syntax-table' now creates a syntax table which
3804inherits all letters and control characters (0 to 31 and 128 to 255)
3805from the standard syntax table, while copying the other characters
3806from the standard syntax table. Most syntax tables in Emacs are set
3807up this way.
3808
3809This sort of inheritance is useful for people who set up character
3810sets with additional alphabetic characters in the range 128 to 255.
3811Just changing the standard syntax for these characters affects all
3812major modes.
3813
3814** The new function transpose-regions swaps two regions of the buffer.
3815It preserves the markers in those two regions, so that they stay with
3816the surrounding text as it is swapped.
3817
3818** revert-buffer now runs before-revert-hook at the beginning and
3819after-revert-hook at the end. These can be used by minor modes
3820that need to clean up state variables.
3821
3822** The new function get-char-property is like get-text-property, but
3823checks for overlays with properties as well as for text properties.
3824It checks for overlays first, in order of descending priority, and
3825text properties last.
3826
3827get-char-property allows windows as the OBJECT argument, as well
3828as buffers and strings. If you specify a window, then only overlays
3829active on that window are considered.
3830
3831** Overlays can have the `invisible' property.
3832
177c0ea7 3833** The function insert-file-contents now takes an optional fifth
a933dad1
DL
3834argument called REPLACE. If this is t, it means to replace the
3835contents of the buffer (actually, just the accessible portion)
3836with the contents of the file.
3837
3838This is better than simply deleting and inserting the whole thing
3839because (1) it preserves some marker positions and (2) it puts less
3840data in the undo list.
3841
3842** The variable inhibit-first-line-modes-regexps specifies classes of
3843file names for which -*- on the first line should not be looked for.
3844
3845** The variables before-change-functions and after-change-functions
3846hold lists of functions to call before and after a change in the
3847buffer's text. They work much like before-change-function and
3848after-change-function, except that they hold a list of functions
3849instead of just one.
3850
3851These variables will eventually make before-change-function and
3852after-change-function obsolete.
3853
3854** The variable kill-buffer-query-functions holds a list of functions
3855to be called with no arguments when a buffer is about to be killed.
3856(That buffer is the current buffer when the function is called.)
3857If any of the functions returns nil, the buffer is not killed
3858(and the remaining functions in the list are not called).
3859
3860** The variable kill-emacs-query-functions holds a list of functions
3861to be called with no arguments when you ask to exit Emacs.
3862If any of the functions returns nil, the exit is canceled
3863(and the remaining functions in the list are not called).
3864
3865** The argument for buffer-disable-undo is now optional,
3866like the argument for buffer-enable-undo.
3867
3868** The new variable system-configuration holds the canonical three-part
3869GNU configuration name for which Emacs was built.
3870
3871** The function system-name now tries harder to return a fully qualified
3872domain name.
3873
3874** The variable emacs-major-version holds the major version number
3875of Emacs. (Currently 19.)
3876
3877** The variable emacs-minor-version holds the minor version number
3878of Emacs. (Currently 23.)
3879
3880** The default value of comint-input-autoexpand is now nil.
3881However, Shell mode sets it from the value of shell-input-autoexpand,
3882whose default value is `history'.
3883
3884** The new function set-process-window-size specifies the terminal window
3885size for a subprocess. On some systems it sends the subprocess a signal
3886to let it know that the size has changed.
3887
3888** %P is a new way to display a percentage in the mode line. It
3889displays the percentage of the buffer text that is above the *bottom*
3890of the window (which includes the text visible, in the window as well
3891as the text above the top). It displays `Top' as well as the
3892percentage if the top of the buffer is visible on screen.
3893
3894** %+ in the mode line specs displays `*' if the buffer is modified,
3895and otherwise `-'. It never displays `%', as `%*' would do; whether the
3896buffer is read-only has no effect on %+.
3897
3898** The new functions ffloor, fceiling, fround and ftruncate take a
3899floating point argument and return a floating point result whose value
3900is a nearby integer. ffloor returns the nearest integer below; fceiling,
3901the nearest integer above; ftruncate, the nearest integer in the
3902direction towards zero; fround, the nearest integer.
3903
3904** Setting `print-escape-newlines' to a non-nil value now also makes
3905formfeeds print as ``\f''.
3906
3907** auto-mode-alist now has a new feature. If an element has the form
3908(REGEXP FUNCTION t), and REGEXP matches the file name, then after calling
3909FUNCTION, Emacs deletes the part of the file name that matched REGEXP
3910and then searches auto-mode-alist again for a new match.
3911
3912This is useful for uncompression packages. An entry of this sort for
3913.gz can uncompress the file and then put the uncompressed file in the
3914proper mode according to the name sans .gz.
3915
3916** The new function emacs-pid returns the process ID number of Emacs.
3917
3918** user-login-name now consistently checks the LOGNAME environment
3919variable before USER. user-original-login-name is obsolete, since it
3920provides the same functionality. To ignore the environment variables,
3921use user-real-login-name.
3922
3923** There is a more general way of handling the system-specific X
3924keysyms. Set the variable system-key-alist to an alist containing
3925elements of the form (CODE . SYMBOL), where CODE is the numeric keysym
3926code minus the "vendor specific" bit, and symbol is the name for the
3927function key.
3928
3929** You can use the variable command-line-functions to set up functions
3930to process unrecognized command line arguments. The variable's value
3931should be a list of functions of no arguments. The functions are
3932called successively until one of them returns non-nil.
3933
3934Each function should access the free variables argi (the current
3935argument) and command-line-args-left (the remaining arguments). The
3936function should return non-nil only if it recognizes and processes the
3937argument in argi. If it does so, it may consume following arguments
3938as well by removing them from command-line-args-left.
3939
3940** There's a new way for a magic file name handler to run a primitive
3941and inhibit handling of the file name. Here is how to do it:
3942
3943(let ((inhibit-file-name-handlers
177c0ea7 3944 (cons 'ange-ftp-file-handler
a933dad1
DL
3945 (and (eq inhibit-file-name-operation operation)
3946 inhibit-file-name-handlers)))
3947 (inhibit-file-name-operation operation))
3948 (apply this-operation args))
3949
3950The function find-file-name-handler now takes two arguments. The
3951second argument is OPERATION, the operation for which the handler is
3952being sought.
3953
3954People have suggested that the second argument should be optional, for
3955backward compatibility. It would be nice if that were possible, but
3956it is not. There is simply no way for find-file-name-handler to do
3957the right thing without receiving the proper value for its second
3958argument.
3959
3960** The variable completion-regexp-list affects the completion
3961primitives try-completion and all-completions. They consider
3962only the possible completions that match each regexp in the list.
3963
3964** Case conversion in the function replace-match has been changed.
3965
3966The old behavior was this: if any word in the old text was
3967capitalized, replace-match capitalized each word of the replacement
3968text.
3969
3970The new behavior is this: if the first word in the old text is capitalized,
3971replace-match capitalizes the first word of the replacement text.
3972
3973** You can now specify a case table with CANON non-nil and EQV nil.
3974Then the EQV part of the case table is deduced from CANON.
3975
3976** The new function minibuffer-prompt takes no arguments and returns
3977the current minibuffer prompt string.
3978
3979The new function minibuffer-prompt-width takes no arguments and
3980returns the display width of the minibuffer prompt string.
3981
3982** The new function frame-first-window returns the window at the
3983upper left corner of a given frame.
3984
3985** wholenump is a new alias for natnump.
3986
3987** The variable installation-directory, if non-@code{nil}, names a
3988directory within which to look for the `lib-src' and `etc'
3989subdirectories. This is non-nil when Emacs can't find those
3990directories in their standard installed locations, but can find them
3991near where the Emacs executable was found.
3992
3993** invocation-name and invocation-directory are now variables as well
3994as functions. The variable values are the same values that the
3995functions return: the Emacs program name sans directories, and the
3996directory it was found in. (invocation-directory may be nil, if Emacs
3997can't determine which directory it should be.)
3998
3999** Installation change regarding version number counting.
4000
4001The version number of an Emacs executable contains three numbers.
4002The first two describe the Emacs release and the third increments
4003each time you build Emacs.
4004
4005Now the file version.el contains only the first two version numbers.
4006The third component is now determined on the basis of the names of the
4007existing executable files. This means that version.el is not altered
4008by building Emacs.
9a21d88b
KS
4009
4010
a933dad1
DL
4011\f
4012* Changes in 19.22.
4013
4014** The mouse click M-mouse-2 now inserts the current secondary
4015selection (from Emacs or any other X client) where you click.
4016It does not move point.
4017This command is called mouse-yank-secondary.
4018
4019mouse-kill-secondary no longer has a key binding by default.
4020Clicking M-mouse-3 (mouse-secondary-save-then-kill) twice
4021may be a convenient enough way of killing the secondary selection.
4022Or perhaps there should be a keyboard binding for killing the
4023secondary selection. Any suggestions?
4024
4025** New packages:
4026
4027*** `icomplete' provides character-by-character information
4028about what you could complete if you type TAB.
4029
4030*** `avoid' moves the mouse away from point so that it doesn't hide
4031your typing.
4032
4033*** `shadowfile' helps you update files that are supposed to be stored
4034identically in different places (perhaps on different machines).
4035
4036** C-h p now knows about four additional keywords: data, faces, mouse,
4037and matching.
4038
4039** The key for starting an inferior Lisp process, in Lisp mode,
4040is now C-c C-z instead of C-c C-l.
4041
4042** When the VC commands ask whether to save the buffer, if you say no,
4043they signal an error. This is so that you won't operate on the wrong
4044data.
4045
4046** ISO Accents mode now supports `"s' as a way of typing German sharp s.
4047
4048** By default, comint buffers (including Shell mode and debuggers)
4049no longer try to scroll to keep the cursor on the bottom line.
4050This feature was added in 19.21 but did not work smoothly enough.
4051
4052** Emacs now handles the window manager "delete window" operation.
4053
4054** Display of buffers with text properties is much faster now.
4055
4056** The feature previously announced whereby `insert' does not inherit
4057text properties from surrounding text was not fully implemented
4058before; but now it is. use `insert-and-inherit' if you wish to
4059inherit sticky properties from the surrounding text.
4060
4061** The functions next-property-change, previous-property-change,
4062next-single-property-change, and previous-single-property-change
4063now take one additional optional argument LIMIT that is a position at
4064which to stop scanning. If scan ends without finding the property
4065change sought, these functions return the specified limit.
4066
4067The value returned by previous-single-property-change and
4068previous-property-change, when they do find a change, is now one
4069greater than what it used to be. It is the position between the two
4070characters whose properties differ, which is one greater than the
4071position of the first character found (while scanning back) with
4072different properties.
9a21d88b
KS
4073
4074
a933dad1
DL
4075\f
4076* User editing changes in version 19.21.
4077
4078** ISO Accents mode supports four additional characters:
4079A-with-ring (entered as /A), AE ligature (entered as /E),
4080and their lower-case equivalents.
9a21d88b
KS
4081
4082
a933dad1
DL
4083\f
4084* User editing changes in version 19.20.
4085(See following page for Lisp programming changes.)
4086
4087Note that some of these changes were made subsequent to the Emacs 19.20
4088editions of the Emacs manual and Emacs Lisp manual; therefore, if you
4089have those editions, do read this page.
4090
4091** Dragging with mouse button 1 now puts the selected region
4092in the kill ring so you can paste it into other X applications.
4093
4094** Double and triple clicks with button 1 now behave as in xterm,
4095selecting the word or line surrounding where you click. If you drag
4096after the last click, you can select a range of words or lines.
4097
4098** You can use button 3 to extend a mouse-selected region, as in xterm.
4099This works for regions selected either by dragging Mouse-1 or by
4100multiple-clicking Mouse-1. Clicking Mouse-3 moves the end of the
4101region that is (initially) nearer to where you click.
4102
4103If the selection was first made by multiple-clicking Mouse-1, and thus
4104consists of entire words or lines, Mouse-3 preserves that state.
4105
4106As before, clicking Mouse-3 again in the same place kills the region
4107thus selected.
4108
4109** The secondary selection commands, M-Mouse-1 and M-Mouse-3, have been
4110likewise modified.
4111
4112** You can now search for strings and regexps using the Edit menu bar menu.
4113
4114** You can now access bookmarks using the Bookmark submenu in the File
4115menu in the menu bar.
4116
4117** ISO Accents mode, a buffer-local minor mode, provides a convenient
4118way to type certain non-ASCII characters. It makes the characters `,
4119', ", ^, ~ and / serve as modifiers for the following letter. ` and '
4120add accents, " adds an umlaut or dieresis, ^ adds a circumflex, ~
4121adds a tilde, and / adds a slash to the following letter.
4122
4123If the following character is not a letter, or cannot be modified as
4124requested, then both characters stand for themselves. If you
4125duplicate the modifier accent character, that enters the corresponding
4126ISO non-spacing accent character (thus, '' enters the ISO acute-accent
4127character). To enter a modifier character itself, type it followed by
4128a space.
4129
4130This feature can be used whenever a key sequence is expected: for
4131ordinary insertion, for searching, and for certain command arguments.
4132
4133A few special combinations:
4134
4135~c => c with cedilla
4136~d => d with stroke
4137~< => left guillemot
4138~> => right guillemot
4139
4140** iso-transl.el is a new library that replaces iso-insert.el.
4141It defines C-x 8 as an insertion prefix for the ISO characters
4142between 128 and 255, much like iso-insert, except that iso-transl
4143works even in searches and help commands--wherever a key sequence
4144is expected.
4145
4146To define case-conversion for these characters for ISO 8859/1,
4147load the library iso-syntax. (This is not new.)
4148
4149** M-TAB in Text mode now runs the command ispell-complete-word
4150which performs completion using the spelling dictionary.
4151
177c0ea7 4152The spelling correction submenu now includes this command
a933dad1
DL
4153and another command which completes a word fragment (that is,
4154it doesn't assume that the text to be completed starts at the
4155beginning of a word.
4156
4157** In incremental search, you can use M-y to yank the most recent kill
4158into the search string.
4159
4160** The new function ispell-message checks the spelling of a message
4161you are about to send or post. It ignores text cited from other
4162messages.
4163
4164To automatically check all your outgoing messages, include the
4165following line in your .emacs file:
4166 (setq news-inews-hook (setq mail-send-hook 'ispell-message))
4167
4168** There is now a separate minibuffer history list for the names of
4169extended commands. This history list is used by M-x when reading
4170the command name. The motivation for this is to prevent command
4171names from appearing in the history used for other minibuffer
4172arguments.
4173
4174Note that the history list for entire commands that use the minibuffer
4175is a separate feature. That history list records a command with all
4176its arguments, and you must use C-x ESC ESC to access it.
4177
4178** You can use the new command C-x v ~ VERSION RET to examine a
4179specified version of a file that is maintained with version control.
4180
4181** In Indented Text mode, only blank lines now separate paragraphs.
4182Indented lines continue the paragraph that is in progress. This makes
4183the user option variable adaptive-fill-mode have its intended effect.
4184
4185** Local variable specifications in files for variables whose names end
4186in `-hook' and `-function' are now controlled by the variable
4187`enable-local-eval', just like the `eval' variable.
4188
4189** C-x r j (jump-to-register) when restoring a frame configuration now
4190makes all unwanted frames (existing frames not mentioned in the
4191configuration) invisible.
4192
4193If you want to delete these unwanted frames, use a prefix argument for
4194C-x r j.
4195
4196** You can customize the calendar to display weeks beginning on
4197Monday: set the variable `calendar-week-start-day' to 1.
4198
4199** Rmail changes.
4200
4201If you save messages to a file in Unix format while viewing a message
4202with its whole header, this now copies to the file the entire header
4203of each message copied.
4204
4205** Comint mode changes.
4206
4207C-c C-e shows as much output as possible in the window.
4208C-c RET copies an old input (the one at point)
4209and places the copy after the latest prompt.
4210C-c C-p and C-c C-n move through the buffer, stopping at places
4211where the subshell prompted for input.
4212C-c C-h lists the input history in a `*Help*' buffer.
4213
4214There are new menu bar items for completion/input/output/signal commands.
4215
dfd67a62 4216Input behavior is configurable. Variables control whether some windows
a933dad1
DL
4217showing the buffer scroll to the bottom before insertion. These are
4218`comint-scroll-to-bottom-on-input' and `before-change-function'. By default,
4219insertion causes the selected window to scroll to the bottom before insertion
4220occurs.
4221
4222Subprocess output now keeps point at the end of the buffer in each
4223window individually if point was already at the end of the buffer in
4224that window.
4225
4226If `comint-scroll-show-maximum-output' is non-nil (which is the
4227default), then scrolling due to arrival of output tries to place the
4228last line of text at the bottom line of the window, so as to show as
4229much useful text as possible. (This mimics the scrolling behavior of
4230many terminals.)
4231
4232By setting `comint-scroll-to-bottom-on-output', you can opt for having
4233point jump to the end of the buffer whenever output arrives--no matter
4234where in the buffer point was before. If the value is `this', point
4235jumps in the selected window. If the value is `all', point jumps in
4236each window that shows the comint buffer. If the value is `other',
4237point jumps in all nonselected windows that show the current buffer.
4238The default value is nil, which means point does not jump to the end.
4239
4240Input history insertion is configurable. A variable controls whether only the
4241first instance of successive identical inputs is stored in the input history.
4242This is `comint-input-ignoredups'.
4243
4244Completion (bound to TAB) is now more general. Depending on context,
4245completion now operates on the input history, on command names, or (as
4246before) on filenames.
4247
4248Filename completion is configurable. Variables control whether
4249file/directory suffix characters are added (`comint-completion-addsuffix'),
4250whether shortest completion is acceptable when no further unambiguous
4251completion is possible (`comint-completion-recexact'), and the timing of
4252completion candidate listing (`comint-completion-autolist').
4253
4254Comint mode now provides history expansion. Insert input using `!'
4255and `^', in the same syntax that typical shells use; then type TAB.
4256This searches the comint input history for a matching element,
4257performs substitution if necessary, and places the result in the
4258comint buffer in place of the original input.
4259
4260History references in the input may be expanded before insertion into
4261the input ring, or on input to the interpreter (and therefore
4262visibly). The variable `comint-input-autoexpand' specifies which.
4263
4264You can make the SPC key perform history expansion by binding
4265SPC to the command `comint-magic-space'.
4266
4267The command `comint-dynamic-complete-variable' does variable name
4268completion using the environment variables as set within Emacs. The
4269variables controlling filename completion apply to variable name
4270completion too. This command is normally available through the menu
4271bar.
4272
4273** Shell mode
4274
4275Paragraph motion and marking commands (default bindings M-{, M-}, M-h) operate
4276on output groups (i.e., shell prompt plus associated shell output).
4277
4278TAB now completes commands, as well as file names and expand history.
4279Commands are searched for along the path that Emacs has on startup.
4280
4281C-c C-f now moves forward a command (`shell-forward-command') and
4282C-c C-b now moves backward a command (`shell-backward-command').
4283
4284Command completion is configurable. The variables controlling
4285filename completion in comint mode apply, together with a variable
4286controlling whether to restrict possible completions to only files
4287that are executable (`shell-command-execonly').
4288
4289The input history is initialised from the file name given in the
4290variable `shell-input-ring-file-name'--normally `.history' in your
4291home directory.
4292
4293Directory tracking is more robust. It can cope with command sequences
4294and forked commands, and can detect the failure of directory changing
4295commands in most circumstances. It's still not infallible, of course.
4296
dfd67a62 4297You can now configure the behavior of `pushd'. Variables control
a933dad1
DL
4298whether `pushd' behaves like `cd' if no argument is given
4299(`shell-pushd-tohome'), pop rather than rotate with a numeric argument
4300(`shell-pushd-dextract'), and only add directories to the directory
4301stack if they are not already on it (`shell-pushd-dunique'). The
4302configuration you choose should match the underlying shell, of course.
9a21d88b 4303
a933dad1
DL
4304\f
4305* Emacs Lisp programming changes in Emacs 19.20.
4306
4307** A new function `remove-hook' is now used to remove a hook that you might
4308have added with `add-hook'.
4309
4310** There is now a Lisp pretty-printer in the library `pp'.
4311
4312** The partial Common Lisp support has been entirely reimplemented.
4313
4314** When you insert text using `insert', `insert-before-markers' or
4315`insert-buffer-substring', text properties are no longer inherited
4316from the surrounding text.
4317
4318When you want to inherit text properties, use the new functions
4319`insert-and-inherit' or `insert-before-markers-and-inherit'.
4320
4321The self-inserting character command does do inheritance.
4322
4323** Frame creation hooks.
4324
4325The function make-frame now runs the normal hooks
4326before-make-frame-hook and after-make-frame-hook.
4327
4328** You can now use function-key-map to make a key an alias for other
4329key sequences that can vary depending on circumstances. To do this,
4330give the key a definition in function-key-map which is a function
4331rather than a specific expansion key sequence.
4332
4333If the function reads input itself, it can have the effect of altering
4334the event that follows. For example, here's how to define C-c h to
4335turn the character that follows into a hyper character:
4336
4337(define-key function-key-map "\C-ch" 'hyperify)
4338
4339(defun hyperify (prompt)
4340 (let ((e (read-event)))
4341 (vector (if (numberp e)
4342 (logior (lsh 1 20) e)
4343 (if (memq 'hyper (event-modifiers e))
4344 e
4345 (add-event-modifier "H-" e))))))
4346
4347(defun add-event-modifier (string e)
4348 (let ((symbol (if (symbolp e) e (car e))))
4349 (setq symbol (intern (concat string (symbol-name symbol))))
4350 (if (symbolp e)
4351 symbol
4352 (cons symbol (cdr e)))))
4353
4354The character translation function gets one argument, which is the
4355prompt that was specified in read-key-sequence--or nil if the key
4356sequence is being read by the editor command loop. In most cases
4357you can just ignore the prompt value.
4358
4359** Changes for reading and writing text properties.
4360
4361New low-level Lisp features make it possible to write Lisp programs to
4362save text properties in files, and read text properties from files.
4363You can program any file format you like.
4364
4365The variable `write-region-annotation-functions' should contain a list
4366of functions to be run by `write-region' to encode text properties in
4367some fashion as annotations to the text that is written.
4368
4369Each function in the list is called with two arguments: the start and
4370end of the region to be written. These functions should not alter the
4371contents of the buffer. Instead, they should return lists indicating
4372annotations to write in the file in addition to the text in the
4373buffer.
4374
4375Each function should return a list of elements of the form (POSITION
4376. STRING), where POSITION is an integer specifying the relative
4377position in the text to be written, and STRING is the annotation to
4378add there.
4379
4380Each list returned by one of these functions must be already sorted in
4381increasing order by POSITION. If there is more than one function,
4382`write-region' merges the lists destructively into one sorted list.
4383
4384When `write-region' actually writes the text from the buffer to the
4385file, it intermixes the specified annotations at the corresponding
4386positions. All this takes place without modifying the buffer.
4387
4388The variable `after-insert-file-functions' should contain a list of
4389functions to be run each time a file's contents have been inserted into
4390a buffer. Each function receives one argument, the length of the
4391inserted text; point indicates the start of that text. The function
4392should make whatever changes it wants to make, then return the updated
4393length of the inserted text, as it stands after those changes. The
4394value returned by one function is used as the argument to the next.
4395These functions should always return with point at the beginning of
4396the inserted text.
4397
4398The intended use of `after-insert-file-functions' is for converting
4399some sort of textual annotations into actual text properties. But many
4400other uses may be possible.
4401
4402We now invite users to begin implementing Lisp programs to store and
4403retrieve text properties in files, using these new primitive features,
4404and thus to experiment with various data formats and find good ones.
4405
4406We suggest not trying to handle arbitrary Lisp objects as property
4407names or property values--because a program that general is probably
4408difficult to write, and slow. Instead, choose a set of possible data
4409types that are reasonably flexible, and not too hard to encode.
4410
4411** Comint completion.
4412
4413Currently comint-dynamic-complete-command (and associated variable
4414comint-after-partial-pathname-command) are set by default to complete a
4415filename. Other comint-mode users should have their own functions to achieve
4416this. For example, gud-mode could complete debugger commands. A completion
4417function is provided solely for this reason (comint-dynamic-simple-complete).
4418
4419Other comint-mode users should bind comint-dynamic-complete (shell-mode does
4420already).
4421
4422** Comint history reference expansion
4423
4424Currently comint-input-autoexpand is 'history, which means only expand
4425history on insertion to comint-input-ring. For non-shell modes, this is
4426a strange default, since non-shells will not understand history references.
4427Perhaps it would be better for the variable to be 'input, which means expand
4428on RET.
4429
4430The value 'history might possibly be wrong even for shells, since the
4431expansion will be done both by comint and the underlying shell (except sh, of
4432course). It would be better for expansion to be done by one or the other,
4433not both since they may (ahem) disagree. Since it is silly to put a literal
4434history reference into comint-input-ring, perhaps it would be better for the
4435variable to be 'input too.
4436
4437The reason the variable is not 'input by default is that I was attempting to
4438adhere to The Principle of Least Astonishment. I didn't want to shock users
4439by having their input change in front of their eyes.
4440
4441** Argument delimiters and Comint mode.
4442
4443Currently comint-delimiter-argument-list is '(), which means no strings are
4444to be treated as delimiters and arguments. In shell-mode, this variable is
4445set to shell-delimiter-argument-list, '("|" "&" "<" ">" "(" ")" ";"). Other
4446comint-mode users should set this variable too. For example, a lisp-type
4447mode might want to set this to '("." "(" ")") or some such.
4448
4449** Comint output hook.
4450
4451There is now a hook, comint-output-filter-hook, that is run-hooks'ed by the
4452output filter, comint-output-filter. This is useful for scrolling (see
4453below), but also things like processing output for specific text, output
4454highlighting, etc.
4455
4456So that such output processing may be done efficiently, there is a new
4457variable, comint-last-output-start, that records the position of the start of
4458the lastest output inserted into the buffer (effectively the previous value
4459of process-mark). Output processing functions should process the text
4460between comint-last-output-start (or perhaps the beginning of the line that
4461the position lies on) and process-mark.
4462
4463** Comint scrolling.
4464
4465There is now automatic scrolling of process windows.
4466
4467Currently comint-scroll-show-maximum-output is t, which means when scrolling
4468output put process-mark at the bottom of the window. There is a good case
4469for it to be t, since the user is likely to want to see as much output as
4470possible. But, then again, there is a comint-show-maximum-output command.
4471
4472** Comint history retrieval.
4473
4474The input following point is not deleted when moving around the input history
4475(with M-p etc.). Emacs maintainers may not like this. However, I feel this
4476is a useful feature. The simple remedy is to put end-of-line in before
4477delete-region in comint-previous-matching-input.
4478
4479The input history retrieval commands still wrap-around the input ring, unlike
4480Emacs command history.
9a21d88b
KS
4481
4482
a933dad1
DL
4483\f
4484* Changes in version 19.19.
4485
4486** The new package bookmark.el records named bookmarks: positions that
4487you can jump to. Bookmarks are saved automatically between Emacs
4488sessions.
4489
4490** Another simpler package saveplace.el records your position in each
4491file when you kill its buffer (or kill Emacs), and jumps to the same
4492position when you visit the file again (even in another Emacs
4493session). Use `toggle-save-place' to turn on place-saving in a given file;
4494use (setq-default save-place t) to turn it on for all files.
4495
4496** In Outline mode, you can now customize how to compute the level of a
4497heading line. Set `outline-level' to a function of no arguments which
4498returns the level, assuming point is at the beginning of a heading
4499line.
4500
4501** You can now specify the prefix key to use for Outline minor mode.
4502(The default is C-c.) Set the variable outline-minor-mode-prefix to
4503the key sequence you want to use (as a string or vector).
4504
4505** In Bibtex mode, C-c e has been changed to C-c C-b. This is because
4506C-c followed by a letter is reserved for users.
4507
4508** The `mod' function is no longer an alias for `%', but is a separate function
4509that yields a result with the same sign as the divisor. `floor' now takes an
4510optional second argument, which divides the first argument before the floor is
4511taken.
4512
4513** `%' no longer allows floating point arguments, since the results were often
4514inconsistent with integer `%'.
9a21d88b
KS
4515
4516
a933dad1
DL
4517\f
4518* Changes in version 19.18.
4519
4520** Typing C-z in an iconified Emacs frame now deiconifies it.
4521
4522** hilit19 is a new library for automatic highlighting of parts of the
4523text in the buffer, based on its meaning and context.
4524
4525** Killing no longer sends the killed text to the X clipboard.
4526And large strings are not put in the cut buffer either.
4527The variable x-cut-buffer-max specifies the maximum number of characters
4528to put in the cut buffer.
4529
4530** The new command C-x 5 o (other-frame) selects different frames,
4531successively, in cyclic order. It does for frames what C-x o
4532does for windows.
4533
4534** The command M-ESC (eval-expression) has its own command history.
4535
4536** The commands M-! and M-| for running shell commands have their own
4537command history.
4538
4539** If the directory containing the Emacs executable has a sibling named
4540`lisp', that `lisp' directory is added to the end of `load-path'
4541(provided you don't override the normal value with the EMACSLOADPATH
4542environment variable). This feature may make it easier to move
4543an installed Emacs from place to place.
4544
4545** M-x validate-tex-buffer now records the locations of mismatches
4546found in the `*Occur*' buffer. You can go to that buffer and type C-c
4547C-c to visit a particular mismatch.
4548
4549** There are new commands in Shell mode.
4550
4551C-c C-n and C-c C-p move point to the next or previous shell input line.
4552
4553C-c C-d is now another way to send an end-of-file to the subshell.
4554
4555** Changes to calendar/diary.
4556
4557Time zone data is now determined automatically, including the
4558start/stop days and times of daylight savings time. The code now
4559works correctly almost anywhere in the world.
4560
4561The format of the holiday specifications has changed and IS NO LONGER
4562COMPATIBLE with the old (version 18) format. See the documentation of
4563the variable calendar-holidays for details of the new, improved
4564format.
4565
4566The hook `diary-display-hook' has been split into two:
4567diary-display-hook which should be used ONLY for the display and
4568`diary-hook' which should be used for appointment notification. If
4569diary-display-hook is nil (the default), simple-diary-display is
4570used. This allows the diary hooks to be correctly set with add-hook.
4571
4572The forms used for dates in diary entries and general display are no
4573longer autoloaded, but set at load time; this means they will be set
4574correctly based on values you assign to various variables.
4575
4576** The functions x-rebind-key and x-rebind-keys have been deleted,
4577because you can accomplish the same job by binding keys to keyboard
4578macros.
4579
4580** Emacs now distinguishes double and triple drag events and double and
4581triple button-down events. These work analogously to double and
4582triple click events.
4583
4584Double drag events, if not defined, convert to ordinary click events.
4585Double down events, if not defined, convert first to ordinary down
4586events, which are then discarded if not defined. Triple events that
4587are not defined convert to the corresponding double event; if that is
4588also not defined, it may convert further.
4589
4590** The new function event-click-count returns the number of clicks,
4591from an event which is a list. It is 1 for an ordinary click, drag,
4592or button-down event, 2 for a double event, and 3 or more for a triple
4593event.
4594
4595** The new function previous-frame is like next-frame, but moves
4596around through the set of existing frames in the opposite order.
4597
4598** The post-command-hook now runs even after commands that get an error
4599and return to top level. As a consequence of the same change, this
4600hook also runs before Emacs reads the first command. That might sound
4601paradoxical, as if this hook were the same as the pre-command-hook.
4602Actually, they are not similar; the latter runs before *execution* of
4603a command, but after it has been read.
4604
4605** You can turn off the text property hooks that run when point moves
4606to certain places in the buffer, by binding inhibit-point-motion-hooks
4607to a non-nil value.
4608
4609** Inserting a string with no text properties into the buffer normally
4610inherits the properties of the preceding character. You can now
4611control this inheritance by setting the front-sticky and
4612rear-nonsticky properties of a character.
4613
4614If you make a character's front-sticky property t, then insertion
4615before the character inherits its properties. If you make the
4616rear-nonsticky property t, then insertion after the character does not
4617inherit its properties. You can regard characters as normally being
4618rear-sticky and not front-sticky, and this is why insertion normally
4619inherits from the previous character.
4620
4621If neither side of an insertion is suitably sticky, then the inserted
4622text gets no properties. If both sides are sticky, then the inserted
4623text gets the properties of both sides, with the previous character's
4624properties taking precedence when both sides have a property in
4625common.
4626
4627You can also specify stickiness for individual properties. To do so,
4628use a list of property names as the value of the front-sticky property
4629or the rear-nonsticky property. For example, if a character has a
4630rear-nonsticky property whose value is (face read-only), then
4631insertion after the character will not inherit its face property or
4632read-only property (if any), but will inherit any other properties.
4633
4634The merging of properties when both sides of the insertion are sticky
4635takes place one property at a time. If the preceding character is
4636rear-sticky for the property, and the property is non-nil, it
4637dominates. Otherwise, the following character's property value is
4638used if it is front-sticky for that property.
4639
4640** If you give a character a non-nil `invisible' text property, the
4641character does not appear on the screen. This works much like
4642selective display.
4643
4644The details of this feature are likely to change in future Emacs
4645versions.
4646
4647** In Info, when you go to a node, it runs the normal hook
4648Info-selection-hook.
4649
4650** You can use the new function `invocation-directory' to get the name
4651of the directory containing the Emacs executable that was run.
4652
4653** Entry to the minibuffer runs the normal hook minibuffer-setup-hook.
4654
4655** The new function minibuffer-window-active-p takes one argument, a
4656minibuffer window, and returns t if the window is currently active.
9a21d88b
KS
4657
4658
a933dad1
DL
4659\f
4660* Changes in version 19.17.
4661
177c0ea7 4662** When Emacs displays a list of completions in a buffer,
a933dad1
DL
4663you can select a completion by clicking mouse button 2
4664on that completion.
4665
177c0ea7 4666** Use the command `list-faces-display' to display a list of
a933dad1
DL
4667all the currently defined faces, showing what they look like.
4668
4669** Menu bar items from local maps now come after the usual items.
4670
4671** The Help menu bar item always comes last in the menu bar.
4672
4673** If you enable Font-Lock mode on a buffer containing a program
4674(certain languages such as C and Lisp are supported), everything you
4675type is automatically given a face property appropriate to its
4676syntactic role. For example, there are faces for comments, string
4677constants, names of functions being defined, and so on.
4678
4679** Dunnet, an adventure game, is now available.
4680
177c0ea7
JB
4681** Several major modes now have their own menu bar items,
4682including Dired, Rmail, and Sendmail. We would like to add
a933dad1
DL
4683suitable menu bar items to other major modes.
4684
4685** The key binding C-x a C-h has been eliminated.
4686This is because it got in the way of the general feature of typing
4687C-h after a prefix character. If you want to run
4688inverse-add-global-abbrev, you can use C-x a - or C-x a i g instead.
4689
4690** If you set the variable `rmail-mail-new-frame' to a non-nil value,
4691all the Rmail commands to send mail make a new frame to do it in.
4692When you send the message, or use the menu bar command not to send it,
4693that frame is deleted.
4694
4695** In Rmail, the o and C-o commands are now almost interchangeable.
4696Both commands check the format of the file you specify, and append
4697the message to it in Rmail format if it is an Rmail file, and in
4698inbox file format otherwise. C-o and o are different only when you
4699specify a new file.
4700
4701** The function `copy-face' now takes an optional fourth argument
4702NEW-FRAME. If you specify this, it copies the definition of face
4703OLD-FACE on frame FRAME to face NEW-NAME on frame NEW-FRAME.
4704
4705** A local map can now cancel out one of the global map's menu items.
4706Just define that subcommand of the menu item with `undefined'
4707as the definition. For example, this cancels out the `Buffers' item
4708for the current major mode:
4709
4710 (local-set-key [menu-bar buffer] 'undefined)
4711
4712** To put global items at the end of the menu bar, use the new variable
4713`menu-bar-final-items'. It should be a list of symbols--event types
4714bound in the menu bar. The menu bar items for these symbols are
4715moved to the end.
4716
4717** The list returned by `buffer-local-variables' now contains cons-cell
4718elements of the form (SYMBOL . VALUE) only for buffer-local variables
4719that have values. For unbound buffer-local variables, the variable
4720name (symbol) appears directly as an element of the list.
4721
4722** The `modification-hooks' property of a character no longer affects
4723insertion; it runs only for deletion and modification of the character.
4724
4725To detect insertion, use `insert-in-front-hooks' and
4726`insert-behind-hooks' properties. The former runs when text is
4727inserted immediately preceding the character that has the property;
4728the latter runs when text is inserted immediately following the
4729character.
4730
4731** Buffer modification now runs hooks belonging to overlays as well as
4732hooks belonging to characters. If an overlay has a
4733`modification-hooks' property, it applies to any change to text in the
4734overlay, and any insertion within the overlay. If the overlay has a
4735`insert-in-front-hooks' property, it runs for insertion at the
4736beginning boundary of the overlay. If the overlay has an
4737`insert-behind-hooks' property, it runs for insertion at the end
4738boundary of the overlay.
4739
4740The values of these properties should be lists of functions. Each
4741function is called, receiving as arguments the overlay in question,
4742followed by the bounds of the range being modified.
4743
4744** The new `-name NAME' option directs Emacs to search for its X
4745resources using the name `NAME', and sets the title of the initial
4746frame. This argument was added for consistency with other X clients.
4747
4748** The new `-xrm DATABASE' option tells Emacs to treat the string
4749DATABASE as the text of an X resource database. Emacs searches
4750DATABASE for resource values, in addition to the usual places. This
4751argument was added for consistency with other X clients.
4752
4753** Emacs now searches for X resources in the files specified by the
4754XFILESEARCHPATH, XUSERFILESEARCHPATH, and XAPPLRESDIR environment
4755variables, emulating the functionality provided by programs written
4756using Xt. Because of this change, Emacs will now notice system-wide
4757application defaults files, as other X clients do.
4758
4759XFILESEARCHPATH and XUSERFILESEARCHPATH should be a list of file names
4760separated by colons; XAPPLRESDIR should be a list of directory names
4761separated by colons.
4762
4763Emacs searches for X resources
4764 + specified on the command line, with the `-xrm RESOURCESTRING'
4765 option,
4766 + then in the value of the XENVIRONMENT environment variable,
4767 - or if that is unset, in the file named ~/.Xdefaults-HOSTNAME if it exists
4768 (where HOSTNAME is the hostname of the machine Emacs is running on),
4769 + then in the screen-specific and server-wide resource properties
4770 provided by the server,
4771 - or if those properties are unset, in the file named ~/.Xdefaults
4772 if it exists,
4773 + then in the files listed in XUSERFILESEARCHPATH,
4774 - or in files named LANG/Emacs in directories listed in XAPPLRESDIR
4775 (where LANG is the value of the LANG environment variable), if
4776 the LANG environment variable is set,
4777 - or in files named Emacs in the directories listed in XAPPLRESDIR
4778 - or in ~/LANG/Emacs (if the LANG environment variable is set),
4779 - or in ~/Emacs,
4780 + then in the files listed in XFILESEARCHPATH.
4781
4782The paths in the variables XFILESEARCHPATH, XUSERFILESEARCHPATH, and
4783XAPPLRESDIR may contain %-escapes (like the control strings passed to
8c1cc9e8 4784the Emacs lisp `format' function or C printf function), which Emacs expands.
a933dad1
DL
4785
4786%N is replaced by the string "Emacs" wherever it occurs.
4787%T is replaced by "app-defaults" wherever it occurs.
4788%S is replaced by the empty string wherever it occurs.
4789%L and %l are replaced by the value of the LANG environment variable; if LANG
4790 is not set, Emacs does not use that directory or file name at all.
4791%C is replaced by the value of the resource named "customization"
4792 (class "Customization"), as retrieved from the server's resource
4793 properties or the user's ~/.Xdefaults file, or the empty string if
4794 that resource doesn't exist.
4795
4796So, for example,
4797 if XFILESEARCHPATH is set to the value
4798 "/usr/lib/X11/%L/%T/%N%C:/usr/lib/X11/%T/%N%C:/usr/lib/X11/%T/%N",
4799 and the LANG environment variable is set to
4800 "english",
4801 and the customization resource is the string
4802 "-color",
4803then, in the last step of the process described above, Emacs checks
4804for resources in the first of the following files that is present and
4805readable:
4806 /usr/lib/X11/english/app-defaults/Emacs-color
4807 /usr/lib/X11/app-defaults/Emacs-color
4808 /usr/lib/X11/app-defaults/Emacs
4809If the LANG environment variable is not set, then Emacs never uses the
4810first element of the path, "/usr/lib/X11/%L/%T/%N%C", because it
4811contains the %L escape.
4812
4813If XFILESEARCHPATH is unset, Emacs uses the default value
4814"/usr/lib/X11/%L/app-defaults/Emacs%C:\
4815/usr/lib/X11/app-defaults/Emacs%C:\
4816/usr/lib/X11/%L/app-defaults/Emacs:\
4817/usr/lib/X11/app-defaults/Emacs"
4818
4819This feature was added for consistency with other X applications.
4820
4821** The new function `text-property-any' scans the region of text from
4822START to END to see if any character's property PROP is `eq' to
4823VALUE. If so, it returns the position of the first such character.
4824Otherwise, it returns nil.
4825
4826The optional fifth argument, OBJECT, specifies the string or buffer to
4827be examined.
4828
4829** The new function `text-property-not-all' scans the region of text from
4830START to END to see if any character's property PROP is not `eq' to
4831VALUE. If so, it returns the position of the first such character.
4832Otherwise, it returns nil.
4833
4834The optional fifth argument, OBJECT, specifies the string or buffer to
4835be examined.
4836
4837** The function `delete-windows-on' now takes an optional second
4838argument FRAME, which specifies which frames it should affect.
4839 + If FRAME is nil or omitted, then `delete-windows-on' deletes windows
4840 showing BUFFER (its first argument) on all frames.
4841 + If FRAME is t, then `delete-windows-on' only deletes windows on the
4842 selected frame; other frames are unaffected.
4843 + If FRAME is a frame, then `delete-windows-on' only deletes windows on
4844 the given frame; other frames are unaffected.
4845
9a21d88b 4846
a933dad1
DL
4847\f
4848* Changes in version 19.16.
4849
4850** When dragging the mouse to select a region, Emacs now highlights the
4851region as you drag (if Transient Mark mode is enabled). If you
4852continue the drag beyond the boundaries of the window, Emacs scrolls
4853the window at a steady rate until you either move the mouse back into
4854the window or release the button.
4855
4856** RET now exits `query-replace' and `query-replace-regexp'; this makes it
4857more consistent with the incremental search facility, which uses RET
4858to end the search.
4859
4860** In C mode, C-c C-u now runs c-up-conditional.
4861C-c C-n and C-c C-p now run new commands that move forward
4862and back over balanced sets of C conditionals (c-forward-conditional
4863and c-backward-conditional).
4864
4865** The Edit entry in the menu bar has a new alternative:
4866"Choose Next Paste". It gives you a menu showing the various
177c0ea7 4867strings in the kill ring; click on one to select it as the text
a933dad1
DL
4868to be yanked ("pasted") the next time you yank.
4869
4870** If you enable Transient Mark mode and set `mark-even-if-inactive' to
4871non-nil, then the region is highlighted in a transient fashion just as
4872normally in Transient Mark mode, but the mark really remains active
4873all the time; commands that use the region can be used even if the
4874region highlighting turns off.
4875
4876** If you type C-h after a prefix key, it displays the bindings
4877that start with that prefix.
4878
4879** The VC package now searches for version control commands in the
4880directories named by the variable `vc-path'; its value should be a
4881list of strings.
4882
4883** If you are visiting a file that has locks registered under RCS,
4884VC now displays each lock's owner and version number in the mode line
4885after the string `RCS'. If there are no locks, VC displays the head
4886version number.
4887
4888** When using X, if you load the `paren' library, Emacs automatically
4889underlines or highlights the matching paren whenever point is
4890next to the outside of a paren. When point is before an open-paren,
4891this shows the matching close; when point is after a close-paren,
4892this shows the matching open.
4893
4894** The new function `define-key-after' is like `define-key',
4895but takes an extra argument AFTER. It places the newly defined
4896binding after the binding for the event AFTER.
4897
4898** `accessible-keymaps' now takes an optional second argument, PREFIX.
4899If PREFIX is non-nil, it means the value should include only maps for
4900keys that start with PREFIX.
4901
4902`describe-bindings' also accepts an optional argument PREFIX which
4903means to describe only the keys that start with PREFIX.
4904
4905** The variable `prefix-help-command' hold a command to run to display help
4906whenever the character `help-char' follows a prefix key and does not have
4907a key binding in that context.
4908
4909** Emacs now detects double- and triple-mouse clicks. A single mouse
4910click produces a pair events of the form:
4911 (down-mouse-N POSITION)
4912 (mouse-N POSITION)
4913Clicking the same mouse button again, soon thereafter and at the same
4914location, produces another pair of events of the form:
4915 (down-mouse-N POSITION)
4916 (double-mouse-N POSITION 2)
4917Another click will produce an event pair of the form:
4918 (down-mouse-N POSITION)
4919 (triple-mouse-N POSITION 3)
4920All the POSITIONs in such a sequence would be identical, except for
4921their timestamps.
4922
4923To count as double- and triple-clicks, mouse clicks must be at the
4924same location as the first click, and the number of milliseconds
4925between the first release and the second must be less than the value
4926of the lisp variable `double-click-time'. Setting `double-click-time'
4927to nil disables multi-click detection. Setting it to t removes the
4928time limit; Emacs then detects multi-clicks by position only.
4929
4930If `read-key-sequence' finds no binding for a double-click event, but
4931the corresponding single-click event would be bound,
4932`read-key-sequence' demotes it to a single-click. Similarly, it
4933demotes unbound triple-clicks to double- or single-clicks. This means
4934you don't have to distinguish between single- and multi-clicks if you
4935don't want to.
4936
4937Emacs reports all clicks after the third as `triple-mouse-N' clicks,
4938but increments the click count after POSITION. For example, a fourth
4939click, soon after the third and at the same location, produces a pair
4940of events of the form:
4941 (down-mouse-N POSITION)
4942 (triple-mouse-N POSITION 4)
4943
4944** The way Emacs reports positions of mouse events has changed
4945slightly. If a mouse event includes a position list of the form:
4946 (WINDOW (PLACE-SYMBOL) (COLUMN . ROW) TIMESTAMP)
4947this denotes exactly the same position as the list:
4948 (WINDOW PLACE-SYMBOL (COLUMN . ROW) TIMESTAMP)
4949That is, the event occurred over a non-textual area of the frame,
4950specified by PLACE-SYMBOL, a symbol like `mode-line' or
4951`vertical-scroll-bar'.
4952
4953Enclosing PLACE-SYMBOL in a singleton list does not change the
4954position denoted, but the `read-key-sequence' function uses the
4955presence or absence of the singleton list to tell whether or not it
4956should prefix the event with its place symbol.
4957
4958Normally, `read-key-sequence' prefixes mouse events occurring over
4959non-textual areas with their PLACE-SYMBOLs, to select the sub-keymap
4960appropriate for the event; for example, clicking on the mode line
4961produces a sequence like
4962 [mode-line (mouse-1 POSN)]
4963However, if lisp code elects to unread the resulting key sequence by
4964placing it in the `unread-command-events' variable, it is important
4965that `read-key-sequence' not insert the prefix symbol again; that
4966would produce a malformed key sequence like
4967 [mode-line mode-line (mouse-1 POSN)]
4968For this reason, `read-key-sequence' encloses the event's PLACE-SYMBOL
4969in a singleton list when it first inserts the prefix, but doesn't
4970insert the prefix when processing events whose PLACE-SYMBOLs are
4971already thus enclosed.
4972
9a21d88b 4973
a933dad1
DL
4974\f
4975* Changes in version 19.15.
4976
4977** `make-frame-visible', which uniconified frames, is now a command,
4978and thus may be bound to a key. This makes sense because frames
4979respond to user input while iconified.
4980
4981** You can now use Meta mouse clicks to set and use the "secondary
4982selection". You can drag M-Mouse-1 across the region you want to
4983select. Or you can press M-Mouse-1 at one end and M-Mouse-3 at the
4984other (this also copies the text to the kill ring). Repeating M-Mouse-3
4985again at the same place kills that text.
4986
4987M-Mouse-2 kills the secondary selection.
4988
4989Setting the secondary selection does not move point or the mark. It
4990is possible to make a secondary selection that does not all fit on the
4991screen, by using M-Mouse-1 at one end, scrolling, then using M-Mouse-3
4992at the other end.
4993
4994Emacs has only one secondary selection at any time. Starting to set
4995a new one cancels any previous one. The secondary selection displays
4996using a face named `secondary-selection'.
4997
4998** There's a new way to request use of Supercite (sc.el). Do this:
4999
5000 (add-hook 'mail-citation-hook 'sc-cite-original)
5001
5002Currently this works with Rmail. In the future, other Emacs based
5003mail-readers should be modified to understand this hook also.
5004In the mean time, you should keep doing what you have done in the past
5005for those other mail readers.
5006
5007** When a regular expression contains `\(...\)' inside a repetition
5008operator such as `*' or `+', and you ask about the range that was matched
5009using `match-beginning' and `match-end', the range you get corresponds
5010to the *last* repetition *only*. In Emacs 18, you would get a range
5011corresponding to all the repetitions.
5012
5013If you want to get a range corresponding to all the repetitions,
5014put a `\(...\)' grouping *outside* the repetition operator. This
5015is the syntax that corresponds logically to the desired result, and
5016it works the same in Emacs 18 and Emacs 19.
5017
5018(This change actually took place earlier, but we didn't know about it
5019and thus didn't document it.)
9a21d88b
KS
5020
5021
a933dad1
DL
5022\f
5023* Changes in version 19.14.
5024
5025** To modify read-only text, bind the variable `inhibit-read-only'
5026to a non-nil value. If the value is t, then all reasons that might
5027make text read-only are inhibited (including `read-only' text properties).
5028If the value is a list, then a `read-only' property is inhibited
5029if it is `memq' in the list.
5030
5031** If you call `get-buffer-window' passing t as its second argument, it
5032will only search for windows on visible frames. Previously, passing t
5033as the secord argument caused `get-buffer-window' to search all
5034frames, visible or not.
5035
5036** If you call `other-buffer' with a nil or omitted second argument, it
5037will ignore buffers displayed windows on any visible frame, not just
5038the selected frame.
5039
5040** You can specify a window or a frame for C-x # to use when
5041selects a server buffer. Set the variable server-window
5042to the window or frame that you want.
5043
5044** The command M-( now inserts spaces outside the open-parentheses in
5045some cases--depending on the syntax classes of the surrounding
5046characters. If the variable `parens-dont-require-spaces' is non-nil,
5047it inhibits insertion of these spaces.
5048
5049** The GUD package now supports the debugger known as xdb on HP/UX
5050systems. Use M-x xdb. The variable `gud-xdb-directories' lets you
5051specify a list of directories to search for source code.
5052
5053** If you are using the mailabbrev package, you should note that its
5054function for defining an alias is now called `define-mail-abbrev'.
5055This package no longer contains a definition for `define-mail-alias';
5056that name is used only in mailaliases.
5057
5058** Inserted characters now inherit the properties of the text before
5059them, by default, rather than those of the following text.
5060
5061** The function `insert-file-contents' now takes optional arguments BEG
5062and END that specify which part of the file to insert. BEG defaults to
50630 (the beginning of the file), and END defaults to the end of the file.
5064
5065If you specify BEG or END, then the argument VISIT must be nil.
9a21d88b
KS
5066
5067
a933dad1
DL
5068\f
5069* Changes in version 19.13.
5070
5071** Magic file names can now handle the `load' operation.
5072
5073** Bibtex mode now sets up special entries in the menu bar.
5074
5075** The incremental search commands C-w and C-y, which copy text from
5076the buffer into the search string, now convert it to lower case
5077if you are in a case-insensitive search. This is to avoid making
5078the search a case-sensitive one.
5079
5080** GNUS now knows your time zone automatically if Emacs does.
5081
5082** Hide-ifdef mode no longer defines keys of the form
5083C-c LETTER, since those keys are reserved for users.
5084Those commands have been moved to C-c M-LETTER.
5085We may move them again for greater consistency with other modes.
9a21d88b
KS
5086
5087
a933dad1
DL
5088\f
5089* Changes in version 19.12.
5090
5091** You can now make many of the sort commands ignore case by setting
5092`sort-fold-case' to a non-nil value.
9a21d88b
KS
5093
5094
a933dad1
DL
5095\f
5096* Changes in version 19.11.
5097
5098** Supercite is installed.
5099
5100** `write-file-hooks' functions that return non-nil are responsible
5101for making a backup file if you want that to be done.
5102To do so, execute the following code:
5103
5104 (or buffer-backed-up (backup-buffer))
5105
5106You might wish to save the file modes value returned by
5107`backup-buffer' and use that to set the mode bits of the file
5108that you write. This is what `basic-save-buffer' does when
5109it writes a file in the usual way.
5110
5111(This is not actually new, but wasn't documented before.)
9a21d88b
KS
5112
5113
a933dad1
DL
5114\f
5115* Changes in version 19.10.
5116
5117** The command `repeat-complex-command' is now on C-x ESC ESC.
5118It used to be bound to C-x ESC.
5119
5120The reason for this change is to make function keys work after C-x.
5121
5122** The variable `highlight-nonselected-windows' now controls whether
5123the region is highlighted in windows other than the selected window
5124(in Transient Mark mode only, of course, and currently only when
5125using X).
9a21d88b
KS
5126
5127
a933dad1
DL
5128\f
5129* Changes in version 19.8.
5130
5131** It is now simpler to tell Emacs to display accented characters under
5132X windows. M-x standard-display-european toggles the display of
5133buffer text according to the ISO Latin-1 standard. With a prefix
5134argument, this command enables European character display iff the
5135argument is positive.
5136
5137** The `-i' command-line argument tells Emacs to use a picture of the
5138GNU gnu as its icon, instead of letting the window manager choose an
5139icon for it. This option used to insert a file into the current
5140buffer; use `-insert' to do that now.
5141
5142** The `configure' script now supports `--prefix' and `--exec-prefix'
5143options.
5144
5145The `--prefix=PREFIXDIR' option specifies where the installation process
5146should put emacs and its data files. This defaults to `/usr/local'.
5147- Emacs (and the other utilities users run) go in PREFIXDIR/bin
5148 (unless the `--exec-prefix' option says otherwise).
5149- The architecture-independent files go in PREFIXDIR/lib/emacs/VERSION
5150 (where VERSION is the version number of Emacs, like `19.7').
5151- The architecture-dependent files go in
5152 PREFIXDIR/lib/emacs/VERSION/CONFIGURATION
5153 (where CONFIGURATION is the configuration name, like mips-dec-ultrix4.2),
5154 unless the `--exec-prefix' option says otherwise.
5155
5156The `--exec-prefix=EXECDIR' option allows you to specify a separate
5157portion of the directory tree for installing architecture-specific
5158files, like executables and utility programs. If specified,
5159- Emacs (and the other utilities users run) go in EXECDIR/bin, and
5160- The architecture-dependent files go in
5161 EXECDIR/lib/emacs/VERSION/CONFIGURATION.
5162EXECDIR/bin should be a directory that is normally in users' PATHs.
5163
5164** When running under X, the new lisp function `x-list-fonts'
5165allows code to find out which fonts are available from the X server.
5166The first argument PATTERN is a string, perhaps with wildcard characters;
5167 the * character matches any substring, and
5168 the ? character matches any single character.
5169 PATTERN is case-insensitive.
5170If the optional arguments FACE and FRAME are specified, then
5171`x-list-fonts' returns only fonts the same size as FACE on FRAME.
5172
5173
5174\f
5175* Changes in version 19.
5176
5177** When you kill buffers, Emacs now returns memory to the operating system,
5178thus reducing the size of the Emacs process. All the space that you free
5179up by killing buffers can now be reused for other buffers no matter what
5180their sizes, or reused by other processes if Emacs doesn't need it.
5181
5182** Emacs now does garbage collection and auto saving while it is waiting
5183for input, which often avoids the need to do these things while you
5184are typing.
5185
5186The variable `auto-save-timeout' says how many seconds Emacs should
5187wait, after you stop typing, before it does an auto save and a garbage
5188collection.
5189
5190** If auto saving detects that a buffer has shrunk greatly, it refrains
5191from auto saving that buffer and displays a warning. Now it also turns
5192off Auto Save mode in that buffer, so that you won't get the same
5193warning again.
5194
5195If you reenable Auto Save mode in that buffer, Emacs will start saving
5196it again with no further warnings.
5197
5198** A new minor mode called Line Number mode displays the current line
5199number in the mode line, updating it as necessary when you move
5200point.
5201
5202However, if the buffer is very large (larger than the value of
5203`line-number-display-limit'), then the line number doesn't appear.
5204This is because computing the line number can be painfully slow if the
5205buffer is very large.
5206
5207** You can quit while Emacs is waiting to read or write files.
5208
5209** The arrow keys now have default bindings to move in the appropriate
177c0ea7 5210directions.
a933dad1
DL
5211
5212** You can suppress next-line's habit of inserting a newline when
5213called at the end of a buffer by setting next-line-add-newlines to nil
5214(it defaults to t).
5215
5216** You can now get back recent minibuffer inputs conveniently. While
5217in the minibuffer, type M-p to fetch the next earlier minibuffer
5218input, and use M-n to fetch the next later input.
5219
5220There are also commands to search forward or backward through the
5221history for history elements that match a regular expression. M-r
5222searches older elements in the history, while M-s searches newer
5223elements. By special dispensation, these commands can always use the
5224minibuffer to read their arguments even though you are already in the
5225minibuffer when you issue them.
5226
5227The history feature is available for all uses of the minibuffer, but
5228there are separate history lists for different kinds of input. For
5229example, there is a list for file names, used by all the commands that
5230read file names. There is a list for arguments of commands like
5231`query-replace'. There are also very specific history lists, such
5232as the one that `compile' uses for compilation commands.
5233
5234** You can now display text in a mixture of fonts and colors, using the
5235"face" feature, together with the overlay and text property features.
5236See the Emacs Lisp manual for details. The Emacs Users Manual describes
5237how to change the colors and font of standard predefined faces.
5238
5239** You can refer to files on other machines using special file name syntax:
5240
5241/HOST:FILENAME
5242/USER@HOST:FILENAME
5243
5244When you do this, Emacs uses the FTP program to read and write files on
5245the specified host. It logs in through FTP using your user name or the
5246name USER. It may ask you for a password from time to time; this
5247is used for logging in on HOST.
5248
5249** Some C-x key bindings have been moved onto new prefix keys.
5250
5251C-x r is a prefix for registers and rectangles.
5252C-x n is a prefix for narrowing.
5253C-x a is a prefix for abbrev commands.
5254
5255C-x r C-SPC
5256C-x r SPC point-to-register (Was C-x /)
5257C-x r j jump-to-register (Was C-x j)
5258C-x r s copy-to-register (Was C-x x)
5259C-x r i insert-register (Was C-x g)
5260C-x r r copy-rectangle-to-register (Was C-x r)
5261C-x r k kill-rectangle
5262C-x r y yank-rectangle
5263C-x r o open-rectangle
5264C-x r f frame-configuration-to-register
5265 (This saves the state of all windows in all frames.)
5266C-x r w window-configuration-to-register
5267 (This saves the state of all windows in the selected frame.)
5268
5269(Use C-x r j to restore a configuration saved with C-x r f or C-x r w.)
5270
5271C-x n n narrow-to-region (Was C-x n)
5272C-x n p narrow-to-page (Was C-x p)
5273C-x n w widen (Was C-x w)
5274
5275C-x a l add-mode-abbrev (Was C-x C-a)
5276C-x a g add-global-abbrev (Was C-x +)
5277C-x a i l inverse-add-mode-abbrev (Was C-x C-h)
5278C-x a i g inverse-add-global-abbrev (Was C-x -)
5279C-x a e expand-abbrev (Was C-x ')
5280
5281(The old key bindings C-x /, C-x j, C-x x and C-x g
5282have not yet been removed.)
5283
5284** You can put a file name in a register to be able to visit the file
5285quickly. Do this:
5286
5287 (set-register ?CHAR '(file . NAME))
5288
5289where NAME is the file name as a string. Then C-x r j CHAR finds that
5290file.
5291
5292This is useful for files that you need to visit frequently,
5293but that you don't want to keep in buffers all the time.
5294
5295** The keys M-g (fill-region) and C-x a (append-to-buffer)
5296have been eliminated.
5297
5298** The new command `string-rectangle' inserts a specified string on
5299each line of the region-rectangle.
5300
5301** C-x 4 r is now `find-file-read-only-other-window'.
5302
5303** C-x 4 C-o is now `display-buffer', which displays a specified buffer
5304in another window without selecting it.
5305
5306** Picture mode has been substantially improved. The picture editing commands
5307now arrange for automatic horizontal scrolling to keep point visible
5308when editing a wide buffer with truncate-lines on. Picture-mode
5309initialization now does a better job of rebinding standard commands;
5310it finds not just their normal keybindings, but any function keys
5311attached to them.
5312
5313** If you enable Transient Mark mode, then the mark becomes "inactive"
5314after every command that modifies the buffer. While the mark is
5315active, the region is highlighted (under X, at least). Most commands
5316that use the mark give an error if the mark is inactive, but you can
5317use C-x C-x to make it active again. This feature is also sometimes
5318known as "Zmacs mode".
5319
5320** Outline mode is now available as a minor mode. This minor mode can
5321combine with any major mode; it substitutes the C-c commands of
5322Outline mode for those of the major mode. Use M-x outline-minor-mode
5323to enable and disable the new mode.
5324
5325M-x outline-mode is unchanged; it still switches to Outline mode as a
5326major mode.
5327
5328** The default setting of `version-control' comes from the environment
5329variable VERSION_CONTROL.
5330
5331** The user option for controlling whether files can set local
5332variables is now called `enable-local-variables'. A value of t means
5333local-variables lists are obeyed; nil means they are ignored; anything
5334else means query the user.
5335
5336The user option for controlling use of the `eval' local variable is
5337now called is `enable-local-eval'; its values are interpreted like
5338those of `enable-local-variables'.
5339
5340** X Window System changes:
5341
5342C-x 5 C-f and C-x 5 b switch to a specified file or buffer in a new
5343frame. Likewise, C-x 5 m starts outgoing mail in another frame, and
5344C-x 5 . finds a tag in another frame.
5345
5346When you are using X, C-z now iconifies the selected frame.
5347
5348Emacs can now exchange text with other X applications. Killing or
5349copying text in Emacs now makes that text available for pasting into
5350other X applications. The Emacs yanking commands now insert the
5351latest selection set by other applications, and add the text to the
5352kill ring. The Emacs commands for selecting and inserting text with
5353the mouse now use the kill ring in the same way the keyboard killing
5354and yanking commands do.
5355
5356The option to specify the title for the initial frame is now `-name NAME'.
5357There is currently no way to specify an icon title; perhaps we will add
5358one in the future.
5359
5360** Undoing a deletion now puts point back where it was before the
5361deletion.
5362
5363** The variables that control how much undo information to save have
5364been renamed to `undo-limit' and `undo-strong-limit'. They used to be
5365called `undo-threshold' and `undo-high-threshold'.
5366
5367** You can now use kill commands in read-only buffers. They don't
5368actually change the buffer, and Emacs will beep and warn you that the
5369buffer is read-only, but they do copy the text you tried to kill into
5370the kill ring, so you can yank it into other buffers.
5371
5372** C-o inserts the fill-prefix on the newly created line. The command
5373M-^ deletes the prefix (if it occurs) after the newline that it
5374deletes.
5375
5376** C-M-l now runs the command `reposition-window'. It scrolls the
5377window heuristically in a way designed to get useful information onto
5378the screen.
5379
5380** C-M-r is now reverse incremental regexp search.
5381
5382** M-z now kills through the target character. In version 18, it
5383killed up to but not including the target character.
5384
5385** M-! now runs the specified shell command asynchronously if it
5386ends in `&' (just as the shell does).
5387
5388** C-h C-f and C-h C-k are new help commands that display the Info
5389node for a given Emacs function name or key sequence, respectively.
5390
5391** The C-h p command system lets you find Emacs Lisp packages by
5392topic keywords. Here is a partial list of package categories:
5393
5394abbrev abbreviation handling, typing shortcuts, macros
5395bib code related to the bib bibliography processor
5396c C and C++ language support
5397calendar calendar and time management support
5398comm communications, networking, remote access to files
5399docs support for Emacs documentation
5400emulations emulations of other editors
5401extensions Emacs Lisp language extensions
5402games games, jokes and amusements
5403hardware support for interfacing with exotic hardware
5404help support for on-line help systems
5405i14n internationalization and alternate character-set support
5406internal code for Emacs internals, build process, defaults
5407languages specialized modes for editing programming languages
5408lisp Lisp support, including Emacs Lisp
5409local code local to your site
5410maint maintenance aids for the Emacs development group
5411mail modes for electronic-mail handling
5412news support for netnews reading and posting
5413processes process, subshell, compilation, and job control support
5414terminals support for terminal types
5415tex code related to the TeX formatter
5416tools programming tools
5417unix front-ends/assistants for, or emulators of, UNIX features
5418vms support code for vms
5419wp word processing
5420
5421More will be added soon.
5422
5423** The command to split a window into two side-by-side windows is now
5424C-x 3. It was C-x 5.
5425
5426** M-. (find-tag) no longer has any effect on what M-, will do
5427subsequently. You can no longer use M-, to find the next similar tag;
5428you must use M-. with a prefix argument, instead.
5429
5430The motive for this change is so that you can more reliably use
5431M-, to resume a suspended `tags-search' or `tags-query-replace'.
5432
5433** C-x s (`save-some-buffers') now gives you more options when it asks
5434whether to save a particular buffer. In addition to `y' or `n', you
5435can answer `!' to save all the remaining buffers, `.' to save this
5436buffer but not save any others, ESC to stop saving and exit the
177c0ea7 5437command, and C-h to get help. These options are analogous to those
a933dad1
DL
5438of `query-replace'.
5439
5440** M-x make-symbolic-link does not expand its first argument.
5441This lets you make a link with a target that is a relative file name.
5442
5443** M-x add-change-log-entry and C-x 4 a now automatically insert the
5444name of the file and often the name of the function that you changed.
5445They also handle grouping of entries.
5446
5447There is now a special major mode for editing ChangeLog files. It
5448makes filling work conveniently. Each bunch of grouped entries is one
5449paragraph, and each collection of entries from one person on one day
5450is considered a page.
5451
5452** The `comment-region' command adds comment delimiters to the lines that
5453start in the region, thus commenting them out. With a negative argument,
5454it deletes comment delimiters from the lines in the region--this cancels
5455the effect of `comment-region' without an argument.
5456
5457With a positive argument, `comment-region' adds comment delimiters
5458but duplicates the last character of the comment start sequence as many
5459times as the argument specifies. This is a way of calling attention to
5460the comment. In Lisp, you should use an argument at least two, because
5461the indentation convention for single semicolon comments does not leave
5462them at the beginning of a line.
5463
5464** If `split-window-keep-point' is non-nil, C-x 2 tries to avoid
5465shifting any text on the screen by putting point in whichever window
5466happens to contain the screen line the cursor is already on.
5467The default is that `split-window-keep-point' is non-nil on slow
5468terminals.
5469
5470** M-x super-apropos is like M-x apropos except that it searches both
5471Lisp symbol names and documentation strings for matches. It describes
5472every symbol that has a match in either the symbol's name or its
5473documentation.
5474
5475Both M-x apropos and M-x super-apropos take an optional second
5476argument DO-ALL which controls the more expensive part of the job.
5477This includes looking up and printing the key bindings of all
5478commands. It also includes checking documentation strings in
5479super-apropos. DO-ALL is nil by default; use a prefix arg to make it
5480non-nil.
5481
5482** M-x revert-buffer no longer offers to revert from a recent auto-save
5483file unless you give it a prefix argument. Otherwise it always
5484reverts from the real file regardless of whether there has been an
5485auto-save since thenm. (Reverting from the auto-save file is no longer
5486very useful now that the undo capacity is larger.)
5487
5488** M-x recover-file no longer turns off Auto Save mode when it reads
5489the last Auto Save file.
5490
5491** M-x rename-buffer, if you give it a prefix argument,
5492avoids errors by modifying the new name to make it unique.
5493
5494** M-x rename-uniquely renames the current buffer to a similar name
5495with a numeric suffix added to make it both different and unique.
5496
5497One use of this command is for creating multiple shell buffers.
5498If you rename your shell buffer, and then do M-x shell again, it
5499makes a new shell buffer. This method is also good for mail buffers,
5500compilation buffers, and any Emacs feature which creates a special
5501buffer with a particular name.
5502
5503** M-x compare-windows with a prefix argument ignores changes in whitespace.
5504If `compare-ignore-case' is non-nil, then differences in case are also
5505ignored.
5506
5507** `backward-paragraph' is now bound to M-{ by default, and `forward-paragraph'
5508to M-}. Originally, these commands were bound to M-[ and M-], but they were
5509running into conflicts with the use of function keys. On many terminals,
5510function keys send a sequence beginning ESC-[, so many users have defined this
5511as a prefix key.
5512
5513** C-x C-u (upcase-region) and C-x C-l (downcase-region) are now disabled by
5514default; these commands seem to be often hit by accident, and can be
5515quite destructive if their effects are not noticed immediately.
5516
5517** The function `erase-buffer' is now interactive, but disabled by default.
5518
5519** When visiting a new file, Emacs attempts to abbreviate the file's
5520path using the symlinks listed in `directory-abbrev-alist'.
5521
5522** When you visit the same file in under two names that translate into
5523the same name once symbolic links are handled, Emacs warns you that
5524you have two buffers for the same file.
5525
5526** If you wish to avoid visiting the same file in two buffers under
5527different names, set the variable `find-file-existing-other-name'
5528non-nil. Then `find-file' uses the existing buffer visiting the file,
5529no matter which of the file's names you specify.
5530
5531** If you set `find-file-visit-truename' non-nil, then the file name
5532recorded for a buffer is the file's truename (in which all symbolic
5533links have been removed), rather than the name you specify. Setting
5534`find-file-visit-truename' also implies the effect of
5535`find-file-existing-other-name'.
5536
5537** C-x C-v now inserts the entire current file name in the minibuffer.
5538This is convenient if you made a small mistake in typing it. Point
5539goes after the last slash, before the last file name component, so if
5540you want to replace it entirely, you can use C-k right away to delete
5541it.
5542
5543** Commands such as C-M-f in Lisp mode now ignore parentheses within comments.
5544
5545** C-x q now uses ESC to terminate all iterations of the keyboard
5546macro, rather than C-d as before.
5547
5548** Use the command `setenv' to set an individual environment variable
5549for Emacs subprocesses. Specify a variable name and a value, both as
5550strings. This command applies only to subprocesses yet to be
5551started.
5552
5553** Use `rot13-other-window' to examine a buffer with rot13.
5554
5555This command does not change the text in the buffer. Instead, it
5556creates a window with a funny display table that applies the code when
5557displaying the text.
5558
5559** The command `M-x version' now prints the current Emacs version; The
5560`version' command is an alias for the `emacs-version' command.
5561
5562** More complex changes in existing packages.
5563
5564*** `fill-nonuniform-paragraphs' is a new command, much like
5565`fill-individual-paragraphs' except that only separator lines separate
5566paragraphs. Since this means that the lines of one paragraph may have
5567different amounts of indentation, the fill prefix used is the smallest
5568amount of indentation of any of the lines of the paragraph.
5569
5570*** Filling is now partially controlled by a new minor mode, Adaptive
5571Fill mode. When this mode is enabled (and it is enabled by default),
5572if you use M-x fill-region-as-paragraph on an indented paragraph and
5573you don't have a fill prefix, it uses the indentation of the second
5574line of the paragraph as the fill prefix.
5575
5576Adaptive Fill mode doesn't have much effect on M-q in most major
5577modes, because an indented line will probably count as a paragraph
5578starter and thus each line of an indented paragraph will be considered
5579a paragraph of its own.
5580
5581*** M-q in C mode now runs `c-fill-paragraph', which is designed
5582for filling C comments. (We assume you don't want to fill
5583the code in a C program.)
5584
5585*** M-$ now runs the Ispell program instead of the Unix spell program.
5586
5587M-$ starts an Ispell process the first time you use it. But the process
5588stays alive, so that subsequent uses of M-$ run very fast.
5589If you want to get rid of the process, use M-x kill-ispell.
5590
5591To check the entire current buffer, use M-x ispell-buffer.
5592Use M-x ispell-region to check just the current region.
5593
5594Ispell commands often involve interactive replacement of words.
5595You can interrupt the interactive replacement with C-g.
5596You can restart it again afterward with C-u M-$.
5597
5598During interactive replacement, you can type the following characters:
5599
5600a Accept this word this time.
5601DIGIT Replace the word (this time) with one of the displayed near-misses.
5602 The digit you use says which near-miss to use.
5603i Insert this word in your private dictionary
5604 so that Ispell will consider it correct it from now on.
5605r Replace the word this time with a string typed by you.
5606
5607When the Ispell process starts, it reads your private dictionary which
5608is the file `~/ispell.words'. If you "insert" words with the `i' command,
5609these words are added to that file, but not right away--only at the end
5610of the interactive replacement process.
5611
5612Use M-x reload-ispell to reload your private dictionary from
5613`~/ispell.words' if you edit it outside of Ispell.
5614
5615** Changes in existing modes.
5616
5617*** gdb-mode has been replaced by gud-mode.
5618
5619The package gud.el (Grand Unified Debugger) replaces gdb.el in Emacs
562019. It provides a gdb.el-like interface to any of three debuggers;
5621gdb itself, the sdb debugger supported on some Unix systems, or the
5622dbx debugger on Berkeley systems.
5623
5624 You start it up with one of the commands M-x gdb, M-x sdb, or
5625M-x dbx. Each entry point finishes by executing a hook; gdb-mode-hook,
5626sdb-mode-hook or dbx-mode-hook respectively.
5627
5628These bindings have changed:
5629C-x C-a > gud-down (was M-d)
5630C-x C-a < gud-up (was M-u)
5631C-x C-a C-r gud-cont (was M-c)
5632C-x C-a C-n gud-next (was M-n)
5633C-x C-a C-s gud-step (was M-s)
5634C-x C-a C-i gud-stepi (was M-i)
5635C-x C-a C-l gud-recenter (was C-l)
5636C-d comint-delchar-or-maybe-eof (was C-c C-d)
5637
5638These bindings have been removed:
5639C-c C-r (was comint-show-output; now gud-cont)
5640
5641Since GUD mode uses comint, it uses comint's input history commands,
5642superseding C-c C-y (copy-last-shell-input):
5643 M-p comint-next-input
5644 M-n comint-previous-input
5645 M-r comint-previous-similar-input
5646 M-s comint-next-similar-input
5647 M-C-r comint-previous-input-matching
5648
5649The C-x C-a bindings are also active in source files.
5650
5651*** The old TeX mode bindings of M-{ and M-} have been moved to C-c {
5652and C-c }. (These commands are `up-list' and `tex-insert-braces';
177c0ea7 5653they are the TeX equivalents of M-( and M-).) This is because M-{
a933dad1
DL
5654and M-} are now globally defined commands.
5655
5656*** Changes in Mail mode.
5657
5658`%' is now a word-separator character in Mail mode.
5659
5660`mail-signature', if non-nil, tells M-x mail to insert your
5661`.signature' file automatically. If you don't want your signature in
5662a particular message, just delete it before you send the message.
5663
5664You can specify the text to insert at the beginning of each line when
5665you use C-c C-y to yank the message you are replying to. Set
5666`mail-yank-prefix' to the desired string. A value of `nil' (the
5667default) means to use indentation, as in Emacs 18. If you use just
5668C-u as the prefix argument to C-c C-y, then it does not insert
5669anything at the beginning of the lines, regardless of the value of
5670`mail-yank-prefix'.
5671
5672If you like, you can expand mail aliases as abbrevs, as soon as you
5673type them in. To enable this feature, execute the following:
5674
5675 (add-hook 'mail-setup-hook 'mail-abbrevs-setup)
5676
5677This can go in your .emacs file.
5678
5679Word abbrevs don't expand unless you insert a word-separator character
5680afterward. Any mail aliases that you didn't expand at insertion time
5681are expanded subsequently when you send the message.
5682
5683*** Changes in Rmail.
5684
5685Rmail by default gets new mail only from the system inbox file,
5686not from `~/mbox'.
5687
5688In Rmail, you can retry sending a message that failed
5689by typing `M-m' on the failure message.
5690
5691By contrast, another new command M-x rmail-resend is used for
5692forwarding a message and marking it as "resent from" you
5693with header fields "Resent-From:" and "Resent-To:".
5694
5695`e' is now the command to edit a message.
5696To expunge, type `x'. We know this will surprise people
5697some of the time, but the surprise will not be disastrous--if
5698you type `e' meaning to expunge, just turn off editing with C-c C-c
5699and then type `x'.
5700
5701Another new Rmail command is `<', which moves to the first message.
5702This is for symmetry with `>'.
5703
5704Use the `b' command to bury the Rmail buffer and its summary buffer,
5705if any, removing both of them from display on the screen.
5706
5707The variable `rmail-output-file-alist' now controls the default
5708for the file to output a message to.
5709
5710In the Rmail summary buffer, all cursor motion commands select
5711the message you move to. It's really neat when you use
5712incremental search.
5713
5714You can now issue most Rmail commands from an Rmail summary buffer.
5715The commands do the same thing in that buffer that they do in the
5716Rmail buffer. They apply to the message that is selected in the Rmail
5717buffer, which is always the one described by the current summary
5718line.
5719
5720Conversely, motion and deletion commands in the Rmail buffer also
5721update the summary buffer. If you set the variable
5722`rmail-redisplay-summary' to a non-nil value, then they bring the
5723summary buffer (if one exists) back onto the screen.
5724
5725C-M-t is a new command to make a summary by topic. It uses regexp
5726matching against just the subjects of the messages to decide which
5727messages to show in the summary.
5728
5729You can easily convert an Rmail file to system mailbox format with the
5730command `unrmail'. This command reads two arguments, the name of
5731the Rmail file to convert, and the name of the new mailbox file.
5732(This command does not change the Rmail file itself.)
5733
5734Rmail now handles Content Length fields in messages.
5735
5736*** `mail-extract-address-components' unpacks mail addresses.
5737It takes an address as a string (the contents of the From field, for
5738example) and returns a list of the form (FULL-NAME
5739CANONICAL-ADDRESS).
5740
5741*** Changes in C mode and C-related commands.
5742
5743**** M-x c-up-conditional
5744
5745In C mode, `c-up-conditional' moves back to the containing
5746preprocessor conditional, setting the mark where point was
5747previously.
5748
5749A prefix argument acts as a repeat count. With a negative argument,
5750this command moves forward to the end of the containing preprocessor
5751conditional. When going backwards, `#elif' acts like `#else' followed
5752by `#if'. When going forwards, `#elif' is ignored.
5753
5754**** In C mode, M-a and M-e are now defined as
5755`c-beginning-of-statement' and `c-end-of-statement'.
5756
5757**** In C mode, M-x c-backslash-region is a new command to insert or
5758align `\' characters at the ends of the lines of the region, except
5759for the last such line. This is useful after writing or editing a C
5760macro definition.
5761
5762If a line already ends in `\', this command adjusts the amount of
5763whitespace before it. Otherwise, it inserts a new `\'.
5764
5765*** New features in info.
5766
5767When Info looks for an Info file, it searches the directories
5768in `Info-directory-list'. This makes it easy to install the Info files
5769that come with various packages. You can specify the path with
5770the environment variable INFOPATH.
5771
5772There are new commands in Info mode.
5773
5774`]' now moves forward a node, going up and down levels as needed.
5775`[' is similar but moves backward. These two commands try to traverse
5776the entire Info tree, node by node. They are the equivalent of reading
5777a printed manual sequentially.
5778
5779`<' moves to the top node of the current Info file.
5780`>' moves to the last node of the file.
5781
5782SPC scrolls through the current node; at the end, it advances to the
5783next node in depth-first order (like `]').
5784
5785DEL scrolls backwards in the current node; at the end, it moves to the
5786previous node in depth-first order (like `[').
5787
5788After a menu select, the info `up' command now restores point in the
5789menu. The combination of this and the previous two changes means that
5790repeated SPC keystrokes do the right (depth-first traverse forward) thing.
5791
5792`i STRING RET' moves to the node associated with STRING in the index
5793or indices of this manual. If there is more than one match for
5794STRING, the `i' command finds the first match.
5795
5796`,' finds the next match for the string in the previous `i' command
5797
5798If you click the middle mouse button near a cross-reference,
5799menu item or node pointer while in Info, you will go to the node
5800which is referenced.
5801
5802*** Changes in M-x compile.
5803
5804You can repeat any previous compilation command conveniently using the
5805minibuffer history commands, while in the minibuffer entering the
5806compilation command.
5807
5808While a compilation is going on, the string `Compiling' appears in
5809the mode line. When this string disappears, that tells you the
5810compilation is finished.
5811
5812The buffer of compiler messages is in Compilation mode. This mode
5813provides the keys SPC and DEL to scroll by screenfuls, and M-n and M-p
5814to move to the next or previous error message. You can also use C-c
5815C-c on any error message to find the corresponding source code.
5816
5817Emacs 19 has a more general parser for compiler messages. For example, it
5818can understand messages from lint, and from certain C compilers whose error
5819message format is unusual. Also, it only parses until it sees the error
5820message you want; you never have to wait a long time to see the first
5821error, no matter how big the buffer is.
5822
5823*** M-x diff and M-x diff-backup.
5824
5825This new command compares two files, displaying the differences in an
5826Emacs buffer. The options for the `diff' program come from the
5827variable `diff-switches', whose value should be a string.
5828
5829The buffer of differences has Compilation mode as its major mode, so you
5830can use C-x ` to visit successive changed locations in the two
5831source files, or you can move to a particular hunk of changes and type
5832C-c C-c to move to the corresponding source. You can also use the
5833other special commands of Compilation mode: SPC and DEL for
5834scrolling, and M-n and M-p for cursor motion.
5835
5836M-x diff-backup compares a file with its most recent backup.
5837If you specify the name of a backup file, `diff-backup' compares it
5838with the source file that it is a backup of.
5839
5840*** The View commands (such as M-x view-buffer and M-x view-file) no
5841longer use recursive edits; instead, they switch temporarily to a
5842different major mode (View mode) specifically designed for moving
5843around through a buffer without editing it.
5844
5845*** Changes in incremental search.
5846
5847**** The character to terminate an incremental search is now RET.
5848This is for compatibility with the way most other arguments are read.
5849
5850To search for a newline in an incremental search, type LFD (also known
5851as C-j).
5852
5853**** Incremental search now maintains a ring of previous search
5854strings. Use M-p and M-n to move through the ring to pick a search
5855string to reuse. These commands leave the selected search ring
5856element in the minibuffer, where you can edit it. Type C-s or C-r to
5857finish editing and search for the chosen string.
5858
5859**** If you type an upper case letter in incremental search, that turns
5860off case-folding, so that you get a case-sensitive search.
5861
5862**** If you type a space during regexp incremental search, it matches
5863any sequence of whitespace characters. If you want to match just a space,
5864type C-q SPC.
5865
5866**** Incremental search is now implemented as a major mode. When you
5867type C-s, it switches temporarily to a different keymap which defines
5868each key to do what it ought to do for incremental search. This has
5869next to no effect on the user-visible behavior of searching, but makes
5870it easier to customize that behavior.
5871
5872Emacs 19 eliminates the old variables `search-...-char' that used to
5873be the way to specify the characters to use for various special
5874purposes in incremental search. Instead, you can define the meaning
5875of a character in incremental search by modifying `isearch-mode-map'.
5876
5877*** New commands in Buffer Menu mode.
5878
5879The command C-o now displays the current line's buffer in another
5880window but does not select it. This is like the existing command `o'
5881which selects the current line's buffer in another window.
5882
5883The command % toggles the read-only flag of the current line's buffer.
5884
5885The way to switch to a set of several buffers, including those marked
5886with m, is now v. The q command simply quits, replacing the buffer
5887menu buffer with the buffer that was displayed previously.
5888
5889** New major modes and packages.
5890
5891*** The news reader GNUS is now installed.
5892
5893*** There is a new interface for version control systems, called VC.
5894It works with both RCS and SCCS; in fact, you don't really have to
5895know which one of them is being used, because it automatically deals
5896with either one.
5897
5898Most of the time, the only command you have to know about is C-x C-q.
5899This command normally toggles the read-only flag of the current
5900buffer. If the buffer is visiting a file that is maintained with a
5901version control system, the command still toggles read-only, but does
5902so by checking the file in or checking it out.
5903
5904When you check a file in, VC asks you for a log entry by popping up a
5905buffer. Edit the entry there, then type C-c C-c when it is ready.
5906That's when the actual checkin happens. If you change your mind about
5907the checkin, simply switch buffers and don't ever go back to the log
5908buffer.
5909
5910To start using version control for a file, use the command C-x v v.
5911This works like C-x C-q (performing the next logical version-control
5912operation needed to change the file's writability) but it will also
5913perform initial checkin on an unregistered file.
5914
5915By default, VC uses RCS if RCS is installed on your machine;
5916otherwise, SCCS. If you want to make the choice explicitly, you can do
5917it by setting `vc-default-back-end' to the symbol `RCS' or the symbol
5918`SCCS'.
5919
5920You can tell when a file you visit is maintained with version control
5921because either `RCS' or `SCCS' appears in the mode line.
5922
5923*** A new Calendar mode has been added, the work of Edward M. Reingold.
5924The mode can display the Gregorian calendar and a variety of other
5925calendars at any date, and interacts with a diary facility similar to
5926the UNIX `calendar' utility.
5927
5928*** There is a new major mode for editing binary files: Hexl mode.
5929To use it, use M-x hexl-find-file instead of C-x C-f to visit the file.
5930This command converts the file's contents to hexadecimal and lets you
177c0ea7 5931edit the translation. When you save the file, it is converted
a933dad1
DL
5932automatically back to binary.
5933
5934You can also use M-x hexl-mode to translate an existing buffer into hex.
177c0ea7 5935Do this if you have already visited a binary file.
a933dad1
DL
5936
5937Hexl mode has a few other commands:
5938
5939C-M-d insert a byte with a code typed in decimal.
5940C-M-o insert a byte with a code typed in octal.
5941C-M-x insert a byte with a code typed in hex.
5942
5943C-x [ move to the beginning of a 1k-byte "page".
5944C-x ] move to the end of a 1k-byte "page".
5945
5946M-g go to an address specified in hex.
5947M-j go to an address specified in decimal.
5948
5949C-c C-c leave hexl mode and go back to the previous major mode.
5950
5951*** Miscellaneous new major modes include Awk mode, Icon mode, Makefile
5952mode, Perl mode and SGML mode.
5953
5954*** Edebug, a new source-level debugger for Emacs Lisp functions.
5955
5956To use Edebug, use the command M-x edebug-defun to "evaluate" a
5957function definition in an Emacs Lisp file. We put "evaluate" in
5958quotation marks because it doesn't just evaluate the function, it also
5959inserts additional information to support source-level debugging.
5960
5961You must also do
5962
5963 (setq debugger 'edebug-debug)
5964
5965to cause errors and single-stepping to use Edebug instead of the usual
5966Emacs Lisp debugger.
5967
5968For more information, see the Edebug manual, which should be included
5969in the Emacs distribution.
5970
5971*** C++ mode is like C mode, except that it understands C++ comment syntax
5972and certain other differences between C and C++. It also has a command
5973`fill-c++-comment' which fills a paragraph made of comment lines.
5974
5975The command `comment-region' is useful in C++ mode for commenting out
5976several consecutive lines, or removing the commenting out of such lines.
5977
5978*** A new package for merging two variants of the same text.
5979
5980It's not unusual for programmers to get their signals crossed and
5981modify the same program in two different directions. Then somebody
5982has to merge the two versions. The command `emerge-files' makes this
5983easier.
5984
5985`emerge-files' reads two file names and compares them. Then it
5986displays three buffers: one for each file, and one for the
5987differences.
5988
5989If the original version of the file is available, you can make things
5990even easier using `emerge-files-with-ancestor'. It reads three file
5991names--variant 1, variant 2, and the common ancestor--and uses diff3
5992to compare them.
5993
5994You control the merging interactively. The main loop of Emerge
5995consists of showing you one set of differences, asking you what to do
5996about them, and doing it. You have a choice of two modes for giving
5997directions to Emerge: "fast" mode and "edit" mode.
5998
5999In Fast mode, Emerge commands are single characters, and ordinary
6000Emacs commands are disabled. This makes Emerge operations fast, but
6001prevents you from doing more than selecting the A or the B version of
6002differences. In Edit mode, all emerge commands use the C-c prefix,
6003and the usual Emacs commands are available. This allows editing the
6004merge buffer, but slows down Emerge operations. Edit and fast modes
6005are indicated by `F' and `E' in the minor modes in the mode line.
6006
6007The Emerge commands are:
6008
6009 p go to the previous difference
6010 n go to the next difference
6011 a select the A version of this difference
6012 b select the B version of this difference
6013 j go to a particular difference (prefix argument
6014 specifies which difference) (0j suppresses display of
6015 the flags)
6016 q quit - finish the merge*
6017 f go into fast mode
6018 e go into edit mode
6019 l recenter (C-l) all three windows*
6020 - and 0 through 9
6021 prefix numeric arguments
6022 d a select the A version as the default from here down in
6023 the merge buffer*
6024 d b select the B version as the default from here down in
6025 the merge buffer*
6026 c a copy the A version of the difference into the kill
6027 ring
6028 c b copy the B version of the difference into the kill
6029 ring
6030 i a insert the A version of the difference at the point
6031 i b insert the B version of the difference at the point
6032 m put the point and mark around the difference region
6033 ^ scroll-down (like M-v) the three windows*
6034 v scroll-up (like C-v) the three windows*
6035 < scroll-left (like C-x <) the three windows*
6036 > scroll-right (like C-x >) the three windows*
6037 | reset horizontal scroll on the three windows*
6038 x 1 shrink the merge window to one line (use C-u l to restore it
6039 to full size)
6040 x a find the difference containing a location in the A buffer*
6041 x b find the difference containing a location in the B buffer*
6042 x c combine the two versions of this difference*
6043 x C combine the two versions of this difference, using a
6044 register's value as the template*
6045 x d find the difference containing a location in the merge buffer*
6046 x f show the files/buffers Emerge is operating on in Help window
6047 (use C-u l to restore windows)
6048 x j join this difference with the following one
6049 (C-u x j joins this difference with the previous one)
6050 x l show line numbers of points in A, B, and merge buffers
6051 x m change major mode of merge buffer*
6052 x s split this difference into two differences
6053 (first position the point in all three buffers to the places
6054 to split the difference)
6055 x t trim identical lines off top and bottom of difference
6056 (such lines occur when the A and B versions are
6057 identical but differ from the ancestor version)
6058 x x set the template for the x c command*
6059
6060Normally, the merged output goes back in the first file specified.
6061If you use a prefix argument, Emerge reads another file name to use
6062for the output file.
6063
6064Once Emerge has prepared the buffer of differences, it runs the hooks
6065in `emerge-startup-hooks'.
6066
6067*** Asm mode is a new major mode for editing files of assembler code.
6068It defines these commands:
6069
6070TAB tab-to-tab-stop.
6071LFD Insert a newline and then indent using tab-to-tab-stop.
6072: Insert a colon and then remove the indentation
6073 from before the label preceding colon. Then tab-to-tab-stop.
6074; Insert or align a comment.
6075
6076*** Two-column mode lets you conveniently edit two side-by-side columns
6077of text. It works using two side-by-side windows, each showing its
6078own buffer.
6079
6080Here are three ways to enter two-column mode:
6081
6082C-x 6 2 makes the current buffer into the left-hand buffer. In the
6083right-hand window it puts a buffer whose name is based on the current
6084buffer's name.
6085
6086C-x 6 b BUFFER RET makes the current buffer into the left-hand buffer,
6087and uses buffer BUFFER as the right-hand buffer.
6088
6089C-x 6 s splits the current buffer, which contains two-column text,
6090into two side-by-side buffers. The old current buffer becomes the
6091left-hand buffer, but the text in the right column is moved into the
6092right-hand buffer. The current column specifies the split point.
6093Splitting starts with the current line and continues to the end of the
6094buffer.
6095
6096C-x 6 s takes a prefix argument which specifies how many characters
6097before point constitute the column separator. (The default argument
6098is 1, as usual, so by default the column separator is the character
6099before point.) Lines that don't have the column separator at the
6100proper place remain unsplit; they stay in the left-hand buffer, and
6101the right-hand buffer gets an empty line to correspond.
6102
6103You can scroll both buffers together using C-x 6 SPC (scroll up), C-x
61046 DEL (scroll down), and C-x 6 RET (scroll up one line). C-x 6 C-l
6105recenters both buffers together.
6106
6107If you want to make a line which will span both columns, put it in
6108the left-hand buffer, with an empty line in the corresponding place in
6109the right-hand buffer.
6110
6111When you have edited both buffers as you wish, merge them with C-x 6
61121. This copies the text from the right-hand buffer as a second column
6113in the other buffer. To go back to two-column editing, use C-x 6 s.
6114
6115Use C-x 6 d to disassociate the two buffers, leaving each as it
6116stands. (If the other buffer, the one that was not current when you
6117type C-x 6 d, is empty, C-x 6 d kills it.)
6118
6119*** You can supply command arguments such as files to visit to an Emacs
6120that is already running. To do this, you must do this in your .emacs
6121file:
6122 (add-hook 'suspend-hook 'resume-suspend-hook)
6123Also you must use the shellscript emacs.csh or emacs.sh, found in the
6124etc subdirectory.
6125
6126*** Shell mode has been completely replaced.
6127The basic idea is the same, but there are new commands available in
6128this mode.
177c0ea7 6129
a933dad1
DL
6130TAB now completes the file name before point in the shell buffer.
6131To get a list of all possible completions, type M-?.
6132
6133There is a new convenient history mechanism for repeating previous
6134commands. Use the command M-p to recall the last command; it copies
6135the text of that command to the place where you are editing. If you
6136repeat M-p, it replaces the copied command with the previous command.
6137M-n is similar but goes in the opposite direction towards the present.
6138When you find the command you wanted, you can edit it, or just
6139resubmit it by typing RET.
6140
177c0ea7
JB
6141You can also use M-r and M-s to search for (respectively) earlier or
6142later inputs starting with a given string. First type the string,
a933dad1
DL
6143then type M-r to yank a previous input from the history which starts
6144with that string. You can repeat M-r to find successively earlier
6145inputs starting with the same string. You can start moving in the
6146opposite direction (toward more recent inputs) by typing M-s instead
6147of M-r. As long as you don't use any commands except M-r and M-s,
6148they keep using the same string that you had entered initially.
6149
6150C-c C-o kills the last batch of output from a shell command. This is
6151useful if a shell command spews out lots of output that just gets in
6152the way.
6153
6154C-c C-r scrolls to display the beginning of the last batch of output
6155at the top of the window; it also moves the cursor there.
6156
6157C-a on a line that starts with a shell prompt moves to the end of the
6158prompt, not to the very beginning of the line.
6159
6160C-d typed at the end of the shell buffer sends EOF to the subshell.
6161At any other position in the buffer, it deletes a character as usual.
6162
6163If Emacs gets confused while trying to track changes in the shell's
6164current directory, type M-x dirs to re-synchronize.
6165
6166M-x send-invisible reads a line of text without echoing it, and
6167sends it to the shell.
6168
177c0ea7 6169If you accidentally suspend your process, use M-x comint-continue-subjob
a933dad1 6170to continue it.
177c0ea7 6171
a933dad1
DL
6172*** There is now a convenient way to enable flow control on terminals
6173where you can't win without it. Suppose you want to do this on
6174VT-100 and H19 terminals; put the following in your `.emacs' file:
6175
6176 (enable-flow-control-on "vt100" "h19")
6177
6178When flow control is enabled, you must type C-\ to get the effect of a
6179C-s, and type C-^ to get the effect of a C-q.
6180
6181The function `enable-flow-control' enables flow control unconditionally.
6182\f
6183** Changes in Dired
6184
6185Dired has many new features which allow you to do these things:
6186
6187- Rename, copy, or make links to many files at once.
6188
6189- Make distinguishable types of marks for different operations.
6190
6191- Display contents of subdirectories in the same Dired buffer as the
6192parent directory.
6193
6194*** Setting and Clearing Marks
6195
6196There are now two kinds of marker that you can put on a file in Dired:
6197`D' for deletion, and `*' for any other kind of operation.
6198The `x' command deletes only files marked with `D', and most
6199other Dired commands operate only on the files marked with `*'.
6200
6201To mark files with `D' (also called "flagging" the files), you
6202can use `d' as usual. Here are some commands for marking with
6203`*' (and also for unmarking):
6204
6205**** `m' marks the current file with `*', for an operation other than
6206deletion.
6207
6208**** `*' marks all executable files. With a prefix argument, it
6209unmarks all those files.
6210
6211**** `@' marks all symbolic links. With a prefix argument, it unmarks
6212all those files.
6213
6214**** `/' marks all directory files except `.' and `..'. With a prefix
6215argument, it unmarks all those files.
6216
6217**** M-DEL removes a specific or all marks from every file. With an
6218argument, queries for each marked file. Type your help character,
6219usually C-h, at that time for help.
6220
6221**** `c' replaces all marks that use the character OLD with marks that
6222use the character NEW. You can use almost any character as a mark
6223character by means of this command, to distinguish various classes of
6224files. If OLD is ` ', then the command operates on all unmarked
6225files; if NEW is ` ', then the command unmarks the files it acts on.
6226
6227*** Operating on Multiple Files
6228
6229The Dired commands to operate directly on files (rename them, copy
6230them, and so on) have been generalized to work on multiple files.
6231There are also some additional commands in this series.
6232
6233All of these commands use the same convention to decide which files to
6234manipulate:
6235
6236- If you give the command a numeric prefix argument @var{n}, it operates
6237on the next @var{n} files, starting with the current file.
6238
6239- Otherwise, if there are marked files, the commands operate on all the
6240marked files.
6241
6242- Otherwise, the command operates on the current file only.
6243
6244These are the commands:
6245
6246**** `C' copies the specified files. You must specify a directory to
6247copy into, or (if copying a single file) a new name.
6248
6249If `dired-copy-preserve-time' is non-`nil', then copying sets
6250the modification time of the new file to be the same as that of the old
6251file.
6252
6253**** `R' renames the specified files. You must specify a directory to
6254rename into, or (if renaming a single file) a new name.
6255
6256Dired automatically changes the visited file name of buffers associated
6257with renamed files so that they refer to the new names.
6258
6259**** `H' makes hard links to the specified files. You must specify a
6260directory to make the links in, or (if making just one link) the name
6261to give the link.
6262
6263**** `S' makes symbolic links to the specified files. You must specify
6264a directory to make the links in, or (if making just one link) the
6265name to give the link.
6266
6267**** `M' changes the mode of the specified files. This calls the
6268`chmod' program, so you can describe the desired mode change with any
6269argument that `chmod' would handle.
6270
6271**** `G' changes the group of the specified files.
6272
6273**** `O' changes the owner of the specified files. (On normal systems,
6274only the superuser can do this.)
6275
6276The variable `dired-chown-program' specifies the name of the
6277program to use to do the work (different systems put `chown' in
6278different places.
6279
6280**** `Z' compresses or uncompresses the specified files.
6281
6282**** `L' loads the specified Emacs Lisp files.
6283
6284**** `B' byte compiles the specified Emacs Lisp files.
6285
6286**** `P' prints the specified files. It uses the variables
6287`lpr-command' and `lpr-switches' just as `lpr-file' does.
6288
6289*** Shell Commands in Dired
6290
6291`!' reads a shell command string in the minibuffer and runs the shell
6292command on all the specified files. There are two ways of applying a
6293shell command to multiple files:
6294
6295- If you use `*' in the command, then the shell command runs just
6296once, with the list of file names substituted for the `*'.
6297
6298Thus, `! tar cf foo.tar * RET' runs `tar' on the entire list of file
6299names, putting them into one tar file `foo.tar'. The file names are
6300inserted in the order that they appear in the Dired buffer.
6301
6302- If the command string doesn't contain `*', then it runs once for
6303each file, with the file name attached at the end. For example, `!
6304uudecode RET' runs `uudecode' on each file.
6305
6306To run the shell command once for each file but without being limited
6307to putting the file name inserted in the middle, use a shell loop.
6308For example, this shell command would run `uuencode' on each of the
6309specified files, writing the output into a corresponding `.uu' file:
6310
6311 for file in *; uuencode $file $file >$file.uu; done
6312
6313The working directory for the shell command is the top level directory
6314of the Dired buffer.
6315
6316*** Regular Expression File Name Substitution
6317
6318**** `% m REGEXP RET' marks all files whose names match the regular
6319expression REGEXP.
6320
6321Only the non-directory part of the file name is used in matching. Use
6322`^' and `$' to anchor matches. Exclude subdirs by hiding them.
6323
6324**** `% d REGEXP RET' flags for deletion all files whose names match
6325the regular expression REGEXP.
6326
6327**** `% R', `% C', `% H', `% S'
6328
6329These four commands rename, copy, make hard links and make soft links,
6330in each case computing the new name by regular expression substitution
6331from the name of the old file. They effectively perform
6332`query-replace-regexp' on the selected file names in the Dired buffer.
6333
6334The commands read two arguments: a regular expression, and a
6335substitution pattern. Each selected file name is matched against the
6336regular expression, and then the part which matched is replaced with
6337the substitution pattern. You can use `\&' and `\DIGIT' in the
6338substitution pattern to refer to all or part of the old file name.
6339
6340If the regular expression matches more than once in a file name,
6341only the first match is replaced.
6342
6343Normally, the replacement process does not consider the directory names;
6344it operates on the file name within the directory. If you specify a
6345prefix argument of zero, then replacement affects entire file name.
6346
6347To apply the command to all files matching the same regexp that you
6348use in the command, mark those files with `% m REGEXP RET', then use
6349the same regular expression in `% R'. To make this easier, `% R' uses
6350as a default the last regular expression specified in a `%' command.
6351
6352*** Dired Case Conversion
6353
6354**** `% u' renames each of the selected files to an upper case name.
6355
6356**** `% l' renames each of the selected files to a lower case name.
6357
6358*** File Comparison with Dired
6359
6360**** `=' compares the current file with another file (the file at the
6361mark), by running the `diff' program. The file at the mark is given
6362to `diff' first.
6363
6364**** `M-=' compares the current file with its backup file. If there
6365are several numerical backups, it uses the most recent one. If this
6366file is a backup, it is compared with its original.
6367
6368The backup file is the first file given to `diff'.
6369
6370*** Subdirectories in Dired
6371
6372You can display more than one directory in one Dired buffer.
6373The simplest way to do this is to specify the options `-lR' for
6374running `ls'. That produces a recursive directory listing showing
6375all subdirectories, all within the same Dired buffer.
6376
6377You can also insert the contents of a particular subdirectory with the
6378`i' command. Use this command on the line that describes a file which
6379is a directory. Inserted subdirectory contents follow the top-level
6380directory of the Dired buffer, just as they do in `ls -lR' output.
6381
6382If the subdirectory's contents are already present in the buffer, the
6383`i' command just moves to it (type `l' to refresh it). It sets the
6384Emacs mark before moving, so C-x C-x takes you back to the old
6385position in the buffer.
6386
6387When you have subdirectories in the Dired buffer, you can use the page
6388motion commands C-x [ and C-x ] to move by entire directories.
6389
6390The following commands move up and down in the tree of directories
6391in one Dired buffer:
6392
6393**** C-M-u Go up to the parent directory's headerline.
6394
6395**** C-M-d Go down in the tree, to the first subdirectory's
6396headerline.
6397
6398**** C-M-n Go to next subdirectory headerline, regardless of level.
6399
6400**** C-M-p Go to previous subdirectory headerline, regardless of
6401level.
6402
6403*** Hiding Subdirectories
6404
6405"Hiding" a subdirectory means to make it invisible, except for its
6406headerline. Files inside a hidden subdirectory are never considered
6407by Dired. For example, the commands to operate on marked files ignore
6408files in hidden directories even if they are marked.
6409
6410**** `$' hides or unhides the current subdirectory and move to next
6411subdirectory. A prefix argument serves as a repeat count.
6412
6413**** `M-$' hides all subdirectories, leaving only their header lines.
6414Or, if at least one subdirectory is currently hidden, it makes
6415everything visible again. You can use this command to get an overview
6416in very deep directory trees or to move quickly to subdirectories far
6417away.
6418
6419*** Editing the Dired Buffer
6420
6421**** `l' updates the specified files in a Dired buffer. This means
6422reading their current status from the file system and changing the
6423buffer to reflect it properly.
6424
6425If you use this command on a subdirectory header line, it updates the
6426contents of the subdirectory.
6427
6428**** `g' updates the entire contents of the Dired buffer. It preserves
6429all marks except for those on files that have vanished. Hidden
6430subdirectories are updated but remain hidden.
6431
6432**** `k' kills all marked lines (not the files). With a prefix
6433argument, it kills that many lines starting with the current line.
6434
6435This command does not delete files; it just deletes text from the Dired
6436buffer.
6437
6438If you kill the line for a file that is a directory, then its contents
6439are also deleted from the buffer. Typing `C-u k' on the header line
6440for a subdirectory is another way to delete a subdirectory from the
6441Dired buffer.
6442
6443*** `find' and Dired.
6444
6445To search for files with names matching a wildcard pattern use
6446`find-name-dired'. Its arguments are DIRECTORY and
6447PATTERN. It selects all the files in DIRECTORY or its
6448subdirectories whose own names match PATTERN.
6449
6450The files thus selected are displayed in a Dired buffer in which the
6451ordinary Dired commands are available.
6452
6453If you want to test the contents of files, rather than their names, use
6454`find-grep-dired'. This command takes two minibuffer arguments,
6455DIRECTORY and REGEXP; it selects all the files in
6456DIRECTORY or its subdirectories that contain a match for
6457REGEXP. It works by running `find' and `grep'.
6458
6459The most general command in this series is `find-dired', which lets
6460you specify any condition that `find' can test. It takes two
6461minibuffer arguments, DIRECTORY and FIND-ARGS; it runs `find' in
6462DIRECTORY with using FIND-ARGS as the arguments to `find' specifying
6463which files to accept. To use this command, you need to know how to
6464use `find'.
6465\f
6466** New amusements and novelties.
6467
6468*** `M-x mpuz' displays a multiplication puzzle, in which each letter
6469stands for a digit, and you must determine which digit. The puzzles
6470are determined randomly, so they are always different.
6471
6472*** `M-x gomoku' plays the game Gomoku with you. It needs more work.
6473
6474*** `M-x spook' adds a line of randomly chosen keywords to an outgoing
6475mail message. The keywords are chosen from a list of words that
6476suggest you are discussing something subversive.
6477
6478The idea is that the NSA reads all messages that contain keywords
6479suggesting they might be interested, and that adding these lines could
6480help to overload them. I would guess that they have modified their
6481program by now to ignore these lines of keywords; perhaps the program
6482can be updated if some clever hacker can determine what criterion they
6483actually use now.
6484\f
6485** Installation changes
6486
6487*** The configure script has been provided to help with the
6488installation process. It takes the place of editing the Makefiles and
6489src/config.h, and can often guess the appropriate operating system to
6490use for a particular machine type. See INSTALL for a more detailed
6491description of the steps required for installation.
6492
6493*** If you create a Lisp file named `site-start.el', Emacs loads the file
6494whenever it starts up.
6495
6496*** A new Lisp variable, `data-directory', indicates the directory
6497containing the DOC file, tutorial, copying agreement, and other
6498familiar `etc' files. The value of `data-directory' is a simple string.
6499The default should be set at build time, and the person installing
6500Emacs should place all the data files in this directory. The `help.el'
6501functions that look for docstrings and information files check this
6502variable. All Emacs Lisp packages should also be coded so that they
6503refer to `data-directory' to find data files.
6504
6505*** The PURESIZE definition has been moved from config.h to its own
6506file, puresize.h. Since almost every file of C source in the
6507distribution depends on config.h, but only alloc.c and data.c depend
6508on puresize.h, this means that changing the value of PURESIZE causes
6509only those two files to be recompiled.
6510
6511*** The makefile at the top of the Emacs source tree now supports a
6512`dist' target, which creates a compressed tar file suitable for
6513distribution, using the contents of the source tree. Object files,
6514old file versions, executables, DOC files, and other
6515architecture-specific or easy-to-recreate files are not included in
6516the tar file.
a933dad1 6517
9a21d88b
KS
6518
6519\f
a933dad1
DL
6520----------------------------------------------------------------------
6521Copyright information:
6522
0a33da51 6523Copyright (C) 1993, 1994, 1995, 2001, 2006, 2007 Free Software Foundation, Inc.
a933dad1
DL
6524
6525 Permission is granted to anyone to make or distribute verbatim copies
6526 of this document as received, in any medium, provided that the
6527 copyright notice and this permission notice are preserved,
6528 thus giving the recipient permission to redistribute in turn.
6529
6530 Permission is granted to distribute modified versions
6531 of this document, or of portions of it,
6532 under the above conditions, provided also that they
6533 carry prominent notices stating who last changed them.
6534\f
6535Local variables:
6536mode: outline
6537paragraph-separate: "[ \f]*$"
6538end:
6539
ab5796a9 6540arch-tag: 944be39b-afe8-4217-9977-c745b68a7ca2