From mboxrd@z Thu Jan 1 00:00:00 1970 From: Osamu OKANO Subject: Re: org-archive-subtree keeping inherited tags Date: Fri, 28 Jan 2011 22:47:54 +0900 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Received: from [140.186.70.92] (port=44079 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Piog9-000635-D5 for emacs-orgmode@gnu.org; Fri, 28 Jan 2011 08:47:58 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Piog8-0002vx-6g for emacs-orgmode@gnu.org; Fri, 28 Jan 2011 08:47:57 -0500 Received: from mail-iw0-f169.google.com ([209.85.214.169]:56779) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Piog8-0002vm-3m for emacs-orgmode@gnu.org; Fri, 28 Jan 2011 08:47:56 -0500 Received: by iwn40 with SMTP id 40so3630452iwn.0 for ; Fri, 28 Jan 2011 05:47:54 -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: emacs-orgmode@gnu.org 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))) Regards. > =3D=3D=3D~/org/action.org=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > =A0#+FILETAGS: Action > =A0* office :@office: > =A0** DONE I'd like to archive this subtree keeping inherited tags > =A0*** DONE step1 > =A0*** DONE step2 > =A0*** DONE step3 > =3D=3D=3D~/org/action.org_archive=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > =A0Archived entries from file =A0~/org/action.org > =A0* DONE I'd like to archive this subtree keeping inherited tags :Action= :@office: > =A0:PROPERTIES: > =A0:ARCHIVE_TIME: 2011-01-25 tue 19:00 > =A0:ARCHIVE_FILE: ~/org/action.org > =A0:ARCHIVE_OLPATH: office > =A0:ARCHIVE_TODO: DONE > =A0:ARCHIVE_ITAGS: Action @office > =A0:END: > =A0** DONE step1 > =A0** DONE step2 > =A0** DONE step3 > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > Regards. >