mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-06 06:20:55 -08:00
* lisp/emacs-lisp/lisp.el (up-list): Fix forward movement.
Fixes: debbugs:8708
This commit is contained in:
parent
381987c350
commit
e44e373d30
2 changed files with 10 additions and 6 deletions
|
|
@ -145,12 +145,12 @@ This command assumes point is not in a string or comment."
|
|||
(while (/= arg 0)
|
||||
(if (null forward-sexp-function)
|
||||
(goto-char (or (scan-lists (point) inc 1) (buffer-end arg)))
|
||||
(condition-case err
|
||||
(while (progn (setq pos (point))
|
||||
(forward-sexp inc)
|
||||
(/= (point) pos)))
|
||||
(scan-error (goto-char (nth 2 err))))
|
||||
(if (= (point) pos)
|
||||
(condition-case err
|
||||
(while (progn (setq pos (point))
|
||||
(forward-sexp inc)
|
||||
(/= (point) pos)))
|
||||
(scan-error (goto-char (nth (if (> arg 0) 3 2) err))))
|
||||
(if (= (point) pos)
|
||||
(signal 'scan-error
|
||||
(list "Unbalanced parentheses" (point) (point)))))
|
||||
(setq arg (- arg inc)))))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue