* 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.
This commit is contained in:
Glenn Morris 2012-06-28 00:21:41 -07:00
parent acd97ed658
commit 1c9bd87017
2 changed files with 7 additions and 1 deletions

View file

@ -1,3 +1,9 @@
2012-06-28 Glenn Morris <rgm@gnu.org>
* 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 <monnier@iro.umontreal.ca>
Make inlining of other-mode interpreted functions work (bug#11799).

View file

@ -6347,7 +6347,7 @@ Use \\<completion-list-mode-map>\\[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)