unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* deferred-action
@ 2011-03-20  4:16 Juanma Barranquero
  2011-03-21 14:01 ` deferred-action Stefan Monnier
  0 siblings, 1 reply; 7+ messages in thread
From: Juanma Barranquero @ 2011-03-20  4:16 UTC (permalink / raw)
  To: Emacs developers

What are the variables deferred-action-list and
deferred-action-function used for?

Their API is a bit surprising: there's a list of things to do, and a
function to do things (so, a sort of a poor man's hook) with
absolutely no explanation (nor documentation on the Elisp manual) of
how it is intended to be used, how to manage conflicts supposing that
different pieces of code want to use it, etc.

The only reference to them on the Emacs sources is in
emacs-lisp/ert-x.el, and it's really just aping the Emacs
command-loop.

And the only other reference I find is in anything.el (in the Emacs
wiki), where they are basically used as a sort of post-command hook.

I think Roland McGrath asked basically this same question back in 1994
(http://www.maths.tcd.ie/local/JUNK/cyclic/mailing-lists/arcana/0022.html),
so perhaps it is time to document these variables or deprecate them.

    Juanma



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2011-03-21 20:05 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-20  4:16 deferred-action Juanma Barranquero
2011-03-21 14:01 ` deferred-action Stefan Monnier
2011-03-21 14:56   ` deferred-action Juanma Barranquero
2011-03-21 16:34     ` deferred-action Stefan Monnier
2011-03-21 16:37       ` deferred-action Juanma Barranquero
2011-03-21 17:24         ` deferred-action Stefan Monnier
2011-03-21 20:05           ` deferred-action Juanma Barranquero

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).