]> git.eshelyaron.com Git - emacs.git/commit
Don't use deprecated unload-hook variables in Gnus
authorStefan Kangas <stefankangas@gmail.com>
Sun, 9 Feb 2025 23:40:23 +0000 (00:40 +0100)
committerEshel Yaron <me@eshelyaron.com>
Mon, 10 Feb 2025 20:56:23 +0000 (21:56 +0100)
commit5a50c89e7dbb24549d18593efd31e6fca96c6e54
treecd3b8a153eeff62171cc36dae6abf3a7d0702b8a
parent8715852564f7a53fdebf86abaa817d6a0b260949
Don't use deprecated unload-hook variables in Gnus

* lisp/gnus/gnus-registry.el (gnus-registry-unload-hook):
* lisp/gnus/spam-stat.el (spam-stat-unload-hook):
* lisp/gnus/spam.el (spam-unload-hook): Rename functions from this...

* lisp/gnus/gnus-registry.el (gnus-registry-unload-function):
* lisp/gnus/spam-stat.el (spam-stat-unload-function):
* lisp/gnus/spam.el (spam-unload-function): ...to this.  Don't set the
corresponding variables, always return nil, update callers, and leave
old name as obsolete function aliases.
Ref: https://lists.gnu.org/r/emacs-devel/2025-02/msg00294.html

(cherry picked from commit ceef9025944fd3d51122f913ed9a74a259db55f7)
lisp/gnus/gnus-registry.el
lisp/gnus/spam-stat.el
lisp/gnus/spam.el