# HG changeset patch # User Richard M. Stallman # Date 766953915 0 # Node ID 9fb9491fb9a4f28a81731e91d5cd50187f9b7d50 # Parent fd080d04dfe2164563bf11ea3e5a7e4dc5db6449 (gud-filter): Call comint-output-filter at the end. diff -r fd080d04dfe2 -r 9fb9491fb9a4 lisp/gud.el --- a/lisp/gud.el Thu Apr 21 18:40:14 1994 +0000 +++ b/lisp/gud.el Thu Apr 21 18:45:15 1994 +0000 @@ -934,7 +934,8 @@ (defun gud-filter (proc string) ;; Here's where the actual buffer insertion is done - (let ((inhibit-quit t)) + (let ((inhibit-quit t) + output) (save-excursion (set-buffer (process-buffer proc)) ;; If we have been so requested, delete the debugger prompt. @@ -942,9 +943,8 @@ (progn (delete-region (process-mark proc) gud-delete-prompt-marker) (set-marker gud-delete-prompt-marker nil))) - ;; Let the comint filter do the actual insertion. - ;; That lets us inherit various comint features. - (comint-output-filter proc (gud-marker-filter string)) + ;; Save the process output, checking for source file markers. + (setq output (gud-marker-filter string)) ;; Check for a filename-and-line number. ;; Don't display the specified file ;; unless (1) point is at or after the position where output appears @@ -952,7 +952,10 @@ (if (and gud-last-frame (>= (point) (process-mark proc)) (get-buffer-window (current-buffer))) - (gud-display-frame))))) + (gud-display-frame)) + ;; Let the comint filter do the actual insertion. + ;; That lets us inherit various comint features. + (comint-output-filter proc output)))) (defun gud-sentinel (proc msg) (cond ((null (buffer-name (process-buffer proc)))