From: Sebastian Wiesner <swiesner@lunaryorn.com>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: emacs-devel@gnu.org
Subject: Re: tabulated-list-revert runs hook before re-printing the table
Date: Sun, 14 Sep 2014 22:35:53 +0200 [thread overview]
Message-ID: <65EA8A31-5D40-406D-86C1-82390C560E11@lunaryorn.com> (raw)
In-Reply-To: <jwva962dn74.fsf-monnier+emacs@gnu.org>
Am 14.09.2014 um 21:20 schrieb Stefan Monnier <monnier@iro.umontreal.ca>:
>> 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
next prev parent reply other threads:[~2014-09-14 20:35 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-09-14 8:11 tabulated-list-revert runs hook before re-printing the table Sebastian Wiesner
2014-09-14 19:20 ` Stefan Monnier
2014-09-14 20:35 ` Sebastian Wiesner [this message]
2014-09-14 22:43 ` Stefan Monnier
2014-09-15 9:11 ` Sebastian Wiesner
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=65EA8A31-5D40-406D-86C1-82390C560E11@lunaryorn.com \
--to=swiesner@lunaryorn.com \
--cc=emacs-devel@gnu.org \
--cc=monnier@iro.umontreal.ca \
/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).