From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Faces bug in org-indent-mode Date: Wed, 26 Aug 2009 14:26:43 +0200 Message-ID: <6C6F26CF-59F1-4193-B33F-73D94AA29DA2@gmail.com> References: <871vn6y5gy.fsf@CPU107.opentrends.net> <54F61D36-7A75-42B6-9AE5-FCDE2F373F4F@gmail.com> <87prapwhse.fsf@CPU107.opentrends.net> <9D4BBA1C-659F-4E2F-83FC-E31D2F350CCE@gmail.com> <87k50qby3r.fsf@CPU107.opentrends.net> Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=WINDOWS-1252; format=flowed; delsp=yes Content-Transfer-Encoding: quoted-printable Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MgHae-0004IZ-C6 for emacs-orgmode@gnu.org; Wed, 26 Aug 2009 08:27:00 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MgHaY-0004Es-Vq for emacs-orgmode@gnu.org; Wed, 26 Aug 2009 08:26:59 -0400 Received: from [199.232.76.173] (port=44061 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MgHaY-0004E9-M5 for emacs-orgmode@gnu.org; Wed, 26 Aug 2009 08:26:54 -0400 Received: from mail-ew0-f211.google.com ([209.85.219.211]:52610) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MgHaW-0002SF-Ge for emacs-orgmode@gnu.org; Wed, 26 Aug 2009 08:26:53 -0400 Received: by ewy7 with SMTP id 7so97921ewy.31 for ; Wed, 26 Aug 2009 05:26:48 -0700 (PDT) In-Reply-To: <87k50qby3r.fsf@CPU107.opentrends.net> 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: Daniel Clemente Cc: org-mode list On Aug 26, 2009, at 1:42 PM, Daniel Clemente wrote: > El dt, ago 25 2009 a les 09:56, Carsten Dominik va escriure: > >> thing will break. The real solution for this would be to >> switch to a programmed solution instead of a regular >> expression search. >> > Or many regular expressions, one for each context: table, heading, =20= > comment, text, =85 > Based on the context, you choose one or another. To know the =20 > context, there may be some text property set at each point. > If Emacs had a way to check for a text property (or even a face) =20 > inside a regexp, this could be easier. You could still use a single =20= > expression which would direct to the context-specific part, like =20 > in: \p{heading}REGEXP_ONLY_FOR_HEADINGS\|\p{table}REGEXP_FOR_TABLES=20= > \|=85 where \p{property} is the proposed addition to Emacs regexps. All we would really need are positive and negative look-ahead and look-behind assertions as the Perl regular expression allows them. - Carsten