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

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

[elpa] externals/gnorb a55b0c0 273/449: Make gnorb-ids precious earlier


From: Stefan Monnier
Subject: [elpa] externals/gnorb a55b0c0 273/449: Make gnorb-ids precious earlier in registry setup
Date: Fri, 27 Nov 2020 23:15:54 -0500 (EST)

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

    Make gnorb-ids precious earlier in registry setup
    
    * gnorb-utils.el (gnorb-tracking-initialize): Where it was, the precious
      setting was coming too late, and not taking effect.
---
 gnorb-utils.el | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/gnorb-utils.el b/gnorb-utils.el
index 06d981a..81efa32 100644
--- a/gnorb-utils.el
+++ b/gnorb-utils.el
@@ -433,13 +433,14 @@ Gnus messages and Org headings. This requires that the 
Gnus
 registry be in use, and should be called after the call to
 `gnus-registry-initialize'."
   (require 'gnorb-registry)
+  (with-eval-after-load 'gnus-registry
+    (add-to-list 'gnus-registry-extra-entries-precious 'gnorb-ids)
+    (add-to-list 'gnus-registry-track-extra 'gnorb-ids))
   (add-hook
    'gnus-started-hook
    (lambda ()
      (unless (gnus-registry-install-p)
        (user-error "Gnorb tracking requires that the Gnus registry be 
installed."))
-     (add-to-list 'gnus-registry-extra-entries-precious 'gnorb-ids)
-     (add-to-list 'gnus-registry-track-extra 'gnorb-ids)
      (add-hook 'org-capture-mode-hook 'gnorb-registry-capture)
      (add-hook 'org-capture-prepare-finalize-hook 
'gnorb-registry-capture-abort-cleanup)
      (setq gnorb-tracking-enabled t))))



reply via email to

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