summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarco Wahl <marcowahlsoft@gmail.com>2017-03-26 15:39:20 +0200
committerMarco Wahl <marcowahlsoft@gmail.com>2017-03-26 15:39:20 +0200
commit82310e34b9b7cab2ed8793e527b47fee1d00c9d8 (patch)
tree026c3a7fc9ae5c86464e8b38f657ab0be12049c4
parente3ed81c98dc57463fad151adbded892e3654d9bf (diff)
downloadorg-mode-82310e34b9b7cab2ed8793e527b47fee1d00c9d8.tar.gz
org: Fix tag setter
* lisp/org.el (org-set-tags): Treat ':' and '::' as no tag.
-rw-r--r--lisp/org.el3
1 files changed, 3 insertions, 0 deletions
diff --git a/lisp/org.el b/lisp/org.el
index fdf48f0..ce41e61 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -15164,6 +15164,9 @@ When JUST-ALIGN is non-nil, only align tags."
org-tags-sort-function)
":")))
+ (if (or (string= ":" tags)
+ (string= "::" tags))
+ (setq tags ""))
(if (not (org-string-nw-p tags)) (setq tags "")
(unless (string-suffix-p ":" tags) (setq tags (concat tags ":")))
(unless (string-prefix-p ":" tags) (setq tags (concat ":" tags))))