# HG changeset patch # User Andr Spiegel # Date 1074856855 0 # Node ID 97c8dfb8be3dfaee3274495ac132252cc49562ff # Parent 7b5a4f5f9b5206698c52a27dab4da7300ad0405e (vc-annotate): Fix improper use of `make-local-variable' at the top level of vc.el. (Patch by Benjamin Rutt.) diff -r 7b5a4f5f9b52 -r 97c8dfb8be3d lisp/vc.el --- a/lisp/vc.el Fri Jan 23 00:14:48 2004 +0000 +++ b/lisp/vc.el Fri Jan 23 11:20:55 2004 +0000 @@ -7,7 +7,7 @@ ;; Maintainer: Andre Spiegel ;; Keywords: tools -;; $Id: vc.el,v 1.363 2004/01/21 11:05:51 uid65624 Exp $ +;; $Id: vc.el,v 1.364 2004/01/22 23:34:33 uid65624 Exp $ ;; This file is part of GNU Emacs. @@ -2816,9 +2816,6 @@ (defvar vc-annotate-parent-file nil) (defvar vc-annotate-parent-rev nil) (defvar vc-annotate-parent-display-mode nil) -(make-local-variable 'vc-annotate-parent-file) -(make-local-variable 'vc-annotate-parent-rev) -(make-local-variable 'vc-annotate-parent-display-mode) (defconst vc-annotate-font-lock-keywords ;; The fontification is done by vc-annotate-lines instead of font-lock. @@ -3038,9 +3035,10 @@ vc-annotate-version)) (save-excursion (set-buffer temp-buffer-name) - (setq vc-annotate-parent-file bfn) - (setq vc-annotate-parent-rev vc-annotate-version) - (setq vc-annotate-parent-display-mode vc-annotate-display-mode)) + (set (make-local-variable 'vc-annotate-parent-file) bfn) + (set (make-local-variable 'vc-annotate-parent-rev) vc-annotate-version) + (set (make-local-variable 'vc-annotate-parent-display-mode) + vc-annotate-display-mode)) ;; Don't use the temp-buffer-name until the buffer is created ;; (only after `with-output-to-temp-buffer'.)