aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/ChangeLog4
-rw-r--r--lisp/progmodes/tcl.el10
2 files changed, 8 insertions, 6 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 95f64399da5..00a56524b34 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,7 @@
12008-11-21 Ivan Shmakov <oneingray@gmail.com> (tiny change)
2
3 * progmodes/tcl.el (tcl-filter): Don't forcibly move point.
4
12008-11-21 Stefan Monnier <monnier@iro.umontreal.ca> 52008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
2 6
3 * international/quail.el (quail-indent-to): New function. 7 * international/quail.el (quail-indent-to): New function.
diff --git a/lisp/progmodes/tcl.el b/lisp/progmodes/tcl.el
index f0c49506161..13b2f4a11f4 100644
--- a/lisp/progmodes/tcl.el
+++ b/lisp/progmodes/tcl.el
@@ -1029,14 +1029,12 @@ Returns nil if line starts inside a string, t if in a comment."
1029(defvar inferior-tcl-delete-prompt-marker nil) 1029(defvar inferior-tcl-delete-prompt-marker nil)
1030 1030
1031(defun tcl-filter (proc string) 1031(defun tcl-filter (proc string)
1032 (let ((inhibit-quit t)) 1032 (let ((inhibit-quit t)) ;FIXME: Isn't that redundant?
1033 (with-current-buffer (process-buffer proc) 1033 (with-current-buffer (process-buffer proc)
1034 (goto-char (process-mark proc))
1035 ;; Delete prompt if requested. 1034 ;; Delete prompt if requested.
1036 (if (marker-buffer inferior-tcl-delete-prompt-marker) 1035 (when (marker-buffer inferior-tcl-delete-prompt-marker)
1037 (progn 1036 (delete-region (process-mark proc) inferior-tcl-delete-prompt-marker)
1038 (delete-region (point) inferior-tcl-delete-prompt-marker) 1037 (set-marker inferior-tcl-delete-prompt-marker nil))))
1039 (set-marker inferior-tcl-delete-prompt-marker nil)))))
1040 (comint-output-filter proc string)) 1038 (comint-output-filter proc string))
1041 1039
1042(defun tcl-send-string (proc string) 1040(defun tcl-send-string (proc string)