From 88be0819a14f9d0cb4756ebfffb5fcd2d089c5b9 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Fri, 12 Jun 1998 05:59:33 +0000 Subject: [PATCH] (gud-filter): extend scope of binding of gud-filter-defer-flag. --- lisp/gud.el | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/lisp/gud.el b/lisp/gud.el index 9ccd06b4639..2f85014a118 100644 --- a/lisp/gud.el +++ b/lisp/gud.el @@ -2136,22 +2136,22 @@ It is saved for when this flag is not set.") ;; Let the comint filter do the actual insertion. ;; That lets us inherit various comint features. - (comint-output-filter proc output))) - - ;; Put the arrow on the source line. - ;; This must be outside of the save-excursion - ;; in case the source file is our current buffer. - (if process-window - (save-selected-window - (select-window process-window) - (gud-display-frame)) - ;; We have to be in the proper buffer, (process-buffer proc), - ;; but not in a save-excursion, because that would restore point. - (let ((old-buf (current-buffer))) - (set-buffer (process-buffer proc)) - (unwind-protect - (gud-display-frame) - (set-buffer old-buf)))) + (comint-output-filter proc output)) + + ;; Put the arrow on the source line. + ;; This must be outside of the save-excursion + ;; in case the source file is our current buffer. + (if process-window + (save-selected-window + (select-window process-window) + (gud-display-frame)) + ;; We have to be in the proper buffer, (process-buffer proc), + ;; but not in a save-excursion, because that would restore point. + (let ((old-buf (current-buffer))) + (set-buffer (process-buffer proc)) + (unwind-protect + (gud-display-frame) + (set-buffer old-buf))))) ;; If we deferred text that arrived during this processing, ;; handle it now. -- 2.39.5