]> git.eshelyaron.com Git - emacs.git/commitdiff
; Avoid macro expansion error message in 'elisp--local-variables'
authorEshel Yaron <me@eshelyaron.com>
Mon, 11 Dec 2023 16:33:47 +0000 (17:33 +0100)
committerEshel Yaron <me@eshelyaron.com>
Mon, 11 Dec 2023 16:35:21 +0000 (17:35 +0100)
* lisp/progmodes/elisp-mode.el (elisp--local-variables): Do not
display a message when macro expansion fails.

lisp/progmodes/elisp-mode.el

index 63198a660be65c008a1d3132ced053e66c615c35..f34bd64c70aeabfe88a1b586ad7cc35e0883ce39 100644 (file)
@@ -454,10 +454,9 @@ use of `macroexpand-all' as a way to find the \"underlying raw code\".")
                      ((invalid-read-syntax end-of-file) nil)))
              (macroexpand-advice
               (lambda (expander form &rest args)
-                (condition-case err
+                (condition-case nil
                     (apply expander form args)
-                  (error
-                   (message "Ignoring macroexpansion error: %S" err) form))))
+                  (error form))))
              (sexp
               (unwind-protect
                   ;; Silence any macro expansion errors when