From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Clemente Subject: Re: Faces bug in org-indent-mode Date: Wed, 26 Aug 2009 13:42:16 +0200 Message-ID: <87k50qby3r.fsf@CPU107.opentrends.net> 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> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MgGtf-0000Qc-1S for emacs-orgmode@gnu.org; Wed, 26 Aug 2009 07:42:35 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MgGta-0000O2-1O for emacs-orgmode@gnu.org; Wed, 26 Aug 2009 07:42:34 -0400 Received: from [199.232.76.173] (port=51506 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MgGtZ-0000Nw-T0 for emacs-orgmode@gnu.org; Wed, 26 Aug 2009 07:42:29 -0400 Received: from mail-ew0-f211.google.com ([209.85.219.211]:44496) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MgGtY-00031w-GJ for emacs-orgmode@gnu.org; Wed, 26 Aug 2009 07:42:29 -0400 Received: by ewy7 with SMTP id 7so64123ewy.31 for ; Wed, 26 Aug 2009 04:42:26 -0700 (PDT) In-Reply-To: <9D4BBA1C-659F-4E2F-83FC-E31D2F350CCE@gmail.com> (Carsten Dominik's message of "Tue, 25 Aug 2009 09:56:07 +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: Carsten Dominik Cc: org-mode list 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, commen= t, text, =E2=80=A6 Based on the context, you choose one or another. To know the context, the= re may be some text property set at each point. If Emacs had a way to check for a text property (or even a face) inside a= regexp, this could be easier. You could still use a single expression whic= h would direct to the context-specific part, like in: \p{heading}REGEXP_ON= LY_FOR_HEADINGS\|\p{table}REGEXP_FOR_TABLES\|=E2=80=A6 where \p{property}= is the proposed addition to Emacs regexps. This was a minor issue, but making Emacs regexps more powerful would be n= ice. -- Daniel =20=20