From d47559b0fd888ce5ea242a51d449262b3d636e8e Mon Sep 17 00:00:00 2001 From: Gregory Heytings Date: Mon, 4 Oct 2021 08:34:44 +0000 Subject: [PATCH] Do not use substitute-command-keys during bootstrap. src/print.c (print_error_message): Do not use substitute-command-keys during bootstrap. --- src/print.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/print.c b/src/print.c index d4301fd7b6..ef01738436 100644 --- a/src/print.c +++ b/src/print.c @@ -941,7 +941,10 @@ print_error_message (Lisp_Object data, Lisp_Object stream, const char *context, else { Lisp_Object error_conditions = Fget (errname, Qerror_conditions); - errmsg = call1 (Qsubstitute_command_keys, Fget (errname, Qerror_message)); + if (will_bootstrap_p () || will_dump_p ()) + errmsg = Fget (errname, Qerror_message); + else + errmsg = call1 (Qsubstitute_command_keys, Fget (errname, Qerror_message)); file_error = Fmemq (Qfile_error, error_conditions); } -- 2.33.0