From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: info faces for strings and quotations Date: Thu, 07 Oct 2004 13:01:09 -0400 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 1097168508 19183 80.91.229.6 (7 Oct 2004 17:01:48 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 7 Oct 2004 17:01:48 +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 19:01:39 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 1CFbe7-0005BG-00 for ; Thu, 07 Oct 2004 19:01:39 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CFbkr-0007uC-TZ for ged-emacs-devel@m.gmane.org; Thu, 07 Oct 2004 13:08:37 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CFbkg-0007tj-3n for emacs-devel@gnu.org; Thu, 07 Oct 2004 13:08:26 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CFbkf-0007tF-Ar for emacs-devel@gnu.org; Thu, 07 Oct 2004 13:08:25 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CFbkf-0007tC-8K for emacs-devel@gnu.org; Thu, 07 Oct 2004 13:08:25 -0400 Original-Received: from [132.204.24.67] (helo=mercure.iro.umontreal.ca) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CFbdf-0005mZ-7r; Thu, 07 Oct 2004 13:01:11 -0400 Original-Received: from hidalgo.iro.umontreal.ca (hidalgo.iro.umontreal.ca [132.204.27.50]) by mercure.iro.umontreal.ca (Postfix) with ESMTP id ED1A582828D; Thu, 7 Oct 2004 13:01:10 -0400 (EDT) Original-Received: from asado.iro.umontreal.ca (asado.iro.umontreal.ca [132.204.24.84]) by hidalgo.iro.umontreal.ca (Postfix) with ESMTP id F2BAF4AC05E; Thu, 7 Oct 2004 13:01:09 -0400 (EDT) Original-Received: by asado.iro.umontreal.ca (Postfix, from userid 20848) id A71FF8CA23; Thu, 7 Oct 2004 13:01:09 -0400 (EDT) Original-To: David Kastrup In-Reply-To: (David Kastrup's message of "Thu, 07 Oct 2004 17:13:47 +0200") User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3.50 (gnu/linux) X-DIRO-MailScanner-Information: Please contact the ISP for more information X-DIRO-MailScanner: Found to be clean X-DIRO-MailScanner-SpamCheck: n'est pas un polluriel, SpamAssassin (score=0, requis 5) X-MailScanner-From: monnier@iro.umontreal.ca 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:28042 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:28042 > If you don't need regexps, it is usually quite faster just to check with > (zerop (mod (save-excursion (skip-chars-backward "\\\\")) 2)) whether you > have an even number of preceding backslashes. That's true. The "\\(^\\|[^\\]\\)\\(\\\\\\\\\\)*" prefix can slow down regexp searching significantly. Stefan