(find-alternate-file): Confirm killing buffer only if it is visiting a file.
Showing with 1 addition and 1 deletion
|...||...||@@ -516,7 +516,7 @@ If the current buffer now contains an empty file that you just visited|
|file-dir (file-name-directory file)))|
|"Find alternate file: " file-dir nil nil file-name))))|
|(and (buffer-modified-p) (buffer-file-name)|
|;; (not buffer-read-only)|
|(not (yes-or-no-p (format "Buffer %s is modified; kill anyway? "|