summaryrefslogtreecommitdiff
path: root/lisp/org.el
diff options
context:
space:
mode:
authorCarsten Dominik <carsten.dominik@gmail.com>2008-12-26 17:37:53 +0100
committerCarsten Dominik <carsten.dominik@gmail.com>2008-12-26 23:23:39 +0100
commit49f0a8d8b7a96f405413057d0165d10c93736f66 (patch)
treea32bcd18dee98e6376c120c62dc23bbd35930a0b /lisp/org.el
parent88a78204c3efc0062ffba509e603d49a8750cddf (diff)
Coderefs: Insert links in export backends
This patch covers the three main backends, html, latex, and ascii. It adds the code to make sure the coderef links identified by the preprocessing will be implemented correctly when a backend does its work.
Diffstat (limited to 'lisp/org.el')
-rw-r--r--lisp/org.el10
1 files changed, 10 insertions, 0 deletions
diff --git a/lisp/org.el b/lisp/org.el
index b03d8bb80..c86ad6543 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -3537,6 +3537,8 @@ Here is what the match groups contain after a match:
3: path
4: [desc]
5: desc")
+(defvar org-bracket-link-analytic-regexp++ nil
+ "Like org-bracket-link-analytic-regexp, but include coderef internal type.")
(defvar org-any-link-re nil
"Regular expression matching any link.")
@@ -3583,6 +3585,14 @@ This should be called after the variable `org-link-types' has changed."
"\\]"
"\\(\\[" "\\([^]]+\\)" "\\]\\)?"
"\\]")
+ org-bracket-link-analytic-regexp++
+ (concat
+ "\\[\\["
+ "\\(\\(" (mapconcat 'identity (cons "coderef" org-link-types) "\\|") "\\):\\)?"
+ "\\([^]]+\\)"
+ "\\]"
+ "\\(\\[" "\\([^]]+\\)" "\\]\\)?"
+ "\\]")
org-any-link-re
(concat "\\(" org-bracket-link-regexp "\\)\\|\\("
org-angle-link-re "\\)\\|\\("