From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Feature request: navigate history of folding views Date: Tue, 4 Sep 2007 08:41:39 +0200 Message-ID: References: <41c818190709031023x606ad97er7076489ca7f4ed92@mail.gmail.com> Mime-Version: 1.0 (Apple Message framework v624) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IST7J-0004bM-Vf for emacs-orgmode@gnu.org; Tue, 04 Sep 2007 03:46:34 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IST7I-0004YV-V5 for emacs-orgmode@gnu.org; Tue, 04 Sep 2007 03:46:33 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IST7I-0004YH-QP for emacs-orgmode@gnu.org; Tue, 04 Sep 2007 03:46:32 -0400 Received: from korteweg.uva.nl ([146.50.98.70]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IST7I-00011P-F6 for emacs-orgmode@gnu.org; Tue, 04 Sep 2007 03:46:32 -0400 In-Reply-To: <41c818190709031023x606ad97er7076489ca7f4ed92@mail.gmail.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: William Henney Cc: org-mode On Sep 3, 2007, at 19:23, William Henney wrote: > I missed this comment of Eddward's initially because I was on > holiday... > > On 7/11/07, Eddward DeVilla wrote: >> For my uses, what I would love is a way to have org-mode remember how >> a subtree was folded so I could hide a subtree and then reopen it >> later with all of it children exposed or hidden as they were before. >> I like to use hiding for context in a project, but I get by without >> it. > > This is similar to something that I have often wished for: some sort > of history mechanism for the expose/hide states of a buffer. The ideal > interface would simply be for "C-_" (undo) to work on the folding > views. Is this at all feasible? Not easily. outline-mode uses overlays to hide parts of the buffer, and overlay changes don't make it into the undo list. Text property changes would be undoable. I guess storing the hiding state in some way is in principle possible but a lot of work. More-over, it would be hard to write it in a way that it would this smoothly integrate into the normal work flow. - Carsten