From f34e6aaaf8950f33be03ea89146d0cadb8119d40 Mon Sep 17 00:00:00 2001 From: Chong Yidong Date: Sun, 24 Oct 2010 11:37:21 -0400 Subject: [PATCH] Make the *Packages* buffer read-only. * emacs-lisp/package.el (package--generate-package-list): Make the *Packages* buffer read-only. --- 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 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) -- 2.39.5