]> 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>
Mon, 13 Sep 2021 17:40:58 +0000 (18:40 +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 dbda4dfcc52f6c1b2a34c5957cf551b1d2cf8742..2900ba15ba9737d9835d7db192e151fbae074a86 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))))))