From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Re: org-archive-subtree keeping inherited tags Date: Fri, 28 Jan 2011 19:20:32 +0100 Message-ID: References: Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=51265 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pisw7-0001bP-Ln for emacs-orgmode@gnu.org; Fri, 28 Jan 2011 13:20:44 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pisw5-0006fx-9e for emacs-orgmode@gnu.org; Fri, 28 Jan 2011 13:20:42 -0500 Received: from mail-fx0-f41.google.com ([209.85.161.41]:65275) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pisw5-0006fg-59 for emacs-orgmode@gnu.org; Fri, 28 Jan 2011 13:20:41 -0500 Received: by fxm12 with SMTP id 12so4325874fxm.0 for ; Fri, 28 Jan 2011 10:20:40 -0800 (PST) In-Reply-To: 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: Osamu OKANO Cc: emacs-orgmode@gnu.org On Jan 28, 2011, at 2:47 PM, Osamu OKANO wrote: > Hi. > > On Wed, Jan 26, 2011 at 11:16 PM, Osamu OKANO > wrote: >> Hi ! >> I'd like to org-archive-subtree keeping inherited tags. >> Can I do like blow? > I have found the solution by defadvice. > (defadvice org-archive-subtree > (before add-inherited-tags-before-org-archive-subtree activate) > "add inherited tags before org-archive-subtree" > (org-set-tags-to (org-get-tags-at))) This is a pretty smart move! - Carsten > > Regards. > >> ===~/org/action.org=================================== >> #+FILETAGS: Action >> * office :@office: >> ** DONE I'd like to archive this subtree keeping inherited tags >> *** DONE step1 >> *** DONE step2 >> *** DONE step3 >> ===~/org/action.org_archive=========================== >> Archived entries from file ~/org/action.org >> * DONE I'd like to archive this subtree keeping inherited >> tags :Action:@office: >> :PROPERTIES: >> :ARCHIVE_TIME: 2011-01-25 tue 19:00 >> :ARCHIVE_FILE: ~/org/action.org >> :ARCHIVE_OLPATH: office >> :ARCHIVE_TODO: DONE >> :ARCHIVE_ITAGS: Action @office >> :END: >> ** DONE step1 >> ** DONE step2 >> ** DONE step3 >> ================================================ >> Regards. >> > > _______________________________________________ > Emacs-orgmode mailing list > Please use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode