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.
This commit is contained in:
Daniel - 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
'gnus-summary-bubble-group)
;; Use Gnus registry
(gnus-registry-initialize)
;; 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
#'gnus-registry-initialize)
;; Automatic encryption if all necessary keys are present
(add-hook 'gnus-message-setup-hook