emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] undo-tree and Org visibility


From: Samuel Wales
Subject: [O] undo-tree and Org visibility
Date: Wed, 27 Feb 2013 09:52:17 -0700

When I went back and forth with undo-tree, Org did not show the same
visibility that it did during each stage, so I added this defadvice.
What it does is make everything visible.

(defadvice undo-tree-undo (after org-undo-reveal activate compile)
  "Make point and context visible after an undo command in org-mode."
  (alpha-org-reveal-for-undo))
;;might be nec, not sure why
(defadvice undo-tree-redo (after org-undo-reveal activate compile)
  "Make point and context visible after an undo command in org-mode."
  (alpha-org-reveal-for-undo))
(defun alpha-org-reveal-for-undo ()
  (when (and (eq major-mode 'org-mode)
             (outline-invisible-p))
     (org-reveal t)))

However, this is also confusing, because I often move headlines, and
revealing everything takes up the whole screen.  Therefore it is not
possible to show where the headline was moved to or from.

What I want is for Org to show the same visibility that it did originally.

Is this possible to do efficiently, and if not, can Emacs be changed
to support it in the next version?

Thanks.

Samuel

-- 
The Kafka Pandemic: http://thekafkapandemic.blogspot.com

The disease DOES progress.  MANY people have died from it.  ANYBODY
can get it.  There is no hope without action.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]