changeset 20581:9b78b337e8bf

(resize-minibuffer-mode): Variable customized to automatically load the package.
author Richard M. Stallman <rms@gnu.org>
date Sat, 03 Jan 1998 07:17:25 +0000
parents 5cf53b5a6bde
children 3b630b1cb848
files lisp/rsz-mini.el
diffstat 1 files changed, 11 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/rsz-mini.el	Sat Jan 03 07:07:02 1998 +0000
+++ b/lisp/rsz-mini.el	Sat Jan 03 07:17:25 1998 +0000
@@ -7,7 +7,7 @@
 ;; Maintainer: friedman@prep.ai.mit.edu
 ;; Keywords: minibuffer, window, frame, display
 
-;; $Id$
+;; $Id: rsz-mini.el,v 1.17 1997/06/23 08:21:26 friedman Exp rms $
 
 ;; This file is part of GNU Emacs.
 
@@ -61,11 +61,15 @@
   "Dynamically resize minibuffer to display entire contents"
   :group 'frames)
 
-;;;###autoload
 (defcustom resize-minibuffer-mode nil
-  "*If non-`nil', resize the minibuffer so its entire contents are visible."
+  "*If non-`nil', resize the minibuffer so its entire contents are visible.
+You must modify via \\[customize] for this variable to have an effect."
+  :set (lambda (symbol value)
+	 (resize-minibuffer-mode (if value 1 -1)))
+  :initialize 'custom-initialize-default
   :type 'boolean
-  :group 'resize-minibuffer)
+  :group 'resize-minibuffer
+  :require 'rsz-mini)
 
 ;;;###autoload
 (defcustom resize-minibuffer-window-max-height nil
@@ -262,6 +266,9 @@
                   (frame-width)
                   resize-minibuffer-frame-original-height))
 
+(if resize-minibuffer-mode
+    (resize-minibuffer-mode 1))
+
 (provide 'rsz-mini)
 
 ;; rsz-mini.el ends here