Skip to content

Commit

Permalink
(mail): Ask a different question, if buffer is visiting a file.
Browse files Browse the repository at this point in the history
  • Loading branch information
Richard M. Stallman committed Jul 19, 1997
1 parent c5981ed commit 43759c8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lisp/mail/sendmail.el
Original file line number Diff line number Diff line change
Expand Up @@ -1241,7 +1241,9 @@ The seventh argument ACTIONS is a list of actions to take
(let (initialized)
(and (not noerase)
(or (not (buffer-modified-p))
(y-or-n-p "Unsent message being composed; erase it? "))
(if buffer-file-name
(y-or-n-p "Buffer is modified; erase it and reinitialize? ")
(y-or-n-p "Unsent message being composed; erase it? ")))
(let ((inhibit-read-only t))
(erase-buffer)
(mail-setup to subject in-reply-to cc replybuffer actions)
Expand Down

0 comments on commit 43759c8

Please sign in to comment.