diff lisp/modes/rsz-minibuf.el @ 16:0293115a14e9 r19-15b91

Import from CVS: tag r19-15b91
author cvs
date Mon, 13 Aug 2007 08:49:20 +0200
parents 376386a54a3c
children ec9a17fef872
line wrap: on
line diff
--- a/lisp/modes/rsz-minibuf.el	Mon Aug 13 08:48:43 2007 +0200
+++ b/lisp/modes/rsz-minibuf.el	Mon Aug 13 08:49:20 2007 +0200
@@ -10,7 +10,7 @@
 ;;; Keywords: minibuffer, window, frames, display
 ;;; Status: Known to work in FSF GNU Emacs 19.23 and Lucid Emacs 19.9.
 
-;;; $Id: rsz-minibuf.el,v 1.1.1.1 1996/12/18 03:30:55 steve Exp $
+;;; $Id: rsz-minibuf.el,v 1.2 1997/02/02 05:05:42 steve Exp $
 
 ;;; This program is free software; you can redistribute it and/or modify
 ;;; it under the terms of the GNU General Public License as published by
@@ -159,10 +159,16 @@
 	     (add-hook 'minibuffer-exit-hook 'resize-minibuffer-frame-restore
 		       nil t)
 	     (make-local-hook 'post-command-hook)
-	     (add-hook 'post-command-hook 'resize-minibuffer-frame nil t))))
+	     (add-hook 'post-command-hook 'resize-minibuffer-frame nil t)
+	     (unless (and (boundp 'icomplete-mode)
+			  icomplete-mode)
+	       (resize-minibuffer-frame)))))
      (t
       (make-local-hook 'post-command-hook)
-      (add-hook 'post-command-hook 'resize-minibuffer-window nil t))))))
+      (add-hook 'post-command-hook 'resize-minibuffer-window nil t)
+      (unless (and (boundp 'icomplete-mode)
+		   icomplete-mode)
+	(resize-minibuffer-window)))))))
 
 (defun resize-minibuffer-count-window-lines (&optional start end)
   "Return number of window lines occupied by text in region.