; * lisp/emacs-lisp/lisp-mode.el: Restore one check in flet handling

* lisp/emacs-lisp/lisp-mode.el (lisp--local-defform-body-p):
Do check backward-up-list executing without errors (bug#9622).
This commit is contained in:
akater 2021-11-09 04:25:24 +01:00 committed by Lars Ingebrigtsen
parent 032969e8c6
commit 3fd0e7fba6

View file

@ -1149,12 +1149,12 @@ STATE is the `parse-partial-sexp' state for current position."
t)
(point))))))
(save-excursion
(ignore-errors
;; We rely on `backward-up-list' working
;; even when sexp is incomplete “to the right”.
(backward-up-list 2)
t)
(= local-definitions-starting-point (point)))))))))
(when (ignore-errors
;; We rely on `backward-up-list' working
;; even when sexp is incomplete “to the right”.
(backward-up-list 2)
t)
(= local-definitions-starting-point (point))))))))))
(defun lisp-indent-function (indent-point state)
"This function is the normal value of the variable `lisp-indent-function'.