From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Re: Restore previous folded state of org buffer Date: Mon, 3 Aug 2009 06:34:55 +0200 Message-ID: <5F021407-8552-48CD-9B5B-875C5F64B56B@gmail.com> References: <87hbx0zibp.fsf@bzg.ath.cx> <87vdlge6t2.fsf@bzg.ath.cx> 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 1MXpGJ-0006rH-Ac for emacs-orgmode@gnu.org; Mon, 03 Aug 2009 00:35:03 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MXpGE-0006mV-Jc for emacs-orgmode@gnu.org; Mon, 03 Aug 2009 00:35:02 -0400 Received: from [199.232.76.173] (port=41551 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MXpGE-0006mR-Ey for emacs-orgmode@gnu.org; Mon, 03 Aug 2009 00:34:58 -0400 Received: from mail-ew0-f211.google.com ([209.85.219.211]:36439) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MXpGE-0002af-1X for emacs-orgmode@gnu.org; Mon, 03 Aug 2009 00:34:58 -0400 Received: by mail-ew0-f211.google.com with SMTP id 7so1039752ewy.42 for ; Sun, 02 Aug 2009 21:34:57 -0700 (PDT) In-Reply-To: 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: User Cc: emacs-orgmode@gnu.org On Jul 26, 2009, at 7:22 PM, User wrote: > User gmail.com> writes: >> >> The folding information should simply be saved into a separate >> file. For example, for notes.org the accompanying folding >> information could be in notes.org.fold. The posted code can be >> trivially modified to behave this way and with this change the >> actual content of the org file is not affected at all and we have >> a pretty usable folding save/restore extension for org. > > > The thing pestered me, so I fixed it to take care of it. > > Now folding information is saved into a separate file and it is > saved when the buffer is closed (but only if the buffer is saved > to disk to avoid saving folding info for discarded buffers). > > I fixed the algorithm too, because it was buggy. Now it's working > well and it's also simpler. > > > http://www.emacswiki.org/emacs/orgfold-separate-file.el Hi "User", this is great functionality, thanks for sharing it. I would like to include it with Org-mode, s I need to ask: Do you have a copyright assignment with the FSF? Or are you willing to sign one? Thanks. - Carsten