]> git.eshelyaron.com Git - emacs.git/commit
Return nil from more ERC response handlers
authorF. Jason Park <jp@neverwas.me>
Mon, 20 May 2024 06:04:49 +0000 (23:04 -0700)
committerEshel Yaron <me@eshelyaron.com>
Wed, 29 May 2024 10:11:43 +0000 (12:11 +0200)
commitb1f91df9a228b2fb035a5b5815dfc8b7a15b8535
tree7f73fe9c1d573686d8beade9cce12e342c1d1183
parentbfce8868bbcffb3cf957441195b7fad2045dac31
Return nil from more ERC response handlers

* etc/ERC-NEWS: Mention that certain aberrant response handlers now
return nil.
* lisp/erc/erc-backend.el (define-erc-response-handler): Mention that
body should explicitly return nil.
(erc-server-PART)
(erc-server-PING): Return nil.
* lisp/erc/erc-sasl.el (erc-sasl--destroy): Return nil.
* lisp/erc/erc.el (erc-display-message): Mention in doc string that
the return value is undefined.
(erc-kill-channel-hook): Fix package-version.
* test/lisp/erc/erc-networks-tests.el (erc-networks--set-name): Ensure
`erc--route-insertion' returns nil because this influences whether
response-handler hooks continue running.
* test/lisp/erc/erc-sasl-tests.el
(erc-sasl-create-client-ecdsa): Fix regression that made test
unusable, although it's still relatively useless and therefore skipped
by default.
* test/lisp/erc/erc-services-tests.el
(erc-services-tests--auth-source-standard)
(erc-services-tests--auth-source-announced): Clarify annotations.
* test/lisp/erc/erc-tests.el (erc-message): Don't return non-nil in
mocked `erc-display-message'.
(erc-send-modify-hook): Shadow `erc-send-modify-hook' because
`erc-stamp--date-mode' modifies it locally.

(cherry picked from commit 8c54a79ec10d21cfc961476d85db06b643260e38)
etc/ERC-NEWS
lisp/erc/erc-backend.el
lisp/erc/erc-sasl.el
lisp/erc/erc.el
test/lisp/erc/erc-networks-tests.el
test/lisp/erc/erc-sasl-tests.el
test/lisp/erc/erc-services-tests.el
test/lisp/erc/erc-tests.el