From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id uFr7DyqGTWK/OwEAgWs5BA (envelope-from ) for ; Wed, 06 Apr 2022 14:23:06 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id WMVmDSqGTWKLUAEA9RJhRA (envelope-from ) for ; Wed, 06 Apr 2022 14:23:06 +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)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 7D5E311F67 for ; Wed, 6 Apr 2022 14:23:05 +0200 (CEST) Received: from yantan.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id D8CA75F6EC; Wed, 6 Apr 2022 12:17:25 +0000 (UTC) Received: from mail-pg1-x531.google.com (mail-pg1-x531.google.com [IPv6:2607:f8b0:4864:20::531]) by mail.notmuchmail.org (Postfix) with ESMTPS id B56A45E017 for ; Wed, 6 Apr 2022 12:17:22 +0000 (UTC) Received: by mail-pg1-x531.google.com with SMTP id 125so2028520pgc.11 for ; Wed, 06 Apr 2022 05:17:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version; bh=lyvk3sV67GNH69FutgUZnzZfYGjQyPdFtOUbkKf8yXY=; b=SgCV4DtR+5dNX4tFO+2y/ou7uRwvqHcB50rSmOpJAFnJHkJoq+tGLyDHhGaJWKhRxK B2nLsi0Zx9B45smgBN9shpVZPll+No1bMyRB7gqRaqiqV1UbbXftkCv3a26r8WJ14GER obU/HjfBN+ly9jvzHbAf8+WcQudg1+wOdYOfQSY4Io/M92igGGtyNMaT4KKzFq45Ywwa SKbybhSFFYZ0NwTMchCMjkNZJSbmnAVRl+pe/MOpuAdKe/XtCblWZKixu8+L3MPh9P6g FW9QWaSQZr17XAz6KAH7ejv7VLrG+/AqFnHqW6sBnts9pVYD3fRvTsjonqKy2bfTZNOx tmCA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version; bh=lyvk3sV67GNH69FutgUZnzZfYGjQyPdFtOUbkKf8yXY=; b=097mG/KWxIlVA7n2woGaBqBR/WJADjCrk7R//1ETjs3QSIJFkJzC49XTEN/U6et/Do jR7UPQUuGVMVfPzHjSvNKoz3dggEpcwBi9sr6nyODVcQtTiKumw9SysaFMtMDm+9ZStp 9UkLTCuQK/Us55FPsO78VsH7tLTpiBviaFJGDa6Ei19A0Ur5lXquFdLyIeuPKjdJPZ9O WEqoew3gl0GSSgu994wzcAAsE0tqhPPd+ipDR8JbJXYkJy9Bqjpgo/HOYTA8P/8XoPPo C2dUiP3BUY8vdeiYlDI2jk5gSzwj45cUEiZLrO9V59E3KQW4HkY3rBmfMhFXg03uqBW0 fpMA== X-Gm-Message-State: AOAM531TCDiXTuaFmuvmMH0/B7R25WIAmhYsmAzRBBC6Oog115QiAjWp dg0cZJVn5A4aM5ntYmIBDLU= X-Google-Smtp-Source: ABdhPJxzArNO6i+1+ff78HE+PHLX8q5m3knsXBOFZS8npRNFEI0ZgahYDcQ49JZVagaSoc7u2v00ng== X-Received: by 2002:a05:6a00:815:b0:4fb:e46:511c with SMTP id m21-20020a056a00081500b004fb0e46511cmr8489045pfk.54.1649247440996; Wed, 06 Apr 2022 05:17:20 -0700 (PDT) Received: from localhost ([106.192.129.250]) by smtp.gmail.com with ESMTPSA id om16-20020a17090b3a9000b001c7bc91a89bsm5814909pjb.52.2022.04.06.05.17.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Apr 2022 05:17:20 -0700 (PDT) From: Utkarsh Singh To: David Bremner , Alexander Adolf Subject: Re: [PATCH] emacs: Add more front ends for address completion In-Reply-To: <87o820526b.fsf@tethera.net> 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> Date: Wed, 06 Apr 2022 17:49:52 +0530 Message-ID: <87bkxetndj.fsf@gmail.com> MIME-Version: 1.0 Message-ID-Hash: WP2EXX6EFXRLK2MUO37HPL2NN6FTB5WL X-Message-ID-Hash: WP2EXX6EFXRLK2MUO37HPL2NN6FTB5WL X-MailFrom: utkarsh190601@gmail.com X-Mailman-Rule-Hits: nonmember-moderation X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-notmuch.notmuchmail.org-0 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=1649247786; 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:dkim-signature; bh=t1eHAlsdK4LmLe7tUCsvNH3Z5W44ADgKmeKDNyWUzJw=; b=BiTUmCCRTM4Lyajc+mEqIIAsDnR9VngsDOlLHkHTUQAKsk4xg75yArEcMp4c09dQiyxtiv eWG1FEvtzmjWvb03bIurFfW8aHYxthz9zwDtOIAXgevoO9hMx31iJqYTuopEhgU31/Eo2+ w10DAwWf60mPgozLticKrfBWmwNLYwA2G+qdL9hGYpT+0XjN5b1VWvwk4mu9EFLQ59Kif3 jEfKHy6SJkNUOzIFOq6DL0uzkn+vdSZUZqJRJNP9oiByvCSPWLhGjGKFm19I548g4SIb3p A5LKBnqhyKXnTSrvxguh0NyMkK3sELyyz4r2HGi2E43OOFzBUivjIvC7+3utzg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1649247786; a=rsa-sha256; cv=none; b=uni2GEEFo4IB8WDRkaY7HGCrxYbkaL0pRi7tj0IRs9xJ9ylxT3x/dLmXbFpGqJsHLBeTIG A5Fg5lmxZwUHab8H5sbygmnUKG+PiuZTIKqF/4R5D2aLYjv+6/A7dag/1igCRt/rIlg5jY IibaelhhndwCkKTMC0GdzH6J92xHg4BHrCH0RYcg0GYmDYUsM6Vk3zdrP4Q+gqWjViyQXH niyD+JrwQgCuV0nIKGYoKP8sBejNurnn3Sfm1kIoSx/QSsdSRzbf7mWPXkVLGaz+Onz8ZZ 5L69jRqMKTiX2tRZ3DyWJ8Okg6KnnlGPGqGNcOG3ZqAsKUmX+Md378PLOnVERQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=gmail.com header.s=20210112 header.b=SgCV4DtR; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=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: 7.97 Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=gmail.com header.s=20210112 header.b=SgCV4DtR; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=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: 7D5E311F67 X-Spam-Score: 7.97 X-Migadu-Scanner: scn1.migadu.com X-TUID: xvoTT+RQx9FN Hello David, First of all, apologies for the late reply. It would have been much better if Alexander could himself purposed the solution he is developing. On 2022-03-20, 07:49 -0300, David Bremner wrote: > Utkarsh Singh writes: > >> Thank you for working on this issue. But from now, its up to Notmuch >> maintainers to decide whether or not they want any improvements in >> `notmuch-address.el'. > > 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). 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. Thank you, Utkarsh Singh [1]: https://github.com/minad/vertico [2]: https://www.gnu.org/software/emacs/manual/html_mono/eudc.html -- Utkarsh Singh https://utkarshsingh.xyz/