* (no subject)
@ 2004-12-08 6:49 Han Boetes
2004-12-08 13:17 ` Stefan Monnier
0 siblings, 1 reply; 4+ messages in thread
From: Han Boetes @ 2004-12-08 6:49 UTC (permalink / raw)
It would be nice if the undo history would recognize that:
"any char"
followed by
m-x delete-backward-char
Is functionally the same as.
"any char"
followed by
m-x undo
I admit it's easier said than done.
# Han
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: (no subject)
2004-12-08 6:49 (no subject) Han Boetes
@ 2004-12-08 13:17 ` Stefan Monnier
2004-12-08 13:31 ` Han Boetes
2004-12-08 14:22 ` Undo boundary Juri Linkov
0 siblings, 2 replies; 4+ messages in thread
From: Stefan Monnier @ 2004-12-08 13:17 UTC (permalink / raw)
> It would be nice if the undo history would recognize that:
> "any char"
> followed by
> m-x delete-backward-char
> Is functionally the same as.
> "any char"
> followed by
> m-x undo
> I admit it's easier said than done.
What would be the benefit?
I.e. in which cases would it make a diference?
Stefan
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: (no subject)
2004-12-08 13:17 ` Stefan Monnier
@ 2004-12-08 13:31 ` Han Boetes
2004-12-08 14:22 ` Undo boundary Juri Linkov
1 sibling, 0 replies; 4+ messages in thread
From: Han Boetes @ 2004-12-08 13:31 UTC (permalink / raw)
Stefan Monnier wrote:
> Han wrote:
> > It would be nice if the undo history would recognize that:
> > "any char"
> > followed by
> > m-x delete-backward-char
>
> > Is functionally the same as.
>
> > "any char"
> > followed by
> > m-x undo
>
> > I admit it's easier said than done.
>
> What would be the benefit?
> I.e. in which cases would it make a diference?
Alright, good question. I have no answer except that it was a
silly idea. :-)
# Han
^ permalink raw reply [flat|nested] 4+ messages in thread
* Undo boundary
2004-12-08 13:17 ` Stefan Monnier
2004-12-08 13:31 ` Han Boetes
@ 2004-12-08 14:22 ` Juri Linkov
1 sibling, 0 replies; 4+ messages in thread
From: Juri Linkov @ 2004-12-08 14:22 UTC (permalink / raw)
Cc: emacs-devel
Stefan Monnier <monnier@iro.umontreal.ca> writes:
>> It would be nice if the undo history would recognize that:
>> "any char"
>> followed by
>> m-x delete-backward-char
>
>> Is functionally the same as.
>
>> "any char"
>> followed by
>> m-x undo
>
>> I admit it's easier said than done.
>
> What would be the benefit?
> I.e. in which cases would it make a diference?
It seems OP refers to the fact that `command_loop_1' has the built-in
constant value 20 for undo-boundary of self-inserting characters.
It makes sense to make it configurable. Often `undo' undoes too much
characters than needed. To get them back, the user has to break the
undo chain, redo undoing of the last 20 characters, and to start
to delete the needed amount of characters with delete-backward-char.
This is too inconvenient and also breaks the undo history unnecessarily.
Users with high keyboard repeat rate would prefer to change this value
to 1, press C-_ key, and hold it while `undo' undoes characters one
at a time.
However, this is useful only for the last inserted characters.
It would be a nuisance to undo characters one at a time for earlier
character insertions. For them even the value 20 is too small.
It is desirable to undo whole blocks of earlier character insertions,
not in chunks of 20 characters.
--
Juri Linkov
http://www.jurta.org/emacs/
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2004-12-08 14:22 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-12-08 6:49 (no subject) Han Boetes
2004-12-08 13:17 ` Stefan Monnier
2004-12-08 13:31 ` Han Boetes
2004-12-08 14:22 ` Undo boundary Juri Linkov
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).