* src/minibuf.c (read_minibuf): Disable line truncation. (Bug#5715)
authorGlenn Morris <rgm@gnu.org>
Sat, 24 Sep 2011 18:29:35 +0000 (11:29 -0700)
committerGlenn Morris <rgm@gnu.org>
Sat, 24 Sep 2011 18:29:35 +0000 (11:29 -0700)
src/ChangeLog
src/minibuf.c

index 54e5a39..aaa2000 100644 (file)
@@ -1,3 +1,7 @@
+2011-09-24  Glenn Morris  <rgm@gnu.org>
+
+       * minibuf.c (read_minibuf): Disable line truncation.  (Bug#5715)
+
 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
 
        Fix minor problems found by static checking.
index d3f43b0..341d544 100644 (file)
@@ -559,6 +559,10 @@ read_minibuf (Lisp_Object map, Lisp_Object initial, Lisp_Object prompt,
   minibuffer = get_minibuffer (minibuf_level);
   Fset_buffer (minibuffer);
 
+  /* Defeat (setq-default truncate-lines t), since truncated lines do
+     not work correctly in minibuffers.  (Bug#5715, etc)  */
+  BVAR (current_buffer, truncate_lines) = Qnil;
+
   /* If appropriate, copy enable-multibyte-characters into the minibuffer.  */
   if (inherit_input_method)
     BVAR (current_buffer, enable_multibyte_characters) = enable_multibyte;