Function: clojure-toggle-discard
clojure-toggle-discard is an interactive and byte-compiled function
defined in clojure-mode.el.
Signature
(clojure-toggle-discard &optional N)
Documentation
Toggle the #_ discard reader form for the sexp at point.
With numeric argument, toggle N number of #_ forms at the same point.
e.g. with N = 2:
|a b c => #_#_a b c
Key Bindings
Aliases
clojure-toggle-ignore (obsolete since 5.24.0)
Source Code
;; Defined in ~/.emacs.d/elpa/clojure-mode-20260709.952/clojure-mode.el
(defun clojure-toggle-discard (&optional n)
"Toggle the #_ discard reader form for the sexp at point.
With numeric argument, toggle N number of #_ forms at the same point.
e.g. with N = 2:
|a b c => #_#_a b c"
(interactive "p")
(save-excursion
(ignore-errors
(goto-char (or (nth 8 (syntax-ppss)) ;; beginning of string
(beginning-of-thing 'sexp))))
(clojure--toggle-discard-next-sexp n)))