From: Stefan Monnier Date: Thu, 2 Jan 2025 15:51:38 +0000 (-0500) Subject: (elisp-flymake-byte-compile): Improve UX with `debug-on-error` X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=35484423220fd88bcedf31530e779a515a91c01c;p=emacs.git (elisp-flymake-byte-compile): Improve UX with `debug-on-error` * 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) --- diff --git a/lisp/progmodes/elisp-mode.el b/lisp/progmodes/elisp-mode.el index 79aa7950ae2..d7c5d2a80a7 100644 --- a/lisp/progmodes/elisp-mode.el +++ b/lisp/progmodes/elisp-mode.el @@ -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)))