Function: clojure--thread-all

clojure--thread-all is a byte-compiled function defined in clojure-mode.el.

Signature

(clojure--thread-all FIRST-OR-LAST-THREAD BUT-LAST)

Documentation

Fully thread the form at point.

FIRST-OR-LAST-THREAD is "->" or "->>".

When BUT-LAST is non-nil, the last expression is not threaded. Default value is clojure-thread-all-but-last.

Source Code

;; Defined in ~/.emacs.d/elpa/clojure-mode-20260325.811/clojure-mode.el
(defun clojure--thread-all (first-or-last-thread but-last)
  "Fully thread the form at point.

FIRST-OR-LAST-THREAD is \"->\" or \"->>\".

When BUT-LAST is non-nil, the last expression is not threaded.
Default value is `clojure-thread-all-but-last'."
  (save-excursion
    (insert-parentheses 1)
    (insert first-or-last-thread))
  (while (save-excursion (clojure-thread)))
  (when (or but-last clojure-thread-all-but-last)
    (clojure-unwind)))