unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Jim Porter <jporterbugs@gmail.com>
To: Juri Linkov <juri@linkov.net>
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:36:11 -0700	[thread overview]
Message-ID: <f2e1d24b-45dc-f584-55fa-326f0efb4a86@gmail.com> (raw)
In-Reply-To: <87bl5nz762.fsf@mail.linkov.net>

On 8/23/2021 11:40 PM, Juri Linkov wrote:
>>> 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. [snip]
>>
>> 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?

If there were a flag like `repeat-enable-aggressively' to enable things 
like C-/ --- u u u, then would it be possible to let a user who doesn't 
want C-/ --- u u u but *does* want C-x C-a C-n --- n n n to set that 
flag to nil and then call some function in their .emacs for each "extra" 
sequence in the repeat-map they want to enable? Another option would be 
to set `repeat-enable-aggressively' to t and then *remove* any repeat 
mappings the user doesn't like.

I haven't looked at the implementation, so I'm not sure if either of 
those options are feasible, but they'd give users plenty of flexibility 
if they really wanted it.

That said, I'd probably be happy with setting 
`repeat-enable-aggressively' to nil in my config and not worrying about 
overriding any specific cases.

- Jim



      reply	other threads:[~2021-08-24 16:36 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
2021-08-24 16:36         ` Jim Porter [this message]

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=f2e1d24b-45dc-f584-55fa-326f0efb4a86@gmail.com \
    --to=jporterbugs@gmail.com \
    --cc=emacs-devel@gnu.org \
    --cc=juri@linkov.net \
    --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 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).