From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.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 UHV8LNQnCGLeKAEAgWs5BA (envelope-from ) for ; Sat, 12 Feb 2022 22:34:12 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id SKU9JdQnCGKT0AAAG6o9tA (envelope-from ) for ; Sat, 12 Feb 2022 22:34:12 +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 20E0E2D03A for ; Sat, 12 Feb 2022 22:34:12 +0100 (CET) Received: from yantan.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 176735F724; Sat, 12 Feb 2022 21:34:10 +0000 (UTC) Received: from lahtoruutu.iki.fi (lahtoruutu.iki.fi [IPv6:2a0b:5c81:1c1::37]) by mail.notmuchmail.org (Postfix) with ESMTPS id 13D105F6C3 for ; Sat, 12 Feb 2022 21:34:07 +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 369FB1B0009A; Sat, 12 Feb 2022 23:34:06 +0200 (EET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=lahtoruutu; t=1644701646; 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=xBb5N3Y360/cx3EhJ/zKEvCxmRmFYHaiTWHUSemFIUw=; b=Sm0d8WwP/dFnViU6Lx9X3uIpUnnfpcptpUjYZp+36uicw5lnWkBB2AfRdlahB6G0jcmLm+ ZmlMDihZwlYaywkbQUqyTAvwBXhleKIMjMkjFqOhnFLftCHNJp84C0+4YCPuQt0f4DQH0h drOq9wgQzmJO9eRqI/IF2zLxQ3lHsnIVOTBglr75hmL4bTVRZbfkxgagoxJ/t7qFeSWvrk P2R13Pt6IcxbJUQznVvj9aTLPBOTW8Pi6nF2hM2CZxrAf+CtTEU2j/fZE2yKYW3rGHdvP2 zJrunK/n9/B6xXz68UX16vbDTccdhtbc09YOdwIFvNuFWz1u4P3JKRMWf25dtg== From: Tomi Ollila To: Utkarsh Singh , Notmuch mailing list Subject: Re: [Utkarsh Singh] Re: [PATCH] emacs: Add more front ends for address completion In-Reply-To: <874k569igc.fsf@gmail.com> References: <874k569igc.fsf@gmail.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=1644701646; a=rsa-sha256; cv=none; b=dyovQcN2/WQe5he927FbbFmlfyMpXU+yAPt/sch8YMzHOmXDZA1AS+YH8D9+8E/d+MAAFv DtX43o0b9kivorWuibbMxOeOf4yMZTSb3eleH67YCYA5FFK2ukbo4XRqmOMZrH3KBxi4oO 5sgi19eC+SukyU8jwa5ezM7DOAOTnpICuMNWP/Y0qG96NcSGv19DLyxmqs1Z2gwNviQRZ1 z2stmDSqTS4xPDNFcoHl4PS/H1JiHTY/iaQTzCSHVdYwIMEO4IT8qs8Z+eY/DNKpwy3kaN tamaWNCDXryHj03kvSUTEION4Ow2uylyTHSq9KtXqqmlngKt1IJDO5WM1RSnAA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=lahtoruutu; t=1644701646; 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=xBb5N3Y360/cx3EhJ/zKEvCxmRmFYHaiTWHUSemFIUw=; b=mju7aJuRWluwDKrnI3iJR/X7Ko6tUF38OMXfENPG5ayARvCi5d+oVkVfRNWboKZcnlAbcC GZvYe5VF0/6QKPuI4jAyd9otlNd5H2WiDIWR+4r7D6KWTcE/cNhNWXtNuQVrAWZfE6Pibu nvG6ZKImXHUTlIYNnmtrnScHoe5fgaFpazSeB2veI4sNq6kABW+61htzCJjBmIZWiSon2u X0mD5zqReox+riEVGybOguHaKk7Zp2r9KIqmCXLEydSlsqiVKv/HYrZ70nliJ2tJZ4z4v3 szGUf1eYPdI1S77yny/Qx9WwELUHcZcgUoTl7PXtnQg0MV7+6PGNjlJ2P5+cYw== Message-ID-Hash: 4FSXJ4OVTO3FBJJAP7VJKCVTEMQMQ3FW X-Message-ID-Hash: 4FSXJ4OVTO3FBJJAP7VJKCVTEMQMQ3FW 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=1644701652; 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=yuU4ziVIhR6Ie1GPCLBnzPSBcRwgPO40RCijNM4tBd0=; b=YKdCdEGmpNOWkgYJwgJGXSbMj0yY7Cm0VfGvSF2tsMy9COAVP7DVT7hPgjOaPOiklfS+RB cMilkc/hcnQZ+ORlC/WEBY/Kg3WOSQlThOETtmVbxOU/mGGNmyzdp08wPV7lBmYq2pEf0x bsRHIB4a+RU44hDwLv+n9HWO4+cqDcjEPf5HMs3TmNz+naVBc64dYefpSjhst8cgXH27sJ /CGc4FP5HYArUiD/0Z82tJ6IaSn2BBnXZzdhzN230/PfwxT2oYi00PRYB/2lWPHBXlPk7H 8NPQAT8EJMuBSqZQbknYiGEuqysVdnH7nCdEne9uv2hcgCSMjDnkFGREuuj3jQ== ARC-Seal: i=2; s=key1; d=yhetil.org; t=1644701652; a=rsa-sha256; cv=fail; b=lyfpMkuSjUtmiqQXnupz4x7qU1p3dLhmqLYOrwsOOUpzpSBlI/VeClwhjsNL3puvHJqXbL wEVv9c0vh4DKtakhbc24kU9d/YLv0oFlIJ5HXlaCx1h7hhjDh6xOv5JcoF1DG6tEaujAAr +Tya1DoK3PrQRFpL9JAyACtAnb2EDVODfJ4zb8wCzQJkk12HeTCG1soryIxC5IriYbUpc+ fg+qGHQwiNSQFA/rnM2mHYy2mEn9d5oRI5jI239jlwuJ/tIWX7ls/C6gB/ND24wNs5wT8i g68J2KWN7yQj8hZg0mbm1ZDN2TiR0bfNrEGa88JDgQ1jcAhOc93T24A6IIlrCg== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=iki.fi header.s=lahtoruutu header.b=Sm0d8WwP; 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.84 Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=iki.fi header.s=lahtoruutu header.b=Sm0d8WwP; 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: 20E0E2D03A X-Spam-Score: -0.84 X-Migadu-Scanner: scn0.migadu.com X-TUID: Nudt4fhmvlHx On Fri, Feb 11 2022, Utkarsh Singh wrote: > On 2022-02-10, 19:37 +0200, Tomi Ollila wrote: > >> >> When doing in notmuch repo, one can execute ./devel/try-emacs-mua -Q >> >> ... which probably uses the same package database (under $HOME) as any >> other emacs invocation would do -- what is the way to change the location >> of that in order to have chance to have "empty" set of externally installed >> packages, and messing with it would not touch the "default" packages... > > Okay, we can use `package-user-dir', try the following steps: > > 1. Press M-w (`kill-ring-save') to kill/cut the following expression: > > --8<---------------cut here---------------start------------->8--- > (progn > (setq package-user-dir "/tmp/elpa") > (package-initialize) > (package-install 'corfu) > (package-install 'vertico) > > (require 'notmuch) > (require 'corfu) > (require 'vertico) > > (vertico-mode 1) > (corfu-global-mode 1) > (notmuch-mua-new-mail)) > --8<---------------cut here---------------end--------------->8--- > > 2. Now in ./devel/try-emacs-mua -Q, press M-: (`eval-expression'), C-y > (`yank') and finally RET. > > 3. Press TAB to generate address completion, then press RET to select a > address, for eg. "Notmuch mailing list ". > After selection, you will notice that `notmuch-address-expand-name' > insert desired address with trailing whitespaces. Yes, I see trailing whitespace. Also, completion matches only from beginning of the address string. Also, after one completion TAB no longer completes... Tomi > > --8<---------------cut here---------------start------------->8--- > To: Notmuch mailing list > --8<---------------cut here---------------end--------------->8--- > > I apologize as results are not as reproducible as I thought, but you can > still notice that `notmuch-address-expand-name' is not producing the > desired result. > > -- > Utkarsh Singh > https://utkarshsingh.xyz/