aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarl Heuer1996-11-19 07:38:29 +0000
committerKarl Heuer1996-11-19 07:38:29 +0000
commitc7385664fde60a1fe4d617ccd6d19d83b355c3c2 (patch)
tree3ded63956d1205cc81e9697e5bd19fa7c130cfeb
parente5e0a3c9fe3b56e020cebe42edfb6958c91b2fff (diff)
downloademacs-c7385664fde60a1fe4d617ccd6d19d83b355c3c2.tar.gz
emacs-c7385664fde60a1fe4d617ccd6d19d83b355c3c2.zip
(resize-minibuffer-frame): Don't assume minibuffer frame is selected.
-rw-r--r--lisp/rsz-mini.el7
1 files changed, 4 insertions, 3 deletions
diff --git a/lisp/rsz-mini.el b/lisp/rsz-mini.el
index f1221b40ba9..cf278d00b09 100644
--- a/lisp/rsz-mini.el
+++ b/lisp/rsz-mini.el
@@ -7,7 +7,7 @@
7;; Maintainer: friedman@prep.ai.mit.edu 7;; Maintainer: friedman@prep.ai.mit.edu
8;; Keywords: minibuffer, window, frame, display 8;; Keywords: minibuffer, window, frame, display
9;; Status: Known to work in FSF GNU Emacs 19.26 and later. 9;; Status: Known to work in FSF GNU Emacs 19.26 and later.
10;; $Id: rsz-mini.el,v 1.11 1996/01/14 07:34:30 erik Exp kwzh $ 10;; $Id: rsz-mini.el,v 1.12 1996/11/14 18:49:50 kwzh Exp kwzh $
11 11
12;; This file is part of GNU Emacs. 12;; This file is part of GNU Emacs.
13 13
@@ -232,11 +232,12 @@ respectively."
232 (setq lines (min lines resize-minibuffer-frame-max-height))) 232 (setq lines (min lines resize-minibuffer-frame-max-height)))
233 (cond 233 (cond
234 ((> lines height) 234 ((> lines height)
235 (set-frame-size (selected-frame) (frame-width) lines)) 235 (set-frame-size (window-frame (minibuffer-window)) (frame-width) lines))
236 ((and resize-minibuffer-frame-exactly 236 ((and resize-minibuffer-frame-exactly
237 (> height resize-minibuffer-frame-original-height) 237 (> height resize-minibuffer-frame-original-height)
238 (< lines height)) 238 (< lines height))
239 (set-frame-size (selected-frame) (frame-width) lines))))) 239 (set-frame-size (window-frame (minibuffer-window))
240 (frame-width) lines)))))
240 241
241;; Restore the original height of the frame. 242;; Restore the original height of the frame.
242;; resize-minibuffer-frame-original-height is set in 243;; resize-minibuffer-frame-original-height is set in