Function: clojure-toggle-ignore

clojure-toggle-ignore is an interactive and byte-compiled function defined in clojure-mode.el.

Signature

(clojure-toggle-ignore &optional N)

Documentation

Toggle the #_ ignore 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

Source Code

;; Defined in ~/.emacs.d/elpa/clojure-mode-20260325.811/clojure-mode.el
(defun clojure-toggle-ignore (&optional n)
  "Toggle the #_ ignore 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-ignore-next-sexp n)))