Function: erc--get-inserted-msg-beg-at

erc--get-inserted-msg-beg-at is a macro defined in erc.el.gz.

Signature

(erc--get-inserted-msg-beg-at POINT AT-START-P)

Source Code

;; Defined in /usr/src/emacs/lisp/erc/erc.el.gz
(defmacro erc--get-inserted-msg-beg-at (point at-start-p)
  (macroexp-let2* nil ((point point)
                       (at-start-p at-start-p))
    `(or (and ,at-start-p ,point)
         (and-let* ((p (previous-single-property-change ,point 'erc--msg)))
           (if (and (= p (1- ,point)) (get-text-property p 'erc--msg))
               p
             (1- p))))))