changeset 16597:ebdcc5509856

(resize-minibuffer-frame): Don't assume minibuffer frame is selected.
author Karl Heuer <kwzh@gnu.org>
date Tue, 19 Nov 1996 07:38:29 +0000
parents 0f917c0edc53
children 4b0b6719bbd2
files lisp/rsz-mini.el
diffstat 1 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/rsz-mini.el	Tue Nov 19 07:19:39 1996 +0000
+++ b/lisp/rsz-mini.el	Tue Nov 19 07:38:29 1996 +0000
@@ -7,7 +7,7 @@
 ;; Maintainer: friedman@prep.ai.mit.edu
 ;; Keywords: minibuffer, window, frame, display
 ;; Status: Known to work in FSF GNU Emacs 19.26 and later.
-;; $Id: rsz-mini.el,v 1.11 1996/01/14 07:34:30 erik Exp kwzh $
+;; $Id: rsz-mini.el,v 1.12 1996/11/14 18:49:50 kwzh Exp kwzh $
 
 ;; This file is part of GNU Emacs.
 
@@ -232,11 +232,12 @@
          (setq lines (min lines resize-minibuffer-frame-max-height)))
     (cond
      ((> lines height)
-      (set-frame-size (selected-frame) (frame-width) lines))
+      (set-frame-size (window-frame (minibuffer-window)) (frame-width) lines))
      ((and resize-minibuffer-frame-exactly
            (> height resize-minibuffer-frame-original-height)
            (< lines height))
-      (set-frame-size (selected-frame) (frame-width) lines)))))
+      (set-frame-size (window-frame (minibuffer-window))
+		      (frame-width) lines)))))
 
 ;; Restore the original height of the frame.
 ;; resize-minibuffer-frame-original-height is set in