Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 858d6b6

Browse filesBrowse files
rlbdvbbatsov
authored andcommitted
Move clojure-cached-ns before first use
Otherwise test-bytecomp fails like this: In toplevel form: clojure-mode.el:1860:23:Error: assignment to free variable `clojure-cached-ns'
1 parent 8bcc657 commit 858d6b6
Copy full SHA for 858d6b6

File tree

1 file changed

+3
-3
lines changed
Filter options

1 file changed

+3
-3
lines changed

‎clojure-mode.el

Copy file name to clipboardExpand all lines: clojure-mode.el
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1845,6 +1845,9 @@ If PATH is nil, use the path to the file backing the current buffer."
18451845
(goto-char (point-min))
18461846
(clojure-insert-ns-form-at-point))
18471847

1848+
(defvar-local clojure-cached-ns nil
1849+
"A buffer ns cache used to speed up ns-related operations.")
1850+
18481851
(defun clojure-update-ns ()
18491852
"Update the namespace of the current buffer.
18501853
Useful if a file has been renamed."
@@ -1957,9 +1960,6 @@ the cached value will be updated automatically."
19571960
:safe #'booleanp
19581961
:package-version '(clojure-mode . "5.8.0"))
19591962

1960-
(defvar-local clojure-cached-ns nil
1961-
"A buffer ns cache used to speed up ns-related operations.")
1962-
19631963
(defun clojure--find-ns-in-direction (direction)
19641964
"Return the nearest namespace in a specific DIRECTION.
19651965
DIRECTION is `forward' or `backward'."

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.