From: Carsten Dominik <carsten.dominik@gmail.com>
To: Tom <levelhalom@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Archiving in same file opens all subtrees and leaves them open
Date: Sun, 4 Apr 2010 08:53:15 +0200 [thread overview]
Message-ID: <A7C773E3-5DDA-4F3F-AFFB-9697C9CEC2E2@gmail.com> (raw)
In-Reply-To: <loom.20100404T081900-700@post.gmane.org>
On Apr 4, 2010, at 8:42 AM, Tom wrote:
> I put an ARCHIVE tag to the beginning of an org file:
>
> #+ARCHIVE: ::* archive
>
>
> and archived subtrees are put correctly under the archive heading
> in the same file.
>
> The problem is archiving opens all subtrees in the file and leaves
> them
> open and it messes up my nicely folded file. I have to refold the
> trees
> manually to the previous state.
>
> Is it a bug? Why does archiving open unrelated subtrees at all
> except for the "archive" tree?
Because normally archiving goes to a different file, where this
would not be a problem. But you can try this patch and run with
it for a while, to see if it causes any problems. Please report back.
diff --git a/lisp/org-archive.el b/lisp/org-archive.el
index 3889207..c0f01da 100644
--- a/lisp/org-archive.el
+++ b/lisp/org-archive.el
@@ -263,7 +263,6 @@ this heading."
org-odd-levels-only
tr-org-odd-levels-only)))
(goto-char (point-min))
- (show-all)
(if heading
(progn
(if (re-search-forward
> And if it does shouldn't it restore
> the previous folding state when it's finished?
Because there is currently no way to save and restore a folding state.
- Carsten
next prev parent reply other threads:[~2010-04-04 6:53 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-04 6:42 Archiving in same file opens all subtrees and leaves them open Tom
2010-04-04 6:53 ` Carsten Dominik [this message]
2010-04-04 8:16 ` Tom
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=A7C773E3-5DDA-4F3F-AFFB-9697C9CEC2E2@gmail.com \
--to=carsten.dominik@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=levelhalom@gmail.com \
/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).