Function: erc-match-highlight
erc-match-highlight is a byte-compiled function defined in
erc-match.el.gz.
Signature
(erc-match-highlight MATCH)
Documentation
Dispatch erc-match-highlight-by-part on MATCH's :part slot.
Run erc-text-matched-hook when MATCH's category slot is non-nil.
Source Code
;; Defined in /usr/src/emacs/lisp/erc/erc-match.el.gz
(defun erc-match-highlight (match)
"Dispatch `erc-match-highlight-by-part' on MATCH's `:part' slot.
Run `erc-text-matched-hook' when MATCH's `category' slot is non-nil."
(unless (erc-match-traditional-p match)
(signal 'wrong-type-argument (list 'erc-match-traditional match)))
(cl-assert (erc-match-newlinep match))
(erc-match-highlight-by-part match (erc-match-traditional-part match))
(when (erc-match-traditional-category match)
(let ((user-nuh (and (erc-match-nick match) (erc-match-sender match)))
(erc-match-highlight-matched match))
(run-hook-with-args 'erc-text-matched-hook
(erc-match-traditional-category match)
(or user-nuh (format "Server:%s"
(erc-match-command match)))
;; For compatibility, include a leading "*** ".
(buffer-substring (if user-nuh
(erc-match-body-beg match)
(point-min))
(point-max))))))