unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Lars Ingebrigtsen <larsi@gnus.org>
To: Jean Louis <bugs@gnu.support>
Cc: 53771@debbugs.gnu.org
Subject: bug#53771: 29.0.50; highlight-regexp not working after tabulated-list-col-sort
Date: Sat, 05 Feb 2022 07:48:58 +0100	[thread overview]
Message-ID: <877da9erl1.fsf@gnus.org> (raw)
In-Reply-To: <86wnibdu15.fsf@protected.rcdrun.com> (Jean Louis's message of "Fri, 04 Feb 2022 09:29:10 +0300")

Jean Louis <bugs@gnu.support> writes:

> 1) M-x package-list-packages
>
> 2) M-x highlight-regexp RET parens RET and word "parens" will get
>    highlighted
>
> 3) Click on "Archive" title and sort the list by Archive column
>
> 4) M-x highlight-regexp RET parens RET and the word "parens" is not
>    highlighted. I would like to understand why. hi-lock mode remains
>    turned on.

As the doc string says:

---
Use Font lock mode, if enabled, to highlight REGEXP.  Otherwise,
use overlays for highlighting.  If overlays are used, the
highlighting will not update as you type.  The Font Lock mode
is considered "enabled" in a buffer if its ‘major-mode’
causes ‘font-lock-specified-p’ to return non-nil, which means
the major mode specifies support for Font Lock.
---

So in these modes, changing the text won't update the overlays, and
re-sorting them will remove the overlays altogether.  So I don't think
there's any bug here, and I'm therefore closing this bug report.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





  parent reply	other threads:[~2022-02-05  6:48 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-02-04  6:29 bug#53771: 29.0.50; highlight-regexp not working after tabulated-list-col-sort Jean Louis
2022-02-04  6:33 ` Jean Louis
2022-02-05  6:48 ` Lars Ingebrigtsen [this message]
2022-02-05  7:13   ` Jean Louis
2022-02-05  7:19     ` Lars Ingebrigtsen
2022-02-05 16:10       ` Jean Louis
2022-02-06  3:10         ` Michael Heerdegen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=877da9erl1.fsf@gnus.org \
    --to=larsi@gnus.org \
    --cc=53771@debbugs.gnu.org \
    --cc=bugs@gnu.support \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).