emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: User <spamfilteraccount@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: Restore previous folded state of org buffer
Date: Sun, 26 Jul 2009 07:04:52 +0000 (UTC)	[thread overview]
Message-ID: <loom.20090726T064946-745@post.gmane.org> (raw)
In-Reply-To: 87vdlge6t2.fsf@bzg.ath.cx

Bastien <bastienguerry <at> googlemail.com> writes:
> 
> One way to work around this limitation and to safely store the folding
> information would be to put it in a face property for each headline.  
> Perhaps you have time to dig into that direction?

Unfortunately, I have more pressing matters to deal with
currently, but I also have a possible solution if someone has a a
little time to fix the package.

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.

This could be another advantage of org over other packages, since
this feature is pretty basic in my opinion and users usually look
for something like this.


P.S. If saving to a separate file is implemented then it is not
necessary to trigger storing of folding info with the save
hook. The user sometimes doesn't modify the file, only browses
it, so saving fold info when the buffer is closed would be the
perfect solution.

  reply	other threads:[~2009-07-26  7:05 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-25 18:06 Restored previous folded state after buffer opened again? User
2009-07-25 18:57 ` Matthew Lundin
2009-07-25 19:14 ` Bastien
2009-07-25 19:34   ` Restore previous folded state of org buffer User
2009-07-25 22:28     ` Bastien
2009-07-26  7:04       ` User [this message]
2009-07-26 17:22         ` User
2009-07-26 18:50           ` Bastien
2009-07-26 19:14             ` User
2009-07-26 19:24               ` Bastien
2009-08-03  4:34           ` Carsten Dominik
2009-08-03  5:33             ` User
2009-08-03  5:38               ` Carsten Dominik
2009-07-26  0:05     ` Eric S Fraga

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

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=loom.20090726T064946-745@post.gmane.org \
    --to=spamfilteraccount@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /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 public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).