diff options
| author | Richard M. Stallman | 2002-02-06 15:44:48 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2002-02-06 15:44:48 +0000 |
| commit | 108eaabb6b8fd0deb527e0b53b3d0cbf731e280a (patch) | |
| tree | 5229f6c6839cece2a33f4ea8651c61bf6ee130ff | |
| parent | fa5c314daad6a222fb410abfed34e8e74266cc35 (diff) | |
| download | emacs-108eaabb6b8fd0deb527e0b53b3d0cbf731e280a.tar.gz emacs-108eaabb6b8fd0deb527e0b53b3d0cbf731e280a.zip | |
*** empty log message ***
| -rw-r--r-- | etc/NEWS | 57 | ||||
| -rw-r--r-- | leim/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/ChangeLog | 55 | ||||
| -rw-r--r-- | src/ChangeLog | 4 |
4 files changed, 121 insertions, 0 deletions
| @@ -416,6 +416,63 @@ SQL buffer. | |||
| 416 | 416 | ||
| 417 | * Lisp Changes in Emacs 21.3 | 417 | * Lisp Changes in Emacs 21.3 |
| 418 | 418 | ||
| 419 | ** Atomic change groups. | ||
| 420 | |||
| 421 | To perform some changes in the current buffer "atomically" so that | ||
| 422 | they either all succeed or are all undone, use `atomic-change-group' | ||
| 423 | around the code that makes changes. For instance: | ||
| 424 | |||
| 425 | (atomic-change-group | ||
| 426 | (insert foo) | ||
| 427 | (delete-region x y)) | ||
| 428 | |||
| 429 | If an error (or other nonlocal exit) occurs inside the body of | ||
| 430 | `atomic-change-group', it unmakes all the changes in that buffer that | ||
| 431 | were during the execution of the body. The change group has no effect | ||
| 432 | on any other buffers--any such changes remain. | ||
| 433 | |||
| 434 | If you need something more sophisticated, you can directly call the | ||
| 435 | lower-level functions that `atomic-change-group' uses. Here is how. | ||
| 436 | |||
| 437 | To set up a change group for one buffer, call `prepare-change-group'. | ||
| 438 | Specify the buffer as argument; it defaults to the current buffer. | ||
| 439 | This function returns a "handle" for the change group. You must save | ||
| 440 | the handle to activate the change group and then finish it. | ||
| 441 | |||
| 442 | Before you change the buffer again, you must activate the change | ||
| 443 | group. Pass the handle to `activate-change-group' afterward to | ||
| 444 | do this. | ||
| 445 | |||
| 446 | After you make the changes, you must finish the change group. You can | ||
| 447 | either accept the changes or cancel them all. Call | ||
| 448 | `accept-change-group' to accept the changes in the group as final; | ||
| 449 | call `cancel-change-group' to undo them all. | ||
| 450 | |||
| 451 | You should use `unwind-protect' to make sure the group is always | ||
| 452 | finished. The call to `activate-change-group' should be inside the | ||
| 453 | `unwind-protect', in case the user types C-g just after it runs. | ||
| 454 | (This is one reason why `prepare-change-group' and | ||
| 455 | `activate-change-group' are separate functions.) Once you finish the | ||
| 456 | group, don't use the handle again--don't try to finish the same group | ||
| 457 | twice. | ||
| 458 | |||
| 459 | To make a multibuffer change group, call `prepare-change-group' once | ||
| 460 | for each buffer you want to cover, then use `nconc' to combine the | ||
| 461 | returned values, like this: | ||
| 462 | |||
| 463 | (nconc (prepare-change-group buffer-1) | ||
| 464 | (prepare-change-group buffer-2)) | ||
| 465 | |||
| 466 | You can then activate the multibuffer change group with a single call | ||
| 467 | to `activate-change-group', and finish it with a single call to | ||
| 468 | `accept-change-group' or `cancel-change-group'. | ||
| 469 | |||
| 470 | Nested use of several change groups for the same buffer works as you | ||
| 471 | would expect. Non-nested use of change groups for the same buffer | ||
| 472 | will lead to undesirable results, so don't let it happen; the first | ||
| 473 | change group you start for any given buffer should be the last one | ||
| 474 | finished. | ||
| 475 | |||
| 419 | ** New function substring-no-properties. | 476 | ** New function substring-no-properties. |
| 420 | 477 | ||
| 421 | +++ | 478 | +++ |
diff --git a/leim/ChangeLog b/leim/ChangeLog index f076df2a431..fbfd8b0dd61 100644 --- a/leim/ChangeLog +++ b/leim/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2002-02-06 Richard M. Stallman <rms@gnu.org> | ||
| 2 | |||
| 3 | * quail/latin-pre.el (french-prefix): ", " => "," and "~ " => "~". | ||
| 4 | Don't define "~," at all. | ||
| 5 | |||
| 1 | 2002-01-29 Pavel Jan,Bm(Bk <Pavel@Janik.cz> | 6 | 2002-01-29 Pavel Jan,Bm(Bk <Pavel@Janik.cz> |
| 2 | 7 | ||
| 3 | * quail/latin-pre.el (latin-2-prefix): Add ,BL(B and ,Bl(B. | 8 | * quail/latin-pre.el (latin-2-prefix): Add ,BL(B and ,Bl(B. |
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 77677715799..92bfde23736 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,58 @@ | |||
| 1 | 2002-02-06 Richard M. Stallman <rms@gnu.org> | ||
| 2 | |||
| 3 | * mail/mailabbrev.el: Require sendmail only at compile time. | ||
| 4 | (mail-mode-header-syntax-table): Var deleted. | ||
| 5 | (mail-abbrev-syntax-table): Init to nil, will compute when needed. | ||
| 6 | (sendmail-pre-abbrev-expand-hook): Only temporarily change | ||
| 7 | local-abbrev-table and the syntax table. | ||
| 8 | Compute mail-abbrev-syntax-table if that has not been done. | ||
| 9 | |||
| 10 | * progmodes/compile.el (grep-compute-defaults): Definition moved up. | ||
| 11 | |||
| 12 | * emacs-lisp/debug.el (debugger-frame-offset): Var deleted. | ||
| 13 | (debugger-frame-number): Figure out the offset directly. | ||
| 14 | (debugger-setup-buffer): Don't use debugger-frame-offset. | ||
| 15 | (debugger-frame, debugger-frame-clear): Likewise. | ||
| 16 | (debugger-jump): Don't alter debugger-frame-offset. | ||
| 17 | |||
| 18 | * emacs-lisp/checkdoc.el (checkdoc-this-string-valid-engine): | ||
| 19 | Replace foo-p as var name with foo-flag, not foo-p-flag. | ||
| 20 | |||
| 21 | * hilit-chg.el (highlight-changes-active-string): Default to +Chg. | ||
| 22 | (highlight-changes-passive-string): Default to -Chg. | ||
| 23 | (highlight-changes-global-modes): Doc fix. | ||
| 24 | |||
| 25 | * dired.el (dired-get-filename): Add /: when appropriate | ||
| 26 | to avoid taking a local name as remote. | ||
| 27 | |||
| 28 | * files.el (file-name-non-special): Add special handling for | ||
| 29 | file-name-sans-versions, file-name-completion, and | ||
| 30 | file-name-all-completions. | ||
| 31 | |||
| 32 | * isearch.el (isearch-update): Don't update display in kbd macro. | ||
| 33 | (isearch-lazy-highlight-new-loop): Do nothing in kbd macro. | ||
| 34 | |||
| 35 | * subr.el (force-mode-line-update): Doc fix. | ||
| 36 | |||
| 37 | * subr.el (atomic-change-group, prepare-change-group) | ||
| 38 | (activate-change-group, accept-change-group, cancel-change-group): | ||
| 39 | New functions. | ||
| 40 | |||
| 41 | * simple.el (undo-get-state, undo-revert-to-state): Fns deleted. | ||
| 42 | (transpose-subr-1): Use atomic-change-group. | ||
| 43 | |||
| 44 | * subr.el (add-minor-mode): Include the mode's lighter string | ||
| 45 | in the minor mode menu item name. | ||
| 46 | |||
| 47 | * mail/rmail.el (rmail-toggle-header): Avoid possibly slow call to | ||
| 48 | rmail-count-screen-lines starting from (point-min). | ||
| 49 | |||
| 50 | * startup.el (use-fancy-splash-screens-p): Need 19 lines, | ||
| 51 | beyond the image height, to use the fancy splash screen. | ||
| 52 | |||
| 53 | * textmodes/text-mode.el (text-mode-hook-identify): Function deleted. | ||
| 54 | (text-mode): Set text-mode-variant here. | ||
| 55 | |||
| 1 | 2002-02-06 Eli Zaretskii <eliz@is.elta.co.il> | 56 | 2002-02-06 Eli Zaretskii <eliz@is.elta.co.il> |
| 2 | 57 | ||
| 3 | * play/pong.el (pong-height): Don't use height that exceeds the | 58 | * play/pong.el (pong-height): Don't use height that exceeds the |
diff --git a/src/ChangeLog b/src/ChangeLog index b4d25314b57..6e78f8f9768 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2002-02-06 Richard M. Stallman <rms@gnu.org> | ||
| 2 | |||
| 3 | * filelock.c (S_ISLNK): Define if not defined. | ||
| 4 | |||
| 1 | 2002-02-03 Richard M. Stallman <rms@gnu.org> | 5 | 2002-02-03 Richard M. Stallman <rms@gnu.org> |
| 2 | 6 | ||
| 3 | * fileio.c (Fdo_auto_save): Improve "auto save disabled" msg. | 7 | * fileio.c (Fdo_auto_save): Improve "auto save disabled" msg. |