all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Ergus <spacibba@aol.com>
To: Juri Linkov <juri@linkov.net>
Cc: Philip Kaludercic <philipk@posteo.net>, emacs-devel@gnu.org
Subject: Re: [PATCH] Re: Other details about completion.
Date: Wed, 06 Apr 2022 22:34:00 +0200	[thread overview]
Message-ID: <91135A5B-17B9-4B1A-AFB9-40D2656313DE@aol.com> (raw)
In-Reply-To: <86o81eawnv.fsf@mail.linkov.net>



On April 6, 2022 8:34:12 PM GMT+02:00, Juri Linkov <juri@linkov.net> wrote:
>>>Here is the next patch that does this and allows using all arrow keys
>>>only when the completions window is visible:
>>
>> Ok quick check :)
>>
>> With the new option the behavior gives a much better navigation.
>>
>> 1) There is still the issue with C-g or ESC canceling everything
>
>Do you mean addition step is needed where first C-g/ESC will clear
>the suffix, then another C-g/ESC will exit the minibuffer?
>
We need a simple handy way to restore the mini-buffer as it was before the navigation attempt...


Maybe, let's look more at zsh and similes... That's already tested to be intuitive so we don't need to reinvent the wheel and their users already know.


>> 2) In tabular navigation the down arrow always goes to the first column
>> which is wrong; maybe it should use next-line or line-move instead of
>> forward-line?
>
>This is what I tried first, but byte-compiler complained next-line
>is only for interactive use.
>
Then it should probably be line-move but forward-line goes to column zero.

>> 3) It still needs and extra binding to insert and then to another
>> execute... RET just removes the highlight and nothing else... which is
>> un-intuitive because the candidate in principle is already selected.
>
>Then it should always insert the selected candidate.
>
At the end I think that I will stay with completion-auto-select second-tab+ completion-auto-help visible... It is closer to my desired behavior as is. There are just some missing details probably I will try to solve step by step if they become annoying enough.

I don't like that this is getting complex and full of customs and variants that will be hard to support in the future... I would recommend to revert all this changes from master and move them to a branch untill we clarify what we want and what is possible to implement cleanly .

>> I am not a good lisper, but I think that an approach with a minor mode
>> or a transient-map could end up being simpler and more modular without
>> adding more complexity in the existing code... WDYT?
>
>A minor mode that adds a hook to minibuffer-setup-hook
>that activates another mode with additional keymap?
>Looks more complex.  And a transient-map on post-command-hook
>is even more complicated.

But mixing all these bindings behaviors and features all together is something that will break sonner than later. And the hybrid behavior will end up not being good enough for user who want a zsh experience and will bother the ones who don't.

-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.



  reply	other threads:[~2022-04-06 20:34 UTC|newest]

Thread overview: 56+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20220401153839.idrzrbfl2yfzga3y.ref@Ergus>
2022-04-01 15:38 ` Other details about completion Ergus
2022-04-01 16:21   ` Eli Zaretskii
2022-04-01 16:43   ` Juri Linkov
2022-04-01 16:45     ` Ergus
2022-04-01 20:24     ` [PATCH] " Ergus
2022-04-02 18:09       ` Juri Linkov
2022-04-03  0:39         ` Ergus
2022-04-04 19:35       ` Ergus
2022-04-04 19:45         ` Juri Linkov
2022-04-04 20:31           ` Philip Kaludercic
2022-04-05 11:06             ` Ergus
2022-04-04 22:33           ` Ergus
2022-04-05 19:22             ` Juri Linkov
2022-04-05 23:20               ` Ergus
2022-04-06  7:35                 ` Juri Linkov
2022-04-06 13:21                   ` Ergus
2022-04-06 16:48                     ` Juri Linkov
2022-04-06 17:45                       ` [External] : " Drew Adams
2022-04-06 18:25                         ` Juri Linkov
2022-04-06 20:01                           ` Drew Adams
2022-04-06 17:45                       ` Ergus
2022-04-06 18:29                         ` Juri Linkov
2022-04-06 19:50                           ` Ergus
2022-04-07  7:35                             ` Juri Linkov
2022-04-07  9:16                               ` Ergus
2022-04-07 16:53                                 ` Juri Linkov
2022-04-07 17:38                                   ` Ergus
2022-04-07 18:04                                     ` Juri Linkov
2022-04-07 18:35                                       ` Ergus
2022-04-08  7:40                                         ` Juri Linkov
2022-04-08  8:42                                           ` Ergus
2022-04-08 16:20                                             ` [External] : " Drew Adams
2022-04-08 16:46                                             ` Juri Linkov
2022-04-08  9:31                                           ` Philip Kaludercic
2022-04-08 16:20                                             ` [External] : " Drew Adams
2022-04-08 16:51                                             ` Juri Linkov
2022-04-08 20:12                                               ` Philip Kaludercic
2022-04-06 23:55                           ` Ergus
2022-04-06 18:13                       ` Ergus
2022-04-06 18:34                         ` Juri Linkov
2022-04-06 20:34                           ` Ergus [this message]
2022-04-07  7:39                             ` Juri Linkov
2022-04-07  9:08                               ` Ergus
2022-04-07 16:50                                 ` Juri Linkov
2022-04-07 17:22                                   ` Ergus
2022-04-07 17:57                                     ` Juri Linkov
2022-04-07 18:27                                       ` Ergus
2022-04-08  7:45                                         ` Juri Linkov
2022-04-08  8:46                                           ` Ergus
2022-04-08 16:20                                             ` [External] : " Drew Adams
2022-04-08 16:53                                             ` Juri Linkov
2022-04-06  9:07                 ` Lars Ingebrigtsen
2022-04-06 16:43                   ` Juri Linkov
2022-04-07 11:09                     ` Lars Ingebrigtsen
2022-04-07 16:46                       ` Juri Linkov
2022-04-08 12:59                         ` Lars Ingebrigtsen

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=91135A5B-17B9-4B1A-AFB9-40D2656313DE@aol.com \
    --to=spacibba@aol.com \
    --cc=emacs-devel@gnu.org \
    --cc=juri@linkov.net \
    --cc=philipk@posteo.net \
    /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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.