changeset 27611:d9295615b99f

(read_minibuf_noninteractive): Remove undeclared gcpro1, gcpro2. (read_minibuf): Deal with allow_props correctly.
author Dave Love <fx@gnu.org>
date Fri, 04 Feb 2000 17:31:33 +0000
parents f284f17c6b1b
children 578e78aa0553
files src/minibuf.c
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/minibuf.c	Fri Feb 04 15:18:30 2000 +0000
+++ b/src/minibuf.c	Fri Feb 04 17:31:33 2000 +0000
@@ -276,7 +276,6 @@
 {
   int size, len;
   char *line, *s;
-  struct gcpro gcpro1, gcpro2;
   Lisp_Object val;
 
   fprintf (stdout, "%s", XSTRING (prompt)->data);
@@ -566,7 +565,10 @@
 
   /* Make minibuffer contents into a string.  */
   Fset_buffer (minibuffer);
-  val = Ffield_string (make_number (ZV), allow_props ? Qt : Qnil);
+  if (allow_props)
+    val = Ffield_string (make_number (ZV));
+  else
+    val = Ffield_string_no_properties (make_number (ZV));
 
   /* VAL is the string of minibuffer text.  */