about summary refs log tree commit diff
diff options
context:
space:
mode:
authorChristian Neukirchen <chneukirchen@gmail.com>2008-04-09 18:30:05 +0200
committerChristian Neukirchen <chneukirchen@gmail.com>2008-04-09 18:30:05 +0200
commitd7cf26f54387a0018ed7577be6ea0567aff0f820 (patch)
treefd0fdd95c6bbb98185a7f2f35949e35b8d00d385
parent8116bf22f47a14f4c2ba6801053fd87ce65304bc (diff)
downloadgitsum-d7cf26f54387a0018ed7577be6ea0567aff0f820.tar.gz
gitsum-d7cf26f54387a0018ed7577be6ea0567aff0f820.tar.xz
gitsum-d7cf26f54387a0018ed7577be6ea0567aff0f820.zip
Don't fail silently trying to close a modified buffer
-rw-r--r--gitsum.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/gitsum.el b/gitsum.el
index d7becda..54ed03b 100644
--- a/gitsum.el
+++ b/gitsum.el
@@ -127,7 +127,8 @@ A numeric argument serves as a repeat count."
 (defun gitsum-kill-buffer ()
   "Kill the current buffer if it has no manual changes."
   (interactive)
-  (unless (buffer-modified-p)
+  (if (buffer-modified-p)
+      (message "Patch was modified, use C-x k to kill.")
     (kill-buffer nil)))
 
 (defun gitsum-switch-to-git-status ()