emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Allen Li <vianchielfaura@gmail.com>
To: emacs-orgmode@gnu.org
Subject: [PATCH] org.el: Allow tags without keys in customization
Date: Wed, 2 Aug 2017 12:23:09 -0700	[thread overview]
Message-ID: <CAJr1M6eM4Bm2jr4Bs65Opmg4J7hQBPpnvu56nzqwOnSfPpvxpg@mail.gmail.com> (raw)

* 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	other threads:[~2017-08-02 19:23 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-08-02 19:23 Allen Li [this message]
2017-08-05  9:07 ` [PATCH] org.el: Allow tags without keys in customization Nicolas Goaziou
2017-08-07 18:34   ` Allen Li
2017-08-07 21:28     ` Nicolas Goaziou

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAJr1M6eM4Bm2jr4Bs65Opmg4J7hQBPpnvu56nzqwOnSfPpvxpg@mail.gmail.com \
    --to=vianchielfaura@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).