Function: gptel--get-response-bounds

gptel--get-response-bounds is a natively compiled function defined in gptel.el.

Signature

(gptel--get-response-bounds)

Documentation

Return the gptel response boundaries around point.

Aliases

gptel--get-bounds (obsolete since 0.9.8)

Source Code

;; Defined in /nix/store/q3r7g81pvghw7a523kjk2k2zih3pfk8z-emacs-packages-deps/share/emacs/site-lisp/elpa/gptel-20261002.545/gptel.el
(defun gptel--get-response-bounds ()
  "Return the gptel response boundaries around point."
  (let (prop)
    (save-excursion
      (when (text-property-search-forward
                          'gptel 'response t)
        (when (setq prop (text-property-search-backward
                          'gptel 'response t))
          (cons (prop-match-beginning prop)
                (prop-match-end prop)))))))