# HG changeset patch # User Richard M. Stallman # Date 774042690 0 # Node ID 3ad4ec3c92288f25976d067f22ea1e446ea41602 # Parent c6a3a9b2ef3f3147b40a838119f18e1e982f178e (resize-minibuffer-setup): Copy the value of post-command-hook. diff -r c6a3a9b2ef3f -r 3ad4ec3c9228 lisp/rsz-mini.el --- a/lisp/rsz-mini.el Tue Jul 12 17:37:32 1994 +0000 +++ b/lisp/rsz-mini.el Tue Jul 12 19:51:30 1994 +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.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 @@ (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)