From unknown Mon Aug 18 09:06:07 2025 X-Loop: help-debbugs@gnu.org Subject: bug#19796: 25.0.50; Regression: highlight-lines-matching-regexp can't re-highlight the same string Resent-From: Dima Kogan Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 07 Feb 2015 06:58:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 19796 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 19796@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.142329226830219 (code B ref -1); Sat, 07 Feb 2015 06:58:02 +0000 Received: (at submit) by debbugs.gnu.org; 7 Feb 2015 06:57:48 +0000 Received: from localhost ([127.0.0.1]:36024 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YJzKt-0007rL-OU for submit@debbugs.gnu.org; Sat, 07 Feb 2015 01:57:48 -0500 Received: from eggs.gnu.org ([208.118.235.92]:60014) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YJzKr-0007r7-I7 for submit@debbugs.gnu.org; Sat, 07 Feb 2015 01:57:46 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YJzKl-0001KU-E0 for submit@debbugs.gnu.org; Sat, 07 Feb 2015 01:57:40 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:43952) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YJzKl-0001KC-Bc for submit@debbugs.gnu.org; Sat, 07 Feb 2015 01:57:39 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33496) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YJzKk-0003Az-E9 for bug-gnu-emacs@gnu.org; Sat, 07 Feb 2015 01:57:39 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YJzKg-0001JF-Dm for bug-gnu-emacs@gnu.org; Sat, 07 Feb 2015 01:57:38 -0500 Received: from out1-smtp.messagingengine.com ([66.111.4.25]:35928) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YJzKg-0001J4-91 for bug-gnu-emacs@gnu.org; Sat, 07 Feb 2015 01:57:34 -0500 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 769E6202F8 for ; Sat, 7 Feb 2015 01:57:32 -0500 (EST) Received: from frontend2 ([10.202.2.161]) by compute4.internal (MEProxy); Sat, 07 Feb 2015 01:57:32 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=secretsauce.net; h=x-sasl-enc:from:to:subject:date:message-id:mime-version :content-type; s=mesmtp; bh=bRNmXDYHakhiNpAtl3KKbaeOMVw=; b=QUtH Jo8LQjffWIudWfUAWrr4sPXZFFmEhJsYLgq7n6JSdrXLH3ePnEVkXkV19LSc9Gsc kMhPT2NMfvBCd/CwkKyI2XNoSnttgkjHWY095Vo/uSg8O7isoFUP9xxrPaQdefUL MNe2Nb8yhRsTTmhr11H6q/6whPsT1zf9ajlcWio= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=x-sasl-enc:from:to:subject:date :message-id:mime-version:content-type; s=smtpout; bh=bRNmXDYHakh iNpAtl3KKbaeOMVw=; b=C244dI/q08KEMHVlbKBrUC5FNmYux/jdfX4QQpmy9gm YL3CqwaDozcn9WQaq0RjvOpvzH2jax0m3GM+J+1X2hDWJ0PpYwkMiNX7vJ3kG8aH a3jZEZY6p+W17f6p1PuY7b6G1NIGOHL8NIBZ7jGnP8y21Y7knoFjpDJthimoaxRg = X-Sasl-enc: Tg5yYgREZ+efaRXzyxEQoA8kGrmN2wefIwi3jxVL7bSk 1423292252 Received: from shorty.local (unknown [76.91.145.213]) by mail.messagingengine.com (Postfix) with ESMTPA id 2FBB2680073 for ; Sat, 7 Feb 2015 01:57:32 -0500 (EST) Received: from localhost ([::1] helo=shorty) by shorty.local with esmtp (Exim 4.84) (envelope-from ) id 1YJzKc-0003DE-SX for bug-gnu-emacs@gnu.org; Fri, 06 Feb 2015 22:57:30 -0800 From: Dima Kogan Date: Fri, 06 Feb 2015 22:57:30 -0800 Message-ID: <87oap6fbtx.fsf@secretsauce.net> MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) Hi. The following commit broke some hi-lock functionality: commit 6711a21f1125c0047c56eb266eb374c1ec90a967 Author: Stefan Monnier Date: Wed May 28 23:45:29 2014 -0400 ... * lisp/hi-lock.el (hi-lock-mode, hi-lock-unface-buffer) (hi-lock-set-pattern, hi-lock-set-file-patterns): Use font-lock-flush. ... Recipe to reproduce: 1. seq 1000 > /tmp/dat 2. emacs -Q /tmp/dat 3. M-s h l 7 (highlight all lines matching "7") 4. M-s h u [enter] (un-highlight the default, "7" in this case) 5. M-s h l 7 (highlight all lines matching "7" again) After that commit, nothing is highlighted anymore From unknown Mon Aug 18 09:06:07 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.503 (Entity 5.503) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Dima Kogan Subject: bug#19796: closed (Re: bug#19796: 25.0.50; Regression: highlight-lines-matching-regexp can't re-highlight the same string) Message-ID: References: <87oap6fbtx.fsf@secretsauce.net> X-Gnu-PR-Message: they-closed 19796 X-Gnu-PR-Package: emacs Reply-To: 19796@debbugs.gnu.org Date: Wed, 11 Feb 2015 21:43:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1423690982-9188-1" This is a multi-part message in MIME format... ------------=_1423690982-9188-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #19796: 25.0.50; Regression: highlight-lines-matching-regexp can't re-highl= ight the same string which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 19796@debbugs.gnu.org. --=20 19796: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D19796 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1423690982-9188-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 19796-done) by debbugs.gnu.org; 11 Feb 2015 21:42:07 +0000 Received: from localhost ([127.0.0.1]:40365 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YLf2s-0002Mx-ST for submit@debbugs.gnu.org; Wed, 11 Feb 2015 16:42:07 -0500 Received: from mercure.iro.umontreal.ca ([132.204.24.67]:41529) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YLf2r-0002Mq-HQ for 19796-done@debbugs.gnu.org; Wed, 11 Feb 2015 16:42:05 -0500 Received: from hidalgo.iro.umontreal.ca (hidalgo.iro.umontreal.ca [132.204.27.50]) by mercure.iro.umontreal.ca (Postfix) with ESMTP id 1A31D85EAD; Wed, 11 Feb 2015 16:42:05 -0500 (EST) Received: from lechon.iro.umontreal.ca (lechon.iro.umontreal.ca [132.204.27.242]) by hidalgo.iro.umontreal.ca (Postfix) with ESMTP id 0CC201E5B8D; Wed, 11 Feb 2015 16:41:42 -0500 (EST) Received: by lechon.iro.umontreal.ca (Postfix, from userid 20848) id E5286B4102; Wed, 11 Feb 2015 16:41:41 -0500 (EST) From: Stefan Monnier To: Dima Kogan Subject: Re: bug#19796: 25.0.50; Regression: highlight-lines-matching-regexp can't re-highlight the same string Message-ID: References: <87oap6fbtx.fsf@secretsauce.net> Date: Wed, 11 Feb 2015 16:41:41 -0500 In-Reply-To: <87oap6fbtx.fsf@secretsauce.net> (Dima Kogan's message of "Fri, 06 Feb 2015 22:57:30 -0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-DIRO-MailScanner-Information: Please contact the ISP for more information X-DIRO-MailScanner: Found to be clean X-DIRO-MailScanner-SpamCheck: n'est pas un polluriel, SpamAssassin (score=-2.82, requis 5, autolearn=not spam, ALL_TRUSTED -2.82, MC_TSTLAST 0.00) X-DIRO-MailScanner-From: monnier@iro.umontreal.ca X-Spam-Status: No X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 19796-done Cc: 19796-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) > 1. seq 1000 > /tmp/dat > 2. emacs -Q /tmp/dat > 3. M-s h l 7 (highlight all lines matching "7") > 4. M-s h u [enter] (un-highlight the default, "7" in this case) > 5. M-s h l 7 (highlight all lines matching "7" again) > After that commit, nothing is highlighted anymore Yuck, the old behavior looked right but was subtly wrong (the highlighting at step 5 was done via font-lock whereas it was done with overlays at step 3), and the recent change made the difference "more visible" ;-) The real problem is in font-lock, I think, but I don't have the courage to fix it now, so I've installed a workaround that I hope will be sufficient. Stefan ------------=_1423690982-9188-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 7 Feb 2015 06:57:48 +0000 Received: from localhost ([127.0.0.1]:36024 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YJzKt-0007rL-OU for submit@debbugs.gnu.org; Sat, 07 Feb 2015 01:57:48 -0500 Received: from eggs.gnu.org ([208.118.235.92]:60014) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YJzKr-0007r7-I7 for submit@debbugs.gnu.org; Sat, 07 Feb 2015 01:57:46 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YJzKl-0001KU-E0 for submit@debbugs.gnu.org; Sat, 07 Feb 2015 01:57:40 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:43952) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YJzKl-0001KC-Bc for submit@debbugs.gnu.org; Sat, 07 Feb 2015 01:57:39 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33496) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YJzKk-0003Az-E9 for bug-gnu-emacs@gnu.org; Sat, 07 Feb 2015 01:57:39 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YJzKg-0001JF-Dm for bug-gnu-emacs@gnu.org; Sat, 07 Feb 2015 01:57:38 -0500 Received: from out1-smtp.messagingengine.com ([66.111.4.25]:35928) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YJzKg-0001J4-91 for bug-gnu-emacs@gnu.org; Sat, 07 Feb 2015 01:57:34 -0500 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 769E6202F8 for ; Sat, 7 Feb 2015 01:57:32 -0500 (EST) Received: from frontend2 ([10.202.2.161]) by compute4.internal (MEProxy); Sat, 07 Feb 2015 01:57:32 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=secretsauce.net; h=x-sasl-enc:from:to:subject:date:message-id:mime-version :content-type; s=mesmtp; bh=bRNmXDYHakhiNpAtl3KKbaeOMVw=; b=QUtH Jo8LQjffWIudWfUAWrr4sPXZFFmEhJsYLgq7n6JSdrXLH3ePnEVkXkV19LSc9Gsc kMhPT2NMfvBCd/CwkKyI2XNoSnttgkjHWY095Vo/uSg8O7isoFUP9xxrPaQdefUL MNe2Nb8yhRsTTmhr11H6q/6whPsT1zf9ajlcWio= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=x-sasl-enc:from:to:subject:date :message-id:mime-version:content-type; s=smtpout; bh=bRNmXDYHakh iNpAtl3KKbaeOMVw=; b=C244dI/q08KEMHVlbKBrUC5FNmYux/jdfX4QQpmy9gm YL3CqwaDozcn9WQaq0RjvOpvzH2jax0m3GM+J+1X2hDWJ0PpYwkMiNX7vJ3kG8aH a3jZEZY6p+W17f6p1PuY7b6G1NIGOHL8NIBZ7jGnP8y21Y7knoFjpDJthimoaxRg = X-Sasl-enc: Tg5yYgREZ+efaRXzyxEQoA8kGrmN2wefIwi3jxVL7bSk 1423292252 Received: from shorty.local (unknown [76.91.145.213]) by mail.messagingengine.com (Postfix) with ESMTPA id 2FBB2680073 for ; Sat, 7 Feb 2015 01:57:32 -0500 (EST) Received: from localhost ([::1] helo=shorty) by shorty.local with esmtp (Exim 4.84) (envelope-from ) id 1YJzKc-0003DE-SX for bug-gnu-emacs@gnu.org; Fri, 06 Feb 2015 22:57:30 -0800 From: Dima Kogan To: bug-gnu-emacs@gnu.org Subject: 25.0.50; Regression: highlight-lines-matching-regexp can't re-highlight the same string Date: Fri, 06 Feb 2015 22:57:30 -0800 Message-ID: <87oap6fbtx.fsf@secretsauce.net> MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) Hi. The following commit broke some hi-lock functionality: commit 6711a21f1125c0047c56eb266eb374c1ec90a967 Author: Stefan Monnier Date: Wed May 28 23:45:29 2014 -0400 ... * lisp/hi-lock.el (hi-lock-mode, hi-lock-unface-buffer) (hi-lock-set-pattern, hi-lock-set-file-patterns): Use font-lock-flush. ... Recipe to reproduce: 1. seq 1000 > /tmp/dat 2. emacs -Q /tmp/dat 3. M-s h l 7 (highlight all lines matching "7") 4. M-s h u [enter] (un-highlight the default, "7" in this case) 5. M-s h l 7 (highlight all lines matching "7" again) After that commit, nothing is highlighted anymore ------------=_1423690982-9188-1--