emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Carsten Dominik <cdominik@newartisans.com>
To: emacs-orgmode@gnu.org
Subject: [Accepted] Recognize underscores in URL
Date: Wed, 25 Aug 2010 12:33:32 +0200 (CEST)	[thread overview]
Message-ID: <20100825103332.A6CF56586A4@u016822.science.uva.nl> (raw)
In-Reply-To: 877hjv90fo.wl%n.goaziou@gmail.com

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

Maintainer comment: Tanks

This relates to the following submission:

http://mid.gmane.org/%3C877hjv90fo.wl%25n.goaziou%40gmail.com%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] Recognize underscores in URL
> Date: Thu, 12 Aug 2010 22:59:39 -0000
> From: Nicolas Goaziou <n.goaziou@gmail.com>
> X-Patchwork-Id: 214
> Message-Id: <877hjv90fo.wl%n.goaziou@gmail.com>
> To: Org Mode List <emacs-orgmode@gnu.org>
> 
> Hello,
> 
> This needs some testing as it may break something else, but the
> following patch should prevent underscores in URL from introducing
> subscript.
> 
> Regards,
> 
> -- Nicolas
> >From dd068df8a0e43a1a4ee85559bddb7ef2dbfa72bd Mon Sep 17 00:00:00 2001
> From: Nicolas Goaziou <n.goaziou@gmail.com>
> Date: Thu, 12 Aug 2010 19:47:29 +0200
> Subject: [PATCH] Recognize URL with underscores
> 
> * org.el (org-make-link-regexps): modified regexp of org-plain-link-re.
> 
> ---
> lisp/org.el |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/lisp/org.el b/lisp/org.el
> index 31d2411..4560488 100644
> --- a/lisp/org.el
> +++ b/lisp/org.el
> @@ -4851,7 +4851,7 @@ This should be called after the variable `org-link-types' has changed."
>  	org-plain-link-re
>  	(concat
>  	 "\\<\\(" (mapconcat 'regexp-quote org-link-types "\\|") "\\):"
> -	 (org-re "\\([^ \t\n()<>]+\\(?:([[:word:]0-9]+)\\|\\([^[:punct:] \t\n]\\|/\\)\\)\\)"))
> +	 (org-re "\\([^ \t\n()<>]+\\(?:([[:word:]0-9_]+)\\|\\([^[:punct:] \t\n]\\|/\\)\\)\\)"))
>  	;;	 "\\([^]\t\n\r<>() ]+[^]\t\n\r<>,.;() ]\\)")
>  	org-bracket-link-regexp
>  	"\\[\\[\\([^][]+\\)\\]\\(\\[\\([^][]+\\)\\]\\)?\\]"
> 

  parent reply	other threads:[~2010-08-25 10:33 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-12 17:59 [PATCH] Recognize underscores in URL Nicolas Goaziou
2010-08-23 11:40 ` Carsten Dominik
2010-08-23 13:46   ` Nicolas Goaziou
2010-08-25 10:33 ` Carsten Dominik [this message]
2010-08-25 10:35   ` [Accepted] " Carsten Dominik

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=20100825103332.A6CF56586A4@u016822.science.uva.nl \
    --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).