From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Kim F. Storm" Newsgroups: gmane.emacs.devel Subject: Problem with occur: unexpected regexp mangling Date: Tue, 25 Jun 2002 08:36:26 +0000 (GMT) Sender: emacs-devel-admin@gnu.org Message-ID: <20020625083626.336A97C016@mail.filanet.dk> NNTP-Posting-Host: localhost.gmane.org X-Trace: main.gmane.org 1024994370 25365 127.0.0.1 (25 Jun 2002 08:39:30 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 25 Jun 2002 08:39:30 +0000 (UTC) Cc: emacs-devel@gnu.org Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 17MlrG-0006b0-00 for ; Tue, 25 Jun 2002 10:39:30 +0200 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 17Mlso-0003v2-00 for ; Tue, 25 Jun 2002 10:41:06 +0200 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 17Mlqx-0005mx-00; Tue, 25 Jun 2002 04:39:11 -0400 Original-Received: from mail.filanet.dk ([195.215.206.179]) by fencepost.gnu.org with smtp (Exim 3.34 #1 (Debian)) id 17MloJ-0005P2-00 for ; Tue, 25 Jun 2002 04:36:27 -0400 Original-Received: from kfs.local.filanet.dk (kfs.local.filanet.dk [192.168.1.82]) by mail.filanet.dk (Postfix) with SMTP id 336A97C016; Tue, 25 Jun 2002 08:36:26 +0000 (GMT) Original-To: walters@debian.org Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:5184 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:5184 Hi Colin, I have a file with directives like <%?if%> <%?end%> I wanted to use occur to find these and tried the obvious: %\? message was: occur-1: Not enough arguments for format string I then tried %%\? But that returned: Searched 1 buffer; no matches for `%\?' I finally tried %%? And got what I wanted: Searched 1 buffer; 79 matches for `%?' But that's a pretty strange REGEXP to match %? :-) I don't think 21.1 did that.... -- Kim F. Storm http://www.cua.dk