File tree Expand file tree Collapse file tree 3 files changed +22
-22
lines changed Expand file tree Collapse file tree 3 files changed +22
-22
lines changed Original file line number Diff line number Diff line change @@ -1374,6 +1374,27 @@ passing arguments."
1374
1374
(kill-new
1375
1375
(nrepl-dict-get (cider-nrepl-sync-request:eval " *1" ) " value" )))
1376
1376
1377
+ (defun cider-undef ()
1378
+ " Undefine a symbol from the current ns."
1379
+ (interactive )
1380
+ (cider-ensure-op-supported " undef" )
1381
+ (cider-read-symbol-name
1382
+ " Undefine symbol: "
1383
+ (lambda (sym )
1384
+ (cider-nrepl-send-request
1385
+ `(" op" " undef"
1386
+ " ns" ,(cider-current-ns)
1387
+ " sym" , sym )
1388
+ (cider-interactive-eval-handler (current-buffer ))))))
1389
+
1390
+ (defun cider-undef-all (&optional ns )
1391
+ " Undefine all symbols and aliases from the namespace NS."
1392
+ (interactive )
1393
+ (cider-ensure-op-supported " undef-all" )
1394
+ (cider-nrepl-send-sync-request
1395
+ `(" op" " undef-all"
1396
+ " ns" ,(or ns (cider-current-ns)))))
1397
+
1377
1398
; ; Eval keymaps
1378
1399
(defvar cider-eval-pprint-commands-map
1379
1400
(let ((map (define-prefix-command 'cider-eval-pprint-commands-map )))
Original file line number Diff line number Diff line change @@ -158,27 +158,6 @@ the related commands `cider-repl-clear-buffer' and
158
158
(cider-repl-clear-output))
159
159
(switch-to-buffer origin-buffer)))
160
160
161
- (defun cider-undef ()
162
- " Undefine a symbol from the current ns."
163
- (interactive )
164
- (cider-ensure-op-supported " undef" )
165
- (cider-read-symbol-name
166
- " Undefine symbol: "
167
- (lambda (sym )
168
- (cider-nrepl-send-request
169
- `(" op" " undef"
170
- " ns" ,(cider-current-ns)
171
- " sym" , sym )
172
- (cider-interactive-eval-handler (current-buffer ))))))
173
-
174
- (defun cider-undef-all (&optional ns )
175
- " Undefine all symbols and aliases from the namespace NS."
176
- (interactive )
177
- (cider-ensure-op-supported " undef-all" )
178
- (cider-nrepl-send-sync-request
179
- `(" op" " undef-all"
180
- " ns" ,(or ns (cider-current-ns)))))
181
-
182
161
; ;; cider-run
183
162
(defvar cider--namespace-history nil
184
163
" History of user input for namespace prompts." )
Original file line number Diff line number Diff line change @@ -1575,7 +1575,7 @@ constructs."
1575
1575
(puthash name handler cider-repl-shortcuts))
1576
1576
1577
1577
(declare-function cider-toggle-trace-ns " cider-tracing" )
1578
- (declare-function cider-undef " cider-mode " )
1578
+ (declare-function cider-undef " cider-eval " )
1579
1579
(declare-function cider-browse-ns " cider-browse-ns" )
1580
1580
(declare-function cider-classpath " cider-classpath" )
1581
1581
(declare-function cider-repl-history " cider-repl-history" )
You can’t perform that action at this time.
0 commit comments