From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Andreas Schwab Newsgroups: gmane.emacs.bugs Subject: Re: Occur buglet Date: Wed, 10 Mar 2004 00:16:37 +0100 Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1079057751 10403 80.91.224.253 (12 Mar 2004 02:15:51 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 12 Mar 2004 02:15:51 +0000 (UTC) Cc: bug-gnu-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Mar 12 03:15:39 2004 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1B1cD4-0002DI-00 for ; Fri, 12 Mar 2004 03:15:39 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1B1WS3-0007Lm-L0 for geb-bug-gnu-emacs@m.gmane.org; Thu, 11 Mar 2004 15:06:43 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.30) id 1B0qTN-0005tf-JG for bug-gnu-emacs@gnu.org; Tue, 09 Mar 2004 18:17:17 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30) id 1B0qSp-0005lp-LQ for bug-gnu-emacs@gnu.org; Tue, 09 Mar 2004 18:17:16 -0500 Original-Received: from [195.135.220.2] (helo=Cantor.suse.de) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.30) id 1B0qSp-0005lW-3b; Tue, 09 Mar 2004 18:16:43 -0500 Original-Received: from hermes.suse.de (Hermes.suse.de [195.135.221.8]) (using TLSv1 with cipher EDH-RSA-DES-CBC3-SHA (168/168 bits)) (No client certificate requested) by Cantor.suse.de (Postfix) with ESMTP id 05A2B2C5D02; Wed, 10 Mar 2004 00:16:38 +0100 (CET) Original-To: Morten Welinder X-Yow: I've got to get these SNACK CAKES to NEWARK by DAWN!! In-Reply-To: (Morten Welinder's message of "Fri, 05 Mar 2004 14:50:50 -0500") User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3.50 (gnu/linux) X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.bugs:7245 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:7245 Morten Welinder writes: > On fencepost.gnu.org (Emacs 21.2.1) with a buffer containing > > -------------------------------------------- > +++ > + > hi > xxx > -------------------------------------------- > > I do the command `M-x occur RET ^[+][^+] RET' and get > > -------------------------------------------- > 1 line matching "^[+][^+]" in buffer *scratch*. > 2:+ > : hi > -------------------------------------------- > > It is debatable whether there should be a match -- grep would not have > found it -- but the listed thing is not one line, but two. Not a bug. [^+] matches newline in Emacs, but not in grep. The second line is actually part of the first match. Andreas. --=20 Andreas Schwab, SuSE Labs, schwab@suse.de SuSE Linux AG, Maxfeldstra=DFe 5, 90409 N=FCrnberg, Germany Key fingerprint =3D 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."