git.el: find the git-status buffer whatever its name is
PATCH 1/1 git.el: find the git-status buffer whatever its name is
git-status used the buffer name to find git-status buffers, and that could failed if the buffer had another name, for example when multiple working directories was tracked.
--- contrib/emacs/git.el | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
contrib/emacs/git.el +1 -1
@@ -1545,7 +1545,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))
Signature · 5 lines
1.5.4.2.191.g7b407 -- Rémi Vanicat
Any comment on this bug fix ? It seem it was forgotten. I re-include it for convenience:
From 8ab57162a69c178dbc04bc4f94271e36ee9d120a Mon Sep 17 00:00:00 2001
From: Rémi Vanicat <[email protected]>
Date: Fri, 22 Feb 2008 22:36:23 +0100
Subject: [PATCH] git.el: find the git-status buffer whatever its name is
git-status used the buffer name to find git-status buffers, and that could failed if the buffer had another name, for example when multiple working directories was tracked.
--- contrib/emacs/git.el | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
contrib/emacs/git.el +1 -1
@@ -1545,7 +1545,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))
Signature · 5 lines
1.5.4.2.191.g7b407 -- Rémi Vanicat
Any comment on this bug fix ? It seem it was forgotten. I re-include it for convenience:
Tested here, it works like a champ.
Xavier
Signature · 3 lines
http://www.gnu.org http://www.april.org http://www.lolica.org
Quoted 2 lines · Remi Vanicat
Any comment on this bug fix ? It seem it was forgotten. I re-include it for convenience:
It is very cumbersome to apply if you "include everything inside", so please don't do this.
Instead, send as if it is a new patch, adding Acked-by: by Alexandre after your Signed-off-by: line.
Quoted 31 lines
From
8ab57162a69c178dbc04bc4f94271e36ee9d120aMon Sep 17 00:00:00 2001
From: Rémi Vanicat <[email protected]>
Date: Fri, 22 Feb 2008 22:36:23 +0100
Subject: [PATCH] git.el: find the git-status buffer whatever its name isgit-status used the buffer name to find git-status buffers, and that could failed if the buffer had another name, for example when multiple working directories was tracked.
--- contrib/emacs/git.el | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)contrib/emacs/git.el +1
-1@@ -1545,7 +1545,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))Signature · 5 lines
1.5.4.2.191.g7b407 -- Rémi Vanicat
PATCH 1/1 git.el: find the git-status buffer whatever its name is
git-status used the buffer name to find git-status buffers, and that could failed if the buffer had another name, for example when multiple working directories was tracked.
---
Resend as requested
contrib/emacs/git.el | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
contrib/emacs/git.el +1 -1
@@ -1545,7 +1545,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))
Signature · 5 lines
1.5.4.2.191.g7b407 -- Rémi Vanicat
Signature · 2 lines
-- Rémi Vanicat
Quoted 2 lines · Remi Vanicat
Any comment on this bug fix ? It seem it was forgotten. I re-include it for convenience:
Looks good to me.
Signature · 2 lines
Alexandre Julliard [email protected]