# HG changeset patch # User Andreas Schwab # Date 931940209 0 # Node ID 970c0b904d354fac81a6c74735ce36b2713d4ac4 # Parent 4f788869cb29fe45be2864429321d58d4fdd54fa (compare-windows): Try to find the next window in the current frame before looking at the other frames. diff -r 4f788869cb29 -r 970c0b904d35 lisp/compare-w.el --- a/lisp/compare-w.el Tue Jul 13 19:08:57 1999 +0000 +++ b/lisp/compare-w.el Wed Jul 14 08:16:49 1999 +0000 @@ -81,7 +81,9 @@ 'compare-windows-skip-whitespace compare-windows-whitespace)))) (setq p1 (point) b1 (current-buffer)) - (setq w2 (next-window (selected-window) nil 'visible)) + (setq w2 (next-window (selected-window))) + (if (eq w2 (selected-window)) + (setq w2 (next-window (selected-window) nil 'visible))) (if (eq w2 (selected-window)) (error "No other window")) (setq p2 (window-point w2)