Treat error strings as help

* src/print.c (print_error_message): Translate quotes and command
keys in errmsg so that users see, e.g., "Symbol’s value as
variable is void: foo" when text-quoting-style is curved.
This commit is contained in:
Paul Eggert 2015-08-26 08:25:56 -07:00
parent 5960d0ae00
commit 2731e821ab

View file

@ -940,7 +940,7 @@ print_error_message (Lisp_Object data, Lisp_Object stream, const char *context,
if (!STRINGP (errmsg))
write_string_1 ("peculiar error", stream);
else if (SCHARS (errmsg))
Fprinc (errmsg, stream);
Fprinc (Fsubstitute_command_keys (errmsg), stream);
else
sep = NULL;