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>
(cond ((looking-at "Branch: \\(.*\\)")
(put-text-property (match-beginning 1) (match-end 1)
'face 'bold))
(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
(let ((state (match-string 1))
(patchsym (intern (match-string 3))))
(put-text-property