mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-11-27 07:37:33 +00:00
Conditionally use macroexp-file-name in Flymake
* lisp/progmodes/flymake.el (flymake-log): Reinstate Emacs 26 support by conditionally using macroexp-file-name which is new in Emacs 28 (bug#46957).
This commit is contained in:
parent
6d580dee30
commit
f2f233d867
@ -287,7 +287,9 @@ LEVEL is passed to `display-warning', which is used to display
|
||||
the warning. If this form is included in a byte-compiled file,
|
||||
the generated warning contains an indication of the file that
|
||||
generated it."
|
||||
(let* ((compile-file (macroexp-file-name))
|
||||
(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))
|
||||
|
Loading…
Reference in New Issue
Block a user