From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.devel Subject: Re: Unquoted special characters in regexps Date: Sat, 04 Mar 2006 15:40:54 +0100 Message-ID: <4409A6F6.6070902@gmx.at> 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> <44085EC5.7080806@gmx.at> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1141491124 4509 80.91.229.2 (4 Mar 2006 16:52:04 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 4 Mar 2006 16:52:04 +0000 (UTC) Cc: schwab@suse.de, teirllm@dms.auburn.edu, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Mar 04 17:52:02 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 1FFZyz-0001UA-ME for ged-emacs-devel@m.gmane.org; Sat, 04 Mar 2006 17:51:54 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FFZz2-0003op-0i for ged-emacs-devel@m.gmane.org; Sat, 04 Mar 2006 11:51:56 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FFXwI-0005V4-GB for emacs-devel@gnu.org; Sat, 04 Mar 2006 09:40:58 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FFXwE-0005Rf-C8 for emacs-devel@gnu.org; Sat, 04 Mar 2006 09:40:57 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FFXwD-0005R8-Es for emacs-devel@gnu.org; Sat, 04 Mar 2006 09:40:53 -0500 Original-Received: from [213.165.64.20] (helo=mail.gmx.net) by monty-python.gnu.org with smtp (Exim 4.52) id 1FFXy5-00044S-TI for emacs-devel@gnu.org; Sat, 04 Mar 2006 09:42:50 -0500 Original-Received: (qmail invoked by alias); 04 Mar 2006 14:40:47 -0000 Original-Received: from M3139P012.adsl.highway.telekom.at (EHLO [88.117.40.76]) [88.117.40.76] by mail.gmx.net (mp039) with SMTP; 04 Mar 2006 15:40:47 +0100 X-Authenticated: #14592706 User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: de-DE, de, en-us, en Original-To: rms@gnu.org In-Reply-To: X-Y-GMX-Trusted: 0 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:51180 Archived-At: > I don't understand what that means. What exactly is the task you > believe will be impossible? As far as I know, it will still generate > correct regexps, just somewhat different ones. Suppose someone wanted to match `[foo]' in an earlier version of a program and now wants to match `[foo][bar]' where `[foo]' and `[bar]' are complicated expressions to be generated with help of `regexp-opt'. The earlier version was obtained with `regexp-opt' producing `\\[foo\\]'. For the new version `regexp-opt' would generate `\\[bar]'. The resulting expression would read as `\\[foo\\]\\[bar]' which is confusing since two different styles are involved. The user would have to manually change `\\]' to `]' (or `]' to `\\]') to get a uniform appearance.