Function: clojure-cycle-not
clojure-cycle-not is an interactive and byte-compiled function defined
in clojure-mode.el.
Signature
(clojure-cycle-not)
Documentation
Add or remove a not form around the current form.
Key Bindings
Source Code
;; Defined in ~/.emacs.d/elpa/clojure-mode-20260325.811/clojure-mode.el
(defun clojure-cycle-not ()
"Add or remove a not form around the current form."
(interactive)
(save-excursion
(condition-case nil
(backward-up-list)
(scan-error (user-error "`clojure-cycle-not' must be invoked inside a list")))
(if (looking-back "(not " nil)
(progn
(delete-char -5)
(forward-sexp)
(delete-char 1))
(insert "(not ")
(forward-sexp)
(insert ")"))))