git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[StGit PATCH] emacs mode: handle "stg status" output with #

From
Karl Hasselström <kha@treskal.com>
Date
Apr 13, 2008, 16:48 UTC
Message-ID
<20080413164818.8926.15902.stgit@yoghurt>

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 <kha@treskal.com>
---
 contrib/stgit.el |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
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
Message 1 of 1 in “emacs mode: handle "stg status" output with #”
  1. emacs mode: handle "stg status" output with #Karl Hasselström, Apr 13, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.