From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.devel Subject: Re: Bug in highlight-lines-matching-regexp? Date: Mon, 20 Apr 2009 17:02:34 +0200 Message-ID: <87fxg3id11.fsf@thinkpad.tsdh.de> References: <7b501d5c0904200725r5f2590d6p4ca430c44abd007c@mail.gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1240240452 30802 80.91.229.12 (20 Apr 2009 15:14:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 20 Apr 2009 15:14:12 +0000 (UTC) Cc: emacs-devel@gnu.org To: Deniz Dogan Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Apr 20 17:15:31 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LvvDD-0005Yb-PM for ged-emacs-devel@m.gmane.org; Mon, 20 Apr 2009 17:15:12 +0200 Original-Received: from localhost ([127.0.0.1]:50977 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LvvBo-0004pH-AF for ged-emacs-devel@m.gmane.org; Mon, 20 Apr 2009 11:13:44 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Lvv19-0007eV-Ka for emacs-devel@gnu.org; Mon, 20 Apr 2009 11:02:43 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Lvv14-0007a9-Gz for emacs-devel@gnu.org; Mon, 20 Apr 2009 11:02:42 -0400 Original-Received: from [199.232.76.173] (port=57205 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Lvv14-0007a0-5j for emacs-devel@gnu.org; Mon, 20 Apr 2009 11:02:38 -0400 Original-Received: from deliver.uni-koblenz.de ([141.26.64.15]:21345) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Lvv13-0000ZT-JC for emacs-devel@gnu.org; Mon, 20 Apr 2009 11:02:37 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by deliver.uni-koblenz.de (Postfix) with ESMTP id 09031789B3A6; Mon, 20 Apr 2009 17:02:36 +0200 (CEST) Original-Received: from deliver.uni-koblenz.de ([127.0.0.1]) by localhost (deliver.uni-koblenz.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 09225-02; Mon, 20 Apr 2009 17:02:35 +0200 (CEST) X-CHKRCPT: Envelopesender vrfy tassilo@member.fsf.org Original-Received: from thinkpad.tsdh.de (dhcp61.uni-koblenz.de [141.26.71.61]) by deliver.uni-koblenz.de (Postfix) with ESMTP id E1724789B27D; Mon, 20 Apr 2009 17:02:34 +0200 (CEST) Mail-Copies-To: never Mail-Followup-To: Deniz Dogan , emacs-devel@gnu.org In-Reply-To: <7b501d5c0904200725r5f2590d6p4ca430c44abd007c@mail.gmail.com> (Deniz Dogan's message of "Mon, 20 Apr 2009 16:25:42 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.92 (gnu/linux) X-Virus-Scanned: amavisd-new at uni-koblenz.de X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:110362 Archived-At: Deniz Dogan writes: Hi Deniz, > I recently found some strange behavior in the highlighting > functionality provided by highlight-lines-matching-regexp. I'm not > sure whether this is a bug or not, which is why I'm asking. > > Reproduction: > 1. Open a text file with any relevant contents. > 2. M-x highlight-lines-matching-regexp and highlight something in the file. > 3. M-x revert-buffer RET yes RET > 4. Now the highlighting is gone, which I can accept, however... > 5. M-x highlight-lines-matching-regexp RET RET > 6. Nothing is highlighted this second time! > > Is this a bug or expected behavior? I've just tried it, and it works for me as it should when reusing the previous regexp (which is the default) in step 5. Did you try with "emacs -Q" to be sure that no local customization causes the breakage? Bye, Tassilo