]> code.delx.au - gnu-emacs/commitdiff
Fix startup of "emacs -nw" on systems that CANNOT_DUMP
authorEli Zaretskii <eliz@gnu.org>
Tue, 15 Mar 2016 17:46:26 +0000 (19:46 +0200)
committerEli Zaretskii <eliz@gnu.org>
Tue, 15 Mar 2016 17:46:26 +0000 (19:46 +0200)
* src/xdisp.c (syms_of_xdisp) <resize-mini-windows>: Initialize to
nil.

* lisp/loadup.el <resize-mini-windows>: Set to 'grow-only' after
loading window.el.  (Bug#22975)

lisp/loadup.el
src/xdisp.c

index bd47bed31602e28fdbe0d141d9ff20f58ddccde9..21c64a8c3b40167ad60b6564cc7d2af5dd4d694a 100644 (file)
 (load "format")
 (load "bindings")
 (load "window")  ; Needed here for `replace-buffer-in-windows'.
+;; We are now capable of resizing the mini-windows, so give the
+;; variable its advertised default value (it starts as nil, see
+;; xdisp.c).
+(setq resize-mini-windows 'grow-only)
 (setq load-source-file-function 'load-with-code-conversion)
 (load "files")
 
index ce992d42531763e8f33184c2daa6cc5e53cb703b..edefe3210c037113d165edad66f59bb4b7cb48d3 100644 (file)
@@ -31598,7 +31598,12 @@ A value of t means resize them to fit the text displayed in them.
 A value of `grow-only', the default, means let mini-windows grow only;
 they return to their normal size when the minibuffer is closed, or the
 echo area becomes empty.  */);
-  Vresize_mini_windows = Qgrow_only;
+  /* Contrary to the doc string, we initialize this to nil, so that
+     loading loadup.el won't try to resize windows before loading
+     window.el, where some functions we need to call for this live.
+     We assign the 'grow-only' value right after loading window.el
+     during loadup.  */
+  Vresize_mini_windows = Qnil;
 
   DEFVAR_LISP ("blink-cursor-alist", Vblink_cursor_alist,
     doc: /* Alist specifying how to blink the cursor off.