mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-06 06:20:55 -08:00
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.
This commit is contained in:
parent
56f5ea17f1
commit
b1d6ddd446
3 changed files with 11 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue