emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] /srv/bzr/emacs/trunk r108782: * simple.el (completion-list


From: Glenn Morris
Subject: [Emacs-diffs] /srv/bzr/emacs/trunk r108782: * simple.el (completion-list-mode-finish): Don't use toggle-read-only.
Date: Thu, 28 Jun 2012 00:21:41 -0700
User-agent: Bazaar (2.5.0)

------------------------------------------------------------
revno: 108782
committer: Glenn Morris <address@hidden>
branch nick: trunk
timestamp: Thu 2012-06-28 00:21:41 -0700
message:
  * 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.
modified:
  lisp/ChangeLog
  lisp/simple.el
=== modified file 'lisp/ChangeLog'
--- a/lisp/ChangeLog    2012-06-28 03:31:27 +0000
+++ b/lisp/ChangeLog    2012-06-28 07:21:41 +0000
@@ -1,3 +1,9 @@
+2012-06-28  Glenn Morris  <address@hidden>
+
+       * 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  <address@hidden>
 
        Make inlining of other-mode interpreted functions work (bug#11799).

=== modified file 'lisp/simple.el'
--- a/lisp/simple.el    2012-06-22 13:42:38 +0000
+++ b/lisp/simple.el    2012-06-28 07:21:41 +0000
@@ -6347,7 +6347,7 @@
   "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)
 


reply via email to

[Prev in Thread] Current Thread [Next in Thread]