From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: [PATCH] Recognize underscores in URL Date: Thu, 12 Aug 2010 19:59:39 +0200 Message-ID: <877hjv90fo.wl%n.goaziou@gmail.com> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: multipart/mixed; boundary="Multipart_Thu_Aug_12_19:59:39_2010-1" Return-path: Received: from [140.186.70.92] (port=58256 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ojc4i-0003OS-UX for emacs-orgmode@gnu.org; Thu, 12 Aug 2010 14:00:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Ojc4d-00049s-6Y for emacs-orgmode@gnu.org; Thu, 12 Aug 2010 14:00:16 -0400 Received: from mail-ww0-f49.google.com ([74.125.82.49]:46368) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ojc4d-00049i-2X for emacs-orgmode@gnu.org; Thu, 12 Aug 2010 14:00:15 -0400 Received: by wwi14 with SMTP id 14so419722wwi.30 for ; Thu, 12 Aug 2010 11:00:14 -0700 (PDT) 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: Org Mode List --Multipart_Thu_Aug_12_19:59:39_2010-1 Content-Type: text/plain; charset=US-ASCII 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 --Multipart_Thu_Aug_12_19:59:39_2010-1 Content-Type: text/plain; type=patch; charset=US-ASCII Content-Disposition: attachment; filename="0001-Recognize-URL-with-underscores.patch" Content-Transfer-Encoding: 7bit >From dd068df8a0e43a1a4ee85559bddb7ef2dbfa72bd Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou 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 "\\[\\[\\([^][]+\\)\\]\\(\\[\\([^][]+\\)\\]\\)?\\]" -- 1.7.2.1 --Multipart_Thu_Aug_12_19:59:39_2010-1 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ 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 --Multipart_Thu_Aug_12_19:59:39_2010-1--