emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[debbugs-tracker] bug#19796: closed (25.0.50; Regression: highlight-line


From: GNU bug Tracking System
Subject: [debbugs-tracker] bug#19796: closed (25.0.50; Regression: highlight-lines-matching-regexp can't re-highlight the same string)
Date: Wed, 11 Feb 2015 21:43:01 +0000

Your message dated Wed, 11 Feb 2015 16:41:41 -0500
with message-id <address@hidden>
and subject line Re: bug#19796: 25.0.50; Regression: 
highlight-lines-matching-regexp can't re-highlight the same string
has caused the debbugs.gnu.org bug report #19796,
regarding 25.0.50; Regression: highlight-lines-matching-regexp can't 
re-highlight the same string
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden)


-- 
19796: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=19796
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- 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
Hi.

The following commit broke some hi-lock functionality:

commit 6711a21f1125c0047c56eb266eb374c1ec90a967
Author: Stefan Monnier <address@hidden>
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




--- End Message ---
--- Begin Message --- Subject: Re: bug#19796: 25.0.50; Regression: highlight-lines-matching-regexp can't re-highlight the same string Date: Wed, 11 Feb 2015 16:41:41 -0500 User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)
> 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


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]