From: Glenn Morris Date: Thu, 28 Jun 2012 07:21:41 +0000 (-0700) Subject: * simple.el (completion-list-mode-finish): Don't use toggle-read-only. X-Git-Tag: emacs-24.2.90~1199^2~305 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=1c9bd87017e4b5f7f56e734277ff6e0a0ebb51d6;p=emacs.git * 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. --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index bb7fca91126..5bf2036e11f 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,9 @@ +2012-06-28 Glenn Morris + + * 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.) + 2012-06-28 Stefan Monnier Make inlining of other-mode interpreted functions work (bug#11799). 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)