From: Richard M. Stallman Date: Tue, 9 Aug 2005 02:55:00 +0000 (+0000) Subject: (auto-revert-tail-mode): Use make-local-variable, X-Git-Tag: emacs-pretest-22.0.90~7734 X-Git-Url: https://code.delx.au/gnu-emacs/commitdiff_plain/f373470debdd17410474b52b177941a569b64794 (auto-revert-tail-mode): Use make-local-variable, not make-variable-buffer-local. --- diff --git a/lisp/autorevert.el b/lisp/autorevert.el index ec21488c6d..9892dca2d4 100644 --- a/lisp/autorevert.el +++ b/lisp/autorevert.el @@ -340,7 +340,7 @@ Use `auto-revert-mode' for changes other than appends!" ;; else we might reappend our own end when we save (add-hook 'before-save-hook (lambda () (auto-revert-tail-mode 0)) nil t) (or (local-variable-p 'auto-revert-tail-pos) ; don't lose prior position - (set (make-variable-buffer-local 'auto-revert-tail-pos) + (set (make-local-variable 'auto-revert-tail-pos) (save-restriction (widen) (1- (point-max))))) ;; let auto-revert-mode set up the mechanism for us if it isn't already (or auto-revert-mode