* Archive subtree with parent structure
@ 2014-04-15 14:49 Florian Lindner
2014-04-18 11:36 ` Bastien
0 siblings, 1 reply; 4+ messages in thread
From: Florian Lindner @ 2014-04-15 14:49 UTC (permalink / raw)
To: emacs-orgmode
Hello,
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
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? Just a question from an interessted emacs
novice.
Best Regards,
Florian
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Archive subtree with parent structure
2014-04-15 14:49 Archive subtree with parent structure Florian Lindner
@ 2014-04-18 11:36 ` Bastien
2014-05-15 10:24 ` Florian Lindner
0 siblings, 1 reply; 4+ messages in thread
From: Bastien @ 2014-04-18 11:36 UTC (permalink / raw)
To: Florian Lindner; +Cc: emacs-orgmode
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Archive subtree with parent structure
2014-04-18 11:36 ` Bastien
@ 2014-05-15 10:24 ` Florian Lindner
2014-05-20 20:17 ` Bastien
0 siblings, 1 reply; 4+ messages in thread
From: Florian Lindner @ 2014-05-15 10:24 UTC (permalink / raw)
To: Bastien; +Cc: emacs-orgmode, emacs-orgmode-bounces+mailinglists=xgm.de
Am 18.04.2014 13:36, schrieb Bastien:
> 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.
Hey,
sorry for that reply after a long time.
Problem is that this kind of archivement does not fit my workflow. I
tend to archive small pieces of a project's subtree long before I'm
ready to archive the entire project. This way I build (want to build) an
archived mirror of the project's subtree bit by bit.
Do you know what is the appropriate place to file such an feature as a
whishlist item? M-x org-submit-bug-report RET ?
Thx,
Florian
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Archive subtree with parent structure
2014-05-15 10:24 ` Florian Lindner
@ 2014-05-20 20:17 ` Bastien
0 siblings, 0 replies; 4+ messages in thread
From: Bastien @ 2014-05-20 20:17 UTC (permalink / raw)
To: Florian Lindner; +Cc: emacs-orgmode, emacs-orgmode-bounces+mailinglists=xgm.de
Hi Florian,
Florian Lindner <mailinglists@xgm.de> writes:
> Do you know what is the appropriate place to file such an feature as a
> whishlist item? M-x org-submit-bug-report RET ?
The right way is to use [FR] in your subject line and send the feature
request to this list -- I won't have time to implement this myself but
I can see how it could be useful.
--
Bastien
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2014-05-20 20:17 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-15 14:49 Archive subtree with parent structure Florian Lindner
2014-04-18 11:36 ` Bastien
2014-05-15 10:24 ` Florian Lindner
2014-05-20 20:17 ` Bastien
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.