bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Occur buglet


From: Andreas Schwab
Subject: Re: Occur buglet
Date: Wed, 10 Mar 2004 00:16:37 +0100
User-agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3.50 (gnu/linux)

Morten Welinder <address@hidden> 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.

-- 
Andreas Schwab, SuSE Labs, address@hidden
SuSE Linux AG, Maxfeldstraße 5, 90409 Nürnberg, Germany
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."




reply via email to

[Prev in Thread] Current Thread [Next in Thread]