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

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

[elpa] externals/gnorb 47195a6 349/449: Require gnorb-gnus in the gnus-s


From: Stefan Monnier
Subject: [elpa] externals/gnorb 47195a6 349/449: Require gnorb-gnus in the gnus-started-hook
Date: Fri, 27 Nov 2020 23:16:09 -0500 (EST)

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

    Require gnorb-gnus in the gnus-started-hook
    
    Fixes #24
    
    * gnorb-utils.el (gnorb-tracking-initialize): Need to require the
      whole file at Gnus load time, so that the dynamically-composed
      `gnus-user-format-function-g' function is defined when called.
---
 gnorb-utils.el | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/gnorb-utils.el b/gnorb-utils.el
index 2e61b6b..7933782 100644
--- a/gnorb-utils.el
+++ b/gnorb-utils.el
@@ -498,6 +498,11 @@ registry be in use, and should be called after the call to
   (add-hook
    'gnus-started-hook
    (lambda ()
+     ;; The require may be necessary in order to get
+     ;; `gnus-user-format-function-g' defined before it's used.  That
+     ;; function is likely the first hit on gnorb-gnus, and there's no
+     ;; way to autoload it, as it is dynamically defined.
+     (require 'gnorb-gnus)
      (unless (gnus-registry-install-p)
        (user-error "Gnorb tracking requires that the Gnus registry be 
installed."))
      (add-hook 'org-capture-mode-hook 'gnorb-registry-capture)



reply via email to

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