Skip to content

Commit a1d6a0f

Browse files
Carlos Requena Lópezbbatsov
Carlos Requena López
authored andcommitted
[Fix #506] Fix clojure-mode-display-version
`clojure-mode-display-version` was displaying nil when clojure-mode.elc was loaded, since (lm-version) had no access to the file headers.
1 parent 6921518 commit a1d6a0f

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

clojure-mode.el

+2-3
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,8 @@
8282
:link '(emacs-commentary-link :tag "Commentary" "clojure-mode"))
8383

8484
(defconst clojure-mode-version
85-
(let ((thisbuffer (or load-file-name buffer-file-name)))
86-
(with-temp-buffer (insert-file-contents thisbuffer)
87-
(lm-version)))
85+
(eval-when-compile
86+
(lm-version (or load-file-name buffer-file-name)))
8887
"The current version of `clojure-mode'.")
8988

9089
(defface clojure-keyword-face

0 commit comments

Comments
 (0)