From: Andreas Schwab <schwab@suse.de>
Cc: bug-gnu-emacs@gnu.org
Subject: Re: M-x occur bug: ^[^%]+'
Date: Mon, 27 Jan 2003 12:04:35 +0100 [thread overview]
Message-ID: <jer8ayn9a4.fsf@sykes.suse.de> (raw)
In-Reply-To: <200301270127.h0R1RlG03307@f7.net> (karl@freefriends.org's message of "Sun, 26 Jan 2003 20:27:47 -0500")
karl@freefriends.org (Karl Berry) writes:
|> Emacs 21.2, gnu/linux 2.4.18-14 (red hat 8.0).
|>
|> $ emacs -q --no-site testfile # contents of testfile below
|> M-x occur RET
|> ^[^%]+' RET
|>
|> Resulting *Occur* buffer:
|>
|> 3 lines matching "^[^%]+'" in buffer test/tmp.
|> 38: \errhelp = \EMsimple
|> 39: \errmessage{Undefined command `@end \endthing'}%
|> 52: \errhelp = \EMsimple
|> 53: \errmessage{This `@end #1' doesn't have a matching `@#1'}%
|> 92:\let\, = \c
|> 93:\let\dotaccent = \.
|> 94:\def\ringaccent#1{{\accent23 #1}}
|> 95:\let\tieaccent = \t
|> 96:\let\ubaraccent = \b
|> 97:\let\udotaccent = \d
|> 98:\let\acuteaccent = \' % workaround aux file using ' as escape
|>
|>
|> The three matches it found are correct (on lines 39, 53, and 98).
|> However, it is also showing a number of lines that do not match.
Note that [^%] includes the newline character, thus you have three matches
each spanning multiple lines.
Andreas.
--
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux AG, Deutschherrnstr. 15-19, D-90429 Nürnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
prev parent reply other threads:[~2003-01-27 11:04 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-01-27 1:27 M-x occur bug: ^[^%]+' Karl Berry
2003-01-27 7:10 ` Dan Jacobson
2003-01-27 11:04 ` Andreas Schwab [this message]
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=jer8ayn9a4.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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.