Function: erc--ensure-spkr-prop
erc--ensure-spkr-prop is a byte-compiled function defined in
erc.el.gz.
Signature
(erc--ensure-spkr-prop NICK &optional OVERRIDES)
Documentation
Add NICK as erc--spkr to the current "msg props" environment.
Prefer erc--msg-props over erc--msg-prop-overrides when both
are available. Also include any members of the alist OVERRIDES,
when present. Assume NICK itself to be free of any text props,
and return it.
Source Code
;; Defined in /usr/src/emacs/lisp/erc/erc.el.gz
;; Display interface
(defun erc--ensure-spkr-prop (nick &optional overrides)
"Add NICK as `erc--spkr' to the current \"msg props\" environment.
Prefer `erc--msg-props' over `erc--msg-prop-overrides' when both
are available. Also include any members of the alist OVERRIDES,
when present. Assume NICK itself to be free of any text props,
and return it."
(cond (erc--msg-props
(puthash 'erc--spkr nick erc--msg-props)
(dolist (entry overrides)
(puthash (car entry) (cdr entry) erc--msg-props)))
(erc--msg-prop-overrides
(setq erc--msg-prop-overrides
`((erc--spkr . ,nick) ,@overrides ,@erc--msg-prop-overrides))))
nick)