unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Andreas Schwab <schwab@suse.de>
Cc: bug-gnu-emacs@gnu.org
Subject: Re: Occur buglet
Date: Wed, 10 Mar 2004 00:16:37 +0100	[thread overview]
Message-ID: <jeishdk3vu.fsf@sykes.suse.de> (raw)
In-Reply-To: <E1AzLLO-0007Bo-BD@fencepost.gnu.org> (Morten Welinder's message of "Fri, 05 Mar 2004 14:50:50 -0500")

Morten Welinder <terra@gnu.org> 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, schwab@suse.de
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	other threads:[~2004-03-09 23:16 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-03-05 19:50 Occur buglet Morten Welinder
2004-03-09 23:16 ` Andreas Schwab [this message]
2004-03-10  8:27 ` era

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=jeishdk3vu.fsf@sykes.suse.de \
    --to=schwab@suse.de \
    --cc=bug-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).