aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1993-07-01 23:35:51 +0000
committerRichard M. Stallman1993-07-01 23:35:51 +0000
commite11094e681f80c7190f2a5fa731f2b9059d0340b (patch)
treec0e4c2b2e2ea2918db4b5580db8ff41ac595ff5f
parentf4e90b76154bf7bf68a695cb8c5767c350ab67fd (diff)
downloademacs-e11094e681f80c7190f2a5fa731f2b9059d0340b.tar.gz
emacs-e11094e681f80c7190f2a5fa731f2b9059d0340b.zip
(mail-send): Don't test buffer-modified-p if buffer is visiting a file.
-rw-r--r--lisp/mail/sendmail.el6
1 files changed, 4 insertions, 2 deletions
diff --git a/lisp/mail/sendmail.el b/lisp/mail/sendmail.el
index 8c1bd7e644e..fbe5064ee41 100644
--- a/lisp/mail/sendmail.el
+++ b/lisp/mail/sendmail.el
@@ -300,8 +300,10 @@ or error messages, and inform user.
300Otherwise any failure is reported in a message back to 300Otherwise any failure is reported in a message back to
301the user from the mailer." 301the user from the mailer."
302 (interactive) 302 (interactive)
303 (if (or (buffer-modified-p) 303 (if (if buffer-file-name
304 (y-or-n-p "Message already sent; resend? ")) 304 (y-or-n-p "Send buffer contents as mail message? ")
305 (or (buffer-modified-p)
306 (y-or-n-p "Message already sent; resend? ")))
305 (progn 307 (progn
306 (message "Sending...") 308 (message "Sending...")
307 (run-hooks 'mail-send-hook) 309 (run-hooks 'mail-send-hook)