all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Ilya Zakharevich <nospam-abuse@ilyaz.org>
Subject: Re: Redo/Undo (was: etags: M-. jump to the tag(called func), ...)
Date: Tue, 20 Sep 2005 22:50:44 +0000 (UTC)	[thread overview]
Message-ID: <dgq3o4$1n2v$1@agate.berkeley.edu> (raw)
In-Reply-To: 85mzm8rwer.fsf@lola.goethe.zz

[A complimentary Cc of this posting was sent to
David Kastrup 
<dak@gnu.org>], who wrote in article <85mzm8rwer.fsf@lola.goethe.zz>:
> > [A complimentary Cc of this posting was sent to
> > B. Smith
> > <bpsm@aon.at>], who wrote in article
> > <mailman.7386.1127026972.20277.help-gnu-emacs@gnu.org>:
> 
> Your practice of "complimentary copies" is a pain in the ass, in
> particular when sent from a spam-address.  There is no reason for you
> to assume that people replying to you on a mailing list do not
> actually read the mailing list.

  a) What makes you think it is a spam-address?

  b) What makes you think I send it to a mailing list?

If you actually read the headers, you can see that your assumptions
are both wrong.

> > With redo you can do the following (and I do it all the time):
> >
> >   a) go back in time;
> >
> >   b) Maybe I overshoot?  go forward in time a little bit.  No I did not;
> >
> >   c) So I go back in time some more.
> >
> >   d) Jump to b.
> 
> There is no clear notion about when to abandon history, and which
> parts of "going back in time" are actually intended as a forward
> change.

Of course there is.  If you want to keep the maximum amount of state,
and allow "linear access" to all these states, then "redoing an undo"
should not add states to undo stack, but remove them:

 Current logic of having the stack of states after doing undo,
 overshooting and redoing, then editing:

  >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>\
								    |
               /<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<</
               |
	       \>>>>>>>>>>|
			  | new branch
			  |
			  |>>>>>>>>>>>>>>>>>>>>>>


 This has the same set of stored states, but avoids the "exponential
 growth" effect:

  >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>\
								    |
                   B -->  /<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<</
			  | new branch
			  |
			  |>>>>>>>>>>>>>>>>>>>>>>


One can also keep the information about what are branch points (like B
above), and let the users choose what they want to do at point B when
they start to undo the whole diagram above: they may want either

  a) go to the right branch, where they would effective "redo the dead
     end";

  b) go directly to the left branch (which is similar to what the
     other editors with undo/redo functionality do - they forget about
     dead ends).

> If you want to ignore this, there is redo.el

Is it in the distribution now?

Thanks,
Ilya

  reply	other threads:[~2005-09-20 22:50 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-09-11 11:01 etags: M-. jump to the tag(called func), but then how can i jump BACK(the calling line)? zhengfish
2005-09-11 13:43 ` Ian Zimmerman
2005-09-11 14:57 ` Peter Lee
2005-09-11 20:39 ` Ilya Zakharevich
2005-09-11 20:42   ` David Kastrup
2005-09-13  7:14     ` Ilya Zakharevich
2005-09-13  8:04       ` David Kastrup
2005-09-17  0:58         ` Ilya Zakharevich
2005-09-17  6:39           ` David Kastrup
2005-09-18  1:05             ` Ilya Zakharevich
2005-09-18  7:00               ` Redo/Undo (was: etags: M-. jump to the tag(called func), ...) B. Smith
2005-09-19 14:07               ` etags: M-. jump to the tag(called func), but then how can i jump BACK(the calling line)? Stefan Monnier
     [not found]               ` <mailman.7386.1127026972.20277.help-gnu-emacs@gnu.org>
2005-09-19 21:52                 ` Redo/Undo (was: etags: M-. jump to the tag(called func), ...) Ilya Zakharevich
2005-09-20  8:11                   ` David Kastrup
2005-09-20 22:50                     ` Ilya Zakharevich [this message]
2005-09-21  2:47                   ` Redo/Undo Stefan Monnier
2005-09-13 17:26       ` etags: M-. jump to the tag(called func), but then how can i jump BACK(the calling line)? Kevin Rodgers
     [not found]       ` <mailman.6922.1126632664.20277.help-gnu-emacs@gnu.org>
2005-09-16 23:12         ` Ilya Zakharevich

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='dgq3o4$1n2v$1@agate.berkeley.edu' \
    --to=nospam-abuse@ilyaz.org \
    /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.