aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1996-05-10 02:41:59 +0000
committerRichard M. Stallman1996-05-10 02:41:59 +0000
commit58684193b8c1d4bb994ed7500418ed6d15fc48c2 (patch)
tree8aa036f1f9b8e1efa37bef37d2b21c6f3cf25283
parent378f60427d16c0e84e27f2389374f00d347cc362 (diff)
downloademacs-58684193b8c1d4bb994ed7500418ed6d15fc48c2.tar.gz
emacs-58684193b8c1d4bb994ed7500418ed6d15fc48c2.zip
(gud-filter): Cal gud-display-frame even if process-window is nil.
-rw-r--r--lisp/gud.el11
1 files changed, 9 insertions, 2 deletions
diff --git a/lisp/gud.el b/lisp/gud.el
index d24a6a441da..439484b60c8 100644
--- a/lisp/gud.el
+++ b/lisp/gud.el
@@ -1257,12 +1257,19 @@ It is saved for when this flag is not set.")
1257 (comint-output-filter proc output))) 1257 (comint-output-filter proc output)))
1258 1258
1259 ;; Put the arrow on the source line. 1259 ;; Put the arrow on the source line.
1260 :; This must be outside of the save-excursion 1260 ;; This must be outside of the save-excursion
1261 ;; in case the source file is our current buffer. 1261 ;; in case the source file is our current buffer.
1262 (if process-window 1262 (if process-window
1263 (save-selected-window 1263 (save-selected-window
1264 (select-window process-window) 1264 (select-window process-window)
1265 (gud-display-frame))) 1265 (gud-display-frame))
1266 ;; We have to be in the proper buffer, (process-buffer proc),
1267 ;; but not in a save-excursion, because that would restore point.
1268 (let ((old-buf (current-buffer)))
1269 (set-buffer (process-buffer proc))
1270 (unwind-protect
1271 (gud-display-frame)
1272 (set-buffer old-buf))))
1266 1273
1267 ;; If we deferred text that arrived during this processing, 1274 ;; If we deferred text that arrived during this processing,
1268 ;; handle it now. 1275 ;; handle it now.