emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

emacs-30 a720458fdd0: (elisp-flymake-byte-compile): Improve UX with `deb


From: Stefan Monnier
Subject: emacs-30 a720458fdd0: (elisp-flymake-byte-compile): Improve UX with `debug-on-error`
Date: Thu, 2 Jan 2025 10:51:49 -0500 (EST)

branch: emacs-30
commit a720458fdd0283e3b7457632070504ff8962be86
Author: Stefan Monnier <monnier@iro.umontreal.ca>
Commit: Stefan Monnier <monnier@iro.umontreal.ca>

    (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.
---
 lisp/progmodes/elisp-mode.el | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/lisp/progmodes/elisp-mode.el b/lisp/progmodes/elisp-mode.el
index 17606352c4a..59c33c09f0f 100644
--- a/lisp/progmodes/elisp-mode.el
+++ b/lisp/progmodes/elisp-mode.el
@@ -1,6 +1,6 @@
 ;;; elisp-mode.el --- Emacs Lisp mode  -*- lexical-binding:t -*-
 
-;; Copyright (C) 1985-1986, 1999-2024 Free Software Foundation, Inc.
+;; Copyright (C) 1985-1986, 1999-2025 Free Software Foundation, Inc.
 
 ;; Maintainer: emacs-devel@gnu.org
 ;; Keywords: lisp, languages
@@ -2209,8 +2209,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)))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]