emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master 3986489: Better confirmation message in `find-alter


From: Nicolas Petton
Subject: [Emacs-diffs] master 3986489: Better confirmation message in `find-alternate-file' (Bug#20830)
Date: Tue, 16 Jun 2015 20:54:06 +0000

branch: master
commit 3986489aef3779b299c099e077d91e0d4b09a2e5
Author: Nicolas Petton <address@hidden>
Commit: Nicolas Petton <address@hidden>

    Better confirmation message in `find-alternate-file' (Bug#20830)
    
    * lisp/files.el (find-alternate-file'): Improve the confirmation
    message to show the buffer name.
---
 lisp/files.el |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/lisp/files.el b/lisp/files.el
index 26f9f70..4656ada 100644
--- a/lisp/files.el
+++ b/lisp/files.el
@@ -1640,7 +1640,9 @@ killed."
   (unless (run-hook-with-args-until-failure 'kill-buffer-query-functions)
     (user-error "Aborted"))
   (and (buffer-modified-p) buffer-file-name
-       (not (yes-or-no-p "Kill and replace the buffer without saving it? "))
+       (not (yes-or-no-p
+             (format "Kill and replace buffer `%s' without saving it? "
+                     (buffer-name))))
        (user-error "Aborted"))
   (let ((obuf (current-buffer))
        (ofile buffer-file-name)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]