From 82310e34b9b7cab2ed8793e527b47fee1d00c9d8 Mon Sep 17 00:00:00 2001 From: Marco Wahl Date: Sun, 26 Mar 2017 15:39:20 +0200 Subject: [PATCH] org: Fix tag setter * lisp/org.el (org-set-tags): Treat ':' and '::' as no tag. --- lisp/org.el | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lisp/org.el b/lisp/org.el index fdf48f0c8..ce41e6147 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))))