Subject: Re: bug#6324: 24.0.50; vc modeline is not updated when buffer mode is changed
From: Stefan Monnier <[email-masked]>
To: Alex Harsanyi <[email-masked]>, [email-masked]
Date: Tue, 08 Jun 2010 21:14:15 -0400
List-Id: <debbugs-submit.debbugs.gnu.org>

> Here is a patch that corrects the problem:

> --- lisp/vc-hooks.el	2010-04-09 17:19:53 +0000
> +++ lisp/vc-hooks.el	2010-06-01 12:24:32 +0000
> @@ -877,6 +877,7 @@ current, and kill the buffer that visits
>    (when buffer-file-name
>      (vc-file-clearprops buffer-file-name)
>      (add-hook 'mode-line-hook 'vc-mode-line nil t)
> +    (put 'mode-line-hook 'permanent-local t)
>      (let (backend)
>        (cond
>         ((setq backend (with-demoted-errors (vc-backend buffer-file-name)))

Thank you very much for the test case and the patch.  I've installed
a slightly more extensive fix in the emacs-23 branch.

        Stefan