>From 407c9c88f7c8629ae99fed5060ef2c428b54ebd8 Mon Sep 17 00:00:00 2001 From: Matt Lundin Date: Tue, 5 Jun 2018 12:31:42 -0500 Subject: [PATCH] Ensure org-get-tags returns all local tags * lisp/org.el: (org-get-tags) Fix a bug that removed local tags if they were in the org-tags-exclude-from-inheritance list. --- lisp/org.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lisp/org.el b/lisp/org.el index d2b4c26ff..8cfb64510 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -14713,8 +14713,8 @@ Inherited tags have the `inherited' text property." (setq tags (append (mapcar #'org-add-prop-inherited (org--get-local-tags)) tags))) - (org-remove-uninherited-tags - (delete-dups (append org-file-tags tags))))))))) + (delete-dups (append (org-remove-uninherited-tags org-file-tags) + tags)))))))) (defun org-get-buffer-tags () "Get a table of all tags used in the buffer, for completion." -- 2.17.1