diff options
author | Jonas Bernoulli <jonas@bernoul.li> | 2020-08-08 13:49:52 +0200 |
---|---|---|
committer | David Bremner <david@tethera.net> | 2020-08-09 21:14:36 -0300 |
commit | 73cc4105aa27f13464fcfdfe958e553842395789 (patch) | |
tree | 190cdfbad88243fdfd66291bacafc3e2b2ca212f | |
parent | c2e9ec17fd46e67c7cf1f06d4c6da2ed59da34d9 (diff) |
emacs: Autoload notmuch-jump using an autoload cookie
Doing that is better than using an `autoload' form because the latter
may result in dependencies getting hidden and indeed it turns out we
have to declare `notmuch-jump' in "notmuch-tag.el".
-rw-r--r-- | emacs/notmuch-jump.el | 1 | ||||
-rw-r--r-- | emacs/notmuch-tag.el | 3 |
2 files changed, 2 insertions, 2 deletions
diff --git a/emacs/notmuch-jump.el b/emacs/notmuch-jump.el index e302fe00..1e2d0497 100644 --- a/emacs/notmuch-jump.el +++ b/emacs/notmuch-jump.el @@ -73,6 +73,7 @@ please customize shortcut keys in notmuch-saved-searches.")))) (defvar notmuch-jump--action nil) +;;;###autoload (defun notmuch-jump (action-map prompt) "Interactively prompt for one of the keys in ACTION-MAP. diff --git a/emacs/notmuch-tag.el b/emacs/notmuch-tag.el index 1cef17e1..ccc1321f 100644 --- a/emacs/notmuch-tag.el +++ b/emacs/notmuch-tag.el @@ -36,8 +36,7 @@ (tag-changes &optional beg end only-matched)) (declare-function notmuch-show-tag "notmuch-show" (tag-changes)) (declare-function notmuch-tree-tag "notmuch-tree" (tag-changes)) - -(autoload 'notmuch-jump "notmuch-jump") +(declare-function notmuch-jump "notmuch-jump" (action-map prompt)) (define-widget 'notmuch-tag-key-type 'list "A single key tagging binding." |