[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master da383ae: * lisp/progmodes/flymake.el (flymake-log): Simplify
From: |
Stefan Monnier |
Subject: |
master da383ae: * lisp/progmodes/flymake.el (flymake-log): Simplify |
Date: |
Sat, 6 Mar 2021 09:55:36 -0500 (EST) |
branch: master
commit da383aeb8e629f642b46e9c64b2ffcec9976c23f
Author: Stefan Monnier <monnier@iro.umontreal.ca>
Commit: Stefan Monnier <monnier@iro.umontreal.ca>
* lisp/progmodes/flymake.el (flymake-log): Simplify
---
lisp/progmodes/flymake.el | 13 ++++++-------
1 file changed, 6 insertions(+), 7 deletions(-)
diff --git a/lisp/progmodes/flymake.el b/lisp/progmodes/flymake.el
index e7e746b..e9b2b8a 100644
--- a/lisp/progmodes/flymake.el
+++ b/lisp/progmodes/flymake.el
@@ -284,15 +284,14 @@ If set to nil, don't suppress any zero counters."
(defmacro flymake-log (level msg &rest args)
"Log, at level LEVEL, the message MSG formatted with ARGS.
LEVEL is passed to `display-warning', which is used to display
-the warning. If this form is included in a byte-compiled file,
+the warning. If this form is included in a file,
the generated warning contains an indication of the file that
generated it."
- (let* ((compile-file (or (and (fboundp 'macroexp-file-name)
- (macroexp-file-name))
- (bound-and-true-p byte-compile-current-file)))
- (sublog (if (and
- compile-file
- (not load-file-name))
+ (let* ((file (if (fboundp 'macroexp-file-name)
+ (macroexp-file-name)
+ (and (not load-file-name)
+ (bound-and-true-p byte-compile-current-file))))
+ (sublog (if file
(intern
(file-name-nondirectory
(file-name-sans-extension compile-file))))))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master da383ae: * lisp/progmodes/flymake.el (flymake-log): Simplify,
Stefan Monnier <=