Commit e11094e6 authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(mail-send): Don't test buffer-modified-p if buffer is visiting a file.

parent f4e90b76
......@@ -300,8 +300,10 @@ or error messages, and inform user.
Otherwise any failure is reported in a message back to
the user from the mailer."
(interactive)
(if (or (buffer-modified-p)
(y-or-n-p "Message already sent; resend? "))
(if (if buffer-file-name
(y-or-n-p "Send buffer contents as mail message? ")
(or (buffer-modified-p)
(y-or-n-p "Message already sent; resend? ")))
(progn
(message "Sending...")
(run-hooks 'mail-send-hook)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment