Skip to contentSkip to conversation

emacs mode: handle "stg status" output with #

PATCH New Karl Hasselström 1 participant 1 message Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 emacs mode: handle "stg status" output with #

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.

---

 contrib/stgit.el |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
contrib/stgit.el +1 -1
index ba6df6a..339ef13 100644
@@ -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