branch: externals/gnorb
commit 9b2b269a387fe33114f52f878027e979d8acc370
Author: Eric Abrahamsen <[email protected]>
Commit: Eric Abrahamsen <[email protected]>
Use with-eval-after-load not eval-after-load
* gnorb-utils.el (gnorb-tracking-initialize): Switch.
* gnorb.el (gnus): Switch.
---
gnorb-utils.el | 7 +++----
gnorb.el | 17 ++++++++---------
2 files changed, 11 insertions(+), 13 deletions(-)
diff --git a/gnorb-utils.el b/gnorb-utils.el
index 07fdba9..d7f5e86 100644
--- a/gnorb-utils.el
+++ b/gnorb-utils.el
@@ -494,10 +494,9 @@ 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)
- (eval-after-load 'gnus-registry
- '(progn
- (add-to-list 'gnus-registry-extra-entries-precious 'gnorb-ids)
- (add-to-list 'gnus-registry-track-extra 'gnorb-ids)))
+ (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 ()
diff --git a/gnorb.el b/gnorb.el
index 6dd4b0b..cb7d908 100644
--- a/gnorb.el
+++ b/gnorb.el
@@ -31,15 +31,14 @@
;;; Code:
-(eval-after-load 'gnus
- '(progn
- (require 'nngnorb)
- (require 'gnorb-gnus)
- (require 'gnorb-registry)))
-(eval-after-load 'bbdb
- '(require 'gnorb-bbdb))
-(eval-after-load 'org
- '(require 'gnorb-org))
+(with-eval-after-load 'gnus
+ (require 'nngnorb)
+ (require 'gnorb-gnus)
+ (require 'gnorb-registry))
+(with-eval-after-load 'bbdb
+ (require 'gnorb-bbdb))
+(with-eval-after-load 'org
+ (require 'gnorb-org))
(provide 'gnorb)