]> git.eshelyaron.com Git - emacs.git/commitdiff
; * lisp/emacs-lisp/lisp-mode.el: Restore one check in flet handling
authorakater <nuclearspace@gmail.com>
Tue, 9 Nov 2021 03:25:24 +0000 (04:25 +0100)
committerLars Ingebrigtsen <larsi@gnus.org>
Tue, 9 Nov 2021 03:26:05 +0000 (04:26 +0100)
* lisp/emacs-lisp/lisp-mode.el (lisp--local-defform-body-p):
Do check backward-up-list executing without errors (bug#9622).

lisp/emacs-lisp/lisp-mode.el

index a5613e70e0ab13e585542e1c1139f6cafe712676..d90d0f5f6ace092fa30b959c12bce7c3b2a3299d 100644 (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'.