el/dot-emacs.el: Don't prompt to save other buffers on WIP save.
[profile] / el / dot-emacs.el
index c24d9ec..5314fd9 100644 (file)
@@ -3929,6 +3929,10 @@ This allows you to pass a list of arguments through `ansi-term'."
                           magit-revision-mode-refresh-popup))
            (magit-define-popup-switch popup ?R "Reverse diff" "-R"))))
 
+(defadvice magit-wip-commit-buffer-file
+    (around mdw-just-this-buffer activate compile)
+  (let ((magit-save-repository-buffers nil)) ad-do-it))
+
 (setq magit-repolist-columns
       '(("Name" 16 magit-repolist-column-ident nil)
        ("Version" 18 magit-repolist-column-version nil)