emacs-elpa-diffs
[Top][All Lists]
Advanced

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

[elpa] scratch/add-vdiff 615e7bd 228/258: vdiff-magit: Fix killing of bu


From: Justin Burkett
Subject: [elpa] scratch/add-vdiff 615e7bd 228/258: vdiff-magit: Fix killing of buffers in stage
Date: Wed, 17 May 2017 08:13:58 -0400 (EDT)

branch: scratch/add-vdiff
commit 615e7bdc86c07718beca4cbd5b947633ab10a69d
Author: Justin Burkett <address@hidden>
Commit: Justin Burkett <address@hidden>

    vdiff-magit: Fix killing of buffers in stage
---
 vdiff-magit.el | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/vdiff-magit.el b/vdiff-magit.el
index b1ad04f..b21f13a 100644
--- a/vdiff-magit.el
+++ b/vdiff-magit.el
@@ -239,9 +239,11 @@ FILE has to be relative to the top directory of the 
repository."
            (with-current-buffer buf-c
              (when (y-or-n-p
                     (format "Save file %s? " buffer-file-name))
-               (save-buffer)))
+               (save-buffer))))
+         (when (y-or-n-p
+                (format "Kill buffer %s?" (buffer-file-name buf-c)))
            (kill-buffer buf-c)))
-       t t))))
+       t nil))))
 
 ;; ;;;###autoload
 (defun vdiff-magit-compare (revA revB fileA fileB)



reply via email to

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