[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#6324: 24.0.50; vc modeline is not updated when buffer mode is change
From: |
Stefan Monnier |
Subject: |
bug#6324: 24.0.50; vc modeline is not updated when buffer mode is changed |
Date: |
Tue, 08 Jun 2010 21:14:15 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) |
> 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