From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id AOfbHutdFWJLfwEAgWs5BA (envelope-from ) for ; Tue, 22 Feb 2022 23:04:27 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id cO5hF+tdFWLjDQAAG6o9tA (envelope-from ) for ; Tue, 22 Feb 2022 23:04:27 +0100 Received: from mail.notmuchmail.org (yantan.tethera.net [135.181.149.255]) (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 CDDBE2C4A9 for ; Tue, 22 Feb 2022 23:04:26 +0100 (CET) Received: from yantan.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 1AE965F6C2; Tue, 22 Feb 2022 22:04:24 +0000 (UTC) Received: from lahtoruutu.iki.fi (lahtoruutu.iki.fi [185.185.170.37]) by mail.notmuchmail.org (Postfix) with ESMTPS id 132165F6BB for ; Tue, 22 Feb 2022 22:04:22 +0000 (UTC) Received: from guru.guru-group.fi (unknown [IPv6:2a02:2380:1:9:5054:ff:feb7:a4bc]) (using TLSv1.2 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: too) by lahtoruutu.iki.fi (Postfix) with ESMTPSA id 53F9C1B00120; Wed, 23 Feb 2022 00:04:20 +0200 (EET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=lahtoruutu; t=1645567460; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=dQnUQJuKcyRONw1iQsdgno0agkyCyMU6fSL+gJgdCpo=; b=GgUA8z0lQt158kmd273oPJglTc6zV7qzHk979asoFa3zew5r8uQbu3gp0i29cOdkprEjzR /pVs9R8bihetftWSMbYV5gXiZ2sXQwzneEnxXAFz86adbDQFdLeLpJnaPrxJ5OuyjIz5bd SEhQ6uVUfcCR5238GIUKsqgzMoywREO1KnaPYvYGR5tODAxs3afmIQ8EOSJ6MoBR/K2IGL r5Qf2uykVIXJhoguOOwMotXm8VLn50vak/dY4BJ2tRAo5cw/6kjVUHYuLAyAmUSuABVHl3 6qktNb4mH9x5NTnVYAw2pWUZekSc4Iri/6y+eTBmTVz2MMTKshmctV5ieNzBOA== From: Tomi Ollila To: Alexander Adolf , Utkarsh Singh , Notmuch mailing list Subject: Re: emacs: notmuch-address-command 'as-is throws error (was: [PATCH] emacs: Add more front ends for address completion) In-Reply-To: References: <87bkzhbez9.fsf@gmail.com> <115f4649ac25dff4073a32dba70e6db7@condition-alpha.com> User-Agent: Notmuch/0.35+4~ge2bb4cd (https://notmuchmail.org) Emacs/27.1 X-Face: HhBM'cA~ MIME-Version: 1.0 ARC-Authentication-Results: i=1; ORIGINATING; auth=pass smtp.auth=too smtp.mailfrom=tomi.ollila@iki.fi ARC-Seal: i=1; s=lahtoruutu; d=iki.fi; t=1645567460; a=rsa-sha256; cv=none; b=vtF/e7zDdm6s0hm84Kvmt64UEuRjXumxUSGX4X1JSZYFh8CQVoOzPxIOCwxCHXKe2nLqxR O5wYvxhZpRfMpc+DEybAEzpGFJkUqW9ipLf6rVByoSWjF+C5twm6aMeftYJuzpfbuWZ56s 7T/aaS3trDdzkxBc4TCSxapc4mMmbXTklPjWuK5I6bS41xRErxG/ZVNEyx1+sizsFi0OCF OsoaAP1yZwlpPaj6hRiAPeYgQxaAmCtg8qeqOgjChOHi4zIA08kPvdgrEeSjAkN3/BTqyJ NaQq8ArtEamOzlcBu+CEwiWbSD/2ZwSeBuXtgkTLhY/3wnx5h+5nM8qAPlrVoA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=lahtoruutu; t=1645567460; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=dQnUQJuKcyRONw1iQsdgno0agkyCyMU6fSL+gJgdCpo=; b=GQ6JeYusX+0Lno64yimO6eLGpO/KaFnY2EWjHdZX2DFd8+DTgQQQ8LvEPbE12PNsZ4W+c/ LY1Lge96aCm5pThQCZfKfIV/dp0v9rnlak7NpiC6ca+CZ7UzGRrfbWNuQXqyPdiji+sshI L31Eem9nWYPKHxM1HgVOEsa32WB+Sq0CfmBJ6iI0AV6k7qwV0Nsc745JfKSJt2bkDABAXx UgLuGNDkFZMWaWIeFeeDC7ksyhFDGvQTk5l03jIH6/PgkpySwAPWc/fMBDPHsepic9hgc3 3/tZZ5+rQubg70YSAPPeH4aWw3jiYC8eUNzcv+f0FQfmPkJHl7OmpG72yNMnZw== Message-ID-Hash: H3KIWNAQHIXFRPMIO7WAO65Q7OXFHTXE X-Message-ID-Hash: H3KIWNAQHIXFRPMIO7WAO65Q7OXFHTXE X-MailFrom: tomi.ollila@iki.fi 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; digests; suspicious-header X-Mailman-Version: 3.3.3 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_IN X-Migadu-Country: DE ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1645567467; 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-owner:list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=W7UI0sc5auo26t+fnMdxwROHMVrWjWCU5F5Nbxp22c4=; b=H407cQbBU+aovgN7WJ4VlhihVZNqMubRluL2+Rpn5u9KPDE50ngajXV5eLnTggHkSS45Is /2gnAj8kKftWuN1ze3AeWdvaJ29kBerN2lkRuU+9JUSDg+9lGa9mM2GVdd4TwQKTs6YiCm FHnMR9aKMYTaP5a+66qN/FVkpWMjxYnBRE1fvSLIHS57spNO209fz3CZxNk4ie5bXQRFA9 qaYzhnacjMBuyk+4/tQZrkFT75/FMFC25AqhJz+JNPeR1eT5n01m1ENd7Vqx7uM4z5q/e3 559rJy6TBBvgNPyI2bUw6b35Q+yk+Xx3cFl2yj1px2v+3g47OYnx5fJ9iWIDbw== ARC-Seal: i=2; s=key1; d=yhetil.org; t=1645567467; a=rsa-sha256; cv=fail; b=ayDkba5b8NR+d+LOs03qvfICvd5LSVwggA69HnjUAzIrcDAfbe/7zoC/b9dP1naZM+rBm0 GREr3giyrVwtJcxMkX0NhHq7hpArVX74mTu8817OBi8TyaAPOYsEZSZS+KtiQq/ZRUnUwh VItkfoAHvqRn0+n31Wpbp512EFZof8nPkvonKxIbLSPAOBZ7PonJWJW0KRi7tx4NbRd+lZ +GoEv7umchCONEL3RotT5wVgtxCvwi3i0j6cgdy5br4BE9/nYcbCYwNWmRuTKzfEuLGbSJ 4HKDTrPyjnpUObNKzXYZFIfUwEBuUzPa82ehnN2CcIXxVohCY4/SEIBOEa3nYw== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=iki.fi header.s=lahtoruutu header.b=GgUA8z0l; arc=reject ("signature check failed: fail, {[1] = sig:iki.fi:reject}"); dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 135.181.149.255 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Spam-Score: -0.45 Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=iki.fi header.s=lahtoruutu header.b=GgUA8z0l; arc=reject ("signature check failed: fail, {[1] = sig:iki.fi:reject}"); dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 135.181.149.255 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Queue-Id: CDDBE2C4A9 X-Spam-Score: -0.45 X-Migadu-Scanner: scn1.migadu.com X-TUID: MY0zak/dlVwI On Mon, Feb 21 2022, Alexander Adolf wrote: > Alexander Adolf writes: > >> [...] >> Hence, from my personal point of view, moving _all_ completion to go >> through completion-at-point-functions seems the only reasonable way >> forward. >> >> That would remove any special cases for when company is available from >> the elisp. Fewer third-party integrations, fewer headaches. >> [...] > > I have further ventured into this, and am attempting to disable all > company-related stuff in notmuch-address.el, and instead go through > completion-at-point-functions, and use corfu as the completion UI. > > To achieve this, I have set notmuch-address-use-company to nil, and > notmuch-address-command to 'as-is. > > The latter setting (notmuch-address-command 'as-is) evokes an error: > "Wrong type argument: stringp, as-is". The backtrace led me to marvel at > the function notmuch-address-options (in notmuch-address.el). There, in > case notmuch-address-command is not equal to 'internal, control is > passed to notmuch--process-lines, which in turn uses 'as-is (a symbol) > as the name of an external program to call. The name of that command is > expected to be a string, and hence the "wrong type argument" error. > > The docstring for notmuch-address-command does not really state any > other effects of 'as-is besides preventing modification of > message-completion-alist (which is what I want, and to keep using the > internal mechanism). The defcustom option for 'as-is is cunningly > labelled "Use default or third-party mechanism", which doesn't tell me > much more either. > > Am I misreading notmuch-address.el and/or the docs? You are probably reading the code right. Probably all the combinations notmuch-address variables can be set are not (throughly;) tested. > In case not, how can I prevent modification of message-completion-alist > by notmuch, and still have notmuch use the 'internal mechanism for > generating address completion candidates? My guess would be some elisp is required... > > Many thanks in advance and cheers, > > --alexander cheers, Tomi