From: Chong Yidong Date: Sun, 24 Oct 2010 15:37:21 +0000 (-0400) Subject: Make the *Packages* buffer read-only. X-Git-Tag: emacs-pretest-24.0.90~104^2~275^2~438^2~45^2~487 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=f34e6aaaf8950f33be03ea89146d0cadb8119d40;p=emacs.git Make the *Packages* buffer read-only. * emacs-lisp/package.el (package--generate-package-list): Make the *Packages* buffer read-only. --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index ce7d83d55a6..43d28d5d608 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2010-10-24 Chong Yidong + + * emacs-lisp/package.el (package--generate-package-list): Make the + *Packages* buffer read-only. + 2010-10-24 Alan Mackenzie * progmodes/cc-fonts.el (c-font-lock-declarations): Cache the diff --git a/lisp/emacs-lisp/package.el b/lisp/emacs-lisp/package.el index 61a2985226d..f59082153fe 100644 --- a/lisp/emacs-lisp/package.el +++ b/lisp/emacs-lisp/package.el @@ -1474,7 +1474,7 @@ A value of nil means to display all packages.") (package-initialize) (let ((inhibit-read-only t) info-list name desc hold builtin) - (setq buffer-read-only nil) + (setq buffer-read-only t) (erase-buffer) ;; List installed packages (dolist (elt package-alist)