Function: gptel--inherit-stickiness
gptel--inherit-stickiness is a natively compiled function defined in
gptel.el.
Signature
(gptel--inherit-stickiness BEG END PRE)
Documentation
Mark any change to an LLM response region as a response.
Intended to be added to after-change-functions in gptel chat buffers,
which see for BEG, END and PRE.
Source Code
;; Defined in /nix/store/q3r7g81pvghw7a523kjk2k2zih3pfk8z-emacs-packages-deps/share/emacs/site-lisp/elpa/gptel-20261002.545/gptel.el
(defun gptel--inherit-stickiness (beg end _pre)
"Mark any change to an LLM response region as a response.
Intended to be added to `after-change-functions' in gptel chat buffers,
which see for BEG, END and PRE."
(and (/= beg end) (< end (point-max))
(and-let* ((val (get-text-property end 'gptel)))
(add-text-properties
beg end `(gptel ,val front-sticky (gptel))))))