[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: HG, git and others actualize the modeline when commit form the comma
From: |
Uwe Brauer |
Subject: |
Re: HG, git and others actualize the modeline when commit form the command line |
Date: |
Mon, 16 Nov 2020 17:04:03 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
> Uwe Brauer <oub@mat.ucm.es> writes:
> This is what I use for git, wrapped into a command:
> (vc-file-clearprops buffer-file-name)
> (vc-state-refresh buffer-file-name 'Git)
> (vc-mode-line buffer-file-name 'Git)
> Of course, Eli's suggestion also works, although it does a lot more
> than updating VC state display.
Yeah the revert function is a bit slow. So you have something like this
(defun my-refresh-vc-stuff ()
(interactive)
(vc-file-clearprops buffer-file-name)
(vc-state-refresh buffer-file-name 'Git)
(vc-mode-line buffer-file-name 'Git))
And bind that to key or insert it into a hook?
smime.p7s
Description: S/MIME cryptographic signature
- HG, git and others actualize the modeline when commit form the command line, Uwe Brauer, 2020/11/16
- Re: HG, git and others actualize the modeline when commit form the command line, Eli Zaretskii, 2020/11/16
- Re: HG, git and others actualize the modeline when commit form the command line, Uwe Brauer, 2020/11/16
- Re: HG, git and others actualize the modeline when commit form the command line, Eli Zaretskii, 2020/11/16
- Re: HG, git and others actualize the modeline when commit form the command line, Uwe Brauer, 2020/11/16
- Re: HG, git and others actualize the modeline when commit form the command line, Dmitry Gutov, 2020/11/16
- Re: HG, git and others actualize the modeline when commit form the command line, Eli Zaretskii, 2020/11/16
- Re: HG, git and others actualize the modeline when commit form the command line, Dmitry Gutov, 2020/11/16
Re: HG, git and others actualize the modeline when commit form the command line, Óscar Fuentes, 2020/11/16
- Re: HG, git and others actualize the modeline when commit form the command line,
Uwe Brauer <=