all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Samuel Wales <samologist@gmail.com>
To: Martin Pohlack <mp26@os.inf.tu-dresden.de>
Cc: emacs-orgmode@gnu.org
Subject: Re: Unhiding edited areas
Date: Thu, 30 Jul 2009 13:23:43 -0700	[thread overview]
Message-ID: <20524da70907301323v6af0393t7a7475cb98e6ecef@mail.gmail.com> (raw)
In-Reply-To: <4A71EB7A.8060608@os.inf.tu-dresden.de>

Hi Martin,

On 2009-07-30, Martin Pohlack <mp26@os.inf.tu-dresden.de> wrote:
>> '(defadvice undo (after org-undo-reveal activate)
>>  "Make point and context visible after an undo command in Org-mode."
>>  (and (org-mode-p) (org-reveal)))
>> ;;(ad-unadvise 'undo)
>
> Awesome, this is exactly what I was looking for!

Maybe we can improve on it with one or more of these:

  1) Check visibility before revealing.
  2) Speed.
  3) (emacs) /Include visibility in the undo stack/ so that
     visibility while undoing is always what it was when you
     did the editing.
  4) (emacs) Implement undo-redo so that manually revealing
     does not break the chain as it does with undo.

> The current undo system is very powerful as it doesn't lose history
> (unless you hit a quota limit).  With undo-redo systems you usually can
> lose history if you edit things in an old state.  Suddenly redo is not
> available anymore.  You can only access the most recent branch in the
> history tree.

Yes, unless you implement a tree.  But even with that
limitation, I prefer undo-redo.

The cognitive burden is not the only limitation
of undo-the-undo.  With undo-the-undo, you cannot
realistically copy text from different places in the undo
history.

Try to go back 50 edits, copy, go back a few more edits
(you're in trouble already :)), copy, go forward 10, copy,
go forward 15, copy, go back 15 more, copy, go back 15 more,
copy.  With undo-redo, I think that it would be faster.

>   http://e-texteditor.com/blog/2006/making-undo-usable

Yes, I agree that there are some good ideas there.

-- 
Myalgic encephalomyelitis makes you die decades early (Jason
et al. 2006) and suffer severely.  Conflicts of interest are
destroying research. What people "know" is wrong. Silence = death.
http://www.meactionuk.org.uk/What_Is_ME_What_Is_CFS.htm

  reply	other threads:[~2009-07-30 20:23 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-30 15:42 Unhiding edited areas Martin Pohlack
2009-07-30 17:44 ` Eric S Fraga
2009-07-30 18:10 ` Samuel Wales
2009-07-30 18:50   ` Martin Pohlack
2009-07-30 20:23     ` Samuel Wales [this message]
2009-08-03 13:53     ` Carsten Dominik

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=20524da70907301323v6af0393t7a7475cb98e6ecef@mail.gmail.com \
    --to=samologist@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=mp26@os.inf.tu-dresden.de \
    /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.