emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/gnorb 260161b 159/449: Check registry-enabled only afte


From: Stefan Monnier
Subject: [elpa] externals/gnorb 260161b 159/449: Check registry-enabled only after registry is loaded
Date: Fri, 27 Nov 2020 23:15:30 -0500 (EST)

branch: externals/gnorb
commit 260161b03aae5ae9d3688f0e65fe1528aa927ef2
Author: Eric Abrahamsen <eric@ericabrahamsen.net>
Commit: Eric Abrahamsen <eric@ericabrahamsen.net>

    Check registry-enabled only after registry is loaded
    
    * lisp/gnorb-gnus.el: Can't reference `gnus-registry-enabled' until
      after gnus-registry.el is loaded.
---
 lisp/gnorb-gnus.el | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/lisp/gnorb-gnus.el b/lisp/gnorb-gnus.el
index ebc4ba3..23c5e9c 100644
--- a/lisp/gnorb-gnus.el
+++ b/lisp/gnorb-gnus.el
@@ -34,8 +34,9 @@
 ;; This prevents gnorb-related registry entries from being pruned.
 ;; Probably we should provide for some backup pruning routine, so we
 ;; don't stuff up the whole registry.
-(when gnus-registry-enabled
-  (add-to-list 'gnus-registry-extra-entries-precious 'gnorb-ids))
+(eval-after-load "gnus-registry"
+  '(when gnus-registry-enabled
+     (add-to-list 'gnus-registry-extra-entries-precious 'gnorb-ids)))
 
 (defgroup gnorb-gnus nil
   "The Gnus bits of Gnorb."



reply via email to

[Prev in Thread] Current Thread [Next in Thread]