Function: erc--get-speaker-bounds

erc--get-speaker-bounds is a byte-compiled function defined in erc.el.gz.

Signature

(erc--get-speaker-bounds)

Documentation

Return the bounds of erc--speaker text property when present.

Assume buffer is narrowed to the confines of an inserted message.

Source Code

;; Defined in /usr/src/emacs/lisp/erc/erc.el.gz
(defun erc--get-speaker-bounds ()
  "Return the bounds of `erc--speaker' text property when present.
Assume buffer is narrowed to the confines of an inserted message."
  (and-let* (((erc--check-msg-prop 'erc--spkr))
             (beg (text-property-not-all (point-min) (point-max)
                                         'erc--speaker nil)))
    (cons beg (next-single-property-change beg 'erc--speaker))))