Skip to content

Commit

Permalink
(gud-filter): extend scope of binding of gud-filter-defer-flag.
Browse files Browse the repository at this point in the history
  • Loading branch information
Richard M. Stallman committed Jun 12, 1998
1 parent d5a4b64 commit 8541213
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions lisp/gud.el
Expand Up @@ -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.
Expand Down

0 comments on commit 8541213

Please sign in to comment.