emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] [PATCH] org.el: Allow tags without keys in customization


From: Allen Li
Subject: [O] [PATCH] org.el: Allow tags without keys in customization
Date: Wed, 2 Aug 2017 12:23:09 -0700

* lisp/org.el (org-tag-alist, org-tag-persistent-alist):
Add non-keyed tag type.
---
 lisp/org.el | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/lisp/org.el b/lisp/org.el
index 335d6c48a..28b206d99 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -3456,8 +3456,10 @@ See also `org-tag-persistent-alist' to sidestep
this behavior."
   :group 'org-tags
   :type '(repeat
   (choice
-   (cons   (string    :tag "Tag name")
-   (character :tag "Access char"))
+   (cons :tag "Tag with key"
+                 (string    :tag "Tag name")
+ (character :tag "Access char"))
+           (list :tag "Tag" (string :tag "Tag name"))
    (const :tag "Start radio group" (:startgroup))
    (const :tag "Start tag group, non distinct" (:startgrouptag))
    (const :tag "Group tags delimiter" (:grouptags))
@@ -3489,8 +3491,10 @@ on a per-file basis, insert anywhere in the file:
   :group 'org-tags
   :type '(repeat
   (choice
-   (cons (string    :tag "Tag name")
+   (cons :tag "Tag with key"
+                 (string    :tag "Tag name")
  (character :tag "Access char"))
+           (list :tag "Tag" (string :tag "Tag name"))
    (const :tag "Start radio group" (:startgroup))
    (const :tag "Start tag group, non distinct" (:startgrouptag))
    (const :tag "Group tags delimiter" (:grouptags))
-- 
2.14.0.rc1.383.gd1ce394fe2-goog



reply via email to

[Prev in Thread] Current Thread [Next in Thread]