comparison lisp/gnus/message.el @ 97972:0f2f9b7e7d8e

Merge from gnus--devo--0 Revision: emacs@sv.gnu.org/emacs--devo--0--patch-1400
author Miles Bader <miles@gnu.org>
date Thu, 04 Sep 2008 02:32:12 +0000
parents c3512b2085a0
children 7fa3e064d230
comparison
equal deleted inserted replaced
97971:620d3d9a95da 97972:0f2f9b7e7d8e
434 :group 'message-various) 434 :group 'message-various)
435 435
436 (defcustom message-interactive t 436 (defcustom message-interactive t
437 "Non-nil means when sending a message wait for and display errors. 437 "Non-nil means when sending a message wait for and display errors.
438 nil means let mailer mail back a message to report errors." 438 nil means let mailer mail back a message to report errors."
439 :group 'message-sending
440 :group 'message-mail
441 :link '(custom-manual "(message)Sending Variables")
442 :type 'boolean)
443
444 (defcustom message-confirm-send nil
445 "Non-nil means when sending a message ask for y/n confirmation."
439 :group 'message-sending 446 :group 'message-sending
440 :group 'message-mail 447 :group 'message-mail
441 :link '(custom-manual "(message)Sending Variables") 448 :link '(custom-manual "(message)Sending Variables")
442 :type 'boolean) 449 :type 'boolean)
443 450
3960 (undo-boundary) 3967 (undo-boundary)
3961 (let ((inhibit-read-only t)) 3968 (let ((inhibit-read-only t))
3962 (put-text-property (point-min) (point-max) 'read-only nil)) 3969 (put-text-property (point-min) (point-max) 'read-only nil))
3963 (message-fix-before-sending) 3970 (message-fix-before-sending)
3964 (run-hooks 'message-send-hook) 3971 (run-hooks 'message-send-hook)
3972 (when message-confirm-send
3973 (or (y-or-n-p "Send message? ")
3974 (keyboard-quit)))
3965 (message message-sending-message) 3975 (message message-sending-message)
3966 (let ((alist message-send-method-alist) 3976 (let ((alist message-send-method-alist)
3967 (success t) 3977 (success t)
3968 elem sent dont-barf-on-no-method 3978 elem sent dont-barf-on-no-method
3969 (message-options message-options)) 3979 (message-options message-options))