[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: tabulated-list-revert runs hook before re-printing the table
From: |
Sebastian Wiesner |
Subject: |
Re: tabulated-list-revert runs hook before re-printing the table |
Date: |
Sun, 14 Sep 2014 22:35:53 +0200 |
Am 14.09.2014 um 21:20 schrieb Stefan Monnier <address@hidden>:
>> Instead, it has its own hook `tabulated-list-revert-hook', but this hook
>> runs *before* the list is re-printed with `tabulated-list-print'.
>
> Indeed, because this is the hook that re-computes the list (if needed).
> At least that's how I see it used (thanks to "grep").
You mean that a mode derived from `tabulated-list-mode' would add a function to
this hook in order to re-compute `tabulated-list-entries'?
Why would a mode do that, rather than just using a function for
`tabulated-list-entries' that directly returns the list of entries?
Unrelated to that question, could we have a hook run *after*
`tabulated-list-print' by `tabulated-list-revert'?
Sebastian