From ea9afe72d70f7105845a12bf0905f46c81891ed9 Mon Sep 17 00:00:00 2001 From: Daniel Borchmann Date: Fri, 6 Nov 2020 21:25:18 +0100 Subject: [PATCH] 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. --- init.el | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/init.el b/init.el index 89230f8..6daedb6 100644 --- a/init.el +++ b/init.el @@ -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