summaryrefslogtreecommitdiff
path: root/lisp/emerge.el
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1994-09-21 18:42:05 +0000
committerRichard M. Stallman <rms@gnu.org>1994-09-21 18:42:05 +0000
commitf405e887974f9059d63360b867432fe99dbbdd23 (patch)
treeb8ffe018b9fc762c5f8c38b7719b73c643d57990 /lisp/emerge.el
parent4cc32db661d4b28159da5451397cd612685f5993 (diff)
downloademacs-f405e887974f9059d63360b867432fe99dbbdd23.tar.gz
(emerge-recenter, emerge-operate-on-windows):
Use `visible' when calling get-buffer-window.
Diffstat (limited to 'lisp/emerge.el')
-rw-r--r--lisp/emerge.el8
1 files changed, 4 insertions, 4 deletions
diff --git a/lisp/emerge.el b/lisp/emerge.el
index 250df827d13..99b1ec1ff78 100644
--- a/lisp/emerge.el
+++ b/lisp/emerge.el
@@ -1554,8 +1554,8 @@ With an argument, reestablish the default three-window display."
(let* ((merge-buffer emerge-merge-buffer)
(buffer-A emerge-A-buffer)
(buffer-B emerge-B-buffer)
- (window-A (get-buffer-window buffer-A))
- (window-B (get-buffer-window buffer-B))
+ (window-A (get-buffer-window buffer-A 'visible))
+ (window-B (get-buffer-window buffer-B 'visible))
(merge-window (get-buffer-window merge-buffer))
(diff-vector
(aref emerge-difference-list emerge-current-difference)))
@@ -1599,8 +1599,8 @@ With an argument, reestablish the default three-window display."
(let* ((merge-buffer emerge-merge-buffer)
(buffer-A emerge-A-buffer)
(buffer-B emerge-B-buffer)
- (window-A (get-buffer-window buffer-A))
- (window-B (get-buffer-window buffer-B))
+ (window-A (get-buffer-window buffer-A 'visible))
+ (window-B (get-buffer-window buffer-B 'visible))
(merge-window (get-buffer-window merge-buffer)))
(if window-A (progn
(select-window window-A)