File tree Expand file tree Collapse file tree 3 files changed +9
-1
lines changed
Expand file tree Collapse file tree 3 files changed +9
-1
lines changed Original file line number Diff line number Diff line change 55### Bugs fixed
66
77* Dynamic vars whose names contain non-alphanumeric characters are now font-locked correctly.
8+ * [ #506 ] ( https://github.com/clojure-emacs/clojure-mode/issues/506 ) : ` clojure-mode-display-version ` correctly displays the package's version
89
910## 5.10.0 (2019-01-05)
1011
Original file line number Diff line number Diff line change 8181 :link '(url-link :tag " GitHub" " https://github.com/clojure-emacs/clojure-mode" )
8282 :link '(emacs-commentary-link :tag " Commentary" " clojure-mode" ))
8383
84- (defconst clojure-mode-version (lm-version )
84+ (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 )))
8588 " The current version of `clojure-mode' ." )
8689
8790(defface clojure-keyword-face
Original file line number Diff line number Diff line change 2626(require 'cl-lib )
2727(require 'ert )
2828
29+
30+ (ert-deftest clojure-mode-version-should-be-non-nil ()
31+ (should (not (eq clojure-mode-version nil ))))
32+
2933(let ((project-dir " /home/user/projects/my-project/" )
3034 (clj-file-path " /home/user/projects/my-project/src/clj/my_project/my_ns/my_file.clj" )
3135 (project-relative-clj-file-path " src/clj/my_project/my_ns/my_file.clj" )
You can’t perform that action at this time.
0 commit comments