From 9b2faee44ae9e29ac6b0d6bfdac51931eb1d34f9 Mon Sep 17 00:00:00 2001 From: Bastien Guerry Date: Tue, 1 Feb 2011 12:16:13 +0100 Subject: [PATCH] New hack by Osamu OKANO: add inherited tags to archived entries --- org-hacks.org | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/org-hacks.org b/org-hacks.org index 12d6615..49d93f0 100644 --- a/org-hacks.org +++ b/org-hacks.org @@ -572,6 +572,18 @@ Posted to Org-mode mailing list by Osamu Okano ad-do-it)) #+end_src +*** Add inherited tags to archived entries + +To make =org-archive-subtree= keep inherited tags, Osamu OKANO suggests to +advise the function like this: + +#+begin_example +(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))) +#+end_example + ** Using and Managing Org-Metadata *** Remove redundant tags of headlines -- David Maus -- 2.11.4.GIT