Skip to content

Commit fb436f6

Browse files
yuhan0bbatsov
authored andcommitted
Fix ns detection bug
The new regex was missing symbol-end, causing it to match (ns-... functions
1 parent d489b27 commit fb436f6

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

clojure-mode-util-test.el

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,11 @@
109109
|
110110
(ns foo4)"
111111
(re-search-backward "|")
112-
(expect (clojure-find-ns) :to-equal "foo3"))))
112+
(expect (clojure-find-ns) :to-equal "foo3"))
113+
(with-clojure-buffer "(ns foo)
114+
(ns-unmap *ns* 'map)
115+
(ns.misleading 1 2 3)"
116+
(expect (clojure-find-ns) :to-equal "foo"))))
113117

114118
(describe "clojure-sort-ns"
115119
(it "should sort requires in a basic ns"

0 commit comments

Comments
 (0)