(gnus-demon): Bind use-dialog-box and
authorDave Love <fx@gnu.org>
Thu, 17 Aug 2000 22:43:39 +0000 (22:43 +0000)
committerDave Love <fx@gnu.org>
Thu, 17 Aug 2000 22:43:39 +0000 (22:43 +0000)
last-nonmenu-event.

lisp/gnus-demon.el

index 75b8765..78d7286 100644 (file)
@@ -191,6 +191,10 @@ time Emacs has been idle for IDLE `gnus-demon-timestep's."
     ;; sufficiently ripe.
     (let ((handlers gnus-demon-handler-state)
          (gnus-inhibit-demon t)
+         ;; Try to avoid dialog boxes, e.g. by Mailcrypt.
+         ;; Unfortunately, Emacs 20's `message-or-box...' doesn't
+         ;; obey `use-dialog-box'.
+         use-dialog-box (last-nonmenu-event 10)
          handler time idle)
       (while handlers
        (setq handler (pop handlers))