From: Phil Sainty <psainty@orcon.net.nz>
To: Lars Ingebrigtsen <larsi@gnus.org>
Cc: 53935@debbugs.gnu.org
Subject: bug#53935: 27.2; [PATCH] ecomplete.el: Auto-select when there is only a single option
Date: Sat, 12 Feb 2022 23:27:31 +1300 [thread overview]
Message-ID: <bde2e1aea2ca86c47364f6ed0997cc87@webmail.orcon.net.nz> (raw)
In-Reply-To: <87k0e060lk.fsf@gnus.org>
On 2022-02-12 19:49, Lars Ingebrigtsen wrote:
> 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.
I thought that it was a small amount of stuff to prevent a noticeable
irritation.
I can see that you don't find the current behaviour to be irritating,
but "why can't I complete a singlular match with a single command?"
was one of my first questions upon trying ecomplete, so I'd be awfully
surprised if I was alone in that.
> And it makes the action of `M-n' less predicable -- sometimes it'll
> choose a name, and sometimes not.
I feel this is mitigated by the fact that the user sees in advance
what it's going to do (based on whether there's one match, or more
than one match, displayed in the echo area at the time).
> So I'm still not sure whether this makes sense for Emacs.
Having it as a user option is appropriate then, I think. I'm in
favour of enabling the patched behaviour by default, but I don't mind
if it's opt-in.
I probably didn't pick a good name for the option, though. In
hindsight something like `ecomplete-display-matches-auto-choose' is
probably better. Or `ecomplete-display-matches-choose-dwim', given
that it's a DWIM-ish behaviour?
-Phil
next prev parent reply other threads:[~2022-02-12 10:27 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-02-11 2:47 bug#53935: 27.2; [PATCH] ecomplete.el: Auto-select when there is only a single option Phil Sainty
2022-02-11 6:30 ` Lars Ingebrigtsen
2022-02-11 8:28 ` Phil Sainty
2022-02-11 10:24 ` Phil Sainty
2022-09-08 12:53 ` Lars Ingebrigtsen
2022-02-12 6:49 ` Lars Ingebrigtsen
2022-02-12 10:27 ` Phil Sainty [this message]
2022-02-13 8:14 ` Lars Ingebrigtsen
2022-02-13 17:24 ` bug#53935: [External] : " Drew Adams
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=bde2e1aea2ca86c47364f6ed0997cc87@webmail.orcon.net.nz \
--to=psainty@orcon.net.nz \
--cc=53935@debbugs.gnu.org \
--cc=larsi@gnus.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).