From mboxrd@z Thu Jan 1 00:00:00 1970 From: Todd Neal Subject: Re: Question aboug Regexp Date: Tue, 23 May 2006 00:10:40 -0400 Message-ID: <87irnx4bzz.fsf@tolchz.net> References: <87lkstxx24.fsf@tolchz.net> <7f55ba6da92bc0c958dea27173f9e47b@science.uva.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FiOCw-00028z-Jt for emacs-orgmode@gnu.org; Tue, 23 May 2006 00:09:22 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FiOCu-00028n-EZ for emacs-orgmode@gnu.org; Tue, 23 May 2006 00:09:21 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FiOCu-00028k-8i for emacs-orgmode@gnu.org; Tue, 23 May 2006 00:09:20 -0400 Received: from [80.91.229.2] (helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1FiOH2-0002rb-JN for emacs-orgmode@gnu.org; Tue, 23 May 2006 00:13:36 -0400 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1FiOCr-0005xg-FE for emacs-orgmode@gnu.org; Tue, 23 May 2006 06:09:17 +0200 Received: from c-68-53-20-25.hsd1.ky.comcast.net ([68.53.20.25]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 23 May 2006 06:09:17 +0200 Received: from tolchz by c-68-53-20-25.hsd1.ky.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 23 May 2006 06:09:17 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Carsten Dominik 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