From: Andreas Schwab Date: Wed, 14 Jul 1999 08:16:49 +0000 (+0000) Subject: (compare-windows): Try to find the next window in X-Git-Tag: emacs-20.4~1 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=0846761ddf923b31b663eccd9f585b484f2a1130;p=emacs.git (compare-windows): Try to find the next window in the current frame before looking at the other frames. --- diff --git a/lisp/compare-w.el b/lisp/compare-w.el index 495ff12d110..d3788508cd3 100644 --- a/lisp/compare-w.el +++ b/lisp/compare-w.el @@ -81,7 +81,9 @@ If `compare-ignore-case' is non-nil, changes in case are also ignored." '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)