From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#53935: 27.2; [PATCH] ecomplete.el: Auto-select when there is only a single option Date: Fri, 11 Feb 2022 07:30:03 +0100 Message-ID: <87o83d6hlg.fsf@gnus.org> References: <1d908e97443d75dcb94e1e7c9fdcfb79@webmail.orcon.net.nz> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9809"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: 53935@debbugs.gnu.org To: Phil Sainty Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Feb 11 07:31:51 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nIPTD-0002NE-3i for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 11 Feb 2022 07:31:51 +0100 Original-Received: from localhost ([::1]:53426 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nIPTB-000885-QK for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 11 Feb 2022 01:31:49 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:42838) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nIPSQ-00087T-8q for bug-gnu-emacs@gnu.org; Fri, 11 Feb 2022 01:31:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:35964) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nIPSP-0003Np-SU for bug-gnu-emacs@gnu.org; Fri, 11 Feb 2022 01:31:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nIPSP-0005i6-Pv for bug-gnu-emacs@gnu.org; Fri, 11 Feb 2022 01:31:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 11 Feb 2022 06:31:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 53935 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 53935-submit@debbugs.gnu.org id=B53935.164456101618573 (code B ref 53935); Fri, 11 Feb 2022 06:31:01 +0000 Original-Received: (at 53935) by debbugs.gnu.org; 11 Feb 2022 06:30:16 +0000 Original-Received: from localhost ([127.0.0.1]:58094 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nIPRf-0004p8-SG for submit@debbugs.gnu.org; Fri, 11 Feb 2022 01:30:16 -0500 Original-Received: from quimby.gnus.org ([95.216.78.240]:56512) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nIPRd-0004gU-Qk for 53935@debbugs.gnu.org; Fri, 11 Feb 2022 01:30:14 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=TsVUOK5lwz6/altoPHvNABi7RMdJF1bxwGHOCuHhRUo=; b=P1FSSkHbE5KizmhSfX8dXe2BiJ +uQ0GAdOTUShbntu++qybGoIpiozZFNCxWmd1GPLK/+ZfZQeBzlulhGWsajmwg99hjP6OfYbBKIgK P9LBwndDxA4VkaedBqohJ4jaePRYW/xZmsr28W/8vZMR6383kB+dGMCcVh7KwmtyCJZ4=; Original-Received: from [84.212.220.105] (helo=giant) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nIPRU-0008PR-Rg; Fri, 11 Feb 2022 07:30:07 +0100 X-Now-Playing: Woolf's _Woolf_: "December" In-Reply-To: <1d908e97443d75dcb94e1e7c9fdcfb79@webmail.orcon.net.nz> (Phil Sainty's message of "Fri, 11 Feb 2022 15:47:14 +1300") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:226645 Archived-At: Phil Sainty writes: > I tried out ecomplete for email address completion today(*), > and I found it slightly annoying that when there was only a > single match for the text, I still have to firstly type M-n > to access the completion 'list', and then RET to select the > only available option. > > Would the attached patch be a reasonable enhancement? ecomplete tries to emulate how these things work in major browsers, and they do not work this way (autoselect when there's only one match) -- because the user may be typing to see what's available, and would then remove some characters if they don't get the matches they're looking for. So if we're adding this, it should default to nil, but I'm a bit sceptical that many people would want the auto-select behaviour in any case. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no