From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Luc Teirlinck Newsgroups: gmane.emacs.devel Subject: Re: Unquoted special characters in regexps Date: Fri, 3 Mar 2006 07:51:47 -0600 (CST) Message-ID: <200603031351.k23Dplo19314@raven.dms.auburn.edu> References: <4400AD8E.5050001@gmx.at> <4400BBB1.2050800@gmx.at> <200602252213.k1PMDBP24413@raven.dms.auburn.edu> <4401A98D.3070809@gmx.at> <4401E0F2.7030800@gmx.at> <4401FCBA.1070206@gmx.at> <200602280030.k1S0UDE07149@raven.dms.auburn.edu> <44073C08.1070903@gmx.at> <200603022326.k22NQhZ05807@raven.dms.auburn.edu> <4407F349.8090202@gmx.at> NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1141470910 9206 80.91.229.2 (4 Mar 2006 11:15:10 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 4 Mar 2006 11:15:10 +0000 (UTC) Cc: schwab@suse.de, rms@gnu.org, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Mar 04 12:15:08 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FFUiq-0007Z4-TM for ged-emacs-devel@m.gmane.org; Sat, 04 Mar 2006 12:15:00 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FFUin-0001OX-UW for ged-emacs-devel@m.gmane.org; Sat, 04 Mar 2006 06:14:50 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FFTdD-0002H3-NR for emacs-devel@gnu.org; Sat, 04 Mar 2006 05:04:59 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FFTd7-0002DA-4Z for emacs-devel@gnu.org; Sat, 04 Mar 2006 05:04:56 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FFEUe-0005H5-QU for emacs-devel@gnu.org; Fri, 03 Mar 2006 12:55:10 -0500 Original-Received: from [131.204.53.104] (helo=manatee.dms.auburn.edu) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FFAnj-00071z-VL; Fri, 03 Mar 2006 08:58:36 -0500 Original-Received: from raven.dms.auburn.edu (raven.dms.auburn.edu [131.204.53.29]) by manatee.dms.auburn.edu (8.13.3+Sun/8.13.3) with ESMTP id k23DuZjO012322; Fri, 3 Mar 2006 07:56:35 -0600 (CST) Original-Received: (from teirllm@localhost) by raven.dms.auburn.edu (8.11.7p1+Sun/8.11.7) id k23Dplo19314; Fri, 3 Mar 2006 07:51:47 -0600 (CST) X-Authentication-Warning: raven.dms.auburn.edu: teirllm set sender to teirllm@dms.auburn.edu using -f Original-To: rudalics@gmx.at In-reply-to: <4407F349.8090202@gmx.at> (message from martin rudalics on Fri, 03 Mar 2006 08:42:01 +0100) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0.1 (manatee.dms.auburn.edu [131.204.53.104]); Fri, 03 Mar 2006 07:56:36 -0600 (CST) 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: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:51150 Archived-At: Martin Rudalics wrote: But you should occasionally think of less experienced programmers who try to guess the motivations for writing an expression like (string-match "[^\\]\\(\\([\\][\\]\\)*\\)\"[ \t,]*" definition start) in `mailalias.el'. It's got no less than three backslashes preceding non-escaped right brackets. Can you tell me what the author wants to match? Unless it really is too early in the morning for me, something that starts with something that is not a backslash, then an even number of backslashes, then a ", then a sequence of non-newline whitespace or commas. The one pair of \\(...\\) that is not needed for this meaning is probably meant for use with match-data. What is the point you are trying to make? That "[^\\]\\(\\(\\\\\\\\\\)*\\)\"[ \t,]*" would be easier to read? Not for me. Sincerely, Luc.