aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1995-08-03 17:38:07 +0000
committerRichard M. Stallman1995-08-03 17:38:07 +0000
commit04752ffbf2d7cd3a39f469b85142496cd64341c8 (patch)
tree509f3bdb37075920948df115cee6306611181e21
parenta249de79739540f9a8b16308969eb53dcdab7bde (diff)
downloademacs-04752ffbf2d7cd3a39f469b85142496cd64341c8.tar.gz
emacs-04752ffbf2d7cd3a39f469b85142496cd64341c8.zip
(resize-minibuffer-setup): Use make-local-hook.
-rw-r--r--lisp/rsz-mini.el13
1 files changed, 6 insertions, 7 deletions
diff --git a/lisp/rsz-mini.el b/lisp/rsz-mini.el
index 684a55cf42c..37c63c26dee 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.7 1994/07/13 17:19:23 friedman Exp friedman $ 10;; $Id: rsz-mini.el,v 1.8 1995/04/08 08:22:07 friedman Exp rms $
11 11
12;; This file is part of GNU Emacs. 12;; This file is part of GNU Emacs.
13 13
@@ -153,13 +153,12 @@ counterparts."
153 (make-local-variable 'resize-minibuffer-frame-original-height) 153 (make-local-variable 'resize-minibuffer-frame-original-height)
154 (setq resize-minibuffer-frame-original-height (frame-height)) 154 (setq resize-minibuffer-frame-original-height (frame-height))
155 155
156 (make-local-variable 'post-command-hook) 156 (make-local-hook 'post-command-hook)
157 ;; Copy this because add-hook modifies the list structure. 157 (add-hook 'post-command-hook 'resize-minibuffer-frame 'append t)
158 (setq post-command-hook (copy-sequence post-command-hook))
159 (add-hook 'post-command-hook 'resize-minibuffer-frame 'append)
160 158
161 (make-local-variable 'minibuffer-exit-hook) 159 (make-local-hook 'minibuffer-exit-hook)
162 (add-hook 'minibuffer-exit-hook 'resize-minibuffer-frame-restore) 160 (add-hook 'minibuffer-exit-hook 'resize-minibuffer-frame-restore
161 nil t)
163 162
164 (resize-minibuffer-frame)))) 163 (resize-minibuffer-frame))))
165 (t 164 (t