From: Rémi Vanicat Date: Fri, 29 Feb 2008 18:28:19 +0000 (+0100) Subject: git.el: find the git-status buffer whatever its name is X-Git-Tag: v1.5.4.4~23 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=a1eebfb3a90b6c240afd1a32cfebe6ee5dbd72c5;p=git.git git.el: find the git-status buffer whatever its name is git-status used the buffer name to find git-status buffers, and that can fail if the buffer has another name, for example when multiple working directories is tracked. Signed-off-by: Rémi Vanicat Acked-by: Alexandre Julliard Tested-by: Xavier Maillard Signed-off-by: Junio C Hamano --- diff --git a/contrib/emacs/git.el b/contrib/emacs/git.el index d8a06381f..0312d891f 100644 --- a/contrib/emacs/git.el +++ b/contrib/emacs/git.el @@ -1432,7 +1432,7 @@ Commands: (with-current-buffer buffer (when (and list-buffers-directory (string-equal fulldir (expand-file-name list-buffers-directory)) - (string-match "\\*git-status\\*$" (buffer-name buffer))) + (eq major-mode 'git-status-mode)) (setq found buffer)))) (setq list (cdr list))) found))