diff options
author | Andreas Schwab <schwab@suse.de> | 1999-07-14 08:16:49 +0000 |
---|---|---|
committer | Andreas Schwab <schwab@suse.de> | 1999-07-14 08:16:49 +0000 |
commit | 0846761ddf923b31b663eccd9f585b484f2a1130 (patch) | |
tree | 0bbb413406764186cd87894090ab80d8662f416f /lisp/compare-w.el | |
parent | 39d523864b7660a898fb71220b8ab97a5197c791 (diff) | |
download | emacs-0846761ddf923b31b663eccd9f585b484f2a1130.tar.gz |
(compare-windows): Try to find the next window in
the current frame before looking at the other frames.
Diffstat (limited to 'lisp/compare-w.el')
-rw-r--r-- | lisp/compare-w.el | 4 |
1 files changed, 3 insertions, 1 deletions
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) |