emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [PATCH] org-get-tags-at: exclude filetags when local is t
@ 2011-04-30 15:19 Matt Lundin
  2011-05-02  7:17 ` [Accepted] " Carsten Dominik
  0 siblings, 1 reply; 2+ messages in thread
From: Matt Lundin @ 2011-04-30 15:19 UTC (permalink / raw)
  To: Org Mode

* lisp/org.el (org-get-tags-at): Don't include filetags if local is t.

The function org-get-tags-at and the functions that called it were
including inherited file tags even if the user requested only local
tags. This patch fixes the behavior.
---
 lisp/org.el |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/lisp/org.el b/lisp/org.el
index 61668ce..afcd4cb 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -12798,7 +12798,9 @@ ignore inherited ones."
 		      (or (org-up-heading-safe) (error nil))
 		      (setq parent t)))
 		(error nil)))))
-	(append (org-remove-uniherited-tags org-file-tags) tags)))))
+	(if local 
+	    tags
+	  (append (org-remove-uniherited-tags org-file-tags) tags))))))
 
 (defun org-add-prop-inherited (s)
   (add-text-properties 0 (length s) '(inherited t) s)
-- 
1.7.5

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-05-02  7:18 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-04-30 15:19 [PATCH] org-get-tags-at: exclude filetags when local is t Matt Lundin
2011-05-02  7:17 ` [Accepted] " Carsten Dominik

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).