From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.devel Subject: Re: info faces for strings and quotations Date: Thu, 07 Oct 2004 18:35:00 +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 1097166943 14313 80.91.229.6 (7 Oct 2004 16:35:43 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 7 Oct 2004 16:35:43 +0000 (UTC) Cc: Juri Linkov , bob@rattlesnake.com, Stefan Monnier , Drew Adams , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Oct 07 18:35:34 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 1CFbEs-0002jg-00 for ; Thu, 07 Oct 2004 18:35:34 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CFbLc-0006kg-LL for ged-emacs-devel@m.gmane.org; Thu, 07 Oct 2004 12:42:32 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CFbLU-0006kR-DL for emacs-devel@gnu.org; Thu, 07 Oct 2004 12:42:24 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CFbLT-0006kF-VH for emacs-devel@gnu.org; Thu, 07 Oct 2004 12:42:24 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CFbLT-0006kC-T5 for emacs-devel@gnu.org; Thu, 07 Oct 2004 12:42:23 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CFbEQ-0000WH-BZ for emacs-devel@gnu.org; Thu, 07 Oct 2004 12:35:06 -0400 Original-Received: from localhost ([127.0.0.1] helo=lola.goethe.zz) by fencepost.gnu.org with esmtp (Exim 4.34) id 1CFbEM-0004GA-Hy; Thu, 07 Oct 2004 12:35:03 -0400 Original-To: storm@cua.dk (Kim F. Storm) In-Reply-To: (Kim F. Storm's message of "Thu, 07 Oct 2004 17:13:58 +0200") 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:28037 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:28037 storm@cua.dk (Kim F. Storm) writes: > 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 ) That's too ad-hoc. Rather use \{0,,2} and \{1,,2}. Anyway, it does not buy much that I can see here: you still need to make sure that there is no leading \ before the expression in question. -- David Kastrup, Kriemhildstr. 15, 44793 Bochum