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: Sat, 12 Feb 2022 07:49:27 +0100 Message-ID: <87k0e060lk.fsf@gnus.org> References: <1d908e97443d75dcb94e1e7c9fdcfb79@webmail.orcon.net.nz> <87o83d6hlg.fsf@gnus.org> <1800d942d3cdf963c15cd970ba64bd37@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="17683"; 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 Sat Feb 12 07:50:26 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 1nImEj-0004P4-Sb for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 12 Feb 2022 07:50:25 +0100 Original-Received: from localhost ([::1]:51632 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nImEi-00070K-D9 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 12 Feb 2022 01:50:24 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:41640) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nImEN-00070B-Je for bug-gnu-emacs@gnu.org; Sat, 12 Feb 2022 01:50:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:39326) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nImEM-0004V7-2h for bug-gnu-emacs@gnu.org; Sat, 12 Feb 2022 01:50:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nImEL-0007Bn-OD for bug-gnu-emacs@gnu.org; Sat, 12 Feb 2022 01:50: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: Sat, 12 Feb 2022 06:50: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.164464858027602 (code B ref 53935); Sat, 12 Feb 2022 06:50:01 +0000 Original-Received: (at 53935) by debbugs.gnu.org; 12 Feb 2022 06:49:40 +0000 Original-Received: from localhost ([127.0.0.1]:33223 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nImDz-0007B8-VZ for submit@debbugs.gnu.org; Sat, 12 Feb 2022 01:49:40 -0500 Original-Received: from quimby.gnus.org ([95.216.78.240]:38902) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nImDy-0007Aw-Li for 53935@debbugs.gnu.org; Sat, 12 Feb 2022 01:49:39 -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=B38x46VRorivSZKE70r2mKlNk369dql0wwnMKKJ31D0=; b=u4CGcqHYpYD1W6OvcTn6eos1lJ urRyyRS1KyLdOQ7s+pq6xFhC95BWxfnXbhD9z8f4dUjx5EHfBoej+LUJ6MKBfk8hUCz40cNwU2zIH pEpVxCkRQm1GN/diNsNE6ttezy2CKfOtgzssZ+f9zAWafL2Txp6warwM0vuf/1FrQ4qs=; 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 1nImDp-0004LE-3T; Sat, 12 Feb 2022 07:49:32 +0100 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAElBMVEX046vr7dilur2G fHlPPDj///+AV5IAAAAAAWJLR0QF+G/pxwAAAAd0SU1FB+YCDAYvBsMtXw0AAAGaSURBVDjLlZRh cuMwCIXtpAcI5AIB9gCN0AFaS/c/0z5hWVbazOwszo+ETw8Q4CxLt5VebTEzVbWffjoE9H+A3tjb xP8Gy0XNYTlpGLN2oJprybV2AHsMUIT0z1uARAOw3F5ALnVTlV+K29Vrfb4DjvwFXuEJbER3+Gv1 sO0A7itlr8PKDjwpP24haOnxpSscMe2+n0VMhEodwH+99iDEng+gj3W5WG1VBRgKTYtevPoe6gVo slwj+xfpDHJNHyXAd0zgAIZefPTkjs8AWiv1qnL1MisK9XugWcXTqdjo3osiLmkK9dUVT4At+dFd h4MDJCXSGWBjeM8gIDYAQivl6K0wnYPybxbi3CarcJ+jzXAoytrsB3CMWSgZmiYvy5CIW04c9rYl LAcIAUy17ZzoCUIBgbVAiHYCAiNlPIhLA1BTMAnHQ2RpACiU4sAMPF4ivblLuwiJfe4ghYLvXlbk Rm0TaL8NG+l7vT35swUSzW0NWnNGE+MOT4wU45b5VYvcCTt7dQ+/DIUwJ2mhVjZk4c/Fj3+Tiy6z /QW+xX8mOL9oVAAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAyMi0wMi0xMlQwNjo0NzowNSswMDowMPam 3yIAAAAldEVYdGRhdGU6bW9kaWZ5ADIwMjItMDItMTJUMDY6NDc6MDUrMDA6MDCH+2eeAAAAAElF TkSuQmCC X-Now-Playing: Yukihiro Takahashi's _Blue Moon Blue_: "Something New" In-Reply-To: <1800d942d3cdf963c15cd970ba64bd37@webmail.orcon.net.nz> (Phil Sainty's message of "Fri, 11 Feb 2022 21:28:16 +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:226690 Archived-At: Phil Sainty writes: > The "automated" part of my patch happens *after* the user has finished > adding/removing characters, and has explicitly said (via M-n) that they > now wish to choose from one of the visible completion options. > > The only difference between the old and new behaviour is that, in cases > where they'd filtered the completion options down to a single option, > they no longer have to additionally (and redundantly) type RET after > M-n to select the only thing that they could possibly select. > > ("M-n" acts like the sequence "M-n RET", in other words.) Ah, I see. Well, that's a lot better. But... it seems like a lot of stuff to just not have to hit RET when choosing an email address. And it makes the action of `M-n' less predicable -- sometimes it'll choose a name, and sometimes not. So I'm still not sure whether this makes sense for Emacs. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no