From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Glenn Morris Newsgroups: gmane.emacs.devel Subject: delayed-warnings-hook versus deferred-action-function Date: Sat, 04 Feb 2012 19:06:04 -0500 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1328400372 25419 80.91.229.3 (5 Feb 2012 00:06:12 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 5 Feb 2012 00:06:12 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Feb 05 01:06:10 2012 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RtpcP-0001Hf-H4 for ged-emacs-devel@m.gmane.org; Sun, 05 Feb 2012 01:06:09 +0100 Original-Received: from localhost ([::1]:59798 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RtpcO-0008Jm-4b for ged-emacs-devel@m.gmane.org; Sat, 04 Feb 2012 19:06:08 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:58713) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RtpcL-0008Jh-V7 for emacs-devel@gnu.org; Sat, 04 Feb 2012 19:06:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RtpcK-0005GL-Mv for emacs-devel@gnu.org; Sat, 04 Feb 2012 19:06:05 -0500 Original-Received: from fencepost.gnu.org ([140.186.70.10]:44317) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RtpcK-0005GH-K3 for emacs-devel@gnu.org; Sat, 04 Feb 2012 19:06:04 -0500 Original-Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1RtpcK-0007d0-7q; Sat, 04 Feb 2012 19:06:04 -0500 X-Spook: Janet Reno arrangements UOP cryptographic president COSCO X-Ran: Kbc6`$tJYTUEBr7>`vSd1v-tmVocvd6o% List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:148168 Archived-At: 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?