From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id bMr6JSdJNmH+ugAAgWs5BA (envelope-from ) for ; Mon, 06 Sep 2021 19:00:23 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id +LHfICdJNmG1OQAAB5/wlQ (envelope-from ) for ; Mon, 06 Sep 2021 17:00:23 +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) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 4C53C142A6 for ; Mon, 6 Sep 2021 19:00:23 +0200 (CEST) Received: from nmbug.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id BC6F51F9C7; Mon, 6 Sep 2021 13:00:18 -0400 (EDT) Received: from fethera.tethera.net (fethera.tethera.net [198.245.60.197]) by mail.notmuchmail.org (Postfix) with ESMTP id 47C751F70F for ; Mon, 6 Sep 2021 13:00:17 -0400 (EDT) Received: by fethera.tethera.net (Postfix, from userid 1001) id DC4175FD5C; Mon, 6 Sep 2021 13:00:16 -0400 (EDT) Received: (nullmailer pid 2833729 invoked by uid 1000); Mon, 06 Sep 2021 17:00:15 -0000 From: David Bremner To: Gregor Zattler , notmuch@notmuchmail.org Subject: Re: [bug] Invalid function: notmuch-user-agent (was: notmuch release 0.33 now available) In-Reply-To: <87zgsqjj0l.fsf@no.workgroup> References: <874kb14d45.fsf@tethera.net> <87zgsqjj0l.fsf@no.workgroup> Date: Mon, 06 Sep 2021 10:00:15 -0700 Message-ID: <87eea1r65c.fsf@tethera.net> MIME-Version: 1.0 Message-ID-Hash: HIOUJHJFR4J7VBJWYTUV754KBW5V6LJC X-Message-ID-Hash: HIOUJHJFR4J7VBJWYTUV754KBW5V6LJC X-MailFrom: david@tethera.net 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-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1630947623; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=j2+uafZMwfaIRqod9f7P165MOWA4AybemXNlZ6DnatE=; b=RH1ley8/pdouYajQg3ChORawt4BBMvU/UDfJUBJ21y6QxmeortZX+1g+7Ik34ZkgJIEI1g N9W6Gvyw/JjvoQ5I75X/87nwVN7rzNEEHTqo93XiVJ2a+nMACHzF6wU7eo5YvgEiZN06hk Hpekew5YP8KNx1map0uecGLfdj/tEdjIFdFw53vYJQmxBUoqibXxiOKN/whm7FNtFDc/lj M+f3XxLsUXPU/676Tev1vyUkOb4Q4z/XoIy85HfdPHsikR4g3xNe8F1cmXbL/B4YgXPUmY bAZjd0/2JPQb/kqPGJUCc+1KI/hjgTeb0mIHlvyBfYwCJd4NpdWq4kDSr2acTg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1630947623; a=rsa-sha256; cv=none; b=oHr3R+qnexMuBKvdZdr0jMNLFWZMULSiFkW0/skdv1rNFSU5yitsXVXC7YY+bnjlsl73Nv uGWXzKj5liRwaKozeinwOhcYFUZUO52hF67ly9ZI4mwGeTDAX4M8uw+Etj9BkzZAXyzKj8 XpWcLCVvGPv0UCCQRbceRqodWM9+UfCpMF/lylpz+fpH+tfCj4mL9tpq+9tk1gK0st2SzV Rhoi55gxaznMrA9Rq0NdD9P92qW2AFOruWrIiC4m2m4mpRRe8JSq/+1q+C1bCF6a1PMx7O joTA0F6n64J1TijUrsiyYgkdmz9wjo0OCcwOx6haDIWXqpPrz8fKpmYLXWRz7w== ARC-Authentication-Results: i=1; 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-Migadu-Spam-Score: -2.11 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-Migadu-Queue-Id: 4C53C142A6 X-Spam-Score: -2.11 X-Migadu-Scanner: scn0.migadu.com X-TUID: Tu36dO/6PWk4 Gregor Zattler writes: > Hi David, notmuch developers, > * David Bremner [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.