Function: cider--text-or-limits

cider--text-or-limits is a byte-compiled function defined in cider-util.el.

Signature

(cider--text-or-limits BOUNDS START END)

Documentation

Returns the substring or the bounds of text.

If BOUNDS is non-nil, returns the list (START END) of character positions. Else returns the substring from START to END.

Source Code

;; Defined in ~/.emacs.d/elpa/cider-20260414.1619/cider-util.el
;;; Thing at point

(defun cider--text-or-limits (bounds start end)
  "Returns the substring or the bounds of text.
If BOUNDS is non-nil, returns the list (START END) of character
positions.  Else returns the substring from START to END."
  (funcall (if bounds #'list #'buffer-substring-no-properties)
           start end))