summaryrefslogtreecommitdiff
path: root/lisp/gnus/gnus-registry.el
diff options
context:
space:
mode:
authorEric Abrahamsen <eric@ericabrahamsen.net>2021-12-06 13:43:24 -0800
committerEric Abrahamsen <eric@ericabrahamsen.net>2021-12-06 13:45:27 -0800
commite17aea73a5b2ae5f7cbf9057d7dad286be81ffc0 (patch)
tree2ebc84fe025a59f5e27cf2b376133b989a587826 /lisp/gnus/gnus-registry.el
parentbed5af1ea323a3b20ef505a05ccc69afaa9b645d (diff)
downloademacs-e17aea73a5b2ae5f7cbf9057d7dad286be81ffc0.tar.gz
When registering Gnus message ids, guard against no registry
* lisp/gnus/gnus-registry.el (gnus-registry-register-message-ids): There are situations where this code is called without a full Gnus startup (eg, debbugs). If the registry doesn't exist, just skip this process.
Diffstat (limited to 'lisp/gnus/gnus-registry.el')
-rw-r--r--lisp/gnus/gnus-registry.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/gnus/gnus-registry.el b/lisp/gnus/gnus-registry.el
index 8ce88dc81e4..163d543afd1 100644
--- a/lisp/gnus/gnus-registry.el
+++ b/lisp/gnus/gnus-registry.el
@@ -847,7 +847,8 @@ Overrides existing keywords with FORCE set non-nil."
(defun gnus-registry-register-message-ids ()
"Register the Message-ID of every article in the group."
(unless (or (gnus-parameter-registry-ignore gnus-newsgroup-name)
- (null gnus-registry-register-all))
+ (null gnus-registry-register-all)
+ (null (eieio-object-p gnus-registry-db)))
(dolist (article gnus-newsgroup-articles)
(let* ((id (gnus-registry-fetch-message-id-fast article))
(groups (gnus-registry-get-id-key id 'group)))