Skip to content

Commit e6758c4

Browse files
author
Carlos Requena López
committed
[Fix #506] Provide (lm-version) with a buffer with content
the the content should be (at least) the headers up to Version, so that (lm-version) can fetch it.
1 parent 5b109f8 commit e6758c4

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

clojure-mode.el

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
;; Artur Malabarba <[email protected]>
1111
;; URL: http://github.com/clojure-emacs/clojure-mode
1212
;; Keywords: languages clojure clojurescript lisp
13-
;; version: 5.10.0
13+
;; Version: 5.10.0
1414
;; Package-Requires: ((emacs "25.1"))
1515

1616
;; This file is not part of GNU Emacs.
@@ -81,7 +81,10 @@
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

0 commit comments

Comments
 (0)