emacs-orgmode
[Top][All Lists]
Advanced

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

[Orgmode] [PATCH] tag input separators


From: Richard Riley
Subject: [Orgmode] [PATCH] tag input separators
Date: Mon, 04 Oct 2010 11:44:44 +0200
User-agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.2 (gnu/linux)

I dont know if it would be generally useful, but a tiny little tweak to
tag editing in order to allow "," as a seperator when typing in tags via
C-c C-q TAB "free entry" interface. "," is certainly easier for me to
use but I dont know about the ramifications of it as a legal character
in a tag name.


--8<---------------cut here---------------start------------->8---
        Modified lisp/org.el
diff --git a/lisp/org.el b/lisp/org.el
index 3f24ee8..fa3d364 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -12792,6 +12792,8 @@ With prefix ARG, realign all tags in headings in the 
current buffer."
          ;; No boolean logic, just a list
          (setq tags (replace-match ":" t t tags))))
 
+      (setq tags (replace-regexp-in-string "[ ,]" ":" tags))
+
       (if org-tags-sort-function
          (setq tags (mapconcat 'identity
                                (sort (org-split-string tags (org-re 
"[^[:alnum:address@hidden"))
--8<---------------cut here---------------end--------------->8---

I replaced space too but that isnt currently allowed anyway.

regards

r.




reply via email to

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