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:44:19 +0200 Message-ID: <877i1fib3g.fsf@thinkpad.tsdh.de> References: <7b501d5c0904200725r5f2590d6p4ca430c44abd007c@mail.gmail.com> <87fxg3id11.fsf@thinkpad.tsdh.de> <7b501d5c0904200809v6e30996an8b76dce4abdf85a5@mail.gmail.com> <7b501d5c0904200810g2e85fd10v2daf644a9e12e7b5@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 1240242427 5411 80.91.229.12 (20 Apr 2009 15:47:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 20 Apr 2009 15:47:07 +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:48:27 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 1LvvjI-0001TA-Rs for ged-emacs-devel@m.gmane.org; Mon, 20 Apr 2009 17:48:21 +0200 Original-Received: from localhost ([127.0.0.1]:36755 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Lvvhu-0007A5-0Q for ged-emacs-devel@m.gmane.org; Mon, 20 Apr 2009 11:46:54 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Lvvfa-0005h6-9B for emacs-devel@gnu.org; Mon, 20 Apr 2009 11:44:30 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LvvfS-0005ch-JA for emacs-devel@gnu.org; Mon, 20 Apr 2009 11:44:27 -0400 Original-Received: from [199.232.76.173] (port=56762 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LvvfS-0005cU-8S for emacs-devel@gnu.org; Mon, 20 Apr 2009 11:44:22 -0400 Original-Received: from deliver.uni-koblenz.de ([141.26.64.15]:2378) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LvvfR-0004qm-Kh for emacs-devel@gnu.org; Mon, 20 Apr 2009 11:44:21 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by deliver.uni-koblenz.de (Postfix) with ESMTP id EF6FE789B921; Mon, 20 Apr 2009 17:44:20 +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 29976-10; Mon, 20 Apr 2009 17:44:20 +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 DE2E6789B91E; Mon, 20 Apr 2009 17:44:19 +0200 (CEST) Mail-Copies-To: never Mail-Followup-To: Deniz Dogan , emacs-devel@gnu.org In-Reply-To: <7b501d5c0904200810g2e85fd10v2daf644a9e12e7b5@mail.gmail.com> (Deniz Dogan's message of "Mon, 20 Apr 2009 17:10:51 +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:110367 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? >> >> Yes, I tried this with emacs -Q and I still experience the same >> behaviour. FWIW, here's the output from view-lossage: > > And oh, yeah, I'm using Emacs 23.0.92.1. Oh, I can reproduce this problem using "emacs -Q" and M-x view-hello-file RET followed by your recipe. It's not possible to highlight lines matching the previous regexp altogether. No matter if I use the default (previous) value at the highlight-lines-matching-regexp prompt or if I enter the regexp anew, nothing will be highlighted. Different regexps work, though. But if I try the same and use my ~/.emacs as file, it works as expected. Maybe it's related to some encoding issues? The HELLO file uses iso-2022-7bit-unix whereas my ~/.emacs uses utf-8-unix. Bye, Tassilo