summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Lundin <mdl@imapmail.org>2015-08-12 23:22:22 -0500
committerNicolas Goaziou <mail@nicolasgoaziou.fr>2015-08-14 01:58:49 +0200
commita3eeddefceda0b656994ff19ab4fcfd7e8a099a5 (patch)
treeff10c175d53031df796abb2f2500f15e7a5ede21
parentf8c4102cc6e65d48e0b9502cc568843a86f92f1c (diff)
downloadorg-mode-a3eeddefceda0b656994ff19ab4fcfd7e8a099a5.tar.gz
Fix completion when selecting more than one tag
* lisp/org.el (org-fast-tag-selection): Make sure to set local variable buffer-tags to actual buffer-tags before pushing selected tag to the list; otherwise, the subsequent completion list will be limited to the one selected tag.
-rwxr-xr-xlisp/org.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/org.el b/lisp/org.el
index eb5a7b2..d0aec27 100755
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -15315,7 +15315,8 @@ Returns the new tags string, or nil to not change the current settings."
"Tag: "
(or buffer-tags
(with-current-buffer buf
- (org-get-buffer-tags)))))
+ (setq buffer-tags
+ (org-get-buffer-tags))))))
(quit (setq tg "")))
(when (string-match "\\S-" tg)
(add-to-list 'buffer-tags (list tg))