aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPaul Eggert2016-08-31 23:05:48 -0700
committerPaul Eggert2016-08-31 23:06:16 -0700
commit39aaf88feb564bc1d5150ccf53da71d7809a217a (patch)
treeaa371d7ae01df6bb7e3dfb73a6bb190e64096c4e /src
parent64507149f4296029ab80c2caa97ec0f76264bdbb (diff)
downloademacs-39aaf88feb564bc1d5150ccf53da71d7809a217a.tar.gz
emacs-39aaf88feb564bc1d5150ccf53da71d7809a217a.zip
Fix over-substitution of quotes on error
Problem reported by Tino Calancha in: http://lists.gnu.org/archive/html/emacs-devel/2016-09/msg00000.html * src/print.c (print_error_message): Substitute quotes in errmsg only when gotten from a property.
Diffstat (limited to 'src')
-rw-r--r--src/print.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/print.c b/src/print.c
index 5531210e1b8..d54a7c9bdd1 100644
--- a/src/print.c
+++ b/src/print.c
@@ -920,7 +920,7 @@ print_error_message (Lisp_Object data, Lisp_Object stream, const char *context,
920 else 920 else
921 { 921 {
922 Lisp_Object error_conditions = Fget (errname, Qerror_conditions); 922 Lisp_Object error_conditions = Fget (errname, Qerror_conditions);
923 errmsg = Fget (errname, Qerror_message); 923 errmsg = Fsubstitute_command_keys (Fget (errname, Qerror_message));
924 file_error = Fmemq (Qfile_error, error_conditions); 924 file_error = Fmemq (Qfile_error, error_conditions);
925 } 925 }
926 926
@@ -939,7 +939,7 @@ print_error_message (Lisp_Object data, Lisp_Object stream, const char *context,
939 if (!STRINGP (errmsg)) 939 if (!STRINGP (errmsg))
940 write_string_1 ("peculiar error", stream); 940 write_string_1 ("peculiar error", stream);
941 else if (SCHARS (errmsg)) 941 else if (SCHARS (errmsg))
942 Fprinc (Fsubstitute_command_keys (errmsg), stream); 942 Fprinc (errmsg, stream);
943 else 943 else
944 sep = NULL; 944 sep = NULL;
945 945