Delay initialization of Gnus' registry

Apparently, with the advent of Emacs 27.1, Gnus clears up everything before
startup.  Sadly, this also removes any initialized registry, such that we are
left with an uninitialized registry on startup.  To remedy this, let's postpone
the registry setup right after Gnus has started.
Daniel Borchmann 2020-11-06 21:25:18 +01:00
parent 44c23b7a28
commit ea9afe72d7
No known key found for this signature in database
GPG Key ID: 1C7071A75BB72D64
1 changed files with 7 additions and 2 deletions

View File

@ -1744,8 +1744,13 @@
(add-hook 'gnus-summary-exit-hook
;; Use Gnus registry
;; Use Gnus registry; doing this too early conflicts with `gnus'
;; calling `gnus-shutdown', which in turn calls
;; `gnus-registry-clear', leaving us with an empty registry upon
;; startup. So let's call this initialization right after startup,
;; that should be fine.
(add-hook 'gnus-started-hook
;; Automatic encryption if all necessary keys are present
(add-hook 'gnus-message-setup-hook