changeset 14781:b4879ed5b5c3

(with-electric-help): Make buffer read-only as last thing.
author Richard M. Stallman <rms@gnu.org>
date Thu, 07 Mar 1996 18:15:59 +0000
parents 1d10e4a2fb51
children 8988aa71854e
files lisp/ehelp.el
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/ehelp.el	Thu Mar 07 13:47:46 1996 +0000
+++ b/lisp/ehelp.el	Thu Mar 07 18:15:59 1996 +0000
@@ -134,9 +134,9 @@
              (if (and minheight (< (window-height) minheight))
                  (enlarge-window (- minheight (window-height))))
              (electric-help-mode)
+	     (setq buffer-read-only nil)
 	     (or noerase
-		 (let ((inhibit-read-only t))
-		   (erase-buffer))))
+		 (erase-buffer)))
            (let ((standard-output buffer))
              (if (not (funcall thunk))
                  (progn
@@ -146,6 +146,7 @@
                    (if one (shrink-window-if-larger-than-buffer (selected-window))))))
            (set-buffer buffer)
            (run-hooks 'electric-help-mode-hook)
+	   (setq buffer-read-only t)
            (if (eq (car-safe (electric-help-command-loop))
                    'retain)
                (setq config (current-window-configuration))