Skip to content

Commit 04cf70a

Browse files
committed
Update the ns cache automatically in clojure-update-ns
1 parent 34998fb commit 04cf70a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

clojure-mode.el

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1708,8 +1708,10 @@ Useful if a file has been renamed."
17081708
(save-excursion
17091709
(save-match-data
17101710
(if (clojure-find-ns)
1711-
(progn (replace-match nsname nil nil nil 4)
1712-
(message "ns form updated"))
1711+
(progn
1712+
(replace-match nsname nil nil nil 4)
1713+
(message "ns form updated to `%s'" nsname)
1714+
(setq clojure-cached-ns nsname))
17131715
(error "Namespace not found")))))))
17141716

17151717
(defun clojure--sort-following-sexps ()

0 commit comments

Comments
 (0)