From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: How to preverse fold status after reopening a file Date: Wed, 27 May 2009 06:05:15 +0200 Message-ID: References: <20090527021947.GA25775@sylecn> Mime-Version: 1.0 (Apple Message framework v935.3) 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 1M9AOK-0003wt-Kk for emacs-orgmode@gnu.org; Wed, 27 May 2009 00:05:24 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M9AOF-0003wh-Vx for emacs-orgmode@gnu.org; Wed, 27 May 2009 00:05:24 -0400 Received: from [199.232.76.173] (port=38211 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M9AOF-0003we-St for emacs-orgmode@gnu.org; Wed, 27 May 2009 00:05:19 -0400 Received: from mail-ew0-f162.google.com ([209.85.219.162]:62061) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1M9AOF-00083R-9P for emacs-orgmode@gnu.org; Wed, 27 May 2009 00:05:19 -0400 Received: by ewy6 with SMTP id 6so4462452ewy.42 for ; Tue, 26 May 2009 21:05:18 -0700 (PDT) In-Reply-To: <20090527021947.GA25775@sylecn> 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: Yuanle Song Cc: emacs-orgmode mailing list On May 27, 2009, at 4:19 AM, Yuanle Song wrote: > Hi everyone, > org-mode can show a file in following mode when opening a file: > > overview top-level headlines only > content all headlines > showall no folding at all, show everything > > But they don't feed my need. I want to have the file exactly the same > as last time I open it, i.e. if a headline is fold when closing it > will be fold after reopening. > > If that's not possible. Is there any properties that I can apply to > one headline, that will keep the headline fold (or unfold) unless the > user press TAB on them? No, it is currently not possible to save the folding state of a tree. Using properties would, in my opinion be too heavy, I am not sure if I would like to have a property change each time I change the visibility of some part. Maybe you can write a add-on which in some way allows to save the folding state, I don't have a good idea how to do this. - Carsten