GNU bug report logs -
#53935
27.2; [PATCH] ecomplete.el: Auto-select when there is only a single option
Previous Next
Reported by: Phil Sainty <psainty <at> orcon.net.nz>
Date: Fri, 11 Feb 2022 02:48:01 UTC
Severity: wishlist
Tags: patch
Found in version 27.2
Fixed in version 29.1
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
Message #20 received at 53935 <at> debbugs.gnu.org (full text, mbox):
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
This bug report was last modified 2 years and 254 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.