[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Why M-x highlight-regexp does not work after sort in tabulated-list-
From: |
Michael Heerdegen |
Subject: |
Re: Why M-x highlight-regexp does not work after sort in tabulated-list-mode? |
Date: |
Wed, 31 Aug 2022 02:39:16 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) |
Jean Louis <bugs@gnu.support> writes:
> I am trying to understand this. Here is the problem, step by step:
>
> 1. {M-x package-list-packages RET}
>
> 2. {M-x highlight-regexp RET gnu RET RET} this will highlight word
> "gnu" everywhere
>
> 3. Click to sort the list by column like "Version"
>
> 4. Highlights are lost, and I can understand that.
>
> But {M-x highlight-regexp RET gnu RET RET} does not work any more
> at this point.
>
> This was already on the mailing list, but I have forgot what to do to
> remedy this.
It was your Bug#53771. We didn't come to a nice solution in that
report, so your memory is fine in that regard.
The problem was that you are working with a non-font-lock-mode buffer,
so highlighting is not automatically updated. OTOH, repeating
highlight-regexp with the same pattern does nothing. So I think you
must first remove the pattern (unhighlight) and then add it again. You
can try to do this automatically.
Michael.