Mercurial > emacs
changeset 22446:5988c3c973db
(gud-filter): extend scope of binding of gud-filter-defer-flag.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Fri, 12 Jun 1998 05:59:33 +0000 |
parents | 49ed9656f1ed |
children | 2806e56a2aae |
files | lisp/gud.el |
diffstat | 1 files changed, 15 insertions(+), 15 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/gud.el Fri Jun 12 05:53:52 1998 +0000 +++ b/lisp/gud.el Fri Jun 12 05:59:33 1998 +0000 @@ -2136,22 +2136,22 @@ ;; Let the comint filter do the actual insertion. ;; That lets us inherit various comint features. - (comint-output-filter proc output))) + (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)))) + ;; 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.