(mail): Ask a different question, if buffer is visiting a file.
This commit is contained in:
parent
1b8def5857
commit
072c1ebbf4
1 changed files with 3 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue