Skip to content

Commit 37fb62b

Browse files
committed
Use truename consistently in highlighting compilation errors
Fixes (scan-error "Unbalanced parentheses") when the compiled file is simlinked.
1 parent 2c281dd commit 37fb62b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cider-interaction.el

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -993,7 +993,8 @@ until we find a delimiters that's not inside a string."
993993
(save-excursion
994994
;; when we don't have a filename or it's different from the one of
995995
;; the current buffer, the line number is relative to form start
996-
(if (and file (equal file (file-truename (buffer-file-name))))
996+
(if (and file (equal (file-truename file)
997+
(file-truename (buffer-file-name))))
997998
(goto-char (point-min)) ; start of file
998999
(beginning-of-defun))
9991000
(forward-line (1- line))

0 commit comments

Comments
 (0)