From 581181764b5fa37f14a359471660e0927c759fab Mon Sep 17 00:00:00 2001 From: Dima Kogan Date: Mon, 9 Mar 2015 10:49:18 -0700 Subject: [PATCH] log-edit buffer is now called "*amend*" when amending and "*commit*" otherwise --- commit-patch-buffer.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/commit-patch-buffer.el b/commit-patch-buffer.el index 57ecb7a..aaa1ff7 100644 --- a/commit-patch-buffer.el +++ b/commit-patch-buffer.el @@ -63,6 +63,7 @@ one." (call-process-region (point-min) (point-max) "lsdiff" nil lsdiff nil))) (split-string (buffer-string)))))) + (log-buffer-name (if amend "*amend*" "*commit*")) (f patch-files) visiting-buffers) (while (car f) (let ((buf (find-buffer-visiting (car f)))) @@ -71,7 +72,7 @@ one." (add-to-list 'visiting-buffers buf))) (setq f (cdr f))) (if amend - (with-current-buffer (get-buffer-create "*commit*") + (with-current-buffer (get-buffer-create log-buffer-name) (erase-buffer) (insert (or (commit-patch-last-log-comment directory) "")) (goto-char 0))) @@ -108,7 +109,7 @@ one." (delete-file patch)))) nil `((log-edit-listfun . (lambda () ',patch-files))) - "*commit*"))) + log-buffer-name))) (defun commit-patch-buffer (&optional arg amend) "Commit the patch in the current buffer, applying it to the -- 2.51.2