mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-06 06:20:55 -08:00
(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.
This commit is contained in:
parent
7acfea1935
commit
a720458fdd
1 changed files with 3 additions and 3 deletions
|
|
@ -1,6 +1,6 @@
|
||||||
;;; elisp-mode.el --- Emacs Lisp mode -*- lexical-binding:t -*-
|
;;; 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
|
;; Maintainer: emacs-devel@gnu.org
|
||||||
;; Keywords: lisp, languages
|
;; 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*".
|
;; Flymake doesn't display the warning it puts into "*flmake log*".
|
||||||
(message "Disabling elisp-flymake-byte-compile in %s (untrusted content)"
|
(message "Disabling elisp-flymake-byte-compile in %s (untrusted content)"
|
||||||
(buffer-name))
|
(buffer-name))
|
||||||
(error "Disabling elisp-flymake-byte-compile in %s (untrusted content)"
|
(user-error "Disabling elisp-flymake-byte-compile in %s (untrusted content)"
|
||||||
(buffer-name)))
|
(buffer-name)))
|
||||||
(when elisp-flymake--byte-compile-process
|
(when elisp-flymake--byte-compile-process
|
||||||
(when (process-live-p elisp-flymake--byte-compile-process)
|
(when (process-live-p elisp-flymake--byte-compile-process)
|
||||||
(kill-process elisp-flymake--byte-compile-process)))
|
(kill-process elisp-flymake--byte-compile-process)))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue