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: Sun, 26 Feb 2006 14:20:26 +0100 Message-ID: <4401AB1A.6030409@gmx.at> References: <4400AD8E.5050001@gmx.at> <4400BBB1.2050800@gmx.at> <200602252234.k1PMY9A24651@raven.dms.auburn.edu> 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 1140987929 29156 80.91.229.2 (26 Feb 2006 21:05:29 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 26 Feb 2006 21:05:29 +0000 (UTC) Cc: schwab@suse.de, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Feb 26 22:05:27 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 1FDT52-0004YD-HV for ged-emacs-devel@m.gmane.org; Sun, 26 Feb 2006 22:05:24 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FDT4x-0006br-8j for ged-emacs-devel@m.gmane.org; Sun, 26 Feb 2006 16:05:21 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FDLoV-0003Fu-9m for emacs-devel@gnu.org; Sun, 26 Feb 2006 08:19:51 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FDLoQ-0003Dk-3z for emacs-devel@gnu.org; Sun, 26 Feb 2006 08:19:48 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FDLoN-0003DG-Ob for emacs-devel@gnu.org; Sun, 26 Feb 2006 08:19:44 -0500 Original-Received: from [213.165.64.20] (helo=mail.gmx.net) by monty-python.gnu.org with smtp (Exim 4.52) id 1FDLor-0005aU-NP for emacs-devel@gnu.org; Sun, 26 Feb 2006 08:20:14 -0500 Original-Received: (qmail invoked by alias); 26 Feb 2006 13:19:36 -0000 Original-Received: from M3194P030.adsl.highway.telekom.at (EHLO [88.117.47.62]) [88.117.47.62] by mail.gmx.net (mp019) with SMTP; 26 Feb 2006 14:19:36 +0100 X-Authenticated: #14592706 User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: de-DE, de, en-us, en Original-To: Luc Teirlinck In-Reply-To: <200602252234.k1PMY9A24651@raven.dms.auburn.edu> 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:50990 Archived-At: >>From my previous message: > > But "quoting" `]' by writing "[]]" instead of just `]', seems > contorted, even though it would be less confusing than "\\]". > > But if you *really* want to emphasize that the `]' does not close a > character alternative, "[]]" is the only way I know to do that. > "\\]" does not do the job. I didn't care about `]'s closing a character alternative. I did care about `]'s appearing in regular expressions _outside_ a character alternative and meant to match the character `]'. Such `]'s should be quoted just like `.', `*', `+', `?', `[', `^', `$', and `\'.