[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-orgmode] Re: Question aboug Regexp
From: |
Todd Neal |
Subject: |
[Emacs-orgmode] Re: Question aboug Regexp |
Date: |
Tue, 23 May 2006 00:10:40 -0400 |
User-agent: |
Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.50 (gnu/linux) |
Carsten Dominik <address@hidden> 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