Function: erc--reserve-important-text-props
erc--reserve-important-text-props is a byte-compiled function defined
in erc.el.gz.
Signature
(erc--reserve-important-text-props BEG END PLIST &optional OBJECT)
Documentation
Record text-property pairs in PLIST as important between BEG and END.
Also mark the message being inserted as containing these important props so modules performing destructive modifications can later restore them. Expect to run in a narrowed buffer at message-insertion time.
Source Code
;; Defined in /usr/src/emacs/lisp/erc/erc.el.gz
(defun erc--reserve-important-text-props (beg end plist &optional object)
"Record text-property pairs in PLIST as important between BEG and END.
Also mark the message being inserted as containing these important props
so modules performing destructive modifications can later restore them.
Expect to run in a narrowed buffer at message-insertion time."
(when erc--msg-props
(let ((existing (erc--check-msg-prop 'erc--important-prop-names)))
(puthash 'erc--important-prop-names (cl-union existing (map-keys plist))
erc--msg-props)))
(erc--merge-prop beg end 'erc--important-props plist object))