unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Michael Heerdegen <michael_heerdegen@web.de>
To: help-gnu-emacs@gnu.org
Cc: larsi@gnu.org, 53771@debbugs.gnu.org
Subject: bug#53771: Why M-x highlight-regexp does not work after sort in tabulated-list-mode?
Date: Fri, 02 Sep 2022 02:11:40 +0200	[thread overview]
Message-ID: <87y1v2fxdv.fsf@web.de> (raw)
In-Reply-To: <Yw7hOCgaYrqSs59J@protected.localdomain> (Jean Louis's message of "Wed, 31 Aug 2022 07:19:04 +0300")

Jean Louis <bugs@gnu.support> writes:

> Do you think that is error, and that hook shall be run after sorting?

I don't know what exactly you are doing, so it's hard to tell something
concrete.

tabulated-list is only a generic mode, so maybe it's better when the
implementations add hooks for operations when it makes sense.  In any
case, I don't think it's that mode's concern to implement features of
`hi-lock-mode' - which seems to be your intention.

Maybe it would be easier for you to just turn on font-lock-mode.  Have
you tried that?

Removing and re-adding pattern highlighting explicitly is only a
workaround.  If I would change anything then I would try to improve
hi-lock-mode instead so that it is easier to use under such
circumstances.  That `highlight-regexp' does nothing when font-lock-mode
is off (and no automatic highlighting can be assumed) doesn't make much
sense to me.  It could just highlight again.  But if you think that
further (automatic updating...) you end with a re-implementation of
font-lock-mode in Elisp - thus my suggestion to just try to turn that
mode on.

Michael.





           reply	other threads:[~2022-09-02  0:11 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <Yw7hOCgaYrqSs59J@protected.localdomain>]

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=87y1v2fxdv.fsf@web.de \
    --to=michael_heerdegen@web.de \
    --cc=53771@debbugs.gnu.org \
    --cc=help-gnu-emacs@gnu.org \
    --cc=larsi@gnu.org \
    /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).