aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarl Heuer1994-03-15 04:17:18 +0000
committerKarl Heuer1994-03-15 04:17:18 +0000
commit697d0646db42f483a14718b47d22ed5e1d998b2d (patch)
tree85b870376598a1ef60bf0d1e4d4bf28a138de712
parent6449ac07998a2c55fd1beb5733e4a283980f8de0 (diff)
downloademacs-697d0646db42f483a14718b47d22ed5e1d998b2d.tar.gz
emacs-697d0646db42f483a14718b47d22ed5e1d998b2d.zip
(gud-filter): Update comint-last-input-end.
-rw-r--r--lisp/gud.el11
1 files changed, 10 insertions, 1 deletions
diff --git a/lisp/gud.el b/lisp/gud.el
index 7e1c3180953..843999c4c31 100644
--- a/lisp/gud.el
+++ b/lisp/gud.el
@@ -841,6 +841,9 @@ comint mode, which see."
841;; into the buffer. The hard work is done by the method that is 841;; into the buffer. The hard work is done by the method that is
842;; the value of gud-marker-filter. 842;; the value of gud-marker-filter.
843 843
844;; Rather than duplicating all the work of comint-output-filter, perhaps
845;; gud-filter should be implemented by adding appropriate hooks to
846;; comint-output-filter. Would somebody like to volunteer to do that?
844(defun gud-filter (proc string) 847(defun gud-filter (proc string)
845 ;; Here's where the actual buffer insertion is done 848 ;; Here's where the actual buffer insertion is done
846 (let ((inhibit-quit t)) 849 (let ((inhibit-quit t))
@@ -854,7 +857,13 @@ comint mode, which see."
854 (progn 857 (progn
855 (delete-region (point) gud-delete-prompt-marker) 858 (delete-region (point) gud-delete-prompt-marker)
856 (set-marker gud-delete-prompt-marker nil))) 859 (set-marker gud-delete-prompt-marker nil)))
857 (insert-before-markers (gud-marker-filter string)) 860 (setq string (gud-marker-filter string))
861 (insert-before-markers string)
862 (and comint-last-input-end
863 (marker-buffer comint-last-input-end)
864 (= (point) comint-last-input-end)
865 (set-marker comint-last-input-end
866 (- comint-last-input-end (length string))))
858 (setq moving (= (point) (process-mark proc))) 867 (setq moving (= (point) (process-mark proc)))
859 (setq output-after-point (< (point) (process-mark proc))) 868 (setq output-after-point (< (point) (process-mark proc)))
860 ;; Check for a filename-and-line number. 869 ;; Check for a filename-and-line number.