From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: [PATCH] tag input separators Date: Tue, 5 Oct 2010 10:00:53 +0200 Message-ID: References: Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=45681 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P33AF-0007TK-SK for emacs-orgmode@gnu.org; Tue, 05 Oct 2010 04:46:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P32rZ-00005V-MG for emacs-orgmode@gnu.org; Tue, 05 Oct 2010 04:27:06 -0400 Received: from mail-ey0-f169.google.com ([209.85.215.169]:55925) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P32rZ-0008Ty-HT for emacs-orgmode@gnu.org; Tue, 05 Oct 2010 04:27:05 -0400 Received: by mail-ey0-f169.google.com with SMTP id 5so3004848eyh.0 for ; Tue, 05 Oct 2010 01:27:05 -0700 (PDT) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Richard Riley Cc: emacs-orgmode@gnu.org 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