Function: eca-chat--completion-prefix-end
eca-chat--completion-prefix-end is a natively compiled function
defined in eca-chat-context.el.
Signature
(eca-chat--completion-prefix-end PREFIX)
Documentation
Return the position right after the last PREFIX before point.
Searches only in the current line; return nil when PREFIX is not found.
Source Code
;; Defined in /nix/store/jklqzw6pzz6j4jrbv8wy0iwgi7jlrbld-emacs-packages-deps/share/emacs/site-lisp/elpa/eca-20260928.1827/eca-chat-context.el
(defun eca-chat--completion-prefix-end (prefix)
"Return the position right after the last PREFIX before point.
Searches only in the current line; return nil when PREFIX is not
found."
(save-excursion
(when (search-backward prefix (line-beginning-position) t)
(+ (point) (length prefix)))))