emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master 2731e82: Treat error strings as help


From: Paul Eggert
Subject: [Emacs-diffs] master 2731e82: Treat error strings as help
Date: Wed, 26 Aug 2015 15:26:42 +0000

branch: master
commit 2731e821ab157bf71724a4843a9ec67120e88db0
Author: Paul Eggert <address@hidden>
Commit: Paul Eggert <address@hidden>

    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.
---
 src/print.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/print.c b/src/print.c
index af61574..2d4dca7 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;
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]