diff options
author | Eric Abrahamsen <eric@ericabrahamsen.net> | 2022-01-12 14:58:46 -0800 |
---|---|---|
committer | Eric Abrahamsen <eric@ericabrahamsen.net> | 2022-01-12 14:58:46 -0800 |
commit | 097e0ee4a20f09d7d1262ddb56ca1a0e5ed1e156 (patch) | |
tree | 47da784df7b06d55c82b214f207ba90eeef72705 /test/lisp/emacs-lisp/macroexp-resources/m2.el | |
parent | 917a623a9dd21bc1d73fd13d91de57d924ce2692 (diff) | |
download | emacs-097e0ee4a20f09d7d1262ddb56ca1a0e5ed1e156.tar.gz emacs-097e0ee4a20f09d7d1262ddb56ca1a0e5ed1e156.tar.bz2 emacs-097e0ee4a20f09d7d1262ddb56ca1a0e5ed1e156.zip |
Rework setting/unsetting of gnus-registry-enabled
The basic idea is, we're moving the setting/unsetting of
`gnus-registry-enabled' so that it is a more reliable indicator of
whether the registry is actually available or not.
* lisp/gnus/gnus-registry.el (gnus-registry-load): Move the setting of
`gnus-registry-enabled' here, after we're sure the registry actually
has been loaded.
(gnus-registry-initialize): Move it out of here. All this function
does is conditionally call `gnus-registry-load'.
(gnus-registry-register-message-ids): Only check
`gnus-registry-enabled', since we'd more confident about this
now. Sort checks in order of increasing complexity.
(gnus-registry-clear): Unset `gnus-registry-enabled'.
(gnus-registry-install-hooks): This function should only install
hooks, not set variables.
(gnus-registry-unload-hook): Change the unload hook to call
`gnus-registry-clear', as that will do all the necessary
work (including calling `gnus-registry-unload-hook')
Diffstat (limited to 'test/lisp/emacs-lisp/macroexp-resources/m2.el')
0 files changed, 0 insertions, 0 deletions