From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: storm@cua.dk (Kim F. Storm) Newsgroups: gmane.emacs.devel Subject: Re: info faces for strings and quotations Date: Thu, 07 Oct 2004 17:13:58 +0200 Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1097162212 31554 80.91.229.6 (7 Oct 2004 15:16:52 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 7 Oct 2004 15:16:52 +0000 (UTC) Cc: Juri Linkov , bob@rattlesnake.com, Drew Adams , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Oct 07 17:16:28 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CFa0J-0003QZ-00 for ; Thu, 07 Oct 2004 17:16:27 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CFa73-0006fx-0w for ged-emacs-devel@m.gmane.org; Thu, 07 Oct 2004 11:23:25 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CFa55-0005fT-1M for emacs-devel@gnu.org; Thu, 07 Oct 2004 11:21:23 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CFa52-0005dx-9q for emacs-devel@gnu.org; Thu, 07 Oct 2004 11:21:20 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CFa52-0005dj-44 for emacs-devel@gnu.org; Thu, 07 Oct 2004 11:21:20 -0400 Original-Received: from [212.88.64.25] (helo=mail-relay.sonofon.dk) by monty-python.gnu.org with smtp (Exim 4.34) id 1CFZxt-0005Cx-6H for emacs-devel@gnu.org; Thu, 07 Oct 2004 11:13:57 -0400 Original-Received: (qmail 48516 invoked from network); 7 Oct 2004 15:13:55 -0000 Original-Received: from unknown (HELO kfs-l.imdomain.dk.cua.dk) (213.83.150.2) by 0 with SMTP; 7 Oct 2004 15:13:55 -0000 Original-To: Stefan Monnier In-Reply-To: (Stefan Monnier's message of "Thu, 07 Oct 2004 10:58:55 -0400") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/21.3.50 (gnu/linux) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:28032 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:28032 Stefan Monnier writes: >> 2. The pb of not interpreting " to begin a string if it is escaped (\") is >> no doubt fixable, at the risk of complicating the regexp. Suggested fixes >> welcome. > > Prefix the regexp with "\\(^\\|[^\\]\\)\\(\\\\\\\\\\)*". The (match-end) of > this regexp is guaranteed to not be preceded by an odd number > of backspashes. Wouldn't it be fairly trivial to enhance regex to recognize something like \\\{0,e} meaning an even (possibly zero) number of \'es. (likewise for \{0,o}, meaning an odd number of (or no) \'es ) -- Kim F. Storm http://www.cua.dk