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: 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?

Attachment: smime.p7s
Description: S/MIME cryptographic signature


reply via email to

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