emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Carsten Dominik <cdominik@newartisans.com>
To: emacs-orgmode@gnu.org
Subject: [Accepted] tag input separators
Date: Tue,  5 Oct 2010 11:48:10 +0200 (CEST)	[thread overview]
Message-ID: <20101005094810.B99E37E088A@U016822.local> (raw)
In-Reply-To: i8c7me$g3n$1@dough.gmane.org

Patch 297 (http://patchwork.newartisans.com/patch/297/) is now "Accepted".

Maintainer comment: none

This relates to the following submission:

http://mid.gmane.org/%3Ci8c7me%24g3n%241%40dough.gmane.org%3E

Here is the original message containing the patch:

> Content-Type: text/plain; charset="utf-8"
> MIME-Version: 1.0
> Content-Transfer-Encoding: 7bit
> Subject: [Orgmode] tag input separators
> Date: Mon, 04 Oct 2010 14:44:44 -0000
> From: Richard Riley <rileyrg@googlemail.com>
> X-Patchwork-Id: 297
> Message-Id: <i8c7me$g3n$1@dough.gmane.org>
> To: emacs-orgmode@gnu.org
> 
> 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
> --8<---------------cut here---------------end--------------->8---
> 
> I replaced space too but that isnt currently allowed anyway.
> 
> regards
> 
> r.
> 
> 
> 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:]_@#%]+"))
> 

      parent reply	other threads:[~2010-10-05  9:48 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 ` Carsten Dominik [this message]

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=20101005094810.B99E37E088A@U016822.local \
    --to=cdominik@newartisans.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).