Try initializing the Gnus registry earlier

Somethings restarting Gnus results in many error messages whether the
`gnus-registry` seems to be nil.  Maybe initializing the registry earlier helps?
This commit is contained in:
Daniel - 2022-03-18 17:05:54 +01:00
parent 844b0baf0f
commit 800e4ed4d1
No known key found for this signature in database
GPG Key ID: 1C7071A75BB72D64
1 changed files with 2 additions and 2 deletions

View File

@ -1858,9 +1858,9 @@
;; 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,
;; startup. So let's call this initialization right before startup,
;; that should be fine.
(add-hook 'gnus-started-hook
(add-hook 'gnus-before-startup-hook
#'gnus-registry-initialize)
;; Automatic encryption if all necessary keys are present