if (selected_frame != 0
&& !EQ (minibuf_window, selected_frame->minibuffer_window))
{
-#ifdef MSDOS
+#if defined(MSDOS) && !defined(HAVE_X_WINDOWS)
selected_frame->minibuffer_window = minibuf_window;
#else
/* I don't think that any frames may validly have a null minibuffer
}
/* Make minibuffer contents into a string */
- val = make_buffer_string (1, Z);
+ val = make_buffer_string (1, Z, 1);
+#if 0 /* make_buffer_string should handle the gap. */
bcopy (GAP_END_ADDR, XSTRING (val)->data + GPT - BEG, Z - GPT);
+#endif
/* VAL is the string of minibuffer text. */
last_minibuf_string = val;