mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-15 10:30:25 -08:00
(find-alternate-file): Revert query message to Emacs 21 version.
This commit is contained in:
parent
07c7c7fe6e
commit
38fde45ded
1 changed files with 4 additions and 4 deletions
|
|
@ -1223,11 +1223,11 @@ killed."
|
|||
(unless (run-hook-with-args-until-failure 'kill-buffer-query-functions)
|
||||
(error "Aborted"))
|
||||
(when (and (buffer-modified-p) (buffer-file-name))
|
||||
(if (yes-or-no-p (format "Buffer %s is modified; save it first? "
|
||||
(if (yes-or-no-p (format "Buffer %s is modified; kill anyway? "
|
||||
(buffer-name)))
|
||||
(save-buffer)
|
||||
(unless (yes-or-no-p "Kill and replace the buffer without saving it? ")
|
||||
(error "Aborted"))))
|
||||
(unless (yes-or-no-p "Kill and replace the buffer without saving it? ")
|
||||
(error "Aborted"))
|
||||
(save-buffer)))
|
||||
(let ((obuf (current-buffer))
|
||||
(ofile buffer-file-name)
|
||||
(onum buffer-file-number)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue