From a74053c5d4680ea93916dddedb792253fe32de6b Mon Sep 17 00:00:00 2001 From: Carsten Dominik Date: Sun, 13 Dec 2009 19:36:47 +0100 Subject: [PATCH] Capture link path into a group David Maus writes: > Just realized that there a lot of broken links in the published > version of Worg. Seems like something went totally wrong with the > export to html. For instance: > > http://orgmode.org/worg/ > > "The main resources" > > The link to the official page reads http:/g and leads to > http://orgmode.org/worg/g > > -or- > > http://orgmode.org/worg/org-contrib/org-protocol.php > > "Firefox" > > As of March 2009 Firefox users follow the steps documented on > http:l. Here is a summary: ... > > the link reads "http:l" and leads to > http://orgmode.org/worg/org-contrib/l > > And so on. > --- lisp/ChangeLog | 4 ++++ lisp/org.el | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 7d400cb68..f1c37bbf7 100755 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,7 @@ +2009-12-13 Carsten Dominik + + * org.el (org-make-link-regexps): Capture link path into a group. + 2009-12-12 Carsten Dominik * org-beamer.el (org-beamer-after-initial-vars): Do not overwrite diff --git a/lisp/org.el b/lisp/org.el index de3f9444e..1e82be3ac 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -4410,7 +4410,7 @@ This should be called after the variable `org-link-types' has changed." org-plain-link-re (concat "\\<\\(" (mapconcat 'identity 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 "\\[\\[\\([^][]+\\)\\]\\(\\[\\([^][]+\\)\\]\\)?\\]" -- 2.11.4.GIT