diff options
author | Carsten Dominik <carsten.dominik@gmail.com> | 2008-12-26 17:37:53 +0100 |
---|---|---|
committer | Carsten Dominik <carsten.dominik@gmail.com> | 2008-12-26 23:23:39 +0100 |
commit | 49f0a8d8b7a96f405413057d0165d10c93736f66 (patch) | |
tree | a32bcd18dee98e6376c120c62dc23bbd35930a0b /lisp/org.el | |
parent | 88a78204c3efc0062ffba509e603d49a8750cddf (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.el | 10 |
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 "\\)\\|\\(" |