[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#32225: 27.0.50; [PATCH] avoid calling vc backend if vc-display-statu

From: Dmitry Gutov
Subject: bug#32225: 27.0.50; [PATCH] avoid calling vc backend if vc-display-status is nil
Date: Sat, 28 Jul 2018 13:04:23 +0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.0

On 7/27/18 10:07 AM, Eli Zaretskii wrote:
From: Andy Moreton <address@hidden>
Date: Fri, 20 Jul 2018 17:45:09 +0100

If the user sets `vc-display-status' to nil then the VC backend is still
called to get a revision number, even though it will not be displayed.

The following patch avoids this unneeded work.

Do not call VC backend to update mode line if vc-display-status is nil

2018-07-20  Andy Moreton  <address@hidden>

        * lisp/vc/vc-hooks.el (vc-mode-line): Avoid calling VC backend if
        vc-display-status is nil.

LGTM, please push to the master branch.


reply via email to

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