changeset 5157:d39a061f984a

(walk-windows): If start at minibuf window, do return to it.
author Richard M. Stallman <rms@gnu.org>
date Wed, 24 Nov 1993 06:46:26 +0000
parents fd78458b8c43
children 035f80625c5e
files lisp/subr.el
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/subr.el	Wed Nov 24 06:39:54 1993 +0000
+++ b/lisp/subr.el	Wed Nov 24 06:46:26 1993 +0000
@@ -75,6 +75,9 @@
 but include the minibuffer window (if MINIBUF says so) that that
 frame uses, even if it is on another frame.
 If ALL-FRAMES is neither nil nor t, stick strictly to the selected frame."
+  ;; If we start from the minibuffer window, don't fail to come back to it.
+  (if (window-minibuffer-p (selected-window))
+      (setq minibuf t))
   (let* ((walk-windows-start (selected-window))
 	 (walk-windows-current walk-windows-start))
     (while (progn