summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarco Wahl <marcowahlsoft@gmail.com>2016-06-09 09:39:38 +0200
committerMarco Wahl <marcowahlsoft@gmail.com>2016-06-09 09:39:38 +0200
commit7989ebfb6efeda1c5dece8a92565f3cfdef0f900 (patch)
treee6394459b9a58abd9384b6f1dea5169731090389
parentf94df5456fcfb1125f9dc2c15904559bae2bb3de (diff)
downloadorg-mode-7989ebfb6efeda1c5dece8a92565f3cfdef0f900.tar.gz
org: Fix tags extraction
* lisp/org.el (org-get-tags-at): Use non-greedy match up to colon to match all tags (and not just the last.)
-rw-r--r--lisp/org.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/org.el b/lisp/org.el
index fc3e0c0..206ebad 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -14870,7 +14870,7 @@ ignore inherited ones."
(org-back-to-heading t)
(while (not (equal lastpos (point)))
(setq lastpos (point))
- (when (looking-at ".+:\\([[:alnum:]_@#%:]+\\):[ \t]*$")
+ (when (looking-at ".+?:\\([[:alnum:]_@#%:]+\\):[ \t]*$")
(setq ltags (org-split-string
(match-string-no-properties 1) ":"))
(when parent