GNU bug report logs -
#1344
lisp/progmodes/tcl.el (tcl-filter): shouldn't move point
Previous Next
Reported by: Ivan Shmakov <oneingray <at> gmail.com>
Date: Fri, 14 Nov 2008 00:10:04 UTC
Severity: normal
Tags: patch
Done: Glenn Morris <rgm <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
Tags: patch
[ resent from
http://lists.gnu.org/archive/html/emacs-devel/2008-11/msg00104.html ]
tcl.el reads:
--cut: http://cvs.savannah.gnu.org/viewvc/*checkout*/emacs/emacs/lisp/progmodes/tcl.el?revision=1.93--
(defun tcl-filter (proc string)
(let ((inhibit-quit t))
(with-current-buffer (process-buffer proc)
(goto-char (process-mark proc))
;; Delete prompt if requested.
(if (marker-buffer inferior-tcl-delete-prompt-marker)
(progn
(delete-region (point) inferior-tcl-delete-prompt-marker)
(set-marker inferior-tcl-delete-prompt-marker nil)))))
(comint-output-filter proc string))
--cut: http://cvs.savannah.gnu.org/viewvc/*checkout*/emacs/emacs/lisp/progmodes/tcl.el?revision=1.93--
Thus, the point is moved every time there is a new output from
Tcl. Shouldn't it be like the following instead?
--- tcl.el?revision=1.93
+++ tcl.el
@@ -1031,11 +1031,11 @@
(defun tcl-filter (proc string)
(let ((inhibit-quit t))
(with-current-buffer (process-buffer proc)
- (goto-char (process-mark proc))
;; Delete prompt if requested.
(if (marker-buffer inferior-tcl-delete-prompt-marker)
(progn
- (delete-region (point) inferior-tcl-delete-prompt-marker)
+ (delete-region (process-mark proc)
+ inferior-tcl-delete-prompt-marker)
(set-marker inferior-tcl-delete-prompt-marker nil)))))
(comint-output-filter proc string))
If such scrolling is desired, the `comint-move-point-for-output'
variable could be set non-nil.
This bug report was last modified 16 years and 203 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.