Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 3BCE2431FD5 for ; Fri, 12 Dec 2014 04:46:06 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: 0.165 X-Spam-Level: X-Spam-Status: No, score=0.165 tagged_above=-999 required=5 tests=[RCVD_IN_DNSWL_LOW=-0.7, RCVD_NUMERIC_HELO=0.865] autolearn=disabled Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id AxP1P0+WebkA for ; Fri, 12 Dec 2014 04:46:02 -0800 (PST) Received: from plane.gmane.org (plane.gmane.org [80.91.229.3]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id 39979431FBC for ; Fri, 12 Dec 2014 04:46:02 -0800 (PST) Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XzPbc-00024c-Hh for notmuch@notmuchmail.org; Fri, 12 Dec 2014 13:46:00 +0100 Received: from 151.62.31.98 ([151.62.31.98]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 12 Dec 2014 13:46:00 +0100 Received: from lele by 151.62.31.98 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 12 Dec 2014 13:46:00 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: notmuch@notmuchmail.org From: Lele Gaifax Subject: Re: Address completion in Emacs Date: Fri, 12 Dec 2014 13:45:47 +0100 Organization: Nautilus Entertainments Lines: 31 Message-ID: <87vblh829w.fsf@nautilus.nautilus> References: <87d27p9t0f.fsf@nautilus.nautilus> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 151.62.31.98 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) Cancel-Lock: sha1:M+qUkDsKo+eGtsKOP90Fwz2yvE4= X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Dec 2014 12:46:06 -0000 David Edmondson writes: > On Fri, Dec 12 2014, Lele Gaifax wrote: >> Wouldn't it be more "correct" to pass the unchanged `options' list and >> the "real" `orig' text as `initial-input' to the customizable function >> instead? > > Would I then have to press TAB twice to get the first result? No, why? The customizable `notmuch-address-selection-function' would be free to pass (car options) as the initial-input of `completing-read', if needed. When using `ido-completing-read', the first option is pre-selected, so a RET confirms that. >> I understand that it may be undesiderable to break existing >> configurations by rectifying the arguments in that way, and in such case >> could we change the `initial-input' argument name to better reflect the >> fact that it actually contains one possible candidate instead? > > From the perspective of `notmuch-address-selection-function', it _is_ > the `initial-input', as that is what is presented to the user. IMHO no, it's not: what it receives as `initial-input' is not what the user actually wrote, but rather just the (somewhat arbitrary) first candidate address found by `notmuch-address-command'. thanks&bye, lele. -- nickname: Lele Gaifax | Quando vivrò di quello che ho pensato ieri real: Emanuele Gaifas | comincerò ad aver paura di chi mi copia. lele@metapensiero.it | -- Fortunato Depero, 1929.