print_symbol_name (Lisp_Object name, Lisp_Object printcharfun,
bool escape)
{
- const bool like_number_p = looks_like_number_p (name);
+ bool like_number_p = looks_like_number_p (name);
for (ptrdiff_t ibyte = 0, ichar = 0; ibyte < SBYTES (name);)
{
const int c = fetch_string_char_advance (name, &ichar, &ibyte);
maybe_quit ();
- if (escape && (like_number_p || must_escape_p (c, ichar)))
- printchar ('\\', printcharfun);
+ if (escape)
+ if (like_number_p || must_escape_p (c, ichar))
+ {
+ printchar ('\\', printcharfun);
+ like_number_p = false;
+ }
printchar (c, printcharfun);
}
}