From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id OKl6K9KRLl/7ewAA0tVLHw (envelope-from ) for ; Sat, 08 Aug 2020 11:51:46 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id UJ1AJ9KRLl9DdQAA1q6Kng (envelope-from ) for ; Sat, 08 Aug 2020 11:51:46 +0000 Received: from mail.notmuchmail.org (nmbug.tethera.net [144.217.243.247]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (2048 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 4433494053B for ; Sat, 8 Aug 2020 11:51:46 +0000 (UTC) Received: from [144.217.243.247] (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id ED54829B24; Sat, 8 Aug 2020 07:51:02 -0400 (EDT) Received: from mail.hostpark.net (mail.hostpark.net [212.243.197.30]) by mail.notmuchmail.org (Postfix) with ESMTPS id AA6591FAB7 for ; Sat, 8 Aug 2020 07:50:14 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by mail.hostpark.net (Postfix) with ESMTP id D98A516A85 for ; Sat, 8 Aug 2020 13:50:10 +0200 (CEST) X-Virus-Scanned: by Hostpark/NetZone Mailprotection at hostpark.net Received: from mail.hostpark.net ([127.0.0.1]) by localhost (mail0.hostpark.net [127.0.0.1]) (amavisd-new, port 10124) with ESMTP id aAPZNI1fm8ZP for ; Sat, 8 Aug 2020 13:50:10 +0200 (CEST) Received: from customer (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mail.hostpark.net (Postfix) with ESMTPSA id B151416A82 for ; Sat, 8 Aug 2020 13:50:10 +0200 (CEST) From: Jonas Bernoulli To: notmuch@notmuchmail.org Subject: [PATCH v3 17/34] emacs: Autoload notmuch-jump using an autoload cookie Date: Sat, 8 Aug 2020 13:49:52 +0200 Message-Id: <20200808115009.24071-18-jonas@bernoul.li> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200808115009.24071-1-jonas@bernoul.li> References: <20200726165818.400-1-jonas@bernoul.li> <20200808115009.24071-1-jonas@bernoul.li> MIME-Version: 1.0 Message-ID-Hash: RSS5QG5MOFBFPEAKD6USFJVZUQAMAEY3 X-Message-ID-Hash: RSS5QG5MOFBFPEAKD6USFJVZUQAMAEY3 X-MailFrom: jonas@bernoul.li X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-notmuch.notmuchmail.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; suspicious-header X-Mailman-Version: 3.2.1 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Help: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 144.217.243.247 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Spam-Score: 0.03 X-TUID: ud6BGRny/B4V 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 @@ (defun notmuch-jump-search () (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 @@ (declare-function notmuch-search-tag "notmuch" (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.28.0