From: David Bremner <david@tethera.net>
To: Gregor Zattler <telegraph@gmx.net>, notmuch@notmuchmail.org
Subject: Re: [bug] Invalid function: notmuch-user-agent (was: notmuch release 0.33 now available)
Date: Mon, 06 Sep 2021 10:00:15 -0700 [thread overview]
Message-ID: <87eea1r65c.fsf@tethera.net> (raw)
In-Reply-To: <87zgsqjj0l.fsf@no.workgroup>
Gregor Zattler <telegraph@gmx.net> writes:
> Hi David, notmuch developers,
> * David Bremner <david@tethera.net> [2021-09-03; 13:29]:
>> Emacs
>> -----
>>
>> `notmuch` no longer sets `mail-user-agent` on load. To restore the
>> previous behaviour of using notmuch to send mail by default, customize
>> `mail-user-agent` to `notmuch-user-agent`.
>
> While reading this news, I realized, that `mail-user-agent'
> is set to "message-user-agent" in my emacs instance.
>
> I therefore tried to change `mail-user-agent' via the customization
> interface (clicking the radio button "Other:" and providing
> "notmuch-user-agent" as value) but then I got an error
> message:
>
> custom-variable-mark-to-save: Saving mail-user-agent: Invalid function: notmuch-user-agent
>
This seems like a bug in the defcustom for mail-user-agent (i.e. a bug
in emacs).
I think you will find that
(setq mail-user-agent 'notmuch-user-agent)
works. My reading of the documentation (and either my reading or the
docs could be wrong) is that the symbol for a mail-user-agent need not
be a function. Quoting the docstring for define-mail-user-agent
SYMBOL can be any Lisp symbol. Its function definition and/or
value as a variable do not matter for this usage; we use only certain
properties on its property list, to encode the rest of the arguments.
Other user agents, e.g. 'gnus-user-agent, 'message-user-agent, and
'sendmail-user-agent do not seem to have function definition. On the
other hand, it is a bit surprising that no-one noticed a problem with
"Other" mail-user-agent values before now.
next prev parent reply other threads:[~2021-09-06 17:00 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-09-03 20:29 notmuch release 0.33 now available David Bremner
2021-09-06 6:49 ` [bug] Invalid function: notmuch-user-agent (was: notmuch release 0.33 now available) Gregor Zattler
2021-09-06 17:00 ` David Bremner [this message]
2021-09-06 17:10 ` Gregor Zattler
2021-09-06 17:28 ` David Bremner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://notmuchmail.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87eea1r65c.fsf@tethera.net \
--to=david@tethera.net \
--cc=notmuch@notmuchmail.org \
--cc=telegraph@gmx.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://yhetil.org/notmuch.git/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).