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 "^[^#]" gets next line too Date: Thu, 09 Oct 2003 11:50:19 +0200 Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: <87r81nzc7j.fsf@jidanni.org> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1065693119 13569 80.91.224.253 (9 Oct 2003 09:51:59 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 9 Oct 2003 09:51:59 +0000 (UTC) Cc: bug-gnu-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Oct 09 11:51:57 2003 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 1A7XSf-00045B-00 for ; Thu, 09 Oct 2003 11:51:57 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1A7XSb-0005vq-7e for geb-bug-gnu-emacs@m.gmane.org; Thu, 09 Oct 2003 05:51:53 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1A7XSY-0005vO-8P for bug-gnu-emacs@gnu.org; Thu, 09 Oct 2003 05:51:50 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1A7XS1-0005bX-D9 for bug-gnu-emacs@gnu.org; Thu, 09 Oct 2003 05:51:49 -0400 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.24) id 1A7XS0-0005bU-Rp for bug-gnu-emacs@gnu.org; Thu, 09 Oct 2003 05:51:17 -0400 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 5AB0F16CCB07; Thu, 9 Oct 2003 11:50:22 +0200 (CEST) Original-To: Dan Jacobson X-Yow: .. hubub, hubub, HUBUB, hubub, hubub, hubub, HUBUB, hubub, hubub, hubub. In-Reply-To: <87r81nzc7j.fsf@jidanni.org> (Dan Jacobson's message of "Thu, 09 Oct 2003 04:49:52 +0800") User-Agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3.50 (gnu/linux) X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 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:5945 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:5945 Dan Jacobson writes: > Well gosh, occur throws in the next line for free: > (occur "^[^#]" nil) > 79 lines matching "^[^#]" in buffer options. [^#] matches a newline. If you don't want that fix your regex. 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."