lisp/subr.el (delay-warning): New function.
authorJuanma Barranquero <lekktu@gmail.com>
Thu, 11 Jul 2013 01:49:17 +0000 (03:49 +0200)
committerJuanma Barranquero <lekktu@gmail.com>
Thu, 11 Jul 2013 01:49:17 +0000 (03:49 +0200)
lisp/ChangeLog
lisp/subr.el

index ce10b03..3742198 100644 (file)
@@ -1,3 +1,7 @@
+2013-07-11  Juanma Barranquero  <lekktu@gmail.com>
+
+       * subr.el (delay-warning): New function.
+
 2013-07-10  Eli Zaretskii  <eliz@gnu.org>
 
        * simple.el (default-line-height): New function.
index a0ad722..b6ee96f 100644 (file)
@@ -3853,6 +3853,7 @@ FILE should be the name of a library, with no directory name."
   (declare (obsolete eval-after-load "23.2"))
   (eval-after-load file (read)))
 
+\f
 (defun display-delayed-warnings ()
   "Display delayed warnings from `delayed-warnings-list'.
 Used from `delayed-warnings-hook' (which see)."
@@ -3886,6 +3887,12 @@ By default, this hook contains functions to consolidate the
 warnings listed in `delayed-warnings-list', display them, and set
 `delayed-warnings-list' back to nil.")
 
+(defun delay-warning (type message &optional level buffer-name)
+  "Display a delayed warning.
+Aside from going through `delayed-warnings-list', this is equivalent
+to `display-warning'."
+  (push (list type message level buffer-name) delayed-warnings-list))
+
 \f
 ;;;; invisibility specs