Function: erc-button--display-error-with-buttons

erc-button--display-error-with-buttons is a byte-compiled function defined in erc-button.el.gz.

Signature

(erc-button--display-error-with-buttons FROM TO FUN NICK-P &optional DATA REGEXP)

Documentation

Replace command in region with keys and return new bounds.

Source Code

;; Defined in /usr/src/emacs/lisp/erc/erc-button.el.gz
(defun erc-button--display-error-with-buttons
    (from to fun nick-p &optional data regexp)
  "Replace command in region with keys and return new bounds."
  (let* ((o (buffer-substring from to))
         (s (substitute-command-keys o))
         (erc-button-face (and (equal o s) erc-button-face)))
    (delete-region from to)
    (insert s)
    (erc-button-add-button from (point) fun nick-p data regexp)))