From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dylan Schwilk Subject: Re: Archive subtrees hierarchical (keep the parent structure) Date: Tue, 4 Nov 2014 11:03:16 -0600 Message-ID: References: <87bns012a6.fsf@voyager.localdomain> <87wqanx88p.fsf@voyager.localdomain> <87vbq6ygld.fsf@voyager.localdomain> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=089e0112c58871d50b05070b706e Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:32864) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XlhVr-0000TN-VT for emacs-orgmode@gnu.org; Tue, 04 Nov 2014 12:03:25 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XlhVn-0003NV-Di for emacs-orgmode@gnu.org; Tue, 04 Nov 2014 12:03:23 -0500 Received: from mail-lb0-x234.google.com ([2a00:1450:4010:c04::234]:35732) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XlhVm-0003Mi-SQ for emacs-orgmode@gnu.org; Tue, 04 Nov 2014 12:03:19 -0500 Received: by mail-lb0-f180.google.com with SMTP id u10so3146965lbd.11 for ; Tue, 04 Nov 2014 09:03:16 -0800 (PST) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Org-mode Cc: Florian Adamsky --089e0112c58871d50b05070b706e Content-Type: text/plain; charset=UTF-8 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 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 > wrote: > >> Dear Ken, >> >> On Tuesday, Aug 05 2014, Ken Mankoff 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/ >> > > --089e0112c58871d50b05070b706e Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Dear Florian,

I just found this= code you wrote and it is exactly what I wanted for my archiving.=C2=A0 But= I found one little issue.=C2=A0 I discovered that this interacts with the = setting=C2=A0 org-yank-adjusted-subtrees because it calls org-yank.=C2=A0 W= ith=C2=A0
(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 sib= ling because org-yank calls org-paste-subtree.

My curren= t workaround is to set=C2=A0 org-yank-adjusted-subtrees nil, but perhaps th= ere is a clean way to turn off this setting in org-yank so that org-paste-s= ubtree is not called in this particular case regardless of the value of or= g-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 yo= u show
> above.
>
> C-c C-x C-s is my (the?) default keybinding for archiving
> trees/subtrees.=C2=A0 Is this the correct keybinding?

according to the documentation the default keybinding to archive the<= br> current entry is C-c C-x C-a. Could you try that instead?

[...]

Best
--
Florian Adamsky
http://florian.ada= msky.it/


--089e0112c58871d50b05070b706e--