]> code.delx.au - gnu-emacs/commitdiff
(comint-send-input): Widen the buffer first.
authorChong Yidong <cyd@stupidchicken.com>
Mon, 2 Apr 2007 14:01:02 +0000 (14:01 +0000)
committerChong Yidong <cyd@stupidchicken.com>
Mon, 2 Apr 2007 14:01:02 +0000 (14:01 +0000)
lisp/comint.el

index 52d7b2a1a4e9e1e7e7d30d863d949a3c5529e575..7d81f357e22700080269ce95128edc4730e9a7d9 100644 (file)
@@ -1502,6 +1502,7 @@ Similarly for Soar, Scheme, etc."
   ;; Note that the input string does not include its terminal newline.
   (let ((proc (get-buffer-process (current-buffer))))
     (if (not proc) (error "Current buffer has no process")
+        (widen)
        (let* ((pmark (process-mark proc))
               (intxt (if (>= (point) (marker-position pmark))
                          (progn (if comint-eol-on-send (end-of-line))
@@ -1646,8 +1647,8 @@ and moves the prompt overlay."
     (let ((inhibit-read-only t)
          (inhibit-modification-hooks t))
       (add-text-properties (overlay-start comint-last-prompt-overlay)
-                           (overlay-end comint-last-prompt-overlay)
-                           (overlay-properties comint-last-prompt-overlay)))))
+                          (overlay-end comint-last-prompt-overlay)
+                          (overlay-properties comint-last-prompt-overlay)))))
 
 (defun comint-carriage-motion (start end)
   "Interpret carriage control characters in the region from START to END.