diff options
| author | Paul Eggert | 2015-08-26 08:25:56 -0700 |
|---|---|---|
| committer | Paul Eggert | 2015-08-26 08:26:38 -0700 |
| commit | 2731e821ab157bf71724a4843a9ec67120e88db0 (patch) | |
| tree | d055b3f3ce62541838649c010e0485c62ca98211 /src | |
| parent | 5960d0ae009c064db0f9d20f8dce32045f32a4ed (diff) | |
| download | emacs-2731e821ab157bf71724a4843a9ec67120e88db0.tar.gz emacs-2731e821ab157bf71724a4843a9ec67120e88db0.zip | |
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.
Diffstat (limited to 'src')
| -rw-r--r-- | src/print.c | 2 |
1 files changed, 1 insertions, 1 deletions
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, | |||
| 940 | if (!STRINGP (errmsg)) | 940 | if (!STRINGP (errmsg)) |
| 941 | write_string_1 ("peculiar error", stream); | 941 | write_string_1 ("peculiar error", stream); |
| 942 | else if (SCHARS (errmsg)) | 942 | else if (SCHARS (errmsg)) |
| 943 | Fprinc (errmsg, stream); | 943 | Fprinc (Fsubstitute_command_keys (errmsg), stream); |
| 944 | else | 944 | else |
| 945 | sep = NULL; | 945 | sep = NULL; |
| 946 | 946 | ||