emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-orgmode] Question aboug Regexp


From: Todd Neal
Subject: [Emacs-orgmode] Question aboug Regexp
Date: Mon, 22 May 2006 23:02:59 -0400
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.50 (gnu/linux)


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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]