From cd205c7615336d64c8af41ada17c53da29d90d44 Mon Sep 17 00:00:00 2001 From: Glenn Morris Date: Tue, 21 Sep 2010 20:31:30 -0700 Subject: [PATCH] Tiny package.el fix. * lisp/emacs-lisp/package.el (package-menu-mode): `revert-buffer-function' is not automatically buffer-local. --- lisp/ChangeLog | 5 +++++ lisp/emacs-lisp/package.el | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 9900472a59d..8bce44fc89d 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2010-09-22 Glenn Morris + + * emacs-lisp/package.el (package-menu-mode): `revert-buffer-function' + is not automatically buffer-local. + 2010-09-21 Stefan Monnier * emacs-lisp/smie.el (smie-debug--describe-cycle): Fix typo. diff --git a/lisp/emacs-lisp/package.el b/lisp/emacs-lisp/package.el index 54c6a09dd9d..61a2985226d 100644 --- a/lisp/emacs-lisp/package.el +++ b/lisp/emacs-lisp/package.el @@ -1273,7 +1273,7 @@ Letters do not insert themselves; instead, they are commands. (setq mode-name "Package Menu") (setq truncate-lines t) (setq buffer-read-only t) - (setq revert-buffer-function 'package-menu-revert) + (set (make-local-variable 'revert-buffer-function) 'package-menu-revert) (setq header-line-format (mapconcat (lambda (pair) -- 2.39.5