notmuch-crypto.el: "‘notmuch-show-get-message-id’ is not known to be defined"
dme at dme.org
Wed Mar 18 03:48:10 PDT 2020
On Wednesday, 2020-03-18 at 10:49:14 +01, Örjan Ekeberg wrote:
> Daniel Kahn Gillmor <dkg at fifthhorseman.net> writes:
>> When building the current version of notmuch on debian testing/unstable,
>> i see the following warning:
>> 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.
>> No part of the test suite fails so i assume it's not a problem, but
>> having spurious warnings makes it harder to notice real warnings in the
>> I don't know what the warning means exactly, but maybe someone who is
>> better with elisp than i am could take a look at it and try to resolve
> Adding this line in notmuch-crypto.el solves this:
> (declare-function notmuch-show-get-message-id "notmuch-show" (&optional bare))
> As a matter of style, I am not sure where to put it. Normally, these
> declarations are put in the beginning of the file; right after the
> require-statements. In notmuch-crypto.el, however, the only other
> declaration is put just in front of where the function is called.
As you say, we normally gather them near to the top of the file.
My girl Friday, she no square.
More information about the notmuch