aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Ingebrigtsen2021-02-27 05:43:06 +0100
committerLars Ingebrigtsen2021-02-27 05:43:06 +0100
commit7ac99eeefe26b8a6b1faf25371b375b9dcb66d03 (patch)
tree59d0807e33f38489e3a1ce057145297851cf9c18
parentc9f5c314ad2243ab98b4f779d8abfb87499aa3aa (diff)
downloademacs-7ac99eeefe26b8a6b1faf25371b375b9dcb66d03.tar.gz
emacs-7ac99eeefe26b8a6b1faf25371b375b9dcb66d03.zip
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).
-rw-r--r--lisp/erc/erc.el19
1 files changed, 10 insertions, 9 deletions
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."
2136 (erc-current-nick-p nick))))) 2136 (erc-current-nick-p nick)))))
2137 2137
2138(defcustom erc-before-connect nil 2138(defcustom erc-before-connect nil
2139 "Hook called before connecting to a server. 2139 "Functions called before connecting to a server.
2140This hook gets executed before `erc' actually invokes `erc-mode' 2140The functions in this variable gets executed before `erc'
2141with your input data. The functions in here get called with three 2141actually invokes `erc-mode' with your input data. The functions
2142parameters, SERVER, PORT and NICK." 2142in here get called with three parameters, SERVER, PORT and NICK."
2143 :group 'erc-hooks 2143 :group 'erc-hooks
2144 :type 'hook) 2144 :type '(repeat function))
2145 2145
2146(defcustom erc-after-connect nil 2146(defcustom erc-after-connect nil
2147 "Hook called after connecting to a server. 2147 "Functions called after connecting to a server.
2148This hook gets executed when an end of MOTD has been received. All 2148This functions in this variable gets executed when an end of MOTD
2149functions in here get called with the parameters SERVER and NICK." 2149has been received. All functions in here get called with the
2150parameters SERVER and NICK."
2150 :group 'erc-hooks 2151 :group 'erc-hooks
2151 :type 'hook) 2152 :type '(repeat function))
2152 2153
2153;;;###autoload 2154;;;###autoload
2154(defun erc-select-read-args () 2155(defun erc-select-read-args ()