On Oct 4, 2010, at 11:44 AM, Richard Riley wrote:


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.

Sure, why not, this is not a problem.  I have applied this patch,
with a small extension that should also make it work in other
tag completion situations.

If you want to do me a favor, please identify one or two places in
the manual where this should be mentioned and make me a patch
for that file?

Cheers

- Carsten



--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:]...@#%]+"))
--8<---------------cut here---------------end--------------->8---

I replaced space too but that isnt currently allowed anyway.

regards

r.


_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

Reply via email to