Carsten Dominik <[EMAIL PROTECTED]> writes:

> On May 23, 2006, at 5:02, Todd Neal wrote:
>
>>
>>
>> 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
>
>
> The regexp org-link-re-with-space2 requires that the first character
> after elisp: is not a space character.  This was originally to make
> sure that the following would not be matched as a link:
>
> I can explain you a feature in elisp: Parenthesis are everything.
>
> This is not documented properly, thanks for reporting this.
>
> In a regexp character class, the first character of a class is special
> and can be used to include character into he class which are otherwise
> difficult to get into a class, for example the minus "-" or a square
> bracket.  Since a character class [] or [^] is meaningless, this is a
> special case so that []] matches the closing bracket and [^]]
> everything besides the closing bracket.
>
> - Carsten

Thanks, I should have checked the info a bit more carefully.

Todd



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

Reply via email to