diff options
| author | Gerd Moellmann | 2000-07-03 09:13:23 +0000 |
|---|---|---|
| committer | Gerd Moellmann | 2000-07-03 09:13:23 +0000 |
| commit | 8822bfb631aaedb65080c1dfc325a764f8bfb1e0 (patch) | |
| tree | ed66d094b21e500d6cbb699bb36fc23be231452a | |
| parent | f9cc39a188d4259f251bb654352bd1750b2d18f8 (diff) | |
| download | emacs-8822bfb631aaedb65080c1dfc325a764f8bfb1e0.tar.gz emacs-8822bfb631aaedb65080c1dfc325a764f8bfb1e0.zip | |
(te-process-output): Use walk-windows instead of
cycling through windows with next-window.
| -rw-r--r-- | lisp/terminal.el | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/lisp/terminal.el b/lisp/terminal.el index e96bad98c86..59b4fb7769b 100644 --- a/lisp/terminal.el +++ b/lisp/terminal.el | |||
| @@ -991,11 +991,10 @@ move to start of new line, clear to end of line." | |||
| 991 | ;; preemptible output! Oh my!! | 991 | ;; preemptible output! Oh my!! |
| 992 | (throw 'te-process-output t))))) | 992 | (throw 'te-process-output t))))) |
| 993 | ;; We must update window-point in every window displaying our buffer | 993 | ;; We must update window-point in every window displaying our buffer |
| 994 | (let* ((s (selected-window)) | 994 | (walk-windows (lambda (w) |
| 995 | (w s)) | 995 | (when (and (not (eq w (selected-window))) |
| 996 | (while (not (eq s (setq w (next-window w)))) | 996 | (eq (window-buffer w) (current-buffer))) |
| 997 | (if (eq (window-buffer w) (current-buffer)) | 997 | (set-window-point w (point)))))) |
| 998 | (set-window-point w (point)))))) | ||
| 999 | 998 | ||
| 1000 | (defun te-get-char () | 999 | (defun te-get-char () |
| 1001 | (if (cdr te-pending-output) | 1000 | (if (cdr te-pending-output) |