mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-12-24 10:38:38 +00:00
(compare-windows): Try to find the next window in
the current frame before looking at the other frames.
This commit is contained in:
parent
39d523864b
commit
0846761ddf
@ -81,7 +81,9 @@ If `compare-ignore-case' is non-nil, changes in case are also ignored."
|
|||||||
'compare-windows-skip-whitespace
|
'compare-windows-skip-whitespace
|
||||||
compare-windows-whitespace))))
|
compare-windows-whitespace))))
|
||||||
(setq p1 (point) b1 (current-buffer))
|
(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))
|
(if (eq w2 (selected-window))
|
||||||
(error "No other window"))
|
(error "No other window"))
|
||||||
(setq p2 (window-point w2)
|
(setq p2 (window-point w2)
|
||||||
|
Loading…
Reference in New Issue
Block a user