Skip to content

Commit

Permalink
[Fix clojure-emacs#506] Makes display version command return the actu…
Browse files Browse the repository at this point in the history
…al version

`clojure-mode-display-version` displays the correct version (was displaying nil)

also added some tests
  • Loading branch information
Carlos Requena López committed Feb 28, 2019
1 parent 6921518 commit b6556de
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 b6556de

Please sign in to comment.