Skip to content

Commit

Permalink
[Fix clojure-emacs#506] Provide (lm-version) with a buffer with content
Browse files Browse the repository at this point in the history
the the content should be (at least) the headers up to Version, so
that (lm-version) can fetch it.
  • Loading branch information
Carlos Requena López committed Jan 21, 2019
1 parent 5b109f8 commit e6758c4
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions clojure-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
;; Artur Malabarba <[email protected]>
;; URL: http://github.com/clojure-emacs/clojure-mode
;; Keywords: languages clojure clojurescript lisp
;; version: 5.10.0
;; Version: 5.10.0
;; Package-Requires: ((emacs "25.1"))

;; This file is not part of GNU Emacs.
Expand Down Expand Up @@ -81,7 +81,10 @@
:link '(url-link :tag "GitHub" "https://github.com/clojure-emacs/clojure-mode")
:link '(emacs-commentary-link :tag "Commentary" "clojure-mode"))

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

(defface clojure-keyword-face
Expand Down

0 comments on commit e6758c4

Please sign in to comment.