From 1c9bd87017e4b5f7f56e734277ff6e0a0ebb51d6 Mon Sep 17 00:00:00 2001 From: Glenn Morris Date: Thu, 28 Jun 2012 00:21:41 -0700 Subject: * simple.el (completion-list-mode-finish): Don't use toggle-read-only. Since completion-list-mode has a special mode-class, it wasn't doing anything extra anyway. --- lisp/simple.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lisp/simple.el') diff --git a/lisp/simple.el b/lisp/simple.el index 5d56a64eb23..1b347794521 100644 --- a/lisp/simple.el +++ b/lisp/simple.el @@ -6347,7 +6347,7 @@ Use \\\\[mouse-choose-completion] to select one\ "Finish setup of the completions buffer. Called from `temp-buffer-show-hook'." (when (eq major-mode 'completion-list-mode) - (toggle-read-only 1))) + (setq buffer-read-only t))) (add-hook 'temp-buffer-show-hook 'completion-list-mode-finish) -- cgit v1.2.3