diff options
| author | Stefan Monnier | 2018-01-30 09:55:09 -0500 |
|---|---|---|
| committer | Stefan Monnier | 2018-01-30 09:55:09 -0500 |
| commit | 84055bda91d48dd603110b0805560cf1df205a83 (patch) | |
| tree | b4d32b7ad7d5812cc12c35fa5eea4ea340af8db5 | |
| parent | b937381e51df28551463da410577c72fb5fa6ace (diff) | |
| download | emacs-84055bda91d48dd603110b0805560cf1df205a83.tar.gz emacs-84055bda91d48dd603110b0805560cf1df205a83.zip | |
* lisp/subr.el (atomic-change-group): Fix return value
Suggested by Jarosław Rzeszótko <jrzeszotko@gmail.com>.
| -rw-r--r-- | lisp/subr.el | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lisp/subr.el b/lisp/subr.el index 24bd28839fc..00bab70e8a3 100644 --- a/lisp/subr.el +++ b/lisp/subr.el | |||
| @@ -2586,7 +2586,7 @@ is nil and `use-dialog-box' is non-nil." | |||
| 2586 | ;;; Atomic change groups. | 2586 | ;;; Atomic change groups. |
| 2587 | 2587 | ||
| 2588 | (defmacro atomic-change-group (&rest body) | 2588 | (defmacro atomic-change-group (&rest body) |
| 2589 | "Perform BODY as an atomic change group. | 2589 | "Like `progn' but perform BODY as an atomic change group. |
| 2590 | This means that if BODY exits abnormally, | 2590 | This means that if BODY exits abnormally, |
| 2591 | all of its changes to the current buffer are undone. | 2591 | all of its changes to the current buffer are undone. |
| 2592 | This works regardless of whether undo is enabled in the buffer. | 2592 | This works regardless of whether undo is enabled in the buffer. |
| @@ -2609,8 +2609,8 @@ user can undo the change normally." | |||
| 2609 | ;; it enables undo if that was disabled; we need | 2609 | ;; it enables undo if that was disabled; we need |
| 2610 | ;; to make sure that it gets disabled again. | 2610 | ;; to make sure that it gets disabled again. |
| 2611 | (activate-change-group ,handle) | 2611 | (activate-change-group ,handle) |
| 2612 | ,@body | 2612 | (prog1 ,(macroexp-progn body) |
| 2613 | (setq ,success t)) | 2613 | (setq ,success t))) |
| 2614 | ;; Either of these functions will disable undo | 2614 | ;; Either of these functions will disable undo |
| 2615 | ;; if it was disabled before. | 2615 | ;; if it was disabled before. |
| 2616 | (if ,success | 2616 | (if ,success |