From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stephen Leake Newsgroups: gmane.emacs.devel Subject: Re: completing-read return meta-information? Date: Mon, 28 Sep 2015 11:13:37 -0500 Message-ID: <86a8s67c9a.fsf@stephe-leake.org> References: <86y4g6zcuo.fsf@stephe-leake.org> <7c37cd21-a9e0-48fa-b5a2-a32595c43dda@default> <86twquxnpa.fsf@stephe-leake.org> <861tdrwwhx.fsf@stephe-leake.org> <86oaguv5sp.fsf@stephe-leake.org> <86twqh78n7.fsf@stephe-leake.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1443487320 10040 80.91.229.3 (29 Sep 2015 00:42:00 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 29 Sep 2015 00:42:00 +0000 (UTC) Cc: Stefan Monnier To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Sep 29 02:41:49 2015 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZgizJ-0004Px-GK for ged-emacs-devel@m.gmane.org; Tue, 29 Sep 2015 02:41:45 +0200 Original-Received: from localhost ([::1]:43083 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZgizD-0005PL-Q8 for ged-emacs-devel@m.gmane.org; Mon, 28 Sep 2015 20:41:39 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49585) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zgb3z-0001ID-MA for emacs-devel@gnu.org; Mon, 28 Sep 2015 12:14:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zgb3t-0006FH-Ir for emacs-devel@gnu.org; Mon, 28 Sep 2015 12:14:03 -0400 Original-Received: from gproxy8-pub.mail.unifiedlayer.com ([67.222.33.93]:58637) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1Zgb3t-0006F8-Ag for emacs-devel@gnu.org; Mon, 28 Sep 2015 12:13:57 -0400 Original-Received: (qmail 16763 invoked by uid 0); 28 Sep 2015 16:13:51 -0000 Original-Received: from unknown (HELO cmgw2) (10.0.90.83) by gproxy8.mail.unifiedlayer.com with SMTP; 28 Sep 2015 16:13:51 -0000 Original-Received: from host114.hostmonster.com ([74.220.207.114]) by cmgw2 with id NgDf1r00r2UdiVW01gDilZ; Mon, 28 Sep 2015 10:13:43 -0600 X-Authority-Analysis: v=2.1 cv=Jv9i8qIC c=1 sm=1 tr=0 a=CQdxDb2CKd3SRg4I0/XZPQ==:117 a=CQdxDb2CKd3SRg4I0/XZPQ==:17 a=DsvgjBjRAAAA:8 a=f5113yIGAAAA:8 a=9i_RQKNPAAAA:8 a=hEr_IkYJT6EA:10 a=x_XPkuGwIRMA:10 a=ff-B7xzCdYMA:10 a=-kIo7Us8NFdFvY-rBUwA:9 Original-Received: from [76.218.37.33] (port=63236 helo=TAKVER2) by host114.hostmonster.com with esmtpa (Exim 4.84) (envelope-from ) id 1Zgb3d-0007q8-CO; Mon, 28 Sep 2015 10:13:41 -0600 In-Reply-To: (Stefan Monnier's message of "Sun, 27 Sep 2015 11:45:15 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (windows-nt) X-Identified-User: {2442:host114.hostmonster.com:stephele:stephe-leake.org} {sentby:smtp auth 76.218.37.33 authed with stephen_leake@stephe-leake.org} X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 67.222.33.93 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:190451 Archived-At: Stefan Monnier writes: >>>> Why can't you make completion-try-completion return an absolute filename >>>> when there's only one match? >>> The string returned from completion-try-completion is displayed in the >>> minibuffer, as the completion prefix. > > That's right (tho only once it's unique). > >>> I don't want that to be the display string. > > I think that's a mistake. The user can use `locate-file', if they care about the directories. We could enhance that completion table function to deal with duplicate filenames. -- -- Stephe