GNU bug report logs - #6324
24.0.50; vc modeline is not updated when buffer mode is changed

Previous Next

Package: emacs;

Reported by: Alex Harsanyi <harsanyi <at> mac.com>

Date: Tue, 1 Jun 2010 13:22:02 UTC

Severity: normal

Found in version 24.0.50

Done: Stefan Monnier <monnier <at> iro.umontreal.ca>

Bug is archived. No further changes may be made.

Full log


Message #10 received at 6324-done <at> debbugs.gnu.org (full text, mbox):

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Alex Harsanyi <harsanyi <at> mac.com>, 6324-done <at> debbugs.gnu.org
Subject: Re: bug#6324: 24.0.50;
	vc modeline is not updated when buffer mode is changed
Date: Tue, 08 Jun 2010 21:14:15 -0400
> 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





This bug report was last modified 15 years and 43 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.