From: Juri Linkov <juri@linkov.net>
To: Jim Porter <jporterbugs@gmail.com>
Cc: Ergus <spacibba@aol.com>, emacs-devel <emacs-devel@gnu.org>
Subject: Re: Repeat undo-only is not working
Date: Tue, 24 Aug 2021 09:40:13 +0300 [thread overview]
Message-ID: <87bl5nz762.fsf@mail.linkov.net> (raw)
In-Reply-To: <14b08091-f054-3740-7351-b32a7d9fb1c3@gmail.com> (Jim Porter's message of "Mon, 23 Aug 2021 13:50:04 -0700")
>> Sorry, this part of the feature is still unpolished.
>> The intention was to disallow repeating of undo with
>> the key sequence `C-/ u', but allow only with `C-x u u'.
>> Maybe this was a wrong idea? Do you think it should be
>> possible to type `C-/' to initiate the repeating sequence
>> `C-/ u u u'?
>
> For what it's worth, the intention matches my personal expectation. I'd be
> pretty surprised if a key sequence with a single input event (e.g. `C-/')
> activated a repeat-mode map. My mental model is that repeat-mode "saves"
> all but the last input event of a key sequence and then uses it as a prefix
> to the subsequently-pressed keys.
>
> Perhaps it should be possible to support the behavior in the original post,
> but I'm happy with how things are now.
So there is a need to distinguish between these cases
C-/ --- u u u
C-x u --- u u
("---" visually separates the initial and repeating sequence)
and allow their customization. Maybe a new variable is sufficient
that will inhibit checking that the last character exists in repeat-map.
But what to do if the user wants to disable C-/ --- u u u,
but still wants to use for gdb-step such sequence
C-x C-a C-n --- n n n n where repeat-map has no C-n?
next prev parent reply other threads:[~2021-08-24 6:40 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20210823131240.rxfepbz4q2buo733.ref@Ergus>
2021-08-23 13:12 ` Repeat undo-only is not working Ergus
2021-08-23 13:52 ` Fu Yuan
2021-08-23 16:06 ` Juri Linkov
2021-08-23 20:30 ` Ergus
2021-08-23 20:50 ` Jim Porter
2021-08-24 6:40 ` Juri Linkov [this message]
2021-08-24 16:36 ` Jim Porter
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=87bl5nz762.fsf@mail.linkov.net \
--to=juri@linkov.net \
--cc=emacs-devel@gnu.org \
--cc=jporterbugs@gmail.com \
--cc=spacibba@aol.com \
/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.