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 17:22:27 +0000 (UTC)	[thread overview]
Message-ID: <loom.20090726T171817-47@post.gmane.org> (raw)
In-Reply-To: loom.20090726T064946-745@post.gmane.org

User <spamfilteraccount <at> 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

  reply	other threads:[~2009-07-26 17:22 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
2009-07-26 17:22         ` User [this message]
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.20090726T171817-47@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).