Skip to content

Commit 6d07c9b

Browse files
committed
Fix errors in compilation-parse-errors if `ce-make-temp-file' is nil
* compiler-explorer.el (ce--compilation-parse-errors-filename): Guard against filename of the `ce--buffer' being nil.
1 parent 4313840 commit 6d07c9b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

compiler-explorer.el

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1437,9 +1437,9 @@ When the session is killed, the temporary directory is deleted."
14371437
(filename)
14381438
"Wrapper for parsing FILENAME in compiler output buffer.
14391439
This allows navigating to errors in source code from that buffer."
1440-
(when (string-match-p ce--filename-regexp filename)
1441-
(file-name-nondirectory
1442-
(buffer-file-name (get-buffer ce--buffer)))))
1440+
(and-let* ((fname (buffer-file-name (get-buffer ce--buffer)))
1441+
((string-match-p ce--filename-regexp filename)))
1442+
(file-name-nondirectory fname)))
14431443

14441444
(defcustom ce-document-opcodes t
14451445
"If non-nil, provide documentation for opcodes in ASM buffers.

0 commit comments

Comments
 (0)