Skip to content

Commit

Permalink
[Fix clojure-emacs#506] Fix clojure-mode-display-version
Browse files Browse the repository at this point in the history
`clojure-mode-display-version` was displaying nil when clojure-mode.elc was
loaded, since (lm-version) had no access to the file headers.
  • Loading branch information
Carlos Requena López committed Feb 28, 2019
1 parent 6921518 commit 62a6efc
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions clojure-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,8 @@
:link '(emacs-commentary-link :tag "Commentary" "clojure-mode"))

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

(defface clojure-keyword-face
Expand Down

0 comments on commit 62a6efc

Please sign in to comment.