Unbreak M-x compile-defun of functions using flymake-log

* lisp/progmodes/flymake.el (flymake-log): Check if compilation unit
  is indeed a string before treating it as a file name.
This commit is contained in:
João Távora 2021-08-31 18:32:58 +01:00
parent 4040232994
commit e793a73fbe

View file

@ -291,7 +291,7 @@ generated it."
(macroexp-file-name)
(and (not load-file-name)
(bound-and-true-p byte-compile-current-file))))
(sublog (if file
(sublog (if (stringp file)
(intern
(file-name-nondirectory
(file-name-sans-extension file))))))