From dc371ff8683f71e76fe2976acba6133c83cc1073 Mon Sep 17 00:00:00 2001 From: Marius Vollmer Date: Sun, 24 Aug 2008 00:59:10 +0300 Subject: [PATCH] Make status buffer names special. Thanks to John Wiegley! * magit.el (magit-status): Use a name of the form "*magit: foo* instead of just "foo". --- magit.el | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/magit.el b/magit.el index c6ce76f0..e16e12b7 100644 --- a/magit.el +++ b/magit.el @@ -641,8 +641,11 @@ Please see the manual for a complete description of Magit. (save-some-buffers) (let* ((topdir (magit-get-top-dir dir)) (buf (or (magit-find-status-buffer topdir) - (create-file-buffer (file-name-nondirectory - (directory-file-name topdir)))))) + (switch-to-buffer + (generate-new-buffer + (concat "*magit: " + (file-name-nondirectory + (directory-file-name topdir)) "*")))))) (switch-to-buffer buf) (magit-mode-init topdir 'status) (magit-update-status buf)))