From: Bastien <bzg@gnu.org>
To: Florian Lindner <mailinglists@xgm.de>
Cc: emacs-orgmode@gnu.org
Subject: Re: Archive subtree with parent structure
Date: Fri, 18 Apr 2014 13:36:18 +0200 [thread overview]
Message-ID: <87a9bij2dp.fsf@bzg.ath.cx> (raw)
In-Reply-To: <0f28107b197f2b89ae13fc5acf0e3607@xgm.de> (Florian Lindner's message of "Tue, 15 Apr 2014 16:49:12 +0200")
Hi Florian,
Florian Lindner <mailinglists@xgm.de> writes:
> is it possible to org-archive-subtree a subtree and keep the entire
> parent structure? e.g.
>
> * A
> ** AA
> ** AB
> ** AC
>
>
> AB will be archived to:
>
> * A
> ** AB
No, but each subtree can contain an :ARCHIVE: property that will help
you come close to this.
For example:
* A
:PROPERTIES:
:ARCHIVE: basement_archive::* A
:END
** AA
** AB
** AC
then C-c $ on AA AB and AC will archive them under the * A subtree
of the basement_archive file.
> Another question, just out of interest: Why is there
> org-archive-subtree-default at all? According to documentation and
> source it just calls the function in org-archive-default-command:
>
> (defun org-archive-subtree-default ()
> "Archive the current subtree with the default command.
> This command is set with the variable `org-archive-default-command'."
> (interactive)
> (call-interactively org-archive-default-command))
>
> Isn't the emacs way to rather just set org-archive-subtree to another
> function or rebind the key?
The reasoning here is that the user wants to customize
`org-archive-default-command' and still use C-c C-x C-a to archive.
It would not be practical to force him create new keybindings.
HTH,
--
Bastien
next prev parent reply other threads:[~2014-04-18 11:36 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-15 14:49 Archive subtree with parent structure Florian Lindner
2014-04-18 11:36 ` Bastien [this message]
2014-05-15 10:24 ` Florian Lindner
2014-05-20 20:17 ` Bastien
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87a9bij2dp.fsf@bzg.ath.cx \
--to=bzg@gnu.org \
--cc=emacs-orgmode@gnu.org \
--cc=mailinglists@xgm.de \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.