I am looking at why the following link does not work:

[[elisp: (+ 1 2 3)]]

I think that the problem lies with this regexp:

     1  (defconst org-link-re-with-space2
     2    (concat
     3     "<?\\(" (mapconcat 'identity org-link-types "\\|") "\\):"
     4     "\\([^" org-non-link-chars " ]"
     5     "[^]\t\n\r]*"
     6     "[^" org-non-link-chars " ]\\)>?")
     7     "Matches a link with spaces, optional angular brackets around it.")


I am more used to PCRE so I may be incorrect, but is the "[^]" a typo?


Also we have the following definition:

(defconst org-non-link-chars "]\t\n\r<>")


Doesn't this make line 4 evaluate to:

"\\([^]\t\n\r<> ]"

or is the right-bracket escaped somehow?


Todd



_______________________________________________
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

Reply via email to