Subject: Re: bug#13289: 24.2; bookmark didn't save when using emacsclient
From: Chong Yidong <[email-masked]>
To: Glenn Morris <[email-masked]>
Cc: Xue Fuqiao <[email-masked]>, [email-masked]
Date: Sat, 19 Jan 2013 16:50:51 +0800
List-Id: <debbugs-submit.debbugs.gnu.org>

Chong Yidong <[email-masked]> writes:

> The reason is the following.  The above call to `pp' contains a call to
> `scan-lists' which is enclosed in `ignore-errors'.  Normally, the error
> is caught and `pp' goes on to do its job.  However, because the hook is
> being run while Emacs is in a sigterm handler waiting to die (so that
> waiting_for_input is true), the Fsignal aborts Emacs instead of
> signalling a Lisp error:

The straightforward fix---setting waiting_for_input to 0 in
Fkill_emacs---seems to work fine, so I went ahead and committed it to
trunk.