]> code.delx.au - gnu-emacs/blob - etc/NEWS.1-17
(do_ewmh_fullscreen, XTfullscreen_hook): New functions.
[gnu-emacs] / etc / NEWS.1-17
1 GNU Emacs NEWS -- history of user-visible changes. 26-Mar-1986
2 Copyright (C) 1985, 1986, 2006 Richard M. Stallman.
3 See the end for copying conditions.
4
5 This file is about changes in emacs versions 1 through 17.
6
7
8 \f
9 Changes in Emacs 17
10
11 * Frustrated?
12
13 Try M-x doctor.
14
15 * Bored?
16
17 Try M-x hanoi.
18
19 * Brain-damaged?
20
21 Try M-x yow.
22
23 * Sun3, Tahoe, Apollo, HP9000s300, Celerity, NCR Tower 32,
24 Sequent, Stride, Encore, Plexus and AT&T 7300 machines supported.
25
26 The Tahoe, Sun3, Sequent and Celerity use 4.2. In regard to the
27 Apollo, see the file APOLLO in this directory. NCR Tower32,
28 HP9000s300, Stride and Nu run forms of System V. System V rel 2 also
29 works on Vaxes now. See etc/MACHINES.
30
31 * System V Unix supported, including subprocesses.
32
33 It should be possible now to bring up Emacs on a machine running
34 mere unameliorated system V Unix with no major work; just possible bug
35 fixes. But you can expect to find a handful of those on any machine
36 that Emacs has not been run on before.
37
38 * Berkeley 4.1 Unix supported.
39
40 See etc/MACHINES.
41
42 * Portable `alloca' provided.
43
44 Emacs can now run on machines that do not and cannot support the library
45 subroutine `alloca' in the canonical fashion, using an `alloca' emulation
46 written in C.
47
48 * On-line manual.
49
50 Info now contains an Emacs manual, with essentially the same text
51 as in the printed manual.
52
53 The manual can now be printed with a standard TeX.
54
55 Nicely typeset and printed copies of the manual are available
56 from the Free Software Foundation.
57
58 * Backup file version numbers.
59
60 Emacs now supports version numbers in backup files.
61
62 The first time you save a particular file in one editing session,
63 the old file is copied or renamed to serve as a backup file.
64 In the past, the name for the backup file was made by appending `~'
65 to the end of the original file name.
66
67 Now the backup file name can instead be made by appending ".~NN~" to
68 the original file name, where NN stands for a numeric version. Each
69 time this is done, the new version number is one higher than the
70 highest previously used.
71
72 Thus, the active, current file does not have a version number.
73 Only the backups have them.
74
75 This feature is controlled by the variable `version-control'. If it
76 is `nil', as normally, then numbered backups are made only for files
77 that already have numbered backups. Backup names with just `~' are
78 used for files that have no numbered backups.
79
80 If `version-control' is `never', then the backup file's name is
81 made with just `~' in any case.
82
83 If `version-control' is not `nil' or `never', numbered backups are
84 made unconditionally.
85
86 To prevent unlimited consumption of disk space, Emacs can delete
87 old backup versions automatically. Generally Emacs keeps the first
88 few backups and the latest few backups, deleting any in between.
89 This happens every time a new backup is made. The two variables that
90 control the deletion are `kept-old-versions' and `kept-new-versions'.
91 Their values are, respectively, the number of oldest backups to keep
92 and the number of newest ones to keep, each time a new backup is made.
93 The value of `kept-new-versions' includes the backup just created.
94 By default, both values are 2.
95
96 If `trim-versions-without-asking' is non-`nil', the excess middle versions
97 are deleted without a murmur. If it is `nil', the default, then you
98 are asked whether the excess middle versions should really be deleted.
99
100 Dired has a new command `.' which marks for deletion all but the latest
101 and oldest few of every numeric series of backups. `kept-old-versions'
102 controls the number of oldest versions to keep, and `dired-kept-versions'
103 controls the number of latest versions to keep. A numeric argument to
104 the `.' command, if positive, specifies the number of latest versions
105 to keep, overriding `dired-kept-versions'. A negative argument specifies
106 the number of oldest versions to keep, using minus the argument to override
107 `kept-old-versions'.
108
109 * Immediate conflict detection.
110
111 Emacs now locks the files it is modifying, so that if
112 you start to modify within Emacs a file that is being
113 modified in another Emacs, you get an immediate warning.
114
115 The warning gives you three choices:
116 1. Give up, and do not make any changes.
117 2. Make changes anyway at your own risk.
118 3. Make changes anyway, and record yourself as
119 the person locking the file (instead of whoever
120 was previously recorded.)
121
122 Just visiting a file does not lock it. It is locked
123 when you try to change the buffer that is visiting the file.
124 Saving the file unlocks it until you make another change.
125
126 Locking is done by writing a lock file in a special designated
127 directory. If such a directory is not provided and told to
128 Emacs as part of configuring it for your machine, the lock feature
129 is turned off.
130
131 * M-x recover-file.
132
133 This command is used to get a file back from an auto-save
134 (after a system crash, for example). It takes a file name
135 as argument and visits that file, but gets the data from the
136 file's last auto save rather than from the file itself.
137
138 * M-x normal-mode.
139
140 This command resets the current buffer's major mode and local
141 variables to be as specified by the visit filename, the -*- line
142 and/or the Local Variables: block at the end of the buffer.
143 It is the same thing normally done when a file is first visited.
144
145 * Echo area messages disappear shortly if minibuffer is in use.
146
147 Any message in the echo area disappears after 2 seconds
148 if the minibuffer is active. This allows the minibuffer
149 to become visible again.
150
151 * C-z on System V runs a subshell.
152
153 On systems which do not allow programs to be suspended, the C-z command
154 forks a subshell that talks directly to the terminal, and then waits
155 for the subshell to exit. This gets almost the effect of suspending
156 in that you can run other programs and then return to Emacs. However,
157 you cannot log out from the subshell.
158
159 * C-c is always a prefix character.
160
161 Also, subcommands of C-c which are letters are always
162 reserved for the user. No standard Emacs major mode
163 defines any of them.
164
165 * Picture mode C-c commands changed.
166
167 The old C-c k command is now C-c C-w.
168 The old C-c y command is now C-c C-x.
169
170 * Shell mode commands changed.
171
172 All the special commands of Shell mode are now moved onto
173 the C-c prefix. Most are not changed aside from that.
174 Thus, the old Shell mode C-c command (kill current job)
175 is now C-c C-c; the old C-z (suspend current job) is now C-c C-z,
176 etc.
177
178 The old C-x commands are now C-c commands. C-x C-k (kill output)
179 is now C-c C-o, and C-x C-v (show output) is now C-c C-r.
180
181 The old M-= (copy previous input) command is now C-c C-y.
182
183 * Shell mode recognizes aliases for `pushd', `popd' and `cd'.
184
185 Shell mode now uses the variable `shell-pushd-regexp' as a
186 regular expression to recognize any command name that is
187 equivalent to a `pushd' command. By default it is set up
188 to recognize just `pushd' itself. If you use aliases for
189 `pushd', change the regexp to recognize them as well.
190
191 There are also `shell-popd-regexp' to recognize commands
192 with the effect of a `popd', and `shell-cd-regexp' to recognize
193 commands with the effect of a `cd'.
194
195 * "Exit" command in certain modes now C-c C-c.
196
197 These include electric buffer menu mode, electric command history
198 mode, Info node edit mode, and Rmail edit mode. In all these
199 modes, the command to exit used to be just C-c.
200
201 * Outline mode changes.
202
203 Lines that are not heading lines are now called "body" lines.
204 The command `hide-text' is renamed to `hide-body'.
205 The key M-H is renamed to C-c C-h.
206 The key M-S is renamed to C-c C-s.
207 The key M-s is renamed to C-c C-i.
208
209 Changes of line visibility are no longer undoable. As a result,
210 they no longer use up undo memory and no longer interfere with
211 undoing earlier commands.
212
213 * Rmail changes.
214
215 The s and q commands now both expunge deleted messages before saving;
216 use C-x C-s to save without expunging.
217
218 The u command now undeletes the current message if it is deleted;
219 otherwise, it backs up as far as necessary to reach a deleted message,
220 and undeletes that one. The u command in the summary behaves likewise,
221 but considers only messages listed in the summary. The M-u command
222 has been eliminated.
223
224 The o and C-o keys' meanings are interchanged.
225 o now outputs to an Rmail file, and C-o to a Unix mail file.
226
227 The F command (rmail-find) is renamed to M-s (rmail-search).
228 Various new commands and features exist; see the Emacs manual.
229
230 * Local bindings described first in describe-bindings.
231
232 * [...], {...} now balance in Fundamental mode.
233
234 * Nroff mode and TeX mode.
235
236 The are two new major modes for editing nroff input and TeX input.
237 See the Emacs manual for full information.
238
239 * New C indentation style variable `c-brace-imaginary-offset'.
240
241 The value of `c-brace-imaginary-offset', normally zero, controls the
242 indentation of a statement inside a brace-group where the open-brace
243 is not the first thing on a line. The value says where the open-brace
244 is imagined to be, relative to the first nonblank character on the line.
245
246 * Dired improvements.
247
248 Dired now normally keeps the cursor at the beginning of the file name,
249 not at the beginning of the line. The most used motion commands are
250 redefined in Dired to position the cursor this way.
251
252 `n' and `p' are now equivalent in dired to `C-n' and `C-p'.
253
254 If any files to be deleted cannot be deleted, their names are
255 printed in an error message.
256
257 If the `v' command is invoked on a file which is a directory,
258 dired is run on that directory.
259
260 * `visit-tag-table' renamed `visit-tags-table'.
261
262 This is so apropos of `tags' finds everything you need to
263 know about in connection with Tags.
264
265 * `mh-e' library uses C-c as prefix.
266
267 All the special commands of `mh-rmail' now are placed on a
268 C-c prefix rather than on the C-x prefix. This is for
269 consistency with other special modes with their own commands.
270
271 * M-$ or `spell-word' checks word before point.
272
273 It used to check the word after point.
274
275 * Quitting during autoloading no longer causes trouble.
276
277 Now, when a file is autoloaded, all function redefinitions
278 and `provide' calls are recorded and are undone if you quit
279 before the file is finished loading.
280
281 As a result, it no longer happens that some of the entry points
282 which are normally autoloading have been defined already, but the
283 entire file is not really present to support them.
284
285 * `else' can now be indented correctly in C mode.
286
287 TAB in C mode now knows which `if' statement an `else' matches
288 up with, and can indent the `else' correctly under the `if',
289 even if the `if' contained such things as another `if' statement,
290 or a `while' or `for' statement, with no braces around it.
291
292 * `batch-byte-compile'
293
294 Runs byte-compile-file on the files specified on the command line.
295 All the rest of the command line arguments are taken as files to
296 compile (or, if directories, to do byte-recompile-directory on).
297 Must be used only with -batch, and kills emacs on completion.
298 Each file will be processed even if an error occurred previously.
299 For example, invoke `emacs -batch -f batch-byte-compile *.el'.
300
301 * `-batch' changes.
302
303 `-batch' now implies `-q': no init file is loaded by Emacs when
304 `-batch' is used. Also, no `term/TERMTYPE.el' file is loaded. Auto
305 saving is not done except in buffers in which it is explicitly
306 requested. Also, many echo-area printouts describing what is going on
307 are inhibited in batch mode, so that the only output you get is the
308 output you program specifically.
309
310 One echo-area message that is not suppressed is the one that says
311 that a file is being loaded. That is because you can prevent this
312 message by passing `t' as the third argument to `load'.
313
314 * Display of search string in incremental search.
315
316 Now, when you type C-s or C-r to reuse the previous search
317 string, that search string is displayed immediately in the echo area.
318
319 Three dots are displayed after the search string while search
320 is actually going on.
321
322 * View commands.
323
324 The commands C-x ], C-x [, C-x /, C-x j and C-x o are now
325 available inside `view-buffer' and `view-file', with their
326 normal meanings.
327
328 * Full-width windows preferred.
329
330 The ``other-window'' commands prefer other full width windows,
331 and will split only full width windows.
332
333 * M-x rename-file can copy if necessary.
334
335 When used between different file systems, since actual renaming does
336 not work, the old file will be copied and deleted.
337
338 * Within C-x ESC, you can pick the command to repeat.
339
340 While editing a previous command to be repeated, inside C-x ESC,
341 you can now use the commands M-p and M-n to pick an earlier or
342 later command to repeat. M-n picks the next earlier command
343 and M-p picks the next later one. The new command appears in
344 the minibuffer, and you can go ahead and edit it, and repeat it
345 when you exit the minibuffer.
346
347 Using M-n or M-p within C-x ESC is like having used a different
348 numeric argument when you ran C-x ESC in the first place.
349
350 The command you finally execute using C-x ESC is added to the
351 front of the command history, unless it is identical with the
352 first thing in the command history.
353
354 * Use C-c C-c to exit from editing within Info.
355
356 It used to be C-z for this. Somehow this use of C-z was
357 left out when all the others were moved. The intention is that
358 C-z should always suspend Emacs.
359
360 * Default arg to C-x < and C-x > now window width minus 2.
361
362 These commands, which scroll the current window horizontally
363 by a specified number of columns, now scroll a considerable
364 distance rather than a single column if used with no argument.
365
366 * Auto Save Files Deleted.
367
368 The default value of `delete-auto-save-files' is now `t', so that
369 when you save a file for real, its auto save file is deleted.
370
371 * Rnews changes.
372
373 The N, P and J keys in Rnews are renamed to M-n, M-p and M-j.
374 These keys move among newsgroups.
375
376 The n and p keys for moving sequentially between news articles now
377 accept repeat count arguments, and the + and - keys, made redundant by
378 this change, are eliminated.
379
380 The s command for outputting the current article to a file
381 is renamed as o, to be compatible with Rmail.
382
383 * Sendmail changes.
384
385 If you have a ~/.mailrc file, Emacs searches it for mailing address
386 aliases, and these aliases are expanded when you send mail in Emacs.
387
388 Fcc fields can now be used in the headers in the *mail* buffer
389 to specify files in which copies of the message should be put.
390 The message is written into those files in Unix mail file format.
391 The message as sent does not contain any Fcc fields in its header.
392 You can use any number of Fcc fields, but only one file name in each one.
393 The variable `mail-archive-file-name', if non-`nil', can be a string
394 which is a file name; an Fcc to that file will be inserted in every
395 message when you begin to compose it.
396
397 A new command C-c q now exists in Mail mode. It fills the
398 paragraphs of an old message that had been inserted with C-c y.
399
400 When the *mail* buffer is put in Mail mode, text-mode-hook
401 is now run in addition to mail-mode-hook. text-mode-hook
402 is run first.
403
404 The new variable `mail-header-separator' now specifies the string
405 to use on the line that goes between the headers and the message text.
406 By default it is still "--text follows this line--".
407
408 * Command history truncated automatically.
409
410 Just before each garbage collection, all but the last 30 elements
411 of the command history are discarded.
412
413 \f
414 Incompatible Lisp Programming Changes in Emacs 17
415
416 * `&quote' no longer supported.
417
418 This feature, which allowed Lisp functions to take arguments
419 that were not evaluated, has been eliminated, because it is
420 inescapably hard to make the compiler work properly with such
421 functions.
422
423 You should use macros instead. A simple way to change any
424 code that uses `&quote' is to replace
425
426 (defun foo (&quote x y z) ...
427
428 with
429
430 (defmacro foo (x y z)
431 (list 'foo-1 (list 'quote x) (list 'quote y) (list 'quote z)))
432
433 (defun foo-1 (x y z) ...
434
435 * Functions `region-to-string' and `region-around-match' removed.
436
437 These functions were made for compatibility with Gosling Emacs, but it
438 turns out to be undesirable to use them in GNU Emacs because they use
439 the mark. They have been eliminated from Emacs proper, but are
440 present in mlsupport.el for the sake of converted mocklisp programs.
441
442 If you were using `region-to-string', you should instead use
443 `buffer-substring'; then you can pass the bounds as arguments and
444 can avoid setting the mark.
445
446 If you were using `region-around-match', you can use instead
447 the two functions `match-beginning' and `match-end'. These give
448 you one bound at a time, as a numeric value, without changing
449 point or the mark.
450
451 * Function `function-type' removed.
452
453 This just appeared not to be very useful. It can easily be written in
454 Lisp if you happen to want it. Just use `symbol-function' to get the
455 function definition of a symbol, and look at its data type or its car
456 if it is a list.
457
458 * Variable `buffer-number' removed.
459
460 You can still use the function `buffer-number' to find out
461 a buffer's unique number (assigned in order of creation).
462
463 * Variable `executing-macro' renamed `executing-kbd-macro'.
464
465 This variable is the currently executing keyboard macro, as
466 a string, or `nil' when no keyboard macro is being executed.
467
468 * Loading term/$TERM.
469
470 The library term/$TERM (where $TERM get replaced by your terminal
471 type), which is done by Emacs automatically when it starts up, now
472 happens after the user's .emacs file is loaded.
473
474 In previous versions of Emacs, these files had names of the form
475 term-$TERM; thus, for example, term-vt100.el, but now they live
476 in a special subdirectory named term, and have names like
477 term/vt100.el.
478
479 * `command-history' format changed.
480
481 The elements of this list are now Lisp expressions which can
482 be evaluated directly to repeat a command.
483
484 * Unused editing commands removed.
485
486 The functions `forward-to-word', `backward-to-word',
487 `upcase-char', `mark-beginning-of-buffer' and `mark-end-of-buffer'
488 have been removed. Their definitions can be found in file
489 lisp/unused.el if you need them.
490
491 \f
492 Upward Compatible Lisp Programming Changes in Emacs 17
493
494 * You can now continue after errors and quits.
495
496 When the debugger is entered because of a C-g, due to
497 a non-`nil' value of `debug-on-quit', the `c' command in the debugger
498 resumes execution of the code that was running when the quit happened.
499 Use the `q' command to go ahead and quit.
500
501 The same applies to some kinds of errors, but not all. Errors
502 signaled with the Lisp function `signal' can be continued; the `c'
503 command causes `signal' to return. The `r' command causes `signal' to
504 return the value you specify. The `c' command is equivalent to `r'
505 with the value `nil'.
506
507 For a `wrong-type-argument' error, the value returned with the `r'
508 command is used in place of the invalid argument. If this new value
509 is not valid, another error occurs.
510
511 Errors signaled with the function `error' cannot be continued.
512 If you try to continue, the error just happens again.
513
514 * `dot' renamed `point'.
515
516 The word `dot' has been replaced with `point' in all
517 function and variable names, including:
518
519 point, point-min, point-max,
520 point-marker, point-min-marker, point-max-marker,
521 window-point, set-window-point,
522 point-to-register, register-to-point,
523 exchange-point-and-mark.
524
525 The old names are still supported, for now.
526
527 * `string-match' records position of end of match.
528
529 After a successful call to `string-match', `(match-end 0)' will
530 return the index in the string of the first character after the match.
531 Also, `match-begin' and `match-end' with nonzero arguments can be
532 used to find the indices of beginnings and ends of substrings matched
533 by subpatterns surrounded by parentheses.
534
535 * New function `insert-before-markers'.
536
537 This function is just like `insert' except in the handling of any
538 relocatable markers that are located at the point of insertion.
539 With `insert', such markers end up pointing before the inserted text.
540 With `insert-before-markers', they end up pointing after the inserted
541 text.
542
543 * New function `copy-alist'.
544
545 This function takes one argument, a list, and makes a disjoint copy
546 of the alist structure. The list itself is copied, and each element
547 that is a cons cell is copied, but the cars and cdrs of elements
548 remain shared with the original argument.
549
550 This is what it takes to get two alists disjoint enough that changes
551 in one do not change the result of `assq' on the other.
552
553 * New function `copy-keymap'.
554
555 This function takes a keymap as argument and returns a new keymap
556 containing initially the same bindings. Rebindings in either one of
557 them will not alter the bindings in the other.
558
559 * New function `copy-syntax-table'.
560
561 This function takes a syntax table as argument and returns a new
562 syntax table containing initially the same syntax settings. Changes
563 in either one of them will not alter the other.
564
565 * Randomizing the random numbers.
566
567 `(random t)' causes the random number generator's seed to be set
568 based on the current time and Emacs's process id.
569
570 * Third argument to `modify-syntax-entry'.
571
572 The optional third argument to `modify-syntax-entry', if specified
573 should be a syntax table. The modification is made in that syntax table
574 rather than in the current syntax table.
575
576 * New function `run-hooks'.
577
578 This function takes any number of symbols as arguments.
579 It processes the symbols in order. For each symbol which
580 has a value (as a variable) that is non-nil, the value is
581 called as a function, with no arguments.
582
583 This is useful in major mode commands.
584
585 * Second arg to `switch-to-buffer'.
586
587 If this function is given a non-`nil' second argument, then the
588 selection being done is not recorded on the selection history.
589 The buffer's position in the history remains unchanged. This
590 feature is used by the view commands, so that the selection history
591 after exiting from viewing is the same as it was before.
592
593 * Second arg to `display-buffer' and `pop-to-buffer'.
594
595 These two functions both accept an optional second argument which
596 defaults to `nil'. If the argument is not `nil', it means that
597 another window (not the selected one) must be found or created to
598 display the specified buffer in, even if it is already shown in
599 the selected window.
600
601 This feature is used by `switch-to-buffer-other-window'.
602
603 * New variable `completion-ignore-case'.
604
605 If this variable is non-`nil', completion allows strings
606 in different cases to be considered matching. The global value
607 is `nil'
608
609 This variable exists for the sake of commands that are completing
610 an argument in which case is not significant. It is possible
611 to change the value globally, but you might not like the consequences
612 in the many situations (buffer names, command names, file names)
613 where case makes a difference.
614
615 * Major modes related to Text mode call text-mode-hook, then their own hooks.
616
617 For example, turning on Outline mode first calls the value of
618 `text-mode-hook' as a function, if it exists and is non-`nil',
619 and then does likewise for the variable `outline-mode-hook'.
620
621 * Defining new command line switches.
622
623 You can define a new command line switch in your .emacs file
624 by putting elements on the value of `command-switch-alist'.
625 Each element of this list should look like
626 (SWITCHSTRING . FUNCTION)
627 where SWITCHSTRING is a string containing the switch to be
628 defined, such as "-foo", and FUNCTION is a function to be called
629 if such an argument is found in the command line. FUNCTION
630 receives the command line argument, a string, as its argument.
631
632 To implement a switch that uses up one or more following arguments,
633 use the fact that the remaining command line arguments are kept
634 as a list in the variable `command-line-args'. FUNCTION can
635 examine this variable, and do
636 (setq command-line-args (cdr command-line-args)
637 to "use up" an argument.
638
639 * New variable `load-in-progress'.
640
641 This variable is non-`nil' when a file of Lisp code is being read
642 and executed by `load'.
643
644 * New variable `print-length'.
645
646 The value of this variable is normally `nil'. It may instead be
647 a number; in that case, when a list is printed by `prin1' or
648 `princ' only that many initial elements are printed; the rest are
649 replaced by `...'.
650
651 * New variable `find-file-not-found-hook'.
652
653 If `find-file' or any of its variants is used on a nonexistent file,
654 the value of `find-file-not-found-hook' is called (if it is not `nil')
655 with no arguments, after creating an empty buffer. The file's name
656 can be found as the value of `buffer-file-name'.
657
658 * Processes without buffers.
659
660 In the function `start-process', you can now specify `nil' as
661 the process's buffer. You can also set a process's buffer to `nil'
662 using `set-process-buffer'.
663
664 The reason you might want to do this is to prevent the process
665 from being killed because any particular buffer is killed.
666 When a process has a buffer, killing that buffer kills the
667 process too.
668
669 When a process has no buffer, its output is lost unless it has a
670 filter, and no indication of its being stopped or killed is given
671 unless it has a sentinel.
672
673 * New function `user-variable-p'. `v' arg prompting changed.
674
675 This function takes a symbol as argument and returns `t' if
676 the symbol is defined as a user option variable. This means
677 that it has a `variable-documentation' property whose value is
678 a string starting with `*'.
679
680 Code `v' in an interactive arg reading string now accepts
681 user variables only, and completion is limited to the space of
682 user variables.
683
684 The function `read-variable' also now accepts and completes
685 over user variables only.
686
687 * CBREAK mode input is the default in Unix 4.3 bsd.
688
689 In Berkeley 4.3 Unix, there are sufficient features for Emacs to
690 work fully correctly using CBREAK mode and not using SIGIO.
691 Therefore, this mode is the default when running under 4.3.
692 This mode corresponds to `nil' as the first argument to
693 `set-input-mode'. You can still select either mode by calling
694 that function.
695
696 * Information on memory usage.
697
698 The new variable `data-bytes-used' contains the number
699 of bytes of impure space allocated in Emacs.
700 `data-bytes-free' contains the number of additional bytes
701 Emacs could allocate. Note that space formerly allocated
702 and freed again still counts as `used', since it is still
703 in Emacs's address space.
704
705 * No limit on size of output from `format'.
706
707 The string output from `format' used to be truncated to
708 100 characters in length. Now it can have any length.
709
710 * New errors `void-variable' and `void-function' replace `void-symbol'.
711
712 This change makes it possible to have error messages that
713 clearly distinguish undefined variables from undefined functions.
714 It also allows `condition-case' to handle one case without the other.
715
716 * `replace-match' handling of `\'.
717
718 In `replace-match', when the replacement is not literal,
719 `\' in the replacement string is always treated as an
720 escape marker. The only two special `\' constructs
721 are `\&' and `\DIGIT', so `\' followed by anything other than
722 `&' or a digit has no effect. `\\' is necessary to include
723 a `\' in the replacement text.
724
725 This level of escaping is comparable with what goes on in
726 a regular expression. It is over and above the level of `\'
727 escaping that goes on when strings are read in Lisp syntax.
728
729 * New error `invalid-regexp'.
730
731 A regexp search signals this type of error if the argument does
732 not meet the rules for regexp syntax.
733
734 * `kill-emacs' with argument.
735
736 If the argument is a number, it is returned as the exit status code
737 of the Emacs process. If the argument is a string, its contents
738 are stuffed as pending terminal input, to be read by another program
739 after Emacs is dead.
740
741 * New fifth argument to `subst-char-in-region'.
742
743 This argument is optional and defaults to `nil'. If it is not `nil',
744 then the substitutions made by this function are not recorded
745 in the Undo mechanism.
746
747 This feature should be used with great care. It is now used
748 by Outline mode to make lines visible or invisible.
749
750 * ` *Backtrace*' buffer renamed to `*Backtrace*'.
751
752 As a result, you can now reselect this buffer easily if you switch to
753 another while in the debugger.
754
755 Exiting from the debugger kills the `*Backtrace*' buffer, so you will
756 not try to give commands in it when no longer really in the debugger.
757
758 * New function `switch-to-buffer-other-window'.
759
760 This is the new primitive to select a specified buffer (the
761 argument) in another window. It is not quite the same as
762 `pop-to-buffer', because it is guaranteed to create another
763 window (assuming there is room on the screen) so that it can
764 leave the current window's old buffer displayed as well.
765
766 All functions to select a buffer in another window should
767 do so by calling this new function.
768
769 * New variable `minibuffer-help-form'.
770
771 At entry to the minibuffer, the variable `help-form' is bound
772 to the value of `minibuffer-help-form'.
773
774 `help-form' is expected at all times to contain either `nil'
775 or an expression to be executed when C-h is typed (overriding
776 teh definition of C-h as a command). `minibuffer-help-form'
777 can be used to provide a different default way of handling
778 C-h while in the minibuffer.
779
780 * New \{...} documentation construct.
781
782 It is now possible to set up the documentation string for
783 a major mode in such a way that it always describes the contents
784 of the major mode's keymap, as it has been customized.
785 To do this, include in the documentation string the characters `\{'
786 followed by the name of the variable containing the keymap,
787 terminated with `}'. (The `\' at the beginning probably needs to
788 be quoted with a second `\', to include it in the doc string.)
789 This construct is normally used on a line by itself, with no blank
790 lines before or after.
791
792 For example, the documentation string for the function `c-mode' contains
793 ...
794 Paragraphs are separated by blank lines only.
795 Delete converts tabs to spaces as it moves back.
796 \\{c-mode-map}
797 Variables controlling indentation style:
798 ...
799
800 * New character syntax class "punctuation".
801
802 Punctuation characters behave like whitespace in word and
803 list parsing, but can be distinguished in regexps and in the
804 function `char-syntax'. Punctuation syntax is represented by
805 a period in `modify-syntax-entry'.
806
807 * `auto-mode-alist' no longer needs entries for backup-file names,
808
809 Backup suffixes of all kinds are now stripped from a file's name
810 before searching `auto-mode-alist'.
811
812
813 \f
814 Changes in Emacs 16
815
816 * No special code for Ambassadors, VT-100's and Concept-100's.
817
818 Emacs now controls these terminals based on the termcap entry, like
819 all other terminals. Formerly it did not refer to the termcap entries
820 for those terminal types, and often the termcap entries for those
821 terminals are wrong or inadequate. If you experience worse behavior
822 on these terminals than in version 15, you can probably correct it by
823 fixing up the termcap entry. See ./TERMS for more info.
824
825 See ./TERMS in any case if you find that some terminal does not work
826 right with Emacs now.
827
828 * Minibuffer default completion character is TAB (and not ESC).
829
830 So that ESC can be used in minibuffer for more useful prefix commands.
831
832 * C-z suspends Emacs in all modes.
833
834 Formerly, C-z was redefined for other purposes by certain modes,
835 such as Buffer Menu mode. Now other keys are used for those purposes,
836 to keep the meaning of C-z uniform.
837
838 * C-x ESC (repeat-complex-command) allows editing the command it repeats.
839
840 Instead of asking for confirmation to re-execute a command from the
841 command history, the command is placed, in its Lisp form, into the
842 minibuffer for editing. You can confirm by typing RETURN, change some
843 arguments and then confirm, or abort with C-g.
844
845 * Incremental search does less redisplay on slow terminals.
846
847 If the terminal baud rate is <= the value of `isearch-slow-speed',
848 incremental searching outside the text on the screen creates
849 a single-line window and uses that to display the line on which
850 a match has been found. Exiting or quitting the search restores
851 the previous window configuration and redisplays the window you
852 were searching in.
853
854 The initial value of `isearch-slow-speed' is 1200.
855
856 This feature is courtesy of crl@purdue.
857
858 * Recursive minibuffers not allowed.
859
860 If the minibuffer window is selected, most commands that would
861 use the minibuffer gets an error instead. (Specific commands
862 may override this feature and therefore still be allowed.)
863
864 Strictly speaking, recursive entry to the minibuffer is still
865 possible, because you can switch to another window after
866 entering the minibuffer, and then minibuffer-using commands
867 are allowed. This is still allowed by a deliberate decision:
868 if you know enough to switch windows while in the minibuffer,
869 you can probably understand recursive minibuffers.
870
871 This may be overridden by binding the variable
872 `enable-recursive-minibuffers' to t.
873
874 * New major mode Emacs-Lisp mode, for editing Lisp code to run in Emacs.
875
876 The mode in which emacs lisp files is edited is now called emacs-lisp-mode
877 and is distinct from lisp-mode. The latter is intended for use with
878 lisps external to emacs.
879
880 The hook which is funcalled (if non-nil) on entry to elisp-mode is now
881 called emacs-lisp-mode-hook. A consequence of this changes is that
882 .emacs init files which set the value of lisp-mode-hook may need to be
883 changed to use the new names.
884
885 * Correct matching of parentheses is checked on insertion.
886
887 When you insert a close-paren, the matching open-paren
888 is checked for validity. The close paren must be the kind
889 of close-paren that the open-paren says it should match.
890 Otherwise, a warning message is printed. close-paren immediately
891 preceded by quoting backslash syntax character is not matched.
892
893 This feature was originally written by shane@mit-ajax.
894
895 * M-x list-command-history
896 * M-x command-history-mode
897 * M-x electric-command-history
898
899 `list-command-history' displays forms from the command history subject
900 to user controlled filtering and limit on number of forms. It leaves
901 the buffer in `command-history-mode'. M-x command-history-mode
902 recomputes the command history each time it is invoked via
903 `list-command-history'. It is like Emacs-Lisp mode except that characters
904 don't insert themselves and provision is made for re-evaluating an
905 expression from the list. `electric-command-history' pops up a type
906 out window with the command history displayed. If the very next
907 character is Space, the window goes away and the previous window
908 configuration is restored. Otherwise you can move around in the
909 history and select an expression for evaluation *inside* the buffer
910 which invoked `electric-command-history'. The original window
911 configuration is restored on exit unless the command selected changes
912 it.
913
914 * M-x edit-picture
915
916 Enters a temporary major mode (the previous major mode is remembered
917 and can is restored on exit) designed for editing pictures and tables.
918 Printing characters replace rather than insert themselves with motion
919 afterwards that is user controlled (you can specify any of the 8
920 compass directions). Special commands for movement are provided.
921 Special commands for hacking tabs and tab stops are provided. Special
922 commands for killing rectangles and overlaying them are provided. See
923 the documentation of function edit-picture for more details.
924
925 Calls value of `edit-picture-hook' on entry if non-nil.
926
927 * Stupid C-s/C-q `flow control' supported.
928
929 Do (set-input-mode nil t) to tell Emacs to use CBREAK mode and interpret
930 C-s and C-q as flow control commands. (set-input-mode t nil) switches
931 back to interrupt-driven input. (set-input-mode nil nil) uses CBREAK
932 mode but no `flow control'; this may make it easier to run Emacs under
933 certain debuggers that have trouble dealing with inferiors that use SIGIO.
934
935 CBREAK mode has certain inherent disadvantages, which are why it is
936 not the default:
937
938 Meta-keys are ignored; CBREAK mode discards the 8th bit of
939 input characters.
940
941 Control-G as keyboard input discards buffered output,
942 and therefore can cause incorrect screen updating.
943
944 The use of `flow control' has its own additional disadvantage: the
945 characters C-s and C-q are not available as editing commands. You can
946 partially compensate for this by setting up a keyboard-translate-table
947 (see file ONEWS) that maps two other characters (such as C-^ and C-\) into
948 C-s and C-q. Of course, C-^ and C-\ are commonly used as escape
949 characters in remote-terminal programs. You really can't win except
950 by getting rid of this sort of `flow control.'
951
952 The configuration switch CBREAK_INPUT is now eliminated.
953 INTERRUPT_INPUT exists only to specify the default mode of operation;
954 #define it to make interrupt-driven input the default.
955
956 * Completion of directory names provides a slash.
957
958 If file name completion yields the name of a directory,
959 a slash is appended to it.
960
961 * Undo can clear modified-flag.
962
963 If you undo changes in a buffer back to a state in which the
964 buffer was not considered "modified", then it is labelled as
965 once again "unmodified".
966
967 * M-x run-lisp.
968
969 This command creates an inferior Lisp process whose input and output
970 appear in the Emacs buffer named `*lisp*'. That buffer uses a major mode
971 called inferior-lisp-mode, which has many of the commands of lisp-mode
972 and those of shell-mode. Calls the value of shell-mode-hook and
973 lisp-mode-hook, in that order, if non-nil.
974
975 Meanwhile, in lisp-mode, the command C-M-x is defined to
976 send the current defun as input to the `*lisp*' subprocess.
977
978 * Mode line says `Narrow' when buffer is clipped.
979
980 If a buffer has a clipping restriction (made by `narrow-to-region')
981 then its mode line contains the word `Narrow' after the major and
982 minor modes.
983
984 * Mode line says `Abbrev' when abbrev mode is on.
985
986 * add-change-log-entry takes prefix argument
987
988 Giving a prefix argument makes it prompt for login name, full name,
989 and site name, with defaults. Otherwise the defaults are used
990 with no confirmation.
991
992 * M-x view-buffer and M-x view-file
993
994 view-buffer selects the named buffer, view-file finds the named file; the
995 resulting buffer is placed into view-mode (a recursive edit). The normal
996 emacs commands are not available. Instead a set of special commands is
997 provided which faclitate moving around in the buffer, searching and
998 scrolling by screenfuls. Exiting view-mode returns to the buffer in which
999 the view-file or view-buffer command was given.
1000 Type ? or h when viewing for a complete list of view commands.
1001 Each calls value of `view-hook' if non-nil on entry.
1002
1003 written by shane@mit-ajax.
1004
1005 * New key commands in dired.
1006
1007 `v' views (like more) the file on the current line.
1008 `#' marks auto-save files for deletion.
1009 `~' marks backup files for deletion.
1010 `r' renames a file and updates the directory listing if the
1011 file is renamed to same directory.
1012 `c' copies a file and updates the directory listing if the file is
1013 copied to the same directory.
1014
1015 * New function `electric-buffer-list'.
1016
1017 This pops up a buffer describing the set of emacs buffers.
1018 Immediately typing space makes the buffer list go away and returns
1019 to the buffer and window which were previously selected.
1020
1021 Otherwise one may use the c-p and c-n commands to move around in the
1022 buffer-list buffer and type Space or C-z to select the buffer on the
1023 cursor's line. There are a number of other commands which are the same
1024 as those of buffer-menu-mode.
1025
1026 This is a useful thing to bind to c-x c-b in your `.emacs' file if the
1027 rather non-standard `electric' behaviour of the buffer list suits your taste.
1028 Type C-h after invoking electric-buffer-list for more information.
1029
1030 Calls value of `electric-buffer-menu-mode-hook' if non-nil on entry.
1031 Calls value of `after-electric-buffer-menu' on exit (select) if non-nil.
1032 \f
1033 Changes in version 16 for mail reading and sending
1034
1035 * sendmail prefix character is C-c (and not C-z). New command C-c w.
1036
1037 For instance C-c C-c (or C-c C-s) sends mail now rather than C-z C-z.
1038 C-c w inserts your `signature' (contents of ~/.signature) at the end
1039 of mail.
1040
1041 * New feature in C-c y command in sending mail.
1042
1043 C-c y is the command to insert the message being replied to.
1044 Normally it deletes most header fields and indents everything
1045 by three spaces.
1046
1047 Now, C-c y does not delete header fields or indent.
1048 C-c y with any other numeric argument does delete most header
1049 fields, but indents by the amount specified in the argument.
1050
1051 * C-r command in Rmail edits current message.
1052
1053 It does this by switching to a different major mode
1054 which is nearly the same as Text mode. The only difference
1055 between it and text mode are the two command C-c and C-].
1056 C-c is defined to switch back to Rmail mode, and C-]
1057 is defined to restore the original contents of the message
1058 and then switch back to Rmail mode.
1059
1060 C-c and C-] are the only ways "back into Rmail", but you
1061 can switch to other buffers and edit them as usual.
1062 C-r in Rmail changes only the handling of the Rmail buffer.
1063
1064 * Rmail command `t' toggles header display.
1065
1066 Normally Rmail reformats messages to hide most header fields.
1067 `t' switches to display of all the header fields of the
1068 current message, as long as it remains current.
1069 Another `t' switches back to the usual display.
1070
1071 * Rmail command '>' goes to the last message.
1072
1073 * Rmail commands `a' and `k' set message attributes.
1074 `a' adds an attribute and `k' removes one. You specify
1075 the attrbute by name. You can specify either a built-in
1076 flag such as "deleted" or "filed", or a user-defined keyword
1077 (anything not recognized as built-in).
1078
1079 * Rmail commands `l' and `L' summarize by attributes.
1080
1081 These commands create a summary with one line per message,
1082 like `h', but they list only some of the messages. You
1083 specify which attribute (for `l') or attributes (for `L')
1084 the messages should have.
1085
1086 * Rmail can parse mmdf mail files.
1087
1088 * Interface to MH mail system.
1089
1090 mh-e is a front end for GNU emacs and the MH mail system. It
1091 provides a friendly and convient interface to the MH commands.
1092
1093 To read mail, invoke mh-rmail. This will inc new mail and display the
1094 scan listing on the screen. To see a summary of the mh-e commands,
1095 type ?. Help is available through the usual facilities.
1096
1097 To send mail, invoke mh-smail.
1098
1099 mh-e requires a copy of MH.5 that has been compiled with the MHE
1100 compiler switch.
1101
1102 From larus@berkeley.
1103 \f
1104 New hooks and parameters in version 16
1105
1106 * New variable `blink-matching-paren-distance'.
1107
1108 This is the maximum number of characters to search for
1109 an open-paren to match an inserted close-paren.
1110 The matching open-paren is shown and checked if it is found
1111 within this distance.
1112
1113 `nil' means search all the way to the beginning of the buffer.
1114 In this case, a warning message is printed if no matching
1115 open-paren is found.
1116
1117 This feature was originally written by shane@mit-ajax.
1118
1119 * New variable `find-file-run-dired'
1120
1121 If nil, find-file will report an error if an attempt to visit a
1122 directory is detected; otherwise, it runs dired on that directory.
1123 The default is t.
1124
1125 * Variable `dired-listing-switches' holds switches given to `ls' by dired.
1126
1127 The value should be a string containing `-' followed by letters.
1128 The letter `l' had better be included and letter 'F' had better be excluded!
1129 The default is "-al".
1130
1131 This feature was originally written by shane@mit-ajax.
1132
1133 * New variable `display-time-day-and-date'.
1134
1135 If this variable is set non-`nil', the function M-x display-time
1136 displays the day and date, as well as the time.
1137
1138 * New parameter `c-continued-statement-indent'.
1139
1140 This controls the extra indentation given to a line
1141 that continues a C statement started on the previous line.
1142 By default it is 2, which is why you would see
1143
1144 if (foo)
1145 bar ();
1146
1147
1148 * Changed meaning of `c-indent-level'.
1149
1150 The value of `c-brace-offset' used to be
1151 subtracted from the value of `c-indent-level' whenever
1152 that value was used. Now it is not.
1153
1154 As a result, `c-indent-level' is now the offset of
1155 statements within a block, relative to the line containing
1156 the open-brace that starts the block.
1157
1158 * turn-on-auto-fill is useful value for text-mode-hook.
1159
1160 (setq text-mode-hook 'turn-on-auto-fill)
1161 is all you have to do to make sure Auto Fill mode is turned
1162 on whenever you enter Text mode.
1163
1164 * Parameter explicit-shell-file-name for M-x shell.
1165
1166 This variable, if non-nil, specifies the file name to use
1167 for the shell to run if you do M-x shell.
1168 \f
1169 Changes in version 16 affecting Lisp programming:
1170
1171 * Documentation strings adapt to customization.
1172
1173 Often the documentation string for a command wants to mention
1174 another command. Simply stating the other command as a
1175 character sequence has a disadvantage: if the user customizes
1176 Emacs by moving that function to a different command, the
1177 cross reference in the documentation becomes wrong.
1178
1179 A new feature allows you to write the documentation string
1180 using a function name, and the command to run that function
1181 is looked up when the documentation is printed.
1182
1183 If a documentation string contains `\[' (two characters) then
1184 the following text, up to the next `]', is taken as a function name.
1185 Instead of printing that function name, the command that runs it is printed.
1186 (M-x is used to construct a command if no shorter one exists.)
1187
1188 For example, instead of putting `C-n' in a documentation string
1189 to refer to the C-n command, put in `\[next-line]'. (In practice
1190 you will need to quote the backslash with another backslash,
1191 due to the syntax for strings in Lisp and C.)
1192
1193 To include the literal characters `\[' in a documentation string,
1194 precede them with `\='. To include the characters `\=', precede
1195 them with `\='. For example, "\\=\\= is the way to quote \\=\\["
1196 will come out as `\= is the way to quote \['.
1197
1198 The new function `substitute-command-keys' takes a string possibly
1199 contaning \[...] constructs and replaces those constructs with
1200 the key sequences they currently stand for.
1201
1202 * Primitives `find-line-comment' and `find-line-comment-body' flushed.
1203
1204 Search for the value of `comment-start-skip' if you want to find
1205 whether and where a line has a comment.
1206
1207 * New function `auto-save-file-name-p'
1208
1209 Should return non-`nil' iff given a string which is the name of an
1210 auto-save file (sans directory name). If you redefine
1211 `make-auto-save-file-name', you should redefine this accordingly. By
1212 default, this function returns `t' for filenames beginning with
1213 character `#'.
1214
1215 * The value of `exec-directory' now ends in a slash.
1216
1217 This is to be compatible with most directory names in GNU Emacs.
1218
1219 * Dribble files and termscript files.
1220
1221 (open-dribble-file FILE) opens a dribble file named FILE. When a
1222 dribble file is open, every character Emacs reads from the terminal is
1223 written to the dribble file.
1224
1225 (open-termscript FILE) opens a termscript file named FILE. When a
1226 termscript file is open, all characters sent to the terminal by Emacs
1227 are also written in the termscript file.
1228
1229 The two of these together are very useful for debugging Emacs problems
1230 in redisplay.
1231
1232 * Upper case command characters by default are same as lower case.
1233
1234 If a character in a command is an upper case letter, and is not defined,
1235 Emacs uses the definition of the corresponding lower case letter.
1236 For example, if C-x U is not directly undefined, it is treated as
1237 a synonym for C-x u (undo).
1238
1239 * Undefined function errors versus undefined variable errors.
1240
1241 Void-symbol errors now say "boundp" if the symbol's value was void
1242 or "fboundp" if the function definition was void.
1243
1244 * New function `bury-buffer'.
1245
1246 The new function `bury-buffer' takes one argument, a buffer object,
1247 and puts that buffer at the end of the internal list of buffers.
1248 So it is the least preferred candidate for use as the default value
1249 of C-x b, or for other-buffer to return.
1250
1251 * Already-displayed buffers have low priority for display.
1252
1253 When a buffer is chosen automatically for display, or to be the
1254 default in C-x b, buffers already displayed in windows have lower
1255 priority than buffers not currently visible.
1256
1257 * `set-window-start' accepts a third argument NOFORCE.
1258
1259 This argument, if non-nil, prevents the window's force_start flag
1260 from being set. Setting the force_start flag causes the next
1261 redisplay to insist on starting display at the specified starting
1262 point, even if dot must be moved to get it onto the screen.
1263
1264 * New function `send-string-to-terminal'.
1265
1266 This function takes one argument, a string, and outputs its contents
1267 to the terminal exactly as specified: control characters, escape
1268 sequences, and all.
1269
1270 * Keypad put in command mode.
1271
1272 The terminal's keypad is now put into command mode, as opposed to
1273 numeric mode, while Emacs is running. This is done by means of the
1274 termcap `ks' and `ke' strings.
1275
1276 * New function `generate-new-buffer'
1277
1278 This function takes a string as an argument NAME and looks for a
1279 creates and returns a buffer called NAME if one did not already exist.
1280 Otherwise, it successively tries appending suffixes of the form "<1>",
1281 "<2>" etc to NAME until it creates a string which does not name an
1282 existing buffer. A new buffer with that name is the created and returned.
1283
1284 * New function `prin1-to-string'
1285 This function takes one argument, a lisp object, and returns a string
1286 containing that object's printed representation, such as `prin1'
1287 would output.
1288
1289 * New function `read-from-minibuffer'
1290 Lets you supply a prompt, initial-contents, a keymap, and specify
1291 whether the result should be interpreted as a string or a lisp object.
1292
1293 Old functions `read-minibuffer', `eval-minibuffer', `read-string' all
1294 take second optional string argument which is initial contents of
1295 minibuffer.
1296
1297 * minibuffer variable names changed (names of keymaps)
1298
1299 minibuf-local-map -> minibuffer-local-map
1300 minibuf-local-ns-map -> minibuffer-local-ns-map
1301 minibuf-local-completion-map -> minibuffer-local-completion-map
1302 minibuf-local-must-match-map -> minibuffer-local-must-match-map
1303 \f
1304 Changes in version 16 affecting configuring and building Emacs
1305
1306 * Configuration switch VT100_INVERSE eliminated.
1307
1308 You can control the use of inverse video on any terminal by setting
1309 the variable `inverse-video', or by changing the termcap entry. If
1310 you like, set `inverse-video' in your `.emacs' file based on
1311 examination of (getenv "TERM").
1312
1313 * New switch `-batch' makes Emacs run noninteractively.
1314
1315 If the switch `-batch' is used, Emacs treats its standard output
1316 and input like ordinary files (even if they are a terminal).
1317 It does not display buffers or windows; the only output to standard output
1318 is what would appear as messages in the echo area, and each
1319 message is followed by a newline.
1320
1321 The terminal modes are not changed, so that C-z and C-c retain
1322 their normal Unix meanings. Emacs does still read commands from
1323 the terminal, but the idea of `-batch' is that you use it with
1324 other command line arguments that tell Emacs a complete task to perform,
1325 including killing itself. `-kill' used as the last argument is a good
1326 way to accomplish this.
1327
1328 The Lisp variable `noninteractive' is now defined, to be `nil'
1329 except when `-batch' has been specified.
1330
1331 * Emacs can be built with output redirected to a file.
1332
1333 This is because -batch (see above) is now used in building Emacs.
1334
1335
1336 \f
1337 Changes in Emacs 15
1338
1339 * Emacs now runs on Sun and Megatest 68000 systems;
1340 also on at least one 16000 system running 4.2.
1341
1342 * Emacs now alters the output-start and output-stop characters
1343 to prevent C-s and C-q from being considered as flow control
1344 by cretinous rlogin software in 4.2.
1345
1346 * It is now possible convert Mocklisp code (for Gosling Emacs) to Lisp code
1347 that can run in GNU Emacs. M-x convert-mocklisp-buffer
1348 converts the contents of the current buffer from Mocklisp to
1349 GNU Emacs Lisp. You should then save the converted buffer with C-x C-w
1350 under a name ending in ".el"
1351
1352 There are probably some Mocklisp constructs that are not handled.
1353 If you encounter one, feel free to report the failure as a bug.
1354 The construct will be handled in a future Emacs release, if that is not
1355 not too hard to do.
1356
1357 Note that lisp code converted from Mocklisp code will not necessarily
1358 run as fast as code specifically written for GNU Emacs, nor will it use
1359 the many features of GNU Emacs which are not present in Gosling's emacs.
1360 (In particular, the byte-compiler (m-x byte-compile-file) knows little
1361 about compilation of code directly converted from mocklisp.)
1362 It is envisaged that old mocklisp code will be incrementally converted
1363 to GNU lisp code, with M-x convert-mocklisp-buffer being the first
1364 step in this process.
1365
1366 * Control-x n (narrow-to-region) is now by default a disabled command.
1367
1368 This means that, if you issue this command, it will ask whether
1369 you really mean it. You have the opportunity to enable the
1370 command permanently at that time, so you will not be asked again.
1371 This will place the form "(put 'narrow-to-region 'disabled nil)" in your
1372 .emacs file.
1373
1374 * Tags now prompts for the tag table file name to use.
1375
1376 All the tags commands ask for the tag table file name
1377 if you have not yet specified one.
1378
1379 Also, the command M-x visit-tag-table can now be used to
1380 specify the tag table file name initially, or to switch
1381 to a new tag table.
1382
1383 * If truncate-partial-width-windows is non-nil (as it intially is),
1384 all windows less than the full screen width (that is,
1385 made by side-by-side splitting) truncate lines rather than continuing
1386 them.
1387
1388 * Emacs now checks for Lisp stack overflow to avoid fatal errors.
1389 The depth in eval, apply and funcall may not exceed max-lisp-eval-depth.
1390 The depth in variable bindings and unwind-protects may not exceed
1391 max-specpdl-size. If either limit is exceeded, an error occurs.
1392 You can set the limits to larger values if you wish, but if you make them
1393 too large, you are vulnerable to a fatal error if you invoke
1394 Lisp code that does infinite recursion.
1395
1396 * New hooks find-file-hook and write-file-hook.
1397 Both of these variables if non-nil should be functions of no arguments.
1398 At the time they are called (current-buffer) will be the buffer being
1399 read or written respectively.
1400
1401 find-file-hook is called whenever a file is read into its own buffer,
1402 such as by calling find-file, revert-buffer, etc. It is not called by
1403 functions such as insert-file which do not read the file into a buffer of
1404 its own.
1405 find-file-hook is called after the file has been read in and its
1406 local variables (if any) have been processed.
1407
1408 write-file-hook is called just before writing out a file from a buffer.
1409
1410 * The initial value of shell-prompt-pattern is now "^[^#$%>]*[#$%>] *"
1411
1412 * If the .emacs file sets inhibit-startup-message to non-nil,
1413 the messages normally printed by Emacs at startup time
1414 are inhibited.
1415
1416 * Facility for run-time conditionalization on the basis of emacs features.
1417
1418 The new variable features is a list of symbols which represent "features"
1419 of the executing emacs, for use in run-time conditionalization.
1420
1421 The function featurep of one argument may be used to test for the
1422 presence of a feature. It is just the same as
1423 (not (null (memq FEATURE features))) where FEATURE is its argument.
1424 For example, (if (featurep 'magic-window-hack)
1425 (transmogrify-window 'vertical)
1426 (split-window-vertically))
1427
1428 The function provide of one argument "announces" that FEATURE is present.
1429 It is much the same as (if (not (featurep FEATURE))
1430 (setq features (cons FEATURE features)))
1431
1432 The function require with arguments FEATURE and FILE-NAME loads FILE-NAME
1433 (which should contain the form (provide FEATURE)) unless FEATURE is present.
1434 It is much the same as (if (not (featurep FEATURE))
1435 (progn (load FILE-NAME)
1436 (if (not featurep FEATURE) (error ...))))
1437 FILE-NAME is optional and defaults to FEATURE.
1438
1439 * New function load-average.
1440
1441 This returns a list of three integers, which are
1442 the current 1 minute, 5 minute and 15 minute load averages,
1443 each multiplied by a hundred (since normally they are floating
1444 point numbers).
1445
1446 * Per-terminal libraries loaded automatically.
1447
1448 Emacs when starting up on terminal type T automatically loads
1449 a library named term-T. T is the value of the TERM environment variable.
1450 Thus, on terminal type vt100, Emacs would do (load "term-vt100" t t).
1451 Such libraries are good places to set the character translation table.
1452
1453 It is a bad idea to redefine lots of commands in a per-terminal library,
1454 since this affects all users. Instead, define a command to do the
1455 redefinitions and let the user's init file, which is loaded later,
1456 call that command or not, as the user prefers.
1457
1458 * Programmer's note: detecting killed buffers.
1459
1460 Buffers are eliminated by explicitly killing them, using
1461 the function kill-buffer. This does not eliminate or affect
1462 the pointers to the buffer which may exist in list structure.
1463 If you have a pointer to a buffer and wish to tell whether
1464 the buffer has been killed, use the function buffer-name.
1465 It returns nil on a killed buffer, and a string on a live buffer.
1466
1467 * New ways to access the last command input character.
1468
1469 The function last-key-struck, which used to return the last
1470 input character that was read by command input, is eliminated.
1471 Instead, you can find this information as the value of the
1472 variable last-command-char. (This variable used to be called
1473 last-key).
1474
1475 Another new variable, last-input-char, holds the last character
1476 read from the command input stream regardless of what it was
1477 read for. last-input-char and last-command-char are different
1478 only inside a command that has called read-char to read input.
1479
1480 * The new switch -kill causes Emacs to exit after processing the
1481 preceding command line arguments. Thus,
1482 emacs -l lib data -e do-it -kill
1483 means to load lib, find file data, call do-it on no arguments,
1484 and then exit.
1485
1486 * The config.h file has been modularized.
1487
1488 Options that depend on the machine you are running on are defined
1489 in a file whose name starts with "m-", such as m-vax.h.
1490 Options that depend on the operating system software version you are
1491 running on are defined in a file whose name starts with "s-",
1492 such as s-bsd4.2.h.
1493
1494 config.h includes one m- file and one s- file. It also defines a
1495 few other options whose values do not follow from the machine type
1496 and system type being used. Installers normally will have to
1497 select the correct m- and s- files but will never have to change their
1498 contents.
1499
1500 * Termcap AL and DL strings are understood.
1501
1502 If the termcap entry defines AL and DL strings, for insertion
1503 and deletion of multiple lines in one blow, Emacs now uses them.
1504 This matters most on certain bit map display terminals for which
1505 scrolling is comparatively slow.
1506
1507 * Bias against scrolling screen far on fast terminals.
1508
1509 Emacs now prefers to redraw a few lines rather than
1510 shift them a long distance on the screen, when the terminal is fast.
1511
1512 * New major mode, mim-mode.
1513
1514 This major mode is for editing MDL code. Perhaps a MDL
1515 user can explain why it is not called mdl-mode.
1516 You must load the library mim-mode explicitly to use this.
1517
1518 * GNU documentation formatter `texinfo'.
1519
1520 The `texinfo' library defines a format for documentation
1521 files which can be passed through Tex to make a printed manual
1522 or passed through texinfo to make an Info file. Texinfo is
1523 documented fully by its own Info file; compare this file
1524 with its source, texinfo.texinfo, for additional guidance.
1525
1526 All documentation files for GNU utilities should be written
1527 in texinfo input format.
1528
1529 Tex processing of texinfo files requires the Botex macro package.
1530 This is not ready for distribution yet, but will appear at
1531 a later time.
1532
1533 * New function read-from-string (emacs 15.29)
1534
1535 read-from-string takes three arguments: a string to read from,
1536 and optionally start and end indices which delimit a substring
1537 from which to read. (They default to 0 and the length of the string,
1538 respectively.)
1539
1540 This function returns a cons cell whose car is the object produced
1541 by reading from the string and whose cdr is a number giving the
1542 index in the string of the first character not read. That index may
1543 be passed as the second argument to a later call to read-from-string
1544 to read the next form represented by the string.
1545
1546 In addition, the function read now accepts a string as its argument.
1547 In this case, it calls read-from-string on the whole string, and
1548 returns the car of the result. (ie the actual object read.)
1549
1550
1551 \f
1552 Changes in Emacs 14
1553
1554 * Completion now prints various messages such as [Sole Completion]
1555 or [Next Character Not Unique] to describe the results obtained.
1556 These messages appear after the text in the minibuffer, and remain
1557 on the screen until a few seconds go by or you type a key.
1558
1559 * The buffer-read-only flag is implemented.
1560 Setting or binding this per-buffer variable to a non-nil value
1561 makes illegal any operation which would modify the textual content of
1562 the buffer. (Such operations signal a buffer-read-only error)
1563 The read-only state of a buffer may be altered using toggle-read-only
1564 (C-x C-q)
1565 The buffers used by Rmail, Dired, Rnews, and Info are now read-only
1566 by default to prevent accidental damage to the information in those
1567 buffers.
1568
1569 * Functions car-safe and cdr-safe.
1570 These functions are like car and cdr when the argument is a cons.
1571 Given an argument not a cons, car-safe always returns nil, with
1572 no error; the same for cdr-safe.
1573
1574 * The new function user-real-login-name returns the name corresponding
1575 to the real uid of the Emacs process. This is usually the same
1576 as what user-login-name returns; however, when Emacs is invoked
1577 from su, user-real-login-name returns "root" but user-login-name
1578 returns the name of the user who invoked su.
1579
1580
1581 \f
1582 Changes in Emacs 13
1583
1584 * There is a new version numbering scheme.
1585
1586 What used to be the first version number, which was 1,
1587 has been discarded since it does not seem that I need three
1588 levels of version number.
1589
1590 However, a new third version number has been added to represent
1591 changes by user sites. This number will always be zero in
1592 Emacs when I distribute it; it will be incremented each time
1593 Emacs is built at another site.
1594
1595 * There is now a reader syntax for Meta characters:
1596 \M-CHAR means CHAR or'ed with the Meta bit. For example:
1597
1598 ?\M-x is (+ ?x 128)
1599 ?\M-\n is (+ ?\n 128)
1600 ?\M-\^f is (+ ?\^f 128)
1601
1602 This syntax can be used in strings too. Note, however, that
1603 Meta characters are not meaningful in key sequences being passed
1604 to define-key or lookup-key; you must use ESC characters (\e)
1605 in them instead.
1606
1607 ?\C- can be used likewise for control characters. (13.9)
1608
1609 * Installation change
1610 The string "../lisp" now adds to the front of the load-path
1611 used for searching for Lisp files during Emacs initialization.
1612 It used to replace the path specified in paths.h entirely.
1613 Now the directory ../lisp is searched first and the directoris
1614 specified in paths.h are searched afterward.
1615
1616
1617 \f
1618 Changes in Emacs 1.12
1619
1620 * There is a new installation procedure.
1621 See the file INSTALL that comes in the top level
1622 directory in the tar file or tape.
1623
1624 * The Meta key is now supported on terminals that have it.
1625 This is a shift key which causes the high bit to be turned on
1626 in all input characters typed while it is held down.
1627
1628 read-char now returns a value in the range 128-255 if
1629 a Meta character is typed. When interpreted as command
1630 input, a Meta character is equivalent to a two character
1631 sequence, the meta prefix character followed by the un-metized
1632 character (Meta-G unmetized is G).
1633
1634 The meta prefix character
1635 is specified by the value of the variable meta-prefix-char.
1636 If this character (normally Escape) has been redefined locally
1637 with a non-prefix definition (such as happens in completing
1638 minibuffers) then the local redefinition is suppressed when
1639 the character is not the last one in a key sequence.
1640 So the local redefinition is effective if you type the character
1641 explicitly, but not effective if the character comes from
1642 the use of the Meta key.
1643
1644 * `-' is no longer a completion command in the minibuffer.
1645 It is an ordinary self-inserting character.
1646
1647 * The list load-path of directories load to search for Lisp files
1648 is now controlled by the EMACSLOADPATH environment variable
1649 [[ Note this was originally EMACS-LOAD-PATH and has been changed
1650 again; sh does not deal properly with hyphens in env variable names]]
1651 rather than the EPATH environment variable. This is to avoid
1652 conflicts with other Emacses.
1653
1654 While Emacs is being built initially, the load-path
1655 is now just ("../lisp"), ignoring paths.h. It does not
1656 ignore EMACSLOADPATH, however; you should avoid having
1657 this variable set while building Emacs.
1658
1659 * You can now specify a translation table for keyboard
1660 input characters, as a way of exchanging or substituting
1661 keys on the keyboard.
1662
1663 If the value of keyboard-translate-table is a string,
1664 every character received from the keyboard is used as an
1665 index in that string, and the character at that index in
1666 the string is used as input instead of what was actually
1667 typed. If the actual input character is >= the length of
1668 the string, it is used unchanged.
1669
1670 One way this feature can be used is to fix bad keyboard
1671 designes. For example, on some terminals, Delete is
1672 Shift-Underscore. Since Delete is a more useful character
1673 than Underscore, it is an improvement to make the unshifted
1674 character Delete and the shifted one Underscore. This can
1675 be done with
1676
1677 ;; First make a translate table that does the identity translation.
1678 (setq keyboard-translate-table (make-string 128 0))
1679 (let ((i 0))
1680 (while (< i 128)
1681 (aset keyboard-translate-table i i)
1682 (setq i (1+ i))))
1683
1684 ;; Now alter translations of some characters.
1685 (aset keyboard-translate-table ?\_ ?\^?)
1686 (aset keyboard-translate-table ?\^? ?\_)
1687
1688 If your terminal has a Meta key and can therefore send
1689 codes up to 255, Meta characters are translated through
1690 elements 128 through 255 of the translate table, and therefore
1691 are translated independently of the corresponding non-Meta
1692 characters. You must therefore establish translations
1693 independently for the Meta characters if you want them too:
1694
1695 ;; First make a translate table that does the identity translation.
1696 (setq keyboard-translate-table (make-string 256 0))
1697 (let ((i 0))
1698 (while (< i 256)
1699 (aset keyboard-translate-table i i)
1700 (setq i (1+ i))))
1701
1702 ;; Now alter translations of some characters.
1703 (aset keyboard-translate-table ?\_ ?\^?)
1704 (aset keyboard-translate-table ?\^? ?\_)
1705
1706 ;; Now alter translations of some Meta characters.
1707 (aset keyboard-translate-table (+ 128 ?\_) (+ 128 ?\^?))
1708 (aset keyboard-translate-table (+ 128 ?\^?) (+ 128 ?\_))
1709
1710 * (process-kill-without-query PROCESS)
1711
1712 This marks the process so that, when you kill Emacs,
1713 you will not on its account be queried about active subprocesses.
1714
1715
1716 \f
1717 Changes in Emacs 1.11
1718
1719 * The commands C-c and C-z have been interchanged,
1720 for greater compatibility with normal Unix usage.
1721 C-z now runs suspend-emacs and C-c runs exit-recursive-edit.
1722
1723 * The value returned by file-name-directory now ends
1724 with a slash. (file-name-directory "foo/bar") => "foo/".
1725 This avoids confusing results when dealing with files
1726 in the root directory.
1727
1728 The value of the per-buffer variable default-directory
1729 is also supposed to have a final slash now.
1730
1731 * There are now variables to control the switches passed to
1732 `ls' by the C-x C-d command (list-directory).
1733 list-directory-brief-switches is a string, initially "-CF",
1734 used for brief listings, and list-directory-verbose-switches
1735 is a string, initially "-l", used for verbose ones.
1736
1737 * For Ann Arbor Ambassador terminals, the termcap "ti" string
1738 is now used to initialize the screen geometry on entry to Emacs,
1739 and the "te" string is used to set it back on exit.
1740 If the termcap entry does not define the "ti" or "te" string,
1741 Emacs does what it used to do.
1742
1743
1744 \f
1745 Changes in Emacs 1.10
1746
1747 * GNU Emacs has been made almost 1/3 smaller.
1748 It now dumps out as only 530kbytes on Vax 4.2bsd.
1749
1750 * The term "checkpoint" has been replaced by "auto save"
1751 throughout the function names, variable names and documentation
1752 of GNU Emacs.
1753
1754 * The function load now tries appending ".elc" and ".el"
1755 to the specified filename BEFORE it tries the filename
1756 without change.
1757
1758 * rmail now makes the mode line display the total number
1759 of messages and the current message number.
1760 The "f" command now means forward a message to another user.
1761 The command to search through all messages for a string is now "F".
1762 The "u" command now means to move back to the previous
1763 message and undelete it. To undelete the selected message, use Meta-u.
1764
1765 * The hyphen character is now equivalent to a Space while
1766 in completing minibuffers. Both mean to complete an additional word.
1767
1768 * The Lisp function error now takes args like format
1769 which are used to construct the error message.
1770
1771 * Redisplay will refuse to start its display at the end of the buffer.
1772 It will pick a new place to display from, rather than use that.
1773
1774 * The value returned by garbage-collect has been changed.
1775 Its first element is no longer a number but a cons,
1776 whose car is the number of cons cells now in use,
1777 and whose cdr is the number of cons cells that have been
1778 made but are now free.
1779 The second element is similar but describes symbols rather than cons cells.
1780 The third element is similar but describes markers.
1781
1782 * The variable buffer-name has been eliminated.
1783 The function buffer-name still exists. This is to prevent
1784 user programs from changing buffer names without going
1785 through the rename-buffer function.
1786
1787
1788 \f
1789 Changes in Emacs 1.9
1790
1791 * When a fill prefix is in effect, paragraphs are started
1792 or separated by lines that do not start with the fill prefix.
1793 Also, a line which consists of the fill prefix followed by
1794 white space separates paragraphs.
1795
1796 * C-x C-v runs the new function find-alternate-file.
1797 It finds the specified file, switches to that buffer,
1798 and kills the previous current buffer. (It requires
1799 confirmation if that buffer had changes.) This is
1800 most useful after you find the wrong file due to a typo.
1801
1802 * Exiting the minibuffer moves the cursor to column 0,
1803 to show you that it has really been exited.
1804
1805 * Meta-g (fill-region) now fills each paragraph in the
1806 region individually. To fill the region as if it were
1807 a single paragraph (for when the paragraph-delimiting mechanism
1808 does the wrong thing), use fill-region-as-paragraph.
1809
1810 * Tab in text mode now runs the function tab-to-tab-stop.
1811 A new mode called indented-text-mode is like text-mode
1812 except that in it Tab runs the function indent-relative,
1813 which indents the line under the previous line.
1814 If auto fill is enabled while in indented-text-mode,
1815 the new lines that it makes are indented.
1816
1817 * Functions kill-rectangle and yank-rectangle.
1818 kill-rectangle deletes the rectangle specified by dot and mark
1819 (or by two arguments) and saves it in the variable killed-rectangle.
1820 yank-rectangle inserts the rectangle in that variable.
1821
1822 Tab characters in a rectangle being saved are replaced
1823 by spaces in such a way that their appearance will
1824 not be changed if the rectangle is later reinserted
1825 at a different column position.
1826
1827 * `+' in a regular expression now means
1828 to repeat the previous expression one or more times.
1829 `?' means to repeat it zero or one time.
1830 They are in all regards like `*' except for the
1831 number of repetitions they match.
1832
1833 \< in a regular expression now matches the null string
1834 when it is at the beginning of a word; \> matches
1835 the null string at the end of a word.
1836
1837 * C-x p narrows the buffer so that only the current page
1838 is visible.
1839
1840 * C-x ) with argument repeats the kbd macro just
1841 defined that many times, counting the definition
1842 as one repetition.
1843
1844 * C-x ( with argument begins defining a kbd macro
1845 starting with the last one defined. It executes that
1846 previous kbd macro initially, just as if you began
1847 by typing it over again.
1848
1849 * C-x q command queries the user during kbd macro execution.
1850 With prefix argument, enters recursive edit,
1851 reading keyboard commands even within a kbd macro.
1852 You can give different commands each time the macro executes.
1853 Without prefix argument, reads a character. Your options are:
1854 Space -- execute the rest of the macro.
1855 Delete -- skip the rest of the macro; start next repetition.
1856 C-d -- skip rest of the macro and don't repeat it any more.
1857 C-r -- enter a recursive edit, then on exit ask again for a character
1858 C-l -- redisplay screen and ask again."
1859
1860 * write-kbd-macro and append-kbd-macro are used to save
1861 a kbd macro definition in a file (as Lisp code to
1862 redefine the macro when the file is loaded).
1863 These commands differ in that write-kbd-macro
1864 discards the previous contents of the file.
1865 If given a prefix argument, both commands
1866 record the keys which invoke the macro as well as the
1867 macro's definition.
1868
1869 * The variable global-minor-modes is used to display
1870 strings in the mode line of all buffers. It should be
1871 a list of elements thaht are conses whose cdrs are strings
1872 to be displayed. This complements the variable
1873 minor-modes, which has the same effect but has a separate
1874 value in each buffer.
1875
1876 * C-x = describes horizontal scrolling in effect, if any.
1877
1878 * Return now auto-fills the line it is ending, in auto fill mode.
1879 Space with zero as argument auto-fills the line before it
1880 just like Space without an argument.
1881
1882
1883 \f
1884 Changes in Emacs 1.8
1885
1886 This release mostly fixes bugs. There are a few new features:
1887
1888 * apropos now sorts the symbols before displaying them.
1889 Also, it returns a list of the symbols found.
1890
1891 apropos now accepts a second arg PRED which should be a function
1892 of one argument; if PRED is non-nil, each symbol is tested
1893 with PRED and only symbols for which PRED returns non-nil
1894 appear in the output or the returned list.
1895
1896 If the third argument to apropos is non-nil, apropos does not
1897 display anything; it merely returns the list of symbols found.
1898
1899 C-h a now runs the new function command-apropos rather than
1900 apropos, and shows only symbols with definitions as commands.
1901
1902 * M-x shell sends the command
1903 if (-f ~/.emacs_NAME)source ~/.emacs_NAME
1904 invisibly to the shell when it starts. Here NAME
1905 is replaced by the name of shell used,
1906 as it came from your ESHELL or SHELL environment variable
1907 but with directory name, if any, removed.
1908
1909 * M-, now runs the command tags-loop-continue, which is used
1910 to resume a terminated tags-search or tags-query-replace.
1911
1912
1913 \f
1914 Changes in Emacs 1.7
1915
1916 It's Beat CCA Week.
1917
1918 * The initial buffer is now called "*scratch*" instead of "scratch",
1919 so that all buffer names used automatically by Emacs now have *'s.
1920
1921 * Undo information is now stored separately for each buffer.
1922 The Undo command (C-x u) always applies to the current
1923 buffer only.
1924
1925 C-_ is now a synonym for C-x u.
1926
1927 (buffer-flush-undo BUFFER) causes undo information not to
1928 be kept for BUFFER, and frees the space that would have
1929 been used to hold it. In any case, no undo information is
1930 kept for buffers whose names start with spaces. (These
1931 buffers also do not appear in the C-x C-b display.)
1932
1933 * Rectangle operations are now implemented.
1934 C-x r stores the rectangle described by dot and mark
1935 into a register; it reads the register name from the keyboard.
1936 C-x g, the command to insert the contents of a register,
1937 can be used to reinsert the rectangle elsewhere.
1938
1939 Other rectangle commands include
1940 open-rectangle:
1941 insert a blank rectangle in the position and size
1942 described by dot and mark, at its corners;
1943 the existing text is pushed to the right.
1944 clear-rectangle:
1945 replace the rectangle described by dot ane mark
1946 with blanks. The previous text is deleted.
1947 delete-rectangle:
1948 delete the text of the specified rectangle,
1949 moving the text beyond it on each line leftward.
1950
1951 * Side-by-side windows are allowed. Use C-x 5 to split the
1952 current window into two windows side by side.
1953 C-x } makes the selected window ARG columns wider at the
1954 expense of the windows at its sides. C-x { makes the selected
1955 window ARG columns narrower. An argument to C-x 5 specifies
1956 how many columns to give to the leftmost of the two windows made.
1957
1958 C-x 2 now accepts a numeric argument to specify the number of
1959 lines to give to the uppermost of the two windows it makes.
1960
1961 * Horizontal scrolling of the lines in a window is now implemented.
1962 C-x < (scroll-left) scrolls all displayed lines left,
1963 with the numeric argument (default 1) saying how far to scroll.
1964 When the window is scrolled left, some amount of the beginning
1965 of each nonempty line is replaced by an "$".
1966 C-x > scrolls right. If a window has no text hidden at the left
1967 margin, it cannot be scrolled any farther right than that.
1968 When nonzero leftwards scrolling is in effect in a window.
1969 lines are automatically truncated at the window's right margin
1970 regardless of the value of the variable truncate-lines in the
1971 buffer being displayed.
1972
1973 * C-x C-d now uses the default output format of `ls',
1974 which gives just file names in multiple columns.
1975 C-u C-x C-d passes the -l switch to `ls'.
1976
1977 * C-t at the end of a line now exchanges the two preceding characters.
1978
1979 All the transpose commands now interpret zero as an argument
1980 to mean to transpose the textual unit after or around dot
1981 with the one after or around the mark.
1982
1983 * M-! executes a shell command in an inferior shell
1984 and displays the output from it. With a prefix argument,
1985 it inserts the output in the current buffer after dot
1986 and sets the mark after the output. The shell command
1987 gets /dev/null as its standard input.
1988
1989 M-| is like M-! but passes the contents of the region
1990 as input to the shell command. A prefix argument makes
1991 the output from the command replace the contents of the region.
1992
1993 * The mode line will now say "Def" after the major mode
1994 while a keyboard macro is being defined.
1995
1996 * The variable fill-prefix is now used by Meta-q.
1997 Meta-q removes the fill prefix from lines that start with it
1998 before filling, and inserts the fill prefix on each line
1999 after filling.
2000
2001 The command C-x . sets the fill prefix equal to the text
2002 on the current line before dot.
2003
2004 * The new command Meta-j (indent-new-comment-line),
2005 is like Linefeed (indent-new-line) except when dot is inside a comment;
2006 in that case, Meta-j inserts a comment starter on the new line,
2007 indented under the comment starter above. It also inserts
2008 a comment terminator at the end of the line above,
2009 if the language being edited calls for one.
2010
2011 * Rmail should work correctly now, and has some C-h m documentation.
2012
2013
2014 \f
2015 Changes in Emacs 1.6
2016
2017 * save-buffers-kill-emacs is now on C-x C-c
2018 while C-x C-z does suspend-emacs. This is to make
2019 C-x C-c like the normal Unix meaning of C-c
2020 and C-x C-z linke the normal Unix meaning of C-z.
2021
2022 * M-ESC (eval-expression) is now a disabled command by default.
2023 This prevents users who type ESC ESC accidentally from
2024 getting confusing results. Put
2025 (put 'eval-expression 'disabled nil)
2026 in your ~/.emacs file to enable the command.
2027
2028 * Self-inserting text is grouped into bunches for undoing.
2029 Each C-x u command undoes up to 20 consecutive self-inserting
2030 characters.
2031
2032 * Help f now uses as a default the function being called
2033 in the innermost Lisp expression that dot is in.
2034 This makes it more convenient to use while writing
2035 Lisp code to run in Emacs.
2036 (If the text around dot does not appear to be a call
2037 to a Lisp function, there is no default.)
2038
2039 Likewise, Help v uses the symbol around or before dot
2040 as a default, if that is a variable name.
2041
2042 * Commands that read filenames now insert the default
2043 directory in the minibuffer, to become part of your input.
2044 This allows you to see what the default is.
2045 You may type a filename which goes at the end of the
2046 default directory, or you may edit the default directory
2047 as you like to create the input you want to give.
2048 You may also type an absolute pathname (starting with /)
2049 or refer to a home directory (input starting with ~)
2050 after the default; the presence of // or /~ causes
2051 everything up through the slash that precedes your
2052 type-in to be ignored.
2053
2054 Returning the default directory without change,
2055 including the terminating slash, requests the use
2056 of the default file name (usually the visited file's name).
2057
2058 Set the variable insert-default-directory to nil
2059 to turn off this feature.
2060
2061 * M-x shell now uses the environment variable ESHELL,
2062 if it exists, as the file name of the shell to run.
2063 If there is no ESHELL variable, the SHELL variable is used.
2064 This is because some shells do not work properly as inferiors
2065 of Emacs (or anything like Emacs).
2066
2067 * A new variable minor-modes now exists, with a separate value
2068 in each buffer. Its value should be an alist of elements
2069 (MODE-FUNCTION-SYMBOL . PRETTY-NAME-STRING), one for each
2070 minor mode that is turned on in the buffer. The pretty
2071 name strings are displayed in the mode line after the name of the
2072 major mode (with spaces between them). The mode function
2073 symbols should be symbols whose function definitions will
2074 turn on the minor mode if given 1 as an argument; they are present
2075 so that Help m can find their documentation strings.
2076
2077 * The format of tag table files has been changed.
2078 The new format enables Emacs to find tags much faster.
2079
2080 A new program, etags, exists to make the kind of
2081 tag table that Emacs wants. etags is invoked just
2082 like ctags; in fact, if you give it any switches,
2083 it does exactly what ctags would do. Give it the
2084 empty switch ("-") to make it act like ctags with no switches.
2085
2086 etags names the tag table file "TAGS" rather than "tags",
2087 so that these tag tables and the standard Unix ones
2088 can coexist.
2089
2090 The tags library can no longer use standard ctags-style
2091 tag tables files.
2092
2093 * The file of Lisp code Emacs reads on startup is now
2094 called ~/.emacs rather than ~/.emacs_pro.
2095
2096 * copy-file now gives the copied file the same mode bits
2097 as the original file.
2098
2099 * Output from a process inserted into the process's buffer
2100 no longer sets the buffer's mark. Instead it sets a
2101 marker associated with the process to point to the end
2102 of the inserted text. You can access this marker with
2103 (process-mark PROCESS)
2104 and then either examine its position with marker-position
2105 or set its position with set-marker.
2106
2107 * completing-read takes a new optional fifth argument which,
2108 if non-nil, should be a string of text to insert into
2109 the minibuffer before reading user commands.
2110
2111 * The Lisp function elt now exists:
2112 (elt ARRAY N) is like (aref ARRAY N),
2113 (elt LIST N) is like (nth N LIST).
2114
2115 * rplaca is now a synonym for setcar, and rplacd for setcdr.
2116 eql is now a synonym for eq; it turns out that the Common Lisp
2117 distinction between eq and eql is insignificant in Emacs.
2118 numberp is a new synonym for integerp.
2119
2120 * auto-save has been renamed to auto-save-mode.
2121
2122 * Auto save file names for buffers are now created by the
2123 function make-auto-save-file-name. This is so you can
2124 redefine that function to change the way auto save file names
2125 are chosen.
2126
2127 * expand-file-name no longer discards a final slash.
2128 (expand-file-name "foo" "/lose") => "/lose/foo"
2129 (expand-file-name "foo/" "/lose") => "/lose/foo/"
2130
2131 Also, expand-file-name no longer substitutes $ constructs.
2132 A new function substitute-in-file-name does this. Reading
2133 a file name with read-file-name or the `f' or`F' option
2134 of interactive calling uses substitute-in-file-name
2135 on the file name that was read and returns the result.
2136
2137 All I/O primitives including insert-file-contents and
2138 delete-file call expand-file-name on the file name supplied.
2139 This change makes them considerably faster in the usual case.
2140
2141 * Interactive calling spec strings allow the new code letter 'D'
2142 which means to read a directory name. It is like 'f' except
2143 that the default if the user makes no change in the minibuffer
2144 is to return the current default directory rather than the
2145 current visited file name.
2146
2147
2148 \f
2149 Changes in Emacs 1.5
2150
2151 * suspend-emacs now accepts an optional argument
2152 which is a string to be stuffed as terminal input
2153 to be read by Emacs's superior shell after Emacs exits.
2154
2155 A library called ledit exists which uses this feature
2156 to transmit text to a Lisp job running as a sibling of
2157 Emacs.
2158
2159 * If find-file is given the name of a directory,
2160 it automatically invokes dired on that directory
2161 rather than reading in the binary data that make up
2162 the actual contents of the directory according to Unix.
2163
2164 * Saving an Emacs buffer now preserves the file modes
2165 of any previously existing file with the same name.
2166 This works using new Lisp functions file-modes and
2167 set-file-modes, which can be used to read or set the mode
2168 bits of any file.
2169
2170 * The Lisp function cond now exists, with its traditional meaning.
2171
2172 * defvar and defconst now permit the documentation string
2173 to be omitted. defvar also permits the initial value
2174 to be omitted; then it acts only as a comment.
2175
2176
2177 \f
2178 Changes in Emacs 1.4
2179
2180 * Auto-filling now normally indents the new line it creates
2181 by calling indent-according-to-mode. This function, meanwhile,
2182 has in Fundamental and Text modes the effect of making the line
2183 have an indentation of the value of left-margin, a per-buffer variable.
2184
2185 Tab no longer precisely does indent-according-to-mode;
2186 it does that in all modes that supply their own indentation routine,
2187 but in Fundamental, Text and allied modes it inserts a tab character.
2188
2189 * The command M-x grep now invokes grep (on arguments
2190 supplied by the user) and reads the output from grep
2191 asynchronously into a buffer. The command C-x ` can
2192 be used to move to the lines that grep has found.
2193 This is an adaptation of the mechanism used for
2194 running compilations and finding the loci of error messages.
2195
2196 You can now use C-x ` even while grep or compilation
2197 is proceeding; as more matches or error messages arrive,
2198 C-x ` will parse them and be able to find them.
2199
2200 * M-x mail now provides a command to send the message
2201 and "exit"--that is, return to the previously selected
2202 buffer. It is C-z C-z.
2203
2204 * Tab in C mode now tries harder to adapt to all indentation styles.
2205 If the line being indented is a statement that is not the first
2206 one in the containing compound-statement, it is aligned under
2207 the beginning of the first statement.
2208
2209 * The functions screen-width and screen-height return the
2210 total width and height of the screen as it is now being used.
2211 set-screen-width and set-screen-height tell Emacs how big
2212 to assume the screen is; they each take one argument,
2213 an integer.
2214
2215 * The Lisp function 'function' now exists. function is the
2216 same as quote, except that it serves as a signal to the
2217 Lisp compiler that the argument should be compiled as
2218 a function. Example:
2219 (mapcar (function (lambda (x) (+ x 5))) list)
2220
2221 * The function set-key has been renamed to global-set-key.
2222 undefine-key and local-undefine-key has been renamed to
2223 global-unset-key and local-unset-key.
2224
2225 * Emacs now collects input from asynchronous subprocesses
2226 while waiting in the functions sleep-for and sit-for.
2227
2228 * Shell mode's Newline command attempts to distinguish subshell
2229 prompts from user input when issued in the middle of the buffer.
2230 It no longer reexecutes from dot to the end of the line;
2231 it reeexecutes the entire line minus any prompt.
2232 The prompt is recognized by searching for the value of
2233 shell-prompt-pattern, starting from the beginning of the line.
2234 Anything thus skipped is not reexecuted.
2235
2236
2237 \f
2238 Changes in Emacs 1.3
2239
2240 * An undo facility exists now. Type C-x u to undo a batch of
2241 changes (usually one command's changes, but some commands
2242 such as query-replace divide their changes into multiple
2243 batches. You can repeat C-x u to undo further. As long
2244 as no commands other than C-x u intervene, each one undoes
2245 another batch. A numeric argument to C-x u acts as a repeat
2246 count.
2247
2248 If you keep on undoing, eventually you may be told that
2249 you have used up all the recorded undo information.
2250 Some actions, such as reading in files, discard all
2251 undo information.
2252
2253 The undo information is not currently stored separately
2254 for each buffer, so it is mainly good if you do something
2255 totally spastic. [This has since been fixed.]
2256
2257 * A learn-by-doing tutorial introduction to Emacs now exists.
2258 Type C-h t to enter it.
2259
2260 * An Info documentation browser exists. Do M-x info to enter it.
2261 It contains a tutorial introduction so that no more documentation
2262 is needed here. As of now, the only documentation in it
2263 is that of Info itself.
2264
2265 * Help k and Help c are now different. Help c prints just the
2266 name of the function which the specified key invokes. Help k
2267 prints the documentation of the function as well.
2268
2269 * A document of the differences between GNU Emacs and Twenex Emacs
2270 now exists. It is called DIFF, in the same directory as this file.
2271
2272 * C mode can now indent comments better, including multi-line ones.
2273 Meta-Control-q now reindents comment lines within the expression
2274 being aligned.
2275
2276 * Insertion of a close-parenthesis now shows the matching open-parenthesis
2277 even if it is off screen, by printing the text following it on its line
2278 in the minibuffer.
2279
2280 * A file can now contain a list of local variable values
2281 to be in effect when the file is edited. See the file DIFF
2282 in the same directory as this file for full details.
2283
2284 * A function nth is defined. It means the same thing as in Common Lisp.
2285
2286 * The function install-command has been renamed to set-key.
2287 It now takes the key sequence as the first argument
2288 and the definition for it as the second argument.
2289 Likewise, local-install-command has been renamed to local-set-key.
2290
2291
2292 \f
2293 Changes in Emacs 1.2
2294
2295 * A Lisp single-stepping and debugging facility exists.
2296 To cause the debugger to be entered when an error
2297 occurs, set the variable debug-on-error non-nil.
2298
2299 To cause the debugger to be entered whenever function foo
2300 is called, do (debug-on-entry 'foo). To cancel this,
2301 do (cancel-debug-on-entry 'foo). debug-on-entry does
2302 not work for primitives (written in C), only functions
2303 written in Lisp. Most standard Emacs commands are in Lisp.
2304
2305 When the debugger is entered, the selected window shows
2306 a buffer called " *Backtrace" which displays a series
2307 of stack frames, most recently entered first. For each
2308 frame, the function name called is shown, usually followed
2309 by the argument values unless arguments are still being
2310 calculated. At the beginning of the buffer is a description
2311 of why the debugger was entered: function entry, function exit,
2312 error, or simply that the user called the function `debug'.
2313
2314 To exit the debugger and return to top level, type `q'.
2315
2316 In the debugger, you can evaluate Lisp expressions by
2317 typing `e'. This is equivalent to `M-ESC'.
2318
2319 When the debugger is entered due to an error, that is
2320 all you can do. When it is entered due to function entry
2321 (such as, requested by debug-on-entry), you have two
2322 options:
2323 Continue execution and reenter debugger after the
2324 completion of the function being entered. Type `c'.
2325 Continue execution but enter the debugger before
2326 the next subexpression. Type `d'.
2327
2328 You will see that some stack frames are marked with *.
2329 This means the debugger will be entered when those
2330 frames exit. You will see the value being returned
2331 in the first line of the backtrace buffer. Your options:
2332 Continue execution, and return that value. Type `c'.
2333 Continue execution, and return a specified value. Type `r'.
2334
2335 You can mark a frame to enter the debugger on exit
2336 with the `b' command, or clear such a mark with `u'.
2337
2338 * Lisp macros now exist.
2339 For example, you can write
2340 (defmacro cadr (arg) (list 'car (list 'cdr arg)))
2341 and then the expression
2342 (cadr foo)
2343 will expand into
2344 (car (cdr foo))
2345
2346
2347 \f
2348 Changes in Emacs 1.1
2349
2350 * The initial buffer is now called "scratch" and is in a
2351 new major mode, Lisp Interaction mode. This mode is
2352 intended for typing Lisp expressions, evaluating them,
2353 and having the values printed into the buffer.
2354
2355 Type Linefeed after a Lisp expression, to evaluate the
2356 expression and have its value printed into the buffer,
2357 advancing dot.
2358
2359 The other commands of Lisp mode are available.
2360
2361 * The C-x C-e command for evaluating the Lisp expression
2362 before dot has been changed to print the value in the
2363 minibuffer line rather than insert it in the buffer.
2364 A numeric argument causes the printed value to appear
2365 in the buffer instead.
2366
2367 * In Lisp mode, the command M-C-x evaluates the defun
2368 containing or following dot. The value is printed in
2369 the minibuffer.
2370
2371 * The value of a Lisp expression evaluated using M-ESC
2372 is now printed in the minibuffer.
2373
2374 * M-q now runs fill-paragraph, independent of major mode.
2375
2376 * C-h m now prints documentation on the current buffer's
2377 major mode. What it prints is the documentation of the
2378 major mode name as a function. All major modes have been
2379 equipped with documentation that describes all commands
2380 peculiar to the major mode, for this purpose.
2381
2382 * You can display a Unix manual entry with
2383 the M-x manual-entry command.
2384
2385 * You can run a shell, displaying its output in a buffer,
2386 with the M-x shell command. The Return key sends input
2387 to the subshell. Output is printed inserted automatically
2388 in the buffer. Commands C-c, C-d, C-u, C-w and C-z are redefined
2389 for controlling the subshell and its subjobs.
2390 "cd", "pushd" and "popd" commands are recognized as you
2391 enter them, so that the default directory of the Emacs buffer
2392 always remains the same as that of the subshell.
2393
2394 * C-x $ (that's a real dollar sign) controls line-hiding based
2395 on indentation. With a numeric arg N > 0, it causes all lines
2396 indented by N or more columns to become invisible.
2397 They are, effectively, tacked onto the preceding line, where
2398 they are represented by " ..." on the screen.
2399 (The end of the preceding visible line corresponds to a
2400 screen cursor position before the "...". Anywhere in the
2401 invisible lines that follow appears on the screen as a cursor
2402 position after the "...".)
2403 Currently, all editing commands treat invisible lines just
2404 like visible ones, except for C-n and C-p, which have special
2405 code to count visible lines only.
2406 C-x $ with no argument turns off this mode, which in any case
2407 is remembered separately for each buffer.
2408
2409 * Outline mode is another form of selective display.
2410 It is a major mode invoked with M-x outline-mode.
2411 It is intended for editing files that are structured as
2412 outlines, with heading lines (lines that begin with one
2413 or more asterisks) and text lines (all other lines).
2414 The number of asterisks in a heading line are its level;
2415 the subheadings of a heading line are all following heading
2416 lines at higher levels, until but not including the next
2417 heading line at the same or a lower level, regardless
2418 of intervening text lines.
2419
2420 In outline mode, you have commands to hide (remove from display)
2421 or show the text or subheadings under each heading line
2422 independently. Hidden text or subheadings are invisibly
2423 attached to the end of the preceding heading line, so that
2424 if you kill the hading line and yank it back elsewhere
2425 all the invisible lines accompany it.
2426
2427 All editing commands treat hidden outline-mode lines
2428 as part of the preceding visible line.
2429
2430 * C-x C-z runs save-buffers-kill-emacs
2431 offers to save each file buffer, then exits.
2432
2433 * C-c's function is now called suspend-emacs.
2434
2435 * The command C-x m runs mail, which switches to a buffer *mail*
2436 and lets you compose a message to send. C-x 4 m runs mail in
2437 another window. Type C-z C-s in the mail buffer to send the
2438 message according to what you have entered in the buffer.
2439
2440 You must separate the headers from the message text with
2441 an empty line.
2442
2443 * You can now dired partial directories (specified with names
2444 containing *'s, etc, all processed by the shell). Also, you
2445 can dired more than one directory; dired names the buffer
2446 according to the filespec or directory name. Reinvoking
2447 dired on a directory already direded just switches back to
2448 the same directory used last time; do M-x revert if you want
2449 to read in the current contents of the directory.
2450
2451 C-x d runs dired, and C-x 4 d runs dired in another window.
2452
2453 C-x C-d (list-directory) also allows partial directories now.
2454
2455 \f
2456 Lisp programming changes
2457
2458 * t as an output stream now means "print to the minibuffer".
2459 If there is already text in the minibuffer printed via t
2460 as an output stream, the new text is appended to the old
2461 (or is truncated and lost at the margin). If the minibuffer
2462 contains text put there for some other reason, it is cleared
2463 first.
2464
2465 t is now the top-level value of standard-output.
2466
2467 t as an input stream now means "read via the minibuffer".
2468 The minibuffer is used to read a line of input, with editing,
2469 and this line is then parsed. Any excess not used by `read'
2470 is ignored; each `read' from t reads fresh input.
2471 t is now the top-level value of standard-input.
2472
2473 * A marker may be used as an input stream or an output stream.
2474 The effect is to grab input from where the marker points,
2475 advancing it over the characters read, or to insert output
2476 at the marker and advance it.
2477
2478 * Output from an asynchronous subprocess is now inserted at
2479 the end of the associated buffer, not at the buffer's dot,
2480 and the buffer's mark is set to the end of the inserted output
2481 each time output is inserted.
2482
2483 * (pos-visible-in-window-p POS WINDOW)
2484 returns t if position POS in WINDOW's buffer is in the range
2485 that is being displayed in WINDOW; nil if it is scrolled
2486 vertically out of visibility.
2487
2488 If display in WINDOW is not currently up to date, this function
2489 calculates carefully whether POS would appear if display were
2490 done immediately based on the current (window-start WINDOW).
2491
2492 POS defaults to (dot), and WINDOW to (selected-window).
2493
2494 * Variable buffer-alist replaced by function (buffer-list).
2495 The actual alist of buffers used internally by Emacs is now
2496 no longer accessible, to prevent the user from crashing Emacs
2497 by modifying it. The function buffer-list returns a list
2498 of all existing buffers. Modifying this list cannot hurt anything
2499 as a new list is constructed by each call to buffer-list.
2500
2501 * load now takes an optional third argument NOMSG which, if non-nil,
2502 prevents load from printing a message when it starts and when
2503 it is done.
2504
2505 * byte-recompile-directory is a new function which finds all
2506 the .elc files in a directory, and regenerates each one which
2507 is older than the corresponding .el (Lisp source) file.
2508
2509
2510 \f
2511 ----------------------------------------------------------------------
2512 Copyright information:
2513
2514 Copyright (C) 1985, 1986, 2006 Richard M. Stallman
2515
2516 Permission is granted to anyone to make or distribute verbatim copies
2517 of this document as received, in any medium, provided that the
2518 copyright notice and this permission notice are preserved,
2519 thus giving the recipient permission to redistribute in turn.
2520
2521 Permission is granted to distribute modified versions
2522 of this document, or of portions of it,
2523 under the above conditions, provided also that they
2524 carry prominent notices stating who last changed them.
2525 \f
2526 Local variables:
2527 mode: text
2528 end:
2529
2530 arch-tag: 33dc900d-9c58-473b-87c9-b6d7222323ea