Commit caa4733e authored by Ken Raeburn's avatar Ken Raeburn
Browse files

* minibuf.c (Fread_command, Fread_variable): Use SYMBOL_NAME and

assignment instead of XSYMBOL and name field and XSETSTRING.
parent a0268ff0
......@@ -975,7 +975,7 @@ Prompt with PROMPT. By default, return DEFAULT-VALUE. */)
if (NILP (default_value))
default_string = Qnil;
else if (SYMBOLP (default_value))
XSETSTRING (default_string, XSYMBOL (default_value)->name);
default_string = SYMBOL_NAME (default_value);
else
default_string = default_value;
......@@ -1010,7 +1010,7 @@ A user variable is one whose documentation starts with a `*' character. */)
if (NILP (default_value))
default_string = Qnil;
else if (SYMBOLP (default_value))
XSETSTRING (default_string, XSYMBOL (default_value)->name);
default_string = SYMBOL_NAME (default_value);
else
default_string = default_value;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment