Function: clojure--nothing-more-to-unwind

clojure--nothing-more-to-unwind is a byte-compiled function defined in clojure-mode.el.

Signature

(clojure--nothing-more-to-unwind)

Documentation

Return non-nil if a threaded form cannot be unwound further.

Source Code

;; Defined in ~/.emacs.d/elpa/clojure-mode-20260325.811/clojure-mode.el
(defun clojure--nothing-more-to-unwind ()
  "Return non-nil if a threaded form cannot be unwound further."
  (save-excursion
    (let ((beg (point)))
      (forward-sexp)
      (down-list -1)
      (backward-sexp 2) ;; the last sexp, the threading macro
      (when (looking-back "(\\s-*" (line-beginning-position))
        (backward-up-list)) ;; and the paren
      (= beg (point)))))