From: Glenn Morris Date: Thu, 9 Feb 2012 06:02:33 +0000 (-0800) Subject: * etc/NEWS: Edit delayed-warnings-list entry. X-Git-Tag: emacs-pretest-24.0.94~223 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=001bf877d084f3fe00a0db77eb4db26d8044de86;p=emacs.git * etc/NEWS: Edit delayed-warnings-list entry. * lisp/subr.el: Related comment. --- diff --git a/etc/NEWS b/etc/NEWS index 790cf47fbee..f9ede684085 100644 --- a/etc/NEWS +++ b/etc/NEWS @@ -1459,8 +1459,14 @@ displayed with a "spinning bar". ** New variable `revert-buffer-in-progress-p' is true while a buffer is being reverted, even if the buffer has a local `revert-buffer-function'. -** New variables `delayed-warnings-list' and `delayed-warnings-hook' allow -deferring warnings until the main command loop is executed. +--- +** New variables `delayed-warnings-list' and `delayed-warnings-hook'. +If delayed-warnings-list is non-nil, the command loop calls +delayed-warnings-hook after post-command-hook. At present, this is +only used by Emacs on some platforms to display warnings during +startup, which might otherwise not be noticed. This uses the functions +display-delayed-warnings and collapse-delayed-warnings. + +++ ** `set-auto-mode' now respects mode: local variables at the end of files, diff --git a/lisp/subr.el b/lisp/subr.el index e735fd9577d..6c79b3f88e2 100644 --- a/lisp/subr.el +++ b/lisp/subr.el @@ -1884,6 +1884,9 @@ Used from `delayed-warnings-hook' (which see)." (push warning collapsed))) (setq delayed-warnings-list (nreverse collapsed)))) +;; At present this is only really useful for Emacs internals. +;; Document in the lispref if it becomes generally useful. +;; Ref http://lists.gnu.org/archive/html/emacs-devel/2012-02/msg00085.html (defvar delayed-warnings-hook '(collapse-delayed-warnings display-delayed-warnings) "Normal hook run to process delayed warnings.