diff options
| author | Mark Oteiza | 2016-07-03 18:53:39 -0400 |
|---|---|---|
| committer | Mark Oteiza | 2016-07-03 18:54:43 -0400 |
| commit | ca1b9b38dcf372b09028acf088f386ef09f2de84 (patch) | |
| tree | 3a59694d7f6c81150b21f9b061c7367b632538fb | |
| parent | 838f122873edbc0cff1ebe3645803e674e812774 (diff) | |
| download | emacs-ca1b9b38dcf372b09028acf088f386ef09f2de84.tar.gz emacs-ca1b9b38dcf372b09028acf088f386ef09f2de84.zip | |
* lisp/simple.el (save-mark-and-excursion): Add declare forms.
| -rw-r--r-- | lisp/simple.el | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lisp/simple.el b/lisp/simple.el index bc3e7b83b8d..0da70976ed5 100644 --- a/lisp/simple.el +++ b/lisp/simple.el | |||
| @@ -5223,6 +5223,7 @@ store it in a Lisp variable. Example: | |||
| 5223 | (defmacro save-mark-and-excursion (&rest body) | 5223 | (defmacro save-mark-and-excursion (&rest body) |
| 5224 | "Like `save-excursion', but also save and restore the mark state. | 5224 | "Like `save-excursion', but also save and restore the mark state. |
| 5225 | This macro does what `save-excursion' did before Emacs 25.1." | 5225 | This macro does what `save-excursion' did before Emacs 25.1." |
| 5226 | (declare (indent 0) (debug t)) | ||
| 5226 | (let ((saved-marker-sym (make-symbol "saved-marker"))) | 5227 | (let ((saved-marker-sym (make-symbol "saved-marker"))) |
| 5227 | `(let ((,saved-marker-sym (save-mark-and-excursion--save))) | 5228 | `(let ((,saved-marker-sym (save-mark-and-excursion--save))) |
| 5228 | (unwind-protect | 5229 | (unwind-protect |