From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id UI5NBqDaTWItOgAAgWs5BA (envelope-from ) for ; Wed, 06 Apr 2022 20:23:28 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id QEajA6DaTWI6bQAA9RJhRA (envelope-from ) for ; Wed, 06 Apr 2022 20:23:28 +0200 Received: from mail.notmuchmail.org (yantan.tethera.net [IPv6:2a01:4f9:c011:7a79::1]) (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 8AD00E223 for ; Wed, 6 Apr 2022 20:23:27 +0200 (CEST) Received: from yantan.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id E7C0D5F6EC; Wed, 6 Apr 2022 18:23:24 +0000 (UTC) Received: from fethera.tethera.net (fethera.tethera.net [198.245.60.197]) by mail.notmuchmail.org (Postfix) with ESMTP id AACCF5E017 for ; Wed, 6 Apr 2022 18:23:22 +0000 (UTC) Received: by fethera.tethera.net (Postfix, from userid 1000) id 849815FBD7; Wed, 6 Apr 2022 14:23:21 -0400 (EDT) From: David Bremner To: Utkarsh Singh , Alexander Adolf Subject: Re: [PATCH] emacs: Add more front ends for address completion In-Reply-To: <87bkxetndj.fsf@gmail.com> References: <87bkzhbez9.fsf@gmail.com> <115f4649ac25dff4073a32dba70e6db7@condition-alpha.com> <87wnhfjrer.fsf@gmail.com> <871qzfzgic.fsf@gmail.com> <3444ac96512ebdb53fb1faf90a2db263@condition-alpha.com> <87k0d4n8tr.fsf@gmail.com> <87ee3clysa.fsf@gmail.com> <87ee36v7ax.fsf@gmail.com> <389f3bb5fbbf532ce8e6ba0dc25c8e97@condition-alpha.com> <87y219yy6m.fsf@gmail.com> <87o820526b.fsf@tethera.net> <87bkxetndj.fsf@gmail.com> Date: Wed, 06 Apr 2022 14:23:21 -0400 Message-ID: <87a6cy9ili.fsf@tethera.net> MIME-Version: 1.0 Message-ID-Hash: 2JN3D5UA22CRUXRAS2RMTTVSDNTPDRNQ X-Message-ID-Hash: 2JN3D5UA22CRUXRAS2RMTTVSDNTPDRNQ 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; digests; suspicious-header CC: Notmuch mailing list 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-To: larch@yhetil.org X-Migadu-Country: DE ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1649269407; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc: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; bh=kfYKtzsxLdSv/Z0F3WrM77BmdKQU9PCTUKYVEjHSYHQ=; b=FeNtvqYpBKetxl/KSEmuQ78RA1kzFIqyLZGJdzXQPWzYuDDMJKvPLibMo7e3xDOd7gQzeo OVH4t2n7Ob5TDRLQ2bhTdC3fztGJ+VHtvOWZXGJA9nJLEY8zNy0XKCp8dkeeA8W/OVSaFl NEWAbov0JWM/BcE2a/5Ri9boW2MN3GCS2/ihaiRnV3h/z+fMarpSPUxX/4T2siwghy1eu0 FSp/dz0UN/rSTKBeWEFksRbSerHZMDtiqqDSjkwl2/wT7PCQYkYOXM0LnOAcJthxlUxn6H EQq8xmNa8lRzVPGei0TZqeNgE+KeZSfyMUHrRvn/0C1/E0Bsi6o+6xLMAQJokg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1649269407; a=rsa-sha256; cv=none; b=ukQPSO2uqzoM9Wm4Wm9QUAdAsmb9GK5lEGnxMhF2jBCUdpOAcOgBCJoeCZKxil3Ue5SGsM dMuriugjPa+yp6udvYIrga3ZpObsnfEg+ehZysZp5HUkqUERdGtsrFXm9mQOIyZfuIOF8X 7AjabpalrycDbaRhRNvhhE/8yB5iVtHcm65i4G7EEGnrH9kVgp3wlrFeh5Yo2qbfP6cchH V+Ko5O+iiDa4OPYw4paW60w4NUcDS4BWjLG4uSB2Z+nRo2qoTnGyTdXB7Ag1G6JA2ArpxU D8WWCJIf5atMnBRg/btWmdYfnywhR2Da+qTsnk9pawKjVa9dSv9rb2dw1SAnDA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 2a01:4f9:c011:7a79::1 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Spam-Score: -2.46 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 2a01:4f9:c011:7a79::1 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Queue-Id: 8AD00E223 X-Spam-Score: -2.46 X-Migadu-Scanner: scn0.migadu.com X-TUID: +WsWRyMdFahq Utkarsh Singh writes: >> >> Can you be more precise about what you are asking / proposing here? >> Assume I only skimmed the thread. > > Currently, notmuch-address.el, the library used to generate completion > candidates for recipient's addresses in Notmuch's message compostion > mode uses non-standard Emacs API's for in-buffer completion, namely > completing-read and Company. Now these API's makes it difficult to > utilize alternative in-buffer completion UI such as Corfu(1). #'completing-read is of course standard since forever. We might be using it in some strange way, or it might be superceded by better things, but completing-read is not non-standard. > > These are the proposed solutions for the given problem: > > 1. Add completion-at-point to the existing sets of frontend. As noted > by Tomi, this is a "messy" solution as it unnecessarily obfuscate the > user options `notmuch-address-selection-function' and > `notmuch-address-command'. > > 2. Make notmuch-address.el itself a backend for EUDC(2). As stated by > Alexander, this will not only remove any frontend related code from > notmuch-address.el, but will also unify completion condidates for other > sources such as BBDB, LDAP, MacOS Contacts, etc. > As a reviewer / release manager, I care about the amount of code changes. As a user I hope my existing setup will keep working with no, or (less good) minimal changes. Other than that I am open to ideas. d