unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#53771: Why M-x highlight-regexp does not work after sort in tabulated-list-mode?
       [not found]   ` <Yw7hOCgaYrqSs59J@protected.localdomain>
@ 2022-09-02  0:11     ` Michael Heerdegen
  0 siblings, 0 replies; only message in thread
From: Michael Heerdegen @ 2022-09-02  0:11 UTC (permalink / raw)
  To: help-gnu-emacs; +Cc: larsi, 53771

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.





^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-09-02  0:11 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <courier.00000000630E7D2B.00004745@stw1.rcdrun.com>
     [not found] ` <871qsxnt57.fsf@web.de>
     [not found]   ` <Yw7hOCgaYrqSs59J@protected.localdomain>
2022-09-02  0:11     ` bug#53771: Why M-x highlight-regexp does not work after sort in tabulated-list-mode? Michael Heerdegen

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).