help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: How to run function on sort within tabulated-list-mode?


From: Tim Landscheidt
Subject: Re: How to run function on sort within tabulated-list-mode?
Date: Fri, 04 Feb 2022 11:36:17 +0000
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)

Jean Louis <bugs@gnu.support> wrote:

> I am heavy user of tabulated-list-mode and have a derived mode. In the
> derived mode I make sure that some words are highlighted like "ACTION"
> or "COMPLETED".

> The tabulated-list-mode has several columns. When I click on a column
> to sort the list by the column the highlighting disappears.

> Does the hook run after sorting? I have tried adding function to my
> hyperscope-list-mode-hook but I don't see it works on sort.

> Should it work? Is it expected to run the hook on the sorting of
> tabulated-list-mode?

> Is there any other way to invoke a function upon sort?

I don't know; I suspect not.

I assume the expected way to achieve highlighting words
would be to fill tabulated-list-entries with a propertized
string à la:

| (propertize "ACTION" 'face 'highlight)

Tim




reply via email to

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