]> git.eshelyaron.com Git - emacs.git/commitdiff
(walk-windows): If start at minibuf window, do return to it.
authorRichard M. Stallman <rms@gnu.org>
Wed, 24 Nov 1993 06:46:26 +0000 (06:46 +0000)
committerRichard M. Stallman <rms@gnu.org>
Wed, 24 Nov 1993 06:46:26 +0000 (06:46 +0000)
lisp/subr.el

index 6837adc8791211bf431aa263def75978de177d69..f21ec98c823f3534b12141264fe5dcf207e4e92e 100644 (file)
@@ -75,6 +75,9 @@ ALL-FRAMES nil or omitted means cycle within the selected frame,
 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