Function: cider-macrostep--expand-bounds
cider-macrostep--expand-bounds is a byte-compiled function defined in
cider-macrostep.el.
Signature
(cider-macrostep--expand-bounds)
Documentation
Return the (BEG . END) bounds of the form to expand, or nil.
When point sits on a highlighted expandable operator - where n/p leave
it - expand that operator's enclosing form. Otherwise fall back to the sexp
before point, the M-x cider-eval-form (cider-eval-form) convention that
cider-macrostep-expand documents.
Source Code
;; Defined in ~/.emacs.d/elpa/cider-20260822.1520/cider-macrostep.el
(defun cider-macrostep--expand-bounds ()
"Return the (BEG . END) bounds of the form to expand, or nil.
When point sits on a highlighted expandable operator - where `n'/`p' leave
it - expand that operator's enclosing form. Otherwise fall back to the sexp
before point, the `\\[cider-eval-form]' convention that
`cider-macrostep-expand' documents."
(or (when-let* ((ov (cider-macrostep--expandable-overlay-at (point))))
(save-excursion
(goto-char (overlay-start ov))
(ignore-errors
(backward-up-list)
(cons (point) (progn (forward-sexp) (point))))))
(cider-macrostep--form-bounds)))