From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.help Subject: RE: `completing-read` without RET Date: Fri, 11 Mar 2016 09:07:50 -0800 (PST) Message-ID: <0ac94945-fe1d-486f-8668-c2f34167617f@default> References: <46dc9263-f168-4f2e-b052-120e1184fcba@default> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1457716115 5689 80.91.229.3 (11 Mar 2016 17:08:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 11 Mar 2016 17:08:35 +0000 (UTC) To: Stefan Monnier , help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Mar 11 18:08:16 2016 Return-path: Envelope-to: geh-help-gnu-emacs@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 1aeQXv-0007SY-4T for geh-help-gnu-emacs@m.gmane.org; Fri, 11 Mar 2016 18:08:15 +0100 Original-Received: from localhost ([::1]:56768 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aeQXu-0003tP-8s for geh-help-gnu-emacs@m.gmane.org; Fri, 11 Mar 2016 12:08:14 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34604) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aeQXe-0003rm-Gk for help-gnu-emacs@gnu.org; Fri, 11 Mar 2016 12:08:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aeQXa-0006GG-JC for help-gnu-emacs@gnu.org; Fri, 11 Mar 2016 12:07:58 -0500 Original-Received: from userp1040.oracle.com ([156.151.31.81]:29224) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aeQXa-0006GC-Ah for help-gnu-emacs@gnu.org; Fri, 11 Mar 2016 12:07:54 -0500 Original-Received: from aserv0021.oracle.com (aserv0021.oracle.com [141.146.126.233]) by userp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id u2BH7qZj018370 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 11 Mar 2016 17:07:53 GMT Original-Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by aserv0021.oracle.com (8.13.8/8.13.8) with ESMTP id u2BH7qaY025835 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Fri, 11 Mar 2016 17:07:52 GMT Original-Received: from abhmp0012.oracle.com (abhmp0012.oracle.com [141.146.116.18]) by aserv0121.oracle.com (8.13.8/8.13.8) with ESMTP id u2BH7qFI013410; Fri, 11 Mar 2016 17:07:52 GMT In-Reply-To: X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9 (901082) [OL 12.0.6691.5000 (x86)] X-Source-IP: aserv0021.oracle.com [141.146.126.233] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 156.151.31.81 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:109544 Archived-At: > You're right, it's when require-match is t. >=20 > > Choose: a TAB > > Nothing happens. >=20 > Don't use TAB, use RET. Sure, but that's not what the OP requested. There is a difference between (a) knowing that what you type is sufficient to choose a single candidate, and so you hit RET, and (b) not knowing whether there is only one match, and maybe not even knowing whether completion is lax or REQUIRE-MATCH is t, so you hit TAB. If you hit TAB and there is only one matching candidate, the OP wants that candidate to be chosen (returned). That's my understanding of the request. Vanilla `completing-read' does not offer that possibility (feature).