From 869b2693a516a164997a11385ed21567667f27f6 Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou Date: Thu, 12 Aug 2010 22:59:39 +0000 Subject: [PATCH] Recognize underscores in URL * org.el (org-make-link-regexps): modified regexp of org-plain-link-re. --- lisp/org.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/org.el b/lisp/org.el index 15379efce..6a6278743 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -4853,7 +4853,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 "\\[\\[\\([^][]+\\)\\]\\(\\[\\([^][]+\\)\\]\\)?\\]"