* src/print.c (print_error_message): Don't call
'substitute-command-keys' when it isn't fboundp.
else
{
Lisp_Object error_conditions = Fget (errname, Qerror_conditions);
- errmsg = call1 (Qsubstitute_command_keys, Fget (errname, Qerror_message));
+ errmsg = Fget (errname, Qerror_message);
+ /* During loadup 'substitute-command-keys' might not be available. */
+ if (!NILP (Ffboundp (Qsubstitute_command_keys)))
+ errmsg = call1 (Qsubstitute_command_keys, errmsg);
+
file_error = Fmemq (Qfile_error, error_conditions);
}