]> git.eshelyaron.com Git - emacs.git/commitdiff
(resize-minibuffer-setup):
authorRichard M. Stallman <rms@gnu.org>
Tue, 12 Jul 1994 19:51:30 +0000 (19:51 +0000)
committerRichard M. Stallman <rms@gnu.org>
Tue, 12 Jul 1994 19:51:30 +0000 (19:51 +0000)
Copy the value of post-command-hook.

lisp/rsz-mini.el

index 8d90e0c8a56ffd0115dc880f89e46812ac047c9f..a55ab90ac4d5a5f0e724d280029f303571f911ba 100644 (file)
@@ -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.4 1994/06/22 22:14:28 friedman Exp friedman $
+;;; $Id: rsz-mini.el,v 1.5 1994/06/30 06:46:44 friedman Exp rms $
 
 ;; This file is part of GNU Emacs.
 
@@ -153,6 +153,8 @@ counterparts."
              (make-local-variable 'minibuffer-exit-hook)
              (add-hook 'minibuffer-exit-hook 'resize-minibuffer-frame-restore)
              (make-local-variable 'post-command-hook)
+            ;; Copy this because add-hook modifies the list structure.
+            (setq post-command-hook (copy-sequence post-command-hook))
              (add-hook 'post-command-hook 'resize-minibuffer-frame 'append))))
      (t
       (make-local-variable 'post-command-hook)