From: Paul Eggert Date: Wed, 26 Aug 2015 15:25:56 +0000 (-0700) Subject: Treat error strings as help X-Git-Tag: emacs-25.0.90~1246 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=2731e821ab157bf71724a4843a9ec67120e88db0;p=emacs.git 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. --- diff --git a/src/print.c b/src/print.c index af615749f37..2d4dca7a42a 100644 --- a/src/print.c +++ b/src/print.c @@ -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;