From 8ee1e4b4d295c6ec8c67ec40f6f9bc493ff7bf8c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Karl=20Hasselstr=C3=B6m?= Date: Tue, 15 Apr 2008 01:18:53 +0200 Subject: [PATCH] emacs mode: handle "stg status" output with # MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Recently, "stg status" started separating patch names and descriptions with # rather than |. This broke some parts of the emacs mode, such as coloring and patch selection. This patch makes the emacs mode accept either delimiter. Signed-off-by: Karl Hasselström --- contrib/stgit.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/stgit.el b/contrib/stgit.el index ba6df6a..339ef13 100644 --- a/contrib/stgit.el +++ b/contrib/stgit.el @@ -107,7 +107,7 @@ Argument DIR is the repository path." (cond ((looking-at "Branch: \\(.*\\)") (put-text-property (match-beginning 1) (match-end 1) 'face 'bold)) - ((looking-at "\\([>+-]\\)\\( \\)\\([^ ]+\\) *| \\(.*\\)") + ((looking-at "\\([>+-]\\)\\( \\)\\([^ ]+\\) *[|#] \\(.*\\)") (let ((state (match-string 1)) (patchsym (intern (match-string 3)))) (put-text-property -- 2.11.0