Fix bug: allow user to specify no confirmation.
authorChris Hanson <org/chris-hanson/cph>
Fri, 21 Jul 2000 19:22:15 +0000 (19:22 +0000)
committerChris Hanson <org/chris-hanson/cph>
Fri, 21 Jul 2000 19:22:15 +0000 (19:22 +0000)
v7/src/imail/imail-top.scm

index ef655ed5c779a8be898864d7df937063f1c6f239..5b1488f49ff2ceeb88e47bfd06e48517bd4e2432 100644 (file)
@@ -1,6 +1,6 @@
 ;;; -*-Scheme-*-
 ;;;
-;;; $Id: imail-top.scm,v 1.210 2000/07/11 20:34:59 cph Exp $
+;;; $Id: imail-top.scm,v 1.211 2000/07/21 19:22:15 cph Exp $
 ;;;
 ;;; Copyright (c) 1999-2000 Massachusetts Institute of Technology
 ;;;
@@ -681,9 +681,11 @@ With prefix argument N, undeletes backward N messages,
                                           " marked for deletion")))
                       (let ((do-prompt
                              (lambda ()
-                               (if (memq 'BRIEF confirmation)
-                                   (prompt-for-confirmation? prompt)
-                                   (prompt-for-yes-or-no? prompt)))))
+                               (cond ((memq 'BRIEF confirmation)
+                                      (prompt-for-confirmation? prompt))
+                                     ((memq 'VERBOSE confirmation)
+                                      (prompt-for-yes-or-no? prompt))
+                                     (else #t)))))
                         (if (memq 'SHOW-MESSAGES confirmation)
                             (cleanup-pop-up-buffers
                              (lambda ()