Variable: erc-nick-popup-alist
erc-nick-popup-alist is a customizable variable defined in
erc-button.el.gz.
Value
(("DeOp" . erc-cmd-DEOP) ("Kick" . erc-button-cmd-KICK)
("Msg" . erc-button-cmd-MSG) ("Op" . erc-cmd-OP)
("Query" . erc-cmd-QUERY) ("Whois" . erc-cmd-WHOIS)
("Lastlog" . erc-cmd-LASTLOG))
Documentation
An alist of possible actions to take on a nickname.
For all entries (ACTION . FUNC), ERC offers ACTION as a possible
completion item and calls the selected entry's FUNC with the
buttonized nickname at point as the only argument. For
historical reasons, FUNC can also be an arbitrary sexp, in which
case, ERC binds the nick in question to the variable nick and
evaluates the expression.
Examples:
("DebianDB" .
(shell-command
(format
"ldapsearch -x -P 2 -h db.debian.org -b dc=debian,dc=org ircnick=%s"
nick)))
This variable was added, or its default value changed, in ERC version
5.6.
Source Code
;; Defined in /usr/src/emacs/lisp/erc/erc-button.el.gz
;;; Nickname buttons:
(defcustom erc-nick-popup-alist
'(("DeOp" . erc-cmd-DEOP)
("Kick" . erc-button-cmd-KICK)
("Msg" . erc-button-cmd-MSG)
("Op" . erc-cmd-OP)
("Query" . erc-cmd-QUERY)
("Whois" . erc-cmd-WHOIS)
("Lastlog" . erc-cmd-LASTLOG))
"An alist of possible actions to take on a nickname.
For all entries (ACTION . FUNC), ERC offers ACTION as a possible
completion item and calls the selected entry's FUNC with the
buttonized nickname at point as the only argument. For
historical reasons, FUNC can also be an arbitrary sexp, in which
case, ERC binds the nick in question to the variable `nick' and
evaluates the expression.
Examples:
(\"DebianDB\" .
(shell-command
(format
\"ldapsearch -x -P 2 -h db.debian.org -b dc=debian,dc=org ircnick=%s\"
nick)))"
:package-version '(ERC . "5.6")
:type '(repeat (cons (string :tag "Op")
(choice function sexp))))