From: Lars Ingebrigtsen Date: Sat, 27 Feb 2021 04:43:06 +0000 (+0100) Subject: Change defcustom types of two non-standard hooks X-Git-Tag: emacs-28.0.90~3521 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=7ac99eeefe26b8a6b1faf25371b375b9dcb66d03;p=emacs.git Change defcustom types of two non-standard hooks * lisp/erc/erc.el (erc-before-connect, erc-after-connect): Change type from 'hook to 'function (bug#34657). --- diff --git a/lisp/erc/erc.el b/lisp/erc/erc.el index dd7f50fb381..7ee409b7351 100644 --- a/lisp/erc/erc.el +++ b/lisp/erc/erc.el @@ -2136,19 +2136,20 @@ If no buffer matches, return nil." (erc-current-nick-p nick))))) (defcustom erc-before-connect nil - "Hook called before connecting to a server. -This hook gets executed before `erc' actually invokes `erc-mode' -with your input data. The functions in here get called with three -parameters, SERVER, PORT and NICK." + "Functions called before connecting to a server. +The functions in this variable gets executed before `erc' +actually invokes `erc-mode' with your input data. The functions +in here get called with three parameters, SERVER, PORT and NICK." :group 'erc-hooks - :type 'hook) + :type '(repeat function)) (defcustom erc-after-connect nil - "Hook called after connecting to a server. -This hook gets executed when an end of MOTD has been received. All -functions in here get called with the parameters SERVER and NICK." + "Functions called after connecting to a server. +This functions in this variable gets executed when an end of MOTD +has been received. All functions in here get called with the +parameters SERVER and NICK." :group 'erc-hooks - :type 'hook) + :type '(repeat function)) ;;;###autoload (defun erc-select-read-args ()