[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Two feature ideas for diffs
From: |
Michael Heerdegen |
Subject: |
Re: Two feature ideas for diffs |
Date: |
Fri, 08 Nov 2013 23:58:18 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) |
Hi all,
> Check out https://github.com/dgutov/diff-hl
That's nice.
In addition, I would like to see the vc state in the mode-line. I see
"Git-master" in the mode-line and a mouse echo telling the state ("Up to
date"; "Locally modified" etc.). But I want to see the state from the
indicator - preferably by using faces. I tried to use this in
`mode-line-format' (using my own faces):
(vc-mode (:eval (propertize vc-mode 'face
(pcase (vc-state buffer-file-truename)
(`up-to-date 'mode-line-important)
(`edited nil)
(_ 'mode-line-warning)))))
But that doesn't work. The state is never refreshed, I need to restart
Emacs. (vc-state buffer-file-truename) seems to return the same value
for the entire Emacs session. I'm not familiar with the VC code - how
can it be done? And shouldn't vc-state return an up-to-date value (bug)?
Thanks,
Michael.
- Two feature ideas for diffs, Tom, 2013/11/07
- Re: Two feature ideas for diffs, nhs, 2013/11/07
- Re: Two feature ideas for diffs, Tom, 2013/11/07
- Re: Two feature ideas for diffs, Dmitry Gutov, 2013/11/07
- Re: Two feature ideas for diffs, Tom, 2013/11/07
- Re: Two feature ideas for diffs, Stefan Monnier, 2013/11/07
- Re: Two feature ideas for diffs, Dmitry Gutov, 2013/11/07
- Re: Two feature ideas for diffs, Stefan Monnier, 2013/11/07
- Re: Two feature ideas for diffs,
Michael Heerdegen <=
- Re: Two feature ideas for diffs, Óscar Fuentes, 2013/11/08
- Re: Two feature ideas for diffs, Michael Heerdegen, 2013/11/08
- Re: Two feature ideas for diffs, Stefan Monnier, 2013/11/09
- Re: Two feature ideas for diffs, Michael Heerdegen, 2013/11/09
- Re: Two feature ideas for diffs, Stefan Monnier, 2013/11/09
- Re: Two feature ideas for diffs, Óscar Fuentes, 2013/11/09
- Re: Two feature ideas for diffs, Stefan Monnier, 2013/11/10
- Git conflict VC state detection, Óscar Fuentes, 2013/11/10
- Re: Git conflict VC state detection, Dmitry Gutov, 2013/11/10
- Re: Git conflict VC state detection, Óscar Fuentes, 2013/11/10