emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Orgmode] Re: org-archive-subtree keeping inherited tags


From: Osamu OKANO
Subject: [Orgmode] Re: org-archive-subtree keeping inherited tags
Date: Fri, 28 Jan 2011 22:47:54 +0900

Hi.

On Wed, Jan 26, 2011 at 11:16 PM, Osamu OKANO <address@hidden> 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.

> ===~/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.
>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]