changeset 110473:1bd5072b2384

Tiny package.el fix. * lisp/emacs-lisp/package.el (package-menu-mode): `revert-buffer-function' is not automatically buffer-local.
author Glenn Morris <rgm@gnu.org>
date Tue, 21 Sep 2010 20:31:30 -0700
parents 52590453d4f9
children eb4a332b45f5
files lisp/ChangeLog lisp/emacs-lisp/package.el
diffstat 2 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/ChangeLog	Tue Sep 21 23:10:16 2010 -0400
+++ b/lisp/ChangeLog	Tue Sep 21 20:31:30 2010 -0700
@@ -1,3 +1,8 @@
+2010-09-22  Glenn Morris  <rgm@gnu.org>
+
+	* emacs-lisp/package.el (package-menu-mode): `revert-buffer-function'
+	is not automatically buffer-local.
+
 2010-09-21  Stefan Monnier  <monnier@iro.umontreal.ca>
 
 	* emacs-lisp/smie.el (smie-debug--describe-cycle): Fix typo.
--- a/lisp/emacs-lisp/package.el	Tue Sep 21 23:10:16 2010 -0400
+++ b/lisp/emacs-lisp/package.el	Tue Sep 21 20:31:30 2010 -0700
@@ -1273,7 +1273,7 @@
   (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)