diff options
| author | Richard M. Stallman | 2003-05-18 15:04:24 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2003-05-18 15:04:24 +0000 |
| commit | 62ea1306280ecf6712c87c865adbf4e3525a2788 (patch) | |
| tree | 919e546c0b2c2bd5d424e4d460fb6b5e4b1f6481 | |
| parent | deca5d968dad902b234b36d021f47013a67fea8b (diff) | |
| download | emacs-62ea1306280ecf6712c87c865adbf4e3525a2788.tar.gz emacs-62ea1306280ecf6712c87c865adbf4e3525a2788.zip | |
(prepare-change-group): Reinstate BUFFER arg; make it work.
| -rw-r--r-- | lisp/subr.el | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lisp/subr.el b/lisp/subr.el index 54e1d04df22..78f311385a1 100644 --- a/lisp/subr.el +++ b/lisp/subr.el | |||
| @@ -1242,8 +1242,9 @@ user can undo the change normally." | |||
| 1242 | (accept-change-group ,handle) | 1242 | (accept-change-group ,handle) |
| 1243 | (cancel-change-group ,handle)))))) | 1243 | (cancel-change-group ,handle)))))) |
| 1244 | 1244 | ||
| 1245 | (defun prepare-change-group () | 1245 | (defun prepare-change-group (&optional buffer) |
| 1246 | "Return a handle for the current buffer's state, for a change group. | 1246 | "Return a handle for the current buffer's state, for a change group. |
| 1247 | If you specify BUFFER, make a handle for BUFFER's state instead. | ||
| 1247 | 1248 | ||
| 1248 | Pass the handle to `activate-change-group' afterward to initiate | 1249 | Pass the handle to `activate-change-group' afterward to initiate |
| 1249 | the actual changes of the change group. | 1250 | the actual changes of the change group. |
| @@ -1269,7 +1270,9 @@ You can then activate that multibuffer change group with a single | |||
| 1269 | call to `activate-change-group' and finish it with a single call | 1270 | call to `activate-change-group' and finish it with a single call |
| 1270 | to `accept-change-group' or `cancel-change-group'." | 1271 | to `accept-change-group' or `cancel-change-group'." |
| 1271 | 1272 | ||
| 1272 | (list (cons (current-buffer) buffer-undo-list))) | 1273 | (if buffer |
| 1274 | (list (cons buffer (with-current-buffer buffer buffer-undo-list))) | ||
| 1275 | (list (cons (current-buffer) buffer-undo-list)))) | ||
| 1273 | 1276 | ||
| 1274 | (defun activate-change-group (handle) | 1277 | (defun activate-change-group (handle) |
| 1275 | "Activate a change group made with `prepare-change-group' (which see)." | 1278 | "Activate a change group made with `prepare-change-group' (which see)." |