emacs-devel
[Top][All Lists]
Advanced

[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: Óscar Fuentes
Subject: Re: HG, git and others actualize the modeline when commit form the command line
Date: Mon, 16 Nov 2020 14:54:08 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1.50 (gnu/linux)

Uwe Brauer <oub@mat.ucm.es> writes:

> Hi
>
> I tested this in mercurial.
> If I commit a change via vc-next-action
> the modeline gets actualized.
>
> If I make the commit from the command line (using Ubuntu 16.04) the
> change is not reflected in the modeline I have to close and reopen the
> file.
>
> I tried out 
>
> (force-mode-line-update) 
> via M-:
> but it did  not change the modeline
>
> Any idea what to do (besides using vc-next-command and friends).

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.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]