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: Emanuel Berg
Subject: Re: How to run function on sort within tabulated-list-mode?
Date: Fri, 04 Feb 2022 08:03:18 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

Jean Louis wrote:

> 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?

New `defun' that calls `sort' as well as the extra stuff ...

  https://dataswamp.org/~incal/emacs-init/sort-incal.el

Or `advice-add' ...

(defun help-mode-finish-after ()
  (forward-button 1) )
(advice-add #'help-mode-finish :after #'help-mode-finish-after)

  https://dataswamp.org/~incal/emacs-init/help-incal.el

-- 
underground experts united
https://dataswamp.org/~incal




reply via email to

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