From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Sebastian Wiesner <swiesner@lunaryorn.com>
Cc: emacs-devel@gnu.org
Subject: Re: tabulated-list-revert runs hook before re-printing the table
Date: Sun, 14 Sep 2014 18:43:58 -0400 [thread overview]
Message-ID: <jwvsijtddte.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <65EA8A31-5D40-406D-86C1-82390C560E11@lunaryorn.com> (Sebastian Wiesner's message of "Sun, 14 Sep 2014 22:35:53 +0200")
> 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'?
That's what it looks like, yes. Try a "grep tabulated-list-revert-hook
**/*.el" in Emacs's sources and see for yourself.
> Why would a mode do that, rather than just using a function for
> `tabulated-list-entries' that directly returns the list of entries?
I don't know, but my guess is that it's perceived that
tabulated-list-entries would be called too often and would hence be too
taxing on CPU resources?
> Unrelated to that question, could we have a hook run *after*
> `tabulated-list-print' by `tabulated-list-revert'?
It would make sense for it to run after-revert-hook, I guess.
Stefan
next prev parent reply other threads:[~2014-09-14 22:43 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
2014-09-14 22:43 ` Stefan Monnier [this message]
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=jwvsijtddte.fsf-monnier+emacs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=emacs-devel@gnu.org \
--cc=swiesner@lunaryorn.com \
/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).