From: Ken Mankoff <mankoff@gmail.com>
To: Florian Adamsky <fa-orgmode@haktar.org>
Cc: emacs-orgmode@gnu.org
Subject: Re: Archive subtrees hierarchical (keep the parent structure)
Date: Tue, 05 Aug 2014 12:39:28 -0400 [thread overview]
Message-ID: <m2a97iq43v.fsf@gmail.com> (raw)
In-Reply-To: <87wqanx88p.fsf@voyager.localdomain>
Hi Florian,
* On 2014-08-05 at 11:32, Florian Adamsky wrote:
>> This code looks useful and an improvement over the previous setup I
>> was
>> using. https://lists.gnu.org/archive/html/emacs-orgmode/2014-05/msg01218.html
>>
>> Can you explain what else is needed for your code to work? Currently I
>> have
>
> No, just run M-x org-archive-subtree-hierarchical. I tried the code
> with the latest org-mode version 8.3beta and with emacs -q and in both
> cases it works without problems.
>
> However, if you set the following variable to the new function, it
> should work with the default keybinding for org-archive:
>
> #+BEGIN_SRC emacs-lisp
> (setq org-archive-default-command 'org-archive-subtree-hierarchical)
> #+END_SRC
>
> If you have any trouble, please give me a note.
You are correct that M-x org-archive-subtree-hierarchical works just
fine. But I can't get it to work with the default keybinding as you show
above.
C-c C-x C-s is my (the?) default keybinding for archiving
trees/subtrees. Is this the correct keybinding?
When I describe that with C-h k C-c C-x C-s I see:
> C-c C-x C-s runs the command org-advertized-archive-subtree, which is
> an alias for `org-archive-subtree' in `org.el'.
>
> It is bound to C-c C-x C-s, <menu-bar> <Org> <Archive> <Move Subtree
> to Archive file>.
>
> (org-advertized-archive-subtree &optional FIND-DONE)
So I have tried mapping all of those to call the new function:
(setq org-archive-default-command 'org-archive-subtree-hierarchical)
(setq org-archive-subtree 'org-archive-subtree-hierarchical)
(setq org-advertized-archive-subtree 'org-archive-subtree-hierarchical)
But it still doesn't work. I can bind org-archive-subtree-hierarchical
directly to C-c C-x C-s, which will work. Is that the correct solution?
Thanks,
-k.
next prev parent reply other threads:[~2014-08-05 16:43 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-08-04 19:29 Archive subtrees hierarchical (keep the parent structure) Florian Adamsky
2014-08-05 1:55 ` Eric Abrahamsen
2014-08-05 11:08 ` Florian Adamsky
2014-08-05 11:23 ` Eric Abrahamsen
2014-08-05 12:25 ` Ken Mankoff
2014-08-05 15:32 ` Florian Adamsky
2014-08-05 16:39 ` Ken Mankoff [this message]
2014-08-05 17:46 ` Florian Adamsky
2014-08-05 18:00 ` Ken Mankoff
2014-11-04 17:03 ` Dylan Schwilk
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=m2a97iq43v.fsf@gmail.com \
--to=mankoff@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=fa-orgmode@haktar.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).