unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* delayed-warnings-hook versus deferred-action-function
@ 2012-02-05  0:06 Glenn Morris
  2012-02-05  0:29 ` Juanma Barranquero
  0 siblings, 1 reply; 7+ messages in thread
From: Glenn Morris @ 2012-02-05  0:06 UTC (permalink / raw)
  To: emacs-devel


In 24.1, deferred-action-function has been deprecated in favour of just
using post-command-hook. Fair enough, the former was never really used
for anything.

However, delayed-warnings-hook has been added, and, although it has a
more clearly documented purpose, seems to be functionally equivalent to
the deprecated interface. Eg from command_loop_1:

      if (!NILP (Vdelayed_warnings_list))
        safe_run_hooks (Qdelayed_warnings_hook);

      if (!NILP (Vdeferred_action_list))
        safe_run_hooks (Qdeferred_action_function);

Aren't these two changes inconsistent? Why couldn't an element just be
added to post-command-hook to process delayed-warnings?



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

end of thread, other threads:[~2012-02-08 10:02 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-05  0:06 delayed-warnings-hook versus deferred-action-function Glenn Morris
2012-02-05  0:29 ` Juanma Barranquero
2012-02-05  2:25   ` Glenn Morris
2012-02-08  4:01   ` Glenn Morris
2012-02-08  4:28     ` Juanma Barranquero
2012-02-08  8:32       ` Glenn Morris
2012-02-08 10:02         ` 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).