summaryrefslogtreecommitdiff
path: root/lisp/window.el
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1993-08-03 06:38:26 +0000
committerRoland McGrath <roland@gnu.org>1993-08-03 06:38:26 +0000
commit33cb3479dfa1a1d39448fa38e334c5b40f7382dd (patch)
treeef02a41171344566a3b8959549edac44a7f3a0a3 /lisp/window.el
parent1361423bfb65d486df848443d331bb12cb84d480 (diff)
downloademacs-33cb3479dfa1a1d39448fa38e334c5b40f7382dd.tar.gz
(shrink-window-if-larger-than-buffer): Pass WINDOW to
pos-visible-in-window-p.
Diffstat (limited to 'lisp/window.el')
-rw-r--r--lisp/window.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/window.el b/lisp/window.el
index 1eda0ba960d..5f60dd72133 100644
--- a/lisp/window.el
+++ b/lisp/window.el
@@ -1,6 +1,6 @@
;;; window.el --- GNU Emacs window commands aside from those written in C.
-;;; Copyright (C) 1985, 1989, 1992 Free Software Foundation, Inc.
+;;; Copyright (C) 1985, 1989, 1992, 1993 Free Software Foundation, Inc.
;; Maintainer: FSF
@@ -158,7 +158,7 @@ or if the window is the only window of its frame."
(modified (buffer-modified-p))
(buffer (current-buffer)))
(if (and (< 1 (count-windows))
- (pos-visible-in-window-p (point-min)))
+ (pos-visible-in-window-p (point-min) window))
(unwind-protect
(progn
(select-window (or window w))