emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [PATCH] tag input separators
@ 2010-10-04  9:44 Richard Riley
  2010-10-05  8:00 ` Carsten Dominik
  2010-10-05  9:48 ` [Accepted] " Carsten Dominik
  0 siblings, 2 replies; 4+ messages in thread
From: Richard Riley @ 2010-10-04  9:44 UTC (permalink / raw)
  To: emacs-orgmode


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

I replaced space too but that isnt currently allowed anyway.

regards

r.

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-01-04 15:23 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-04  9:44 [PATCH] tag input separators Richard Riley
2010-10-05  8:00 ` Carsten Dominik
2011-01-04 15:22   ` Bastien
2010-10-05  9:48 ` [Accepted] " Carsten Dominik

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).