Commit aa8b70ae authored by Kenichi Handa's avatar Kenichi Handa
Browse files

(Fformat): Use a copy of FORMAT string so that we can

destructively change "%S" to "%s".
parent efc13f46
2003-04-04 Kenichi Handa <handa@etlken2>
* editfns.c (Fformat): Use a copy of FORMAT string so that we can
destructively change "%S" to "%s".
2003-04-03 Miles Bader <miles@gnu.org>
* xfaces.c (choose_face_font): Make sure *NEEDS_OVERSTRIKE is
......
......@@ -3240,6 +3240,8 @@ usage: (format STRING &rest OBJECTS) */)
}
CHECK_STRING (args[0]);
/* We may have to change "%S" to "%s". */
args[0] = Fcopy_sequence (args[0]);
/* If we start out planning a unibyte result,
and later find it has to be multibyte, we jump back to retry. */
......@@ -3326,6 +3328,11 @@ usage: (format STRING &rest OBJECTS) */)
goto retry;
}
args[n] = tem;
/* If we restart the loop, we should not come here again
because args[n] is now a string and calling
Fprin1_to_string on it produces superflous double
quotes. So, change "%S" to "%s" now. */
*format = 's';
goto string;
}
else if (SYMBOLP (args[n]))
......
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