]> git.eshelyaron.com Git - emacs.git/commitdiff
(elisp-flymake-byte-compile): Improve UX with `debug-on-error`
authorStefan Monnier <monnier@iro.umontreal.ca>
Thu, 2 Jan 2025 15:51:38 +0000 (10:51 -0500)
committerEshel Yaron <me@eshelyaron.com>
Sat, 4 Jan 2025 20:41:15 +0000 (21:41 +0100)
* lisp/progmodes/elisp-mode.el (elisp-flymake-byte-compile): Don't jump
into the debugger just because the content is not trusted.

(cherry picked from commit a720458fdd0283e3b7457632070504ff8962be86)

lisp/progmodes/elisp-mode.el

index 79aa7950ae253fcd6aca69889c14ae254b63a9c0..d7c5d2a80a7ddaea43a2b02284120300e3e10e13 100644 (file)
@@ -2185,8 +2185,8 @@ current buffer state and calls REPORT-FN when done."
     ;; Flymake doesn't display the warning it puts into "*flmake log*".
     (message "Disabling elisp-flymake-byte-compile in %s (untrusted content)"
              (buffer-name))
-    (error "Disabling elisp-flymake-byte-compile in %s (untrusted content)"
-           (buffer-name)))
+    (user-error "Disabling elisp-flymake-byte-compile in %s (untrusted content)"
+                (buffer-name)))
   (when elisp-flymake--byte-compile-process
     (when (process-live-p elisp-flymake--byte-compile-process)
       (kill-process elisp-flymake--byte-compile-process)))