diff options
| author | Lars Ingebrigtsen | 2021-02-27 05:43:06 +0100 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2021-02-27 05:43:06 +0100 |
| commit | 7ac99eeefe26b8a6b1faf25371b375b9dcb66d03 (patch) | |
| tree | 59d0807e33f38489e3a1ce057145297851cf9c18 | |
| parent | c9f5c314ad2243ab98b4f779d8abfb87499aa3aa (diff) | |
| download | emacs-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.el | 19 |
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. |
| 2140 | This hook gets executed before `erc' actually invokes `erc-mode' | 2140 | The functions in this variable gets executed before `erc' |
| 2141 | with your input data. The functions in here get called with three | 2141 | actually invokes `erc-mode' with your input data. The functions |
| 2142 | parameters, SERVER, PORT and NICK." | 2142 | in 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. |
| 2148 | This hook gets executed when an end of MOTD has been received. All | 2148 | This functions in this variable gets executed when an end of MOTD |
| 2149 | functions in here get called with the parameters SERVER and NICK." | 2149 | has been received. All functions in here get called with the |
| 2150 | parameters 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 () |