changeset 3113:598d05b3eb3b

(comint-filter): Restore buffer-read-only in proper buffer.
author Richard M. Stallman <rms@gnu.org>
date Wed, 26 May 1993 17:03:51 +0000
parents 6b8a9fb0537c
children 630eb7c9ea64
files lisp/comint.el
diffstat 1 files changed, 4 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/comint.el	Wed May 26 16:56:03 1993 +0000
+++ b/lisp/comint.el	Wed May 26 17:03:51 1993 +0000
@@ -651,13 +651,11 @@
 ;; when output is inserted.
 (defun comint-filter (process string)
   (let ((obuf (current-buffer))
-	ordonly
 	opoint obeg oend)
     (set-buffer (process-buffer process))
     (setq opoint (point))
     (setq obeg (point-min))
     (setq oend (point-max))
-    (setq ordonly buffer-read-only)
     (let ((buffer-read-only nil)
 	  (nchars (length string)))
       (widen)
@@ -677,12 +675,11 @@
 	   (set-marker comint-last-input-end
 		       (- comint-last-input-end nchars)))
       (set-marker (process-mark process) (point) nil)
-      (force-mode-line-update)
+      (force-mode-line-update))
 
-      (narrow-to-region obeg oend)
-      (setq buffer-read-only ordonly)
-      (goto-char opoint)
-      (set-buffer obuf))))
+    (narrow-to-region obeg oend)
+    (goto-char opoint)
+    (set-buffer obuf)))
 
 (defun comint-get-old-input-default ()
   "Default for comint-get-old-input.