From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id 4307B6DE0F62 for ; Wed, 18 Mar 2020 10:12:01 -0700 (PDT) Authentication-Results: arlo.cworth.org; dkim=permerror (0-bit key) header.d=fifthhorseman.net header.i=@fifthhorseman.net header.b="q5r9PPgh"; dkim=pass (2048-bit key; unprotected) header.d=fifthhorseman.net header.i=@fifthhorseman.net header.b="12fbjQhU"; dkim-atps=neutral X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: -1.236 X-Spam-Level: X-Spam-Status: No, score=-1.236 tagged_above=-999 required=5 tests=[AWL=0.019, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_BL_SPAMCOP_NET=1.246, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001] autolearn=disabled Received: from arlo.cworth.org ([127.0.0.1]) by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id GQndRiYT6F3i for ; Wed, 18 Mar 2020 10:12:00 -0700 (PDT) Received: from che.mayfirst.org (che.mayfirst.org [162.247.75.118]) by arlo.cworth.org (Postfix) with ESMTPS id AAA786DE09CD for ; Wed, 18 Mar 2020 10:11:59 -0700 (PDT) DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/simple; d=fifthhorseman.net; i=@fifthhorseman.net; q=dns/txt; s=2019; t=1584551517; h=from : to : subject : date : message-id : in-reply-to : references : mime-version : content-type : content-transfer-encoding : from; bh=WFMrcxBPh/ioXumXJJf22BGeNr29OiTOTc7/rFpyqAc=; b=q5r9PPgh5cbOkJfILIL4CE4Uvx81NbPAeFNyEZFOtDn+CzP0COjI3fsbaQvVKZ6F1tRxL q0QHd5LJcOa70EDCg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=fifthhorseman.net; i=@fifthhorseman.net; q=dns/txt; s=2019rsa; t=1584551517; h=from : to : subject : date : message-id : in-reply-to : references : mime-version : content-type : content-transfer-encoding : from; bh=WFMrcxBPh/ioXumXJJf22BGeNr29OiTOTc7/rFpyqAc=; b=12fbjQhUdv+fXtCyB0plUlb/GviYfHLoQ1nSyzmCqPGZmbjG8Pyb+0kah4EHMVlpGEGHw G7j4v8KMaKAGs7tRP9f6Np8+YeEsdPVQeH1yo4mYTP7kllptHXmiHJLahMuboWqnuVIBAXo 8/KWYyy70RlwXmXQNFKrE7rt3BaZdhDbi0jC9iowhwwb8KKw1Bxo1oINKKxtHljngJrNIJq 6mKVZpgYIl2YaYZZOTLNLyM58CWvVw1Yja2hTTbmr/N6axglte3VzvHZYjtA1xfT3KqWIA/ 69IqZ0FvlnU/vXcS0oe1YrfZPckYfd2vD5VbAyv5FRoDzj9Y6FvinamoDVsw== Received: from fifthhorseman.net (unknown [IPv6:2001:470:1f07:60d:d029:17ff:fe92:f0c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by che.mayfirst.org (Postfix) with ESMTPSA id 89C27F9A5 for ; Wed, 18 Mar 2020 13:11:56 -0400 (EDT) Received: by fifthhorseman.net (Postfix, from userid 1000) id 5B49220441; Wed, 18 Mar 2020 13:11:53 -0400 (EDT) From: Daniel Kahn Gillmor To: Notmuch Mail Subject: [PATCH] emacs: avoid warning about notmuch-show-get-message-id Date: Wed, 18 Mar 2020 13:11:53 -0400 Message-Id: <20200318171153.451491-1-dkg@fifthhorseman.net> X-Mailer: git-send-email 2.25.1 In-Reply-To: <87wo7igzkn.fsf@fifthhorseman.net> References: <87wo7igzkn.fsf@fifthhorseman.net> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Mar 2020 17:12:01 -0000 Without this change, we see the following warning when compiling the elisp: ``` EMACS emacs/notmuch-crypto.elc In end of data: emacs/notmuch-crypto.el:266:1:Warning: the function ‘notmuch-show-get-message-id’ is not known to be defined. ``` Thanks to Örjan Ekeberg and David Edmondson for their followup about this. Signed-off-by: Daniel Kahn Gillmor --- emacs/notmuch-crypto.el | 1 + 1 file changed, 1 insertion(+) diff --git a/emacs/notmuch-crypto.el b/emacs/notmuch-crypto.el index 4035ee37..928de0bb 100644 --- a/emacs/notmuch-crypto.el +++ b/emacs/notmuch-crypto.el @@ -163,6 +163,7 @@ by user FROM." (recenter -1)))) (declare-function notmuch-show-refresh-view "notmuch-show" (&optional reset-state)) +(declare-function notmuch-show-get-message-id "notmuch-show" (&optional bare)) (defun notmuch-crypto--async-key-sentinel (process event) "When the user asks for a GPG key to be retrieved -- 2.25.1