From: Dylan Schwilk <dschwilk@gmail.com>
To: Org-mode <emacs-orgmode@gnu.org>
Cc: Florian Adamsky <fa-orgmode@haktar.org>
Subject: Re: Archive subtrees hierarchical (keep the parent structure)
Date: Tue, 4 Nov 2014 11:03:16 -0600 [thread overview]
Message-ID: <CAO-koC4m8xdu-vJVe89SFKiUVKju-kR+e-R2P=fzAxGsoaCs-w@mail.gmail.com> (raw)
In-Reply-To: <CAFdBzErNseJKaRp4JqDstCxfY0gqGvm+7akHz5NMoq-Qk07NpA@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1539 bytes --]
Dear Florian,
I just found this code you wrote and it is exactly what I wanted for my
archiving. But I found one little issue. I discovered that this interacts
with the setting org-yank-adjusted-subtrees because it calls org-yank.
With
(setq org-yank-justed-subtrees t), the archived subtree is not pasted in as
a child of the created hierarchy, but ends up as a sibling because org-yank
calls org-paste-subtree.
My current workaround is to set org-yank-adjusted-subtrees nil, but
perhaps there is a clean way to turn off this setting in org-yank so that
org-paste-subtree is not called in this particular case regardless of the
value of org-yank-adjusted-subtrees?
- Dylan Schwilk
On Tue, Aug 5, 2014 at 1:00 PM, Ken Mankoff <mankoff@gmail.com> wrote:
> Yes that works perfectly. Not sure why I had memorized a different
> keystroke. Thank you!
>
>
>
> On Tue, Aug 5, 2014 at 1:46 PM, Florian Adamsky <fa-orgmode@haktar.org>
> wrote:
>
>> Dear Ken,
>>
>> On Tuesday, Aug 05 2014, Ken Mankoff <mankoff@gmail.com> wrote:
>>
>> > 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?
>>
>> according to the documentation the default keybinding to archive the
>> current entry is C-c C-x C-a. Could you try that instead?
>>
>> [...]
>>
>> Best
>> --
>> Florian Adamsky
>> http://florian.adamsky.it/
>>
>
>
[-- Attachment #2: Type: text/html, Size: 2473 bytes --]
prev parent reply other threads:[~2014-11-04 17:03 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
2014-08-05 17:46 ` Florian Adamsky
2014-08-05 18:00 ` Ken Mankoff
2014-11-04 17:03 ` Dylan Schwilk [this message]
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='CAO-koC4m8xdu-vJVe89SFKiUVKju-kR+e-R2P=fzAxGsoaCs-w@mail.gmail.com' \
--to=dschwilk@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).