]> git.notmuchmail.org Git - notmuch/commitdiff
emacs: Autoload notmuch-jump using an autoload cookie
authorJonas Bernoulli <jonas@bernoul.li>
Sat, 8 Aug 2020 11:49:52 +0000 (13:49 +0200)
committerDavid Bremner <david@tethera.net>
Mon, 10 Aug 2020 00:14:36 +0000 (21:14 -0300)
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".

emacs/notmuch-jump.el
emacs/notmuch-tag.el

index e302fe00df85b9ed18b00bf687fd412f7cebb9f9..1e2d0497949322c26cd2c453ae215336551156d6 100644 (file)
@@ -73,6 +73,7 @@ please customize shortcut keys in notmuch-saved-searches."))))
 
 (defvar notmuch-jump--action nil)
 
 
 (defvar notmuch-jump--action nil)
 
+;;;###autoload
 (defun notmuch-jump (action-map prompt)
   "Interactively prompt for one of the keys in ACTION-MAP.
 
 (defun notmuch-jump (action-map prompt)
   "Interactively prompt for one of the keys in ACTION-MAP.
 
index 1cef17e1796c02c18c99981a6ec45d26bb9a344b..ccc1321f4daf554c855a4c29893dab9d3d08ce68 100644 (file)
@@ -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))
                  (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."
 
 (define-widget 'notmuch-tag-key-type 'list
   "A single key tagging binding."