We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c1251c0 commit 3f3607fCopy full SHA for 3f3607f
cider-eval.el
@@ -1334,11 +1334,11 @@ buffer, else display in a popup buffer."
1334
"Evaluate the current buffer's namespace form.
1335
When UNDEF-ALL is non-nil, unmap all symbols and aliases first."
1336
(interactive "P")
1337
- (when (clojure-find-ns)
+ (when-let ((ns (clojure-find-ns)))
1338
(save-excursion
1339
(goto-char (match-beginning 0))
1340
(when undef-all
1341
- (cider-undef-all (match-string 0)))
+ (cider-undef-all ns))
1342
(cider-eval-defun-at-point))))
1343
1344
(defun cider-read-and-eval (&optional value)
0 commit comments