]> git.eshelyaron.com Git - emacs.git/commitdiff
Unbreak M-x compile-defun of functions using flymake-log
authorJoão Távora <joaotavora@gmail.com>
Tue, 31 Aug 2021 17:32:58 +0000 (18:32 +0100)
committerJoão Távora <joaotavora@gmail.com>
Tue, 14 Sep 2021 11:22:15 +0000 (12:22 +0100)
* lisp/progmodes/flymake.el (flymake-log): Check if compilation unit
  is indeed a string before treating it as a file name.

lisp/progmodes/flymake.el

index 6386718a460ab4d90d8a5e73c4cf8c6349c880db..b1dbde9bcd359027a953b4ba8cbeb4a25ee7bd46 100644 (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))))))