aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1994-07-12 19:51:30 +0000
committerRichard M. Stallman1994-07-12 19:51:30 +0000
commitf509158c263f8371e031e15e622180e034ab46ed (patch)
tree8a8e67bb854a433cec84643cf7b6115eaf78dad1
parent72e2e0c393dec5bcab8bd1ea99e21d1cd76b0abb (diff)
downloademacs-f509158c263f8371e031e15e622180e034ab46ed.tar.gz
emacs-f509158c263f8371e031e15e622180e034ab46ed.zip
(resize-minibuffer-setup):
Copy the value of post-command-hook.
-rw-r--r--lisp/rsz-mini.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/rsz-mini.el b/lisp/rsz-mini.el
index 8d90e0c8a56..a55ab90ac4d 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.4 1994/06/22 22:14:28 friedman Exp friedman $ 10;;; $Id: rsz-mini.el,v 1.5 1994/06/30 06:46:44 friedman Exp rms $
11 11
12;; This file is part of GNU Emacs. 12;; This file is part of GNU Emacs.
13 13
@@ -153,6 +153,8 @@ counterparts."
153 (make-local-variable 'minibuffer-exit-hook) 153 (make-local-variable 'minibuffer-exit-hook)
154 (add-hook 'minibuffer-exit-hook 'resize-minibuffer-frame-restore) 154 (add-hook 'minibuffer-exit-hook 'resize-minibuffer-frame-restore)
155 (make-local-variable 'post-command-hook) 155 (make-local-variable 'post-command-hook)
156 ;; Copy this because add-hook modifies the list structure.
157 (setq post-command-hook (copy-sequence post-command-hook))
156 (add-hook 'post-command-hook 'resize-minibuffer-frame 'append)))) 158 (add-hook 'post-command-hook 'resize-minibuffer-frame 'append))))
157 (t 159 (t
158 (make-local-variable 'post-command-hook) 160 (make-local-variable 'post-command-hook)