]> git.eshelyaron.com Git - emacs.git/commit
Don't get into an error loop if dumped.elc isn't found.
authorKen Raeburn <raeburn@raeburn.org>
Thu, 8 Dec 2016 13:04:35 +0000 (08:04 -0500)
committerKen Raeburn <raeburn@raeburn.org>
Sat, 22 Jul 2017 08:14:23 +0000 (04:14 -0400)
commit250c9adf9b9865df0dbfbe9974832b85c13b9575
treedfc75187a522517169838b54ddd37c4afc42946d
parent1c4b68df215d567678c5f6e9dd37dfca344a963a
Don't get into an error loop if dumped.elc isn't found.

When temacs is run, if dumped.elc isn't in the right place (currently
$srctop/src/dumped.elc, though it's generated in the build tree's src
directory), starting in X11 mode will produce a message about not
finding it, but starting in tty mode will produce an error loop
because internal-echo-keystrokes-prefix isn't defined.

This patch traps the error and kills the Emacs session with an exit
code of 42, and no message.  This is worse than the X11 behavior, but
better than the tty behavior.

It's not a long term fix though.

* src/emacs.c (main): If dumped.elc isn't found, exit with an error
code.
(syms_of_emacs): Define Qcondition_case.
src/emacs.c