From mboxrd@z Thu Jan 1 00:00:00 1970 From: Florian Lindner Subject: Archive subtree with parent structure Date: Tue, 15 Apr 2014 16:49:12 +0200 Message-ID: <0f28107b197f2b89ae13fc5acf0e3607@xgm.de> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41807) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wa4fr-0001Kw-Da for emacs-orgmode@gnu.org; Tue, 15 Apr 2014 10:49:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wa4fl-0002Pc-0N for emacs-orgmode@gnu.org; Tue, 15 Apr 2014 10:49:23 -0400 Received: from astarte.centershock.net ([5.45.98.111]:54955) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wa4fk-0002OW-RF for emacs-orgmode@gnu.org; Tue, 15 Apr 2014 10:49:16 -0400 Received: from centershock.net (localhost [127.0.0.1]) by astarte.centershock.net (Postfix) with ESMTPA id 04733108662 for ; Tue, 15 Apr 2014 16:49:13 +0200 (CEST) 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: emacs-orgmode@gnu.org 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