diff options
| author | Gerd Moellmann | 1999-11-01 12:15:41 +0000 |
|---|---|---|
| committer | Gerd Moellmann | 1999-11-01 12:15:41 +0000 |
| commit | aeb721fe9ca9239ad9ca0fe6b2fe4f57f97da9c2 (patch) | |
| tree | 7575da00bf4b5de030e816f6b3b90f07ae999947 | |
| parent | 314808dc648814f3b68fe45db3f14ca414db63bd (diff) | |
| download | emacs-aeb721fe9ca9239ad9ca0fe6b2fe4f57f97da9c2.tar.gz emacs-aeb721fe9ca9239ad9ca0fe6b2fe4f57f97da9c2.zip | |
(walk-windows): If ALL-FRAMES is a frame,
start on that frame. Use save-selected-window.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/window.el | 18 |
2 files changed, 16 insertions, 7 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 9721ec5d0f3..2ede4abe932 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 1999-11-01 Richard M. Stallman <rms@caffeine.ai.mit.edu> | ||
| 2 | |||
| 3 | * window.el (walk-windows): If ALL-FRAMES is a frame, | ||
| 4 | start on that frame. Use save-selected-window. | ||
| 5 | |||
| 1 | 1999-11-01 Gerd Moellmann <gerd@gnu.org> | 6 | 1999-11-01 Gerd Moellmann <gerd@gnu.org> |
| 2 | 7 | ||
| 3 | * simple.el (end-of-buffer): Use window-end to find the window end | 8 | * simple.el (end-of-buffer): Use window-end to find the window end |
diff --git a/lisp/window.el b/lisp/window.el index c26b79af485..e5639a50827 100644 --- a/lisp/window.el +++ b/lisp/window.el | |||
| @@ -62,17 +62,21 @@ ALL-FRAMES nil or omitted means cycle within the frames as specified above. | |||
| 62 | ALL-FRAMES = `visible' means include windows on all visible frames. | 62 | ALL-FRAMES = `visible' means include windows on all visible frames. |
| 63 | ALL-FRAMES = 0 means include windows on all visible and iconified frames. | 63 | ALL-FRAMES = 0 means include windows on all visible and iconified frames. |
| 64 | ALL-FRAMES = t means include windows on all frames including invisible frames. | 64 | ALL-FRAMES = t means include windows on all frames including invisible frames. |
| 65 | If ALL-FRAMES is a frame, it means include windows on that frame. | ||
| 65 | Anything else means restrict to the selected frame." | 66 | Anything else means restrict to the selected frame." |
| 66 | ;; If we start from the minibuffer window, don't fail to come back to it. | 67 | ;; If we start from the minibuffer window, don't fail to come back to it. |
| 67 | (if (window-minibuffer-p (selected-window)) | 68 | (if (window-minibuffer-p (selected-window)) |
| 68 | (setq minibuf t)) | 69 | (setq minibuf t)) |
| 69 | (let* ((walk-windows-start (selected-window)) | 70 | (save-selected-window |
| 70 | (walk-windows-current walk-windows-start)) | 71 | (if (framep all-frames) |
| 71 | (while (progn | 72 | (select-window (frame-first-window all-frames))) |
| 72 | (setq walk-windows-current | 73 | (let* ((walk-windows-start (selected-window)) |
| 73 | (next-window walk-windows-current minibuf all-frames)) | 74 | (walk-windows-current walk-windows-start)) |
| 74 | (funcall proc walk-windows-current) | 75 | (while (progn |
| 75 | (not (eq walk-windows-current walk-windows-start)))))) | 76 | (setq walk-windows-current |
| 77 | (next-window walk-windows-current minibuf all-frames)) | ||
| 78 | (funcall proc walk-windows-current) | ||
| 79 | (not (eq walk-windows-current walk-windows-start))))))) | ||
| 76 | 80 | ||
| 77 | (defun minibuffer-window-active-p (window) | 81 | (defun minibuffer-window-active-p (window) |
| 78 | "Return t if WINDOW (a minibuffer window) is now active." | 82 | "Return t if WINDOW (a minibuffer window) is now active." |