]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/emacs-lisp/smie.el (smie-auto-fill): Fix bug#19342
authorStefan Monnier <monnier@iro.umontreal.ca>
Fri, 6 May 2022 15:09:58 +0000 (11:09 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Fri, 6 May 2022 15:09:58 +0000 (11:09 -0400)
lisp/emacs-lisp/smie.el

index 2bab1319132c42d03c9a5e311f2c6fde3564f772..61d52026b383a4cebc75e2458b9d26744f5fc4bf 100644 (file)
@@ -1846,7 +1846,9 @@ to which that point should be aligned, if we were to reindent it.")
                            (move-to-column fc)
                            (syntax-ppss))))
         (while
-            (and (with-demoted-errors "SMIE Error: %S"
+            ;; We silence the error completely since errors are "normal" in
+            ;; some cases and an error message would be annoying (bug#19342).
+            (and (ignore-error scan-error
                    (save-excursion
                      (let ((end (point))
                            (bsf nil)    ;Best-so-far.