From mboxrd@z Thu Jan 1 00:00:00 1970 From: "David Neu" Subject: Setting org-archive-location Date: Sat, 6 Dec 2008 15:05:26 -0500 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L93P8-0004aI-HJ for emacs-orgmode@gnu.org; Sat, 06 Dec 2008 15:05:30 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L93P7-0004ZX-2e for emacs-orgmode@gnu.org; Sat, 06 Dec 2008 15:05:30 -0500 Received: from [199.232.76.173] (port=46264 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L93P6-0004ZN-Ok for emacs-orgmode@gnu.org; Sat, 06 Dec 2008 15:05:28 -0500 Received: from wf-out-1314.google.com ([209.85.200.175]:36451) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1L93P6-0006LA-8w for emacs-orgmode@gnu.org; Sat, 06 Dec 2008 15:05:28 -0500 Received: by wf-out-1314.google.com with SMTP id 28so524157wfc.24 for ; Sat, 06 Dec 2008 12:05:26 -0800 (PST) Content-Disposition: inline List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Hi, Is there any way to get the second part of the org-archive-location variable, i.e. the part after the colon that corresponds to headline, to be the headline under which an subtree lies. For example, consider * Work ** Finsh DBMS *** TODO Define schema *** TODO Write code ** Implement API *** TODO Develop prototype * Home ** Clean garage *** TODO Buy shelves *** TODO Install shelves For "Finish DBMS", and "Implement API", you might want to have (setq org-archive-location (format-time-string "%%s-%Y-%m-archive.org::* Work" (current-time))) but for "Clean garage", you would then want (setq org-archive-location (format-time-string "%%s-%Y-%m-archive.org::* Home" (current-time))) Is there any way to achieve this behavior? Many thanks! Cheers, David