Re: Address completion in Emacs
authorDavid Edmondson <dme@dme.org>
Fri, 12 Dec 2014 13:08:42 +0000 (13:08 +0000)
committerW. Trevor King <wking@tremily.us>
Sat, 20 Aug 2016 21:46:59 +0000 (14:46 -0700)
fe/d11af79181b905e1fccc8b6edf3d03c8e291cc [new file with mode: 0644]

diff --git a/fe/d11af79181b905e1fccc8b6edf3d03c8e291cc b/fe/d11af79181b905e1fccc8b6edf3d03c8e291cc
new file mode 100644 (file)
index 0000000..b647fb4
--- /dev/null
@@ -0,0 +1,121 @@
+Return-Path: <dme@dme.org>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+       by olra.theworths.org (Postfix) with ESMTP id E9304431FD5\r
+       for <notmuch@notmuchmail.org>; Fri, 12 Dec 2014 05:08:49 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.699\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.699 tagged_above=-999 required=5\r
+       tests=[RCVD_IN_DNSWL_LOW=-0.7, UNPARSEABLE_RELAY=0.001]\r
+       autolearn=disabled\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+       by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+       with ESMTP id 0v61H3VJjuBy for <notmuch@notmuchmail.org>;\r
+       Fri, 12 Dec 2014 05:08:46 -0800 (PST)\r
+Received: from mail-wg0-f41.google.com (mail-wg0-f41.google.com\r
+ [74.125.82.41])       (using TLSv1 with cipher RC4-SHA (128/128 bits))        (No client\r
+ certificate requested)        by olra.theworths.org (Postfix) with ESMTPS id\r
+ EE1A8431FBC   for <notmuch@notmuchmail.org>; Fri, 12 Dec 2014 05:08:45 -0800\r
+ (PST)\r
+Received: by mail-wg0-f41.google.com with SMTP id y19so9046769wgg.28\r
+       for <notmuch@notmuchmail.org>; Fri, 12 Dec 2014 05:08:44 -0800 (PST)\r
+X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;\r
+       d=1e100.net; s=20130820;\r
+       h=x-gm-message-state:user-agent:to:subject:in-reply-to:references\r
+       :from:date:message-id:mime-version:content-type\r
+       :content-transfer-encoding;\r
+       bh=5s1VRoF2msz1QHsadCQtUP36tf4N83fAlJbLm88MP1A=;\r
+       b=emk+3dTJkZyceQGcZVSSH29qODrUtiXQhwG2WOtMwVXNF+qM4WDw/S9A34nwr4digX\r
+       Mz1Um6Gygd4dxFAZToHFG/K/CKJ+xUV/eP76jmfXS742dWW82uJ52vL3DLdeBPPdUA89\r
+       ZeKuStCkpCuP8dsZ0FKeRhwzSAk4VKYDJRN55BJrahHnQ50PwrldW5Mi8lMZc2KnfNdE\r
+       2vfiH0VYreKrQuJL1fcfhocre/0U2wep6FkLY3n10vo7scsVkbnXqaS3cDb4Q4rrU0Mo\r
+       grZjPSILwWniC6uASCkri3Kuwen96orUNQIINWZvPUyU055bElOkDZUyOT8UZ9Yg/QlW\r
+       a8fQ==\r
+X-Gm-Message-State:\r
+ ALoCoQlhQjs00AIw+suLwlE8Iv0I0JE2mzw85h81+iLirr785VKjHCRyYCpHuQagVMF1XrfJLpv2\r
+X-Received: by 10.194.249.232 with SMTP id yx8mr27669127wjc.1.1418389724504;\r
+       Fri, 12 Dec 2014 05:08:44 -0800 (PST)\r
+Received: from disaster-area.hh.sledj.net\r
+       ([2a01:348:1a2:1:ea39:35ff:fe2c:a227])\r
+       by mx.google.com with ESMTPSA id\r
+       qg11sm1905265wic.17.2014.12.12.05.08.43\r
+       (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\r
+       Fri, 12 Dec 2014 05:08:43 -0800 (PST)\r
+Received: from localhost (30000@localhost [local]);\r
+       by localhost (OpenSMTPD) with ESMTPA id 548d6f02;\r
+       Fri, 12 Dec 2014 13:08:42 +0000 (UTC)\r
+User-Agent: OpenSMTPD enqueuer (Demoostik)\r
+To: Lele Gaifax <lele@metapensiero.it>, notmuch@notmuchmail.org\r
+Subject: Re: Address completion in Emacs\r
+In-Reply-To: <87vblh829w.fsf@nautilus.nautilus>\r
+References: <87d27p9t0f.fsf@nautilus.nautilus>\r
+       <m24mt1hxoy.fsf@heart-of-gold.hh.sledj.net>\r
+       <87vblh829w.fsf@nautilus.nautilus>\r
+From: David Edmondson <dme@dme.org>\r
+Date: Fri, 12 Dec 2014 13:08:42 +0000\r
+Message-ID: <m21to5hv6t.fsf@heart-of-gold.hh.sledj.net>\r
+MIME-Version: 1.0\r
+Content-Type: text/plain; charset=utf-8\r
+Content-Transfer-Encoding: quoted-printable\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+       <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Fri, 12 Dec 2014 13:08:50 -0000\r
+\r
+On Fri, Dec 12 2014, Lele Gaifax wrote:\r
+> David Edmondson <dme@dme.org> writes:\r
+>\r
+>> On Fri, Dec 12 2014, Lele Gaifax wrote:\r
+>>> Wouldn't it be more "correct" to pass the unchanged `options' list and\r
+>>> the "real" `orig' text as `initial-input' to the customizable function\r
+>>> instead?\r
+>>\r
+>> Would I then have to press TAB twice to get the first result?\r
+>\r
+> No, why? The customizable `notmuch-address-selection-function' would be\r
+> free to pass (car options) as the initial-input of `completing-read', if\r
+> needed. When using `ido-completing-read', the first option is\r
+> pre-selected, so a RET confirms that.\r
+\r
+Understood.\r
+\r
+>>> I understand that it may be undesiderable to break existing\r
+>>> configurations by rectifying the arguments in that way, and in such case\r
+>>> could we change the `initial-input' argument name to better reflect the\r
+>>> fact that it actually contains one possible candidate instead?\r
+>>\r
+>> From the perspective of `notmuch-address-selection-function', it _is_\r
+>> the `initial-input', as that is what is presented to the user.\r
+>\r
+> IMHO no, it's not: what it receives as `initial-input' is not what the\r
+> user actually wrote, but rather just the (somewhat arbitrary) first\r
+> candidate address found by `notmuch-address-command'.\r
+\r
+I think that we're at cross\r
+purposes. `notmuch-address-selection-function' will use the\r
+`initial-input' as the initial input of the completion, so that's what\r
+it chooses to call the argument. It can't be blamed if whatever is\r
+passed to it is not something that you would consider the initial input.\r
+\r
+> thanks&bye, lele.\r
+> --=20\r
+> nickname: Lele Gaifax | Quando vivr=C3=B2 di quello che ho pensato ieri\r
+> real: Emanuele Gaifas | comincer=C3=B2 ad aver paura di chi mi copia.\r
+> lele@metapensiero.it  |                 -- Fortunato Depero, 1929.\r
+>\r
+> _______________________________________________\r
+> notmuch mailing list\r
+> notmuch@notmuchmail.org\r
+> http://notmuchmail.org/mailman/listinfo/notmuch\r