[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/gnorb 982aee9 271/449: Adjust requires and autoloads
From: |
Stefan Monnier |
Subject: |
[elpa] externals/gnorb 982aee9 271/449: Adjust requires and autoloads |
Date: |
Fri, 27 Nov 2020 23:15:53 -0500 (EST) |
branch: externals/gnorb
commit 982aee9f872a1f77c26e57bfb5e0316714c8e2b1
Author: Eric Abrahamsen <eric@ericabrahamsen.net>
Commit: Eric Abrahamsen <eric@ericabrahamsen.net>
Adjust requires and autoloads
* gnorb-bbdb.el: require bbdb
* gnorb-gnus.el: require gnus and nnir (where appropriate)
* gnorb-org.el: Require gnorb-gnus from within gnorb-org-view
* gnorb-utils.el: Require nothing from here
* gnorb.el: Hide all requires behind eval-after-loads
* nngnorb.el: require gnus
---
gnorb-bbdb.el | 1 +
gnorb-gnus.el | 2 ++
gnorb-org.el | 1 +
gnorb-utils.el | 8 +-------
gnorb.el | 15 +++++++++------
nngnorb.el | 1 +
6 files changed, 15 insertions(+), 13 deletions(-)
diff --git a/gnorb-bbdb.el b/gnorb-bbdb.el
index 4754f15..058011c 100644
--- a/gnorb-bbdb.el
+++ b/gnorb-bbdb.el
@@ -27,6 +27,7 @@
(eval-when-compile
(require 'cl))
+(require 'bbdb)
(require 'gnorb-utils)
(defgroup gnorb-bbdb nil
diff --git a/gnorb-gnus.el b/gnorb-gnus.el
index db8c62b..478c14c 100644
--- a/gnorb-gnus.el
+++ b/gnorb-gnus.el
@@ -27,6 +27,7 @@
(eval-when-compile
(require 'cl))
+(require 'gnus)
(require 'gnorb-utils)
(declare-function org-gnus-article-link "org-gnus"
@@ -573,6 +574,7 @@ will all be displayed in an ephemeral group on the
\"nngnorb\"
server. There must be an active \"nngnorb\" server for this to
work."
(interactive)
+ (require 'nnir)
(let ((nnir-address
(or (gnus-method-to-server '(nngnorb))
(user-error
diff --git a/gnorb-org.el b/gnorb-org.el
index 104ff90..cfb95d6 100644
--- a/gnorb-org.el
+++ b/gnorb-org.el
@@ -649,6 +649,7 @@ This won't work unless you've added a \"nngnorb\" server to
your gnus select methods."
;; this should also work on the active region, if there is one.
(interactive)
+ (require 'gnorb-gnus)
(setq gnorb-window-conf (current-window-configuration))
(move-marker gnorb-return-marker (point))
(when (eq major-mode 'org-agenda-mode)
diff --git a/gnorb-utils.el b/gnorb-utils.el
index dbe9e99..06d981a 100644
--- a/gnorb-utils.el
+++ b/gnorb-utils.el
@@ -26,13 +26,6 @@
(eval-when-compile
(require 'cl))
-(require 'mailcap)
-(require 'gnus)
-;(require 'message)
-(require 'bbdb)
-(require 'org)
-(require 'org-bbdb)
-(require 'org-gnus)
(mailcap-parse-mimetypes)
@@ -104,6 +97,7 @@ with `gnorb-window-conf'.")
(mapconcat
'identity ign-headers-list "|")))))
+;;;###autoload
(defun gnorb-restore-layout ()
"Restore window layout and value of point after a Gnorb command.
diff --git a/gnorb.el b/gnorb.el
index c9d0da0..6238623 100644
--- a/gnorb.el
+++ b/gnorb.el
@@ -30,12 +30,15 @@
;;; Code:
-(require 'gnorb-utils)
-(require 'nngnorb)
-(require 'gnorb-gnus)
-(require 'gnorb-bbdb)
-(require 'gnorb-org)
-(require 'gnorb-registry)
+(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)
;;; gnorb.el ends here
diff --git a/nngnorb.el b/nngnorb.el
index 912a64c..bce7600 100644
--- a/nngnorb.el
+++ b/nngnorb.el
@@ -39,6 +39,7 @@
;;; Code:
+(require 'gnus)
(eval-and-compile
(require 'nnheader)
(require 'nnir))
- [elpa] externals/gnorb ad1538d 260/449: Autoload cookie for gnorb-tracking-initialize, (continued)
- [elpa] externals/gnorb ad1538d 260/449: Autoload cookie for gnorb-tracking-initialize, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 8db194a 259/449: Add TAGS to .gitignore, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 14471db 262/449: Silence compiler warnings for unbound vars, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 6aef624 265/449: Restore the layout after the restore process, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb c44a87b 266/449: Deletion of associations when composing messages, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 7a43d8b 267/449: Bug in message disassociation, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb b82576c 268/449: Always clear attachments during triggering, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 15b35dc 269/449: Don't store a link to message we're replying to, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 67ce358 270/449: Version 1.0.1, plus docs and NEWS, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 806775c 272/449: Wrap save-excursion around more of gnorb-org-view, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 982aee9 271/449: Adjust requires and autoloads,
Stefan Monnier <=
- [elpa] externals/gnorb a55b0c0 273/449: Make gnorb-ids precious earlier in registry setup, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 3877b2d 275/449: Still didn't have incoming-do-todo logic right, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 94f6897 279/449: Don't use with-eval-after-load, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 3801ad7 280/449: Check both gnus version and emacs version., Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 8c333ee 281/449: Merge pull request #20 from totherme/master, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 8e705ea3 380/449: Sneakily add basic EBDB support to Gnorb, bump to 1.3.0, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 4b5a5a1 389/449: Gnorb: Tweak manual a bit, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 5672545 396/449: Gnorb: Typo, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 14ac82a 418/449: [gnorb] Use unwind-protect around the trigger process, bump to 1.5.4, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 471883d 394/449: Gnorb: Only add one registry-related hook to the Org capture process, Stefan Monnier, 2020/11/27