diff options
| author | Richard M. Stallman | 1993-05-26 17:03:51 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1993-05-26 17:03:51 +0000 |
| commit | afa721bf351ebaeec74621f8eabc337c7e068883 (patch) | |
| tree | 5c7f0914a41bc7935bf67f655a4bdb253eb72954 | |
| parent | aa5f883618cf56bdb87fbb433792e1da36c978ef (diff) | |
| download | emacs-afa721bf351ebaeec74621f8eabc337c7e068883.tar.gz emacs-afa721bf351ebaeec74621f8eabc337c7e068883.zip | |
(comint-filter): Restore buffer-read-only in proper buffer.
| -rw-r--r-- | lisp/comint.el | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/lisp/comint.el b/lisp/comint.el index 0d49cba5590..bb20f2ab578 100644 --- a/lisp/comint.el +++ b/lisp/comint.el | |||
| @@ -651,13 +651,11 @@ Similarly for Soar, Scheme, etc." | |||
| 651 | ;; when output is inserted. | 651 | ;; when output is inserted. |
| 652 | (defun comint-filter (process string) | 652 | (defun comint-filter (process string) |
| 653 | (let ((obuf (current-buffer)) | 653 | (let ((obuf (current-buffer)) |
| 654 | ordonly | ||
| 655 | opoint obeg oend) | 654 | opoint obeg oend) |
| 656 | (set-buffer (process-buffer process)) | 655 | (set-buffer (process-buffer process)) |
| 657 | (setq opoint (point)) | 656 | (setq opoint (point)) |
| 658 | (setq obeg (point-min)) | 657 | (setq obeg (point-min)) |
| 659 | (setq oend (point-max)) | 658 | (setq oend (point-max)) |
| 660 | (setq ordonly buffer-read-only) | ||
| 661 | (let ((buffer-read-only nil) | 659 | (let ((buffer-read-only nil) |
| 662 | (nchars (length string))) | 660 | (nchars (length string))) |
| 663 | (widen) | 661 | (widen) |
| @@ -677,12 +675,11 @@ Similarly for Soar, Scheme, etc." | |||
| 677 | (set-marker comint-last-input-end | 675 | (set-marker comint-last-input-end |
| 678 | (- comint-last-input-end nchars))) | 676 | (- comint-last-input-end nchars))) |
| 679 | (set-marker (process-mark process) (point) nil) | 677 | (set-marker (process-mark process) (point) nil) |
| 680 | (force-mode-line-update) | 678 | (force-mode-line-update)) |
| 681 | 679 | ||
| 682 | (narrow-to-region obeg oend) | 680 | (narrow-to-region obeg oend) |
| 683 | (setq buffer-read-only ordonly) | 681 | (goto-char opoint) |
| 684 | (goto-char opoint) | 682 | (set-buffer obuf))) |
| 685 | (set-buffer obuf)))) | ||
| 686 | 683 | ||
| 687 | (defun comint-get-old-input-default () | 684 | (defun comint-get-old-input-default () |
| 688 | "Default for comint-get-old-input. | 685 | "Default for comint-get-old-input. |