branch: externals/gnorb
commit 47195a6d72ba7ea11245efcdced1be8104127c34
Author: Eric Abrahamsen <[email protected]>
Commit: Eric Abrahamsen <[email protected]>
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)