From c2c15b67c4c7af6aac561e2c1c04112f6b769ef4 Mon Sep 17 00:00:00 2001 From: Phil Jackson Date: Mon, 31 May 2010 20:59:24 +0100 Subject: [PATCH] Only ask to abort when buffer is modified. --- rebase-mode.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rebase-mode.el b/rebase-mode.el index 5cfc18a0..0671f05b 100644 --- a/rebase-mode.el +++ b/rebase-mode.el @@ -133,7 +133,8 @@ current line down." "Abort this rebase (by emptying the buffer, saving and closing server connection)." (interactive) - (when (y-or-n-p "Abort this rebase? ") + (when (or (not (buffer-modified-p)) + (y-or-n-p "Abort this rebase? ")) (let ((buffer-read-only nil)) (delete-region (point-min) (point-max)) (save-buffer)