emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/cider b4c3bdccde 2/8: Add undef-all command


From: ELPA Syncer
Subject: [nongnu] elpa/cider b4c3bdccde 2/8: Add undef-all command
Date: Sat, 30 Apr 2022 21:58:01 -0400 (EDT)

branch: elpa/cider
commit b4c3bdccde1e5de1a8bcc8398984098233a65eda
Author: yuhan0 <qythium@gmail.com>
Commit: Bozhidar Batsov <bozhidar@batsov.dev>

    Add undef-all command
---
 cider-mode.el | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/cider-mode.el b/cider-mode.el
index 859e064dc6..b47d8e4c49 100644
--- a/cider-mode.el
+++ b/cider-mode.el
@@ -171,6 +171,14 @@ the related commands `cider-repl-clear-buffer' and
         "sym" ,sym)
       (cider-interactive-eval-handler (current-buffer))))))
 
+(defun cider-undef-all (&optional ns)
+  "Undefine all symbols and aliases from the namespace NS."
+  (interactive)
+  (cider-ensure-op-supported "undef-all")
+  (cider-nrepl-send-sync-request
+   `("op" "undef-all"
+     "ns" ,(or ns (cider-current-ns)))))
+
 ;;; cider-run
 (defvar cider--namespace-history nil
   "History of user input for namespace prompts.")



reply via email to

[Prev in Thread] Current Thread [Next in Thread]