From 73cc4105aa27f13464fcfdfe958e553842395789 Mon Sep 17 00:00:00 2001 From: Jonas Bernoulli Date: Sat, 8 Aug 2020 13:49:52 +0200 Subject: [PATCH] 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". --- emacs/notmuch-jump.el | 1 + 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." -- 2.43.0