[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#26066: 26.0.50; vc-git-status gives wrong result
From: |
Thien-Thi Nguyen |
Subject: |
bug#26066: 26.0.50; vc-git-status gives wrong result |
Date: |
Mon, 10 Apr 2017 09:35:28 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) |
() Jonathan Ganc <jonganc@gmail.com>
() Mon, 10 Apr 2017 00:41:15 -0400
+ (while (string-match "\\(..\\) [^\0]+\0" status next-match)
+ (push (match-string 1 status) code-list)
+ (setq next-match (match-end 0)))
+ (setq code-list (nreverse code-list))
You can also use something like:
(mapcar (lambda (s)
(substring s 0 2))
(split-string status "\0"))
to compute the value of ‘code-list’. Might be quicker, too.
--
Thien-Thi Nguyen -----------------------------------------------
(defun responsep (query)
(pcase (context query)
(`(technical ,ml) (correctp ml))
...)) 748E A0E8 1CB8 A748 9BFA
--------------------------------------- 6CE4 6703 2224 4C80 7502
signature.asc
Description: PGP signature
- bug#26066: 26.0.50; vc-git-status gives wrong result, Jonathan Ganc, 2017/04/09
- bug#26066: 26.0.50; vc-git-status gives wrong result, npostavs, 2017/04/09
- bug#26066: 26.0.50; vc-git-status gives wrong result, Dmitry Gutov, 2017/04/09
- bug#26066: 26.0.50; vc-git-status gives wrong result, Dmitry Gutov, 2017/04/10
- bug#26066: 26.0.50; vc-git-status gives wrong result, Jonathan Ganc, 2017/04/10
- bug#26066: 26.0.50; vc-git-status gives wrong result, Jonathan Ganc, 2017/04/11
- bug#26066: 26.0.50; vc-git-status gives wrong result, Dmitry Gutov, 2017/04/11
- bug#26066: 26.0.50; vc-git-status gives wrong result, Dmitry Gutov, 2017/04/11
- bug#26066: 26.0.50; vc-git-status gives wrong result, Jonathan Ganc, 2017/04/13
- bug#26066: 26.0.50; vc-git-status gives wrong result, Jonathan Ganc, 2017/04/23