* simple.el (completion-list-mode-finish): Don't use toggle-read-only.
authorGlenn Morris <rgm@gnu.org>
Thu, 28 Jun 2012 07:21:41 +0000 (00:21 -0700)
committerGlenn Morris <rgm@gnu.org>
Thu, 28 Jun 2012 07:21:41 +0000 (00:21 -0700)
Since completion-list-mode has a special mode-class, it wasn't doing
anything extra anyway.

lisp/ChangeLog
lisp/simple.el

index bb7fca9..5bf2036 100644 (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).
index 5d56a64..1b34779 100644 (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)