diff options
author | Kelly Dean <kelly@prtime.org> | 2015-02-18 07:41:10 +0000 |
---|---|---|
committer | Artur Malabarba <bruce.connor.am@gmail.com> | 2015-02-18 16:36:24 -0200 |
commit | b1d6ddd44614c84746f5ee494e1f29cd9be8a2d8 (patch) | |
tree | cfa469b9f2c7bf9783e7325b18e831c00ce470d9 /lisp/emacs-lisp | |
parent | 56f5ea17f19bfb07e263dd2d59a3c61b652fcc3d (diff) | |
download | emacs-b1d6ddd44614c84746f5ee494e1f29cd9be8a2d8.tar.gz |
Push mark before goto-char in jump-to-register and check-parens
* register.el (jump-to-register):
* emacs-lisp/lisp.el (check-parens):
Push mark before goto-char so user doesn't lose his previous place.
Diffstat (limited to 'lisp/emacs-lisp')
-rw-r--r-- | lisp/emacs-lisp/lisp.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/emacs-lisp/lisp.el b/lisp/emacs-lisp/lisp.el index fb631a73da1..67d14872b3a 100644 --- a/lisp/emacs-lisp/lisp.el +++ b/lisp/emacs-lisp/lisp.el @@ -714,7 +714,8 @@ character." (condition-case data ;; Buffer can't have more than (point-max) sexps. (scan-sexps (point-min) (point-max)) - (scan-error (goto-char (nth 2 data)) + (scan-error (push-mark) + (goto-char (nth 2 data)) ;; Could print (nth 1 data), which is either ;; "Containing expression ends prematurely" or ;; "Unbalanced parentheses", but those may not be so |