From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: grischka Newsgroups: gmane.emacs.devel Subject: Re: Functions in kill-emacs-hook aren't run if emacs gets killed with SIGTERM Date: Sat, 24 Jan 2009 18:56:17 +0100 Message-ID: <497B5641.7010501@gmx.de> References: "u7i4mujro.fsf@gnu.org" <497A1417.8040306@gmx.de> <497B22CA.4080203@gmx.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1232819795 3124 80.91.229.12 (24 Jan 2009 17:56:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 24 Jan 2009 17:56:35 +0000 (UTC) Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jan 24 18:57:48 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LQmlP-0006D9-RN for ged-emacs-devel@m.gmane.org; Sat, 24 Jan 2009 18:57:48 +0100 Original-Received: from localhost ([127.0.0.1]:45521 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LQmk8-00029A-5x for ged-emacs-devel@m.gmane.org; Sat, 24 Jan 2009 12:56:28 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LQmk3-00028s-1U for emacs-devel@gnu.org; Sat, 24 Jan 2009 12:56:23 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LQmk1-00028U-Nk for emacs-devel@gnu.org; Sat, 24 Jan 2009 12:56:22 -0500 Original-Received: from [199.232.76.173] (port=36355 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LQmk1-00028R-GV for emacs-devel@gnu.org; Sat, 24 Jan 2009 12:56:21 -0500 Original-Received: from mail.gmx.net ([213.165.64.20]:50811) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1LQmk0-00071W-Pg for emacs-devel@gnu.org; Sat, 24 Jan 2009 12:56:21 -0500 Original-Received: (qmail invoked by alias); 24 Jan 2009 17:56:18 -0000 Original-Received: from p57A0AD1B.dip0.t-ipconnect.de (EHLO [192.168.1.3]) [87.160.173.27] by mail.gmx.net (mp034) with SMTP; 24 Jan 2009 18:56:18 +0100 X-Authenticated: #18588216 X-Provags-ID: V01U2FsdGVkX1/KaIxtiZzKTIS3VLvdAweTOI+O4HG4oL5WU+B/2m vf/Lq43cATDUvP User-Agent: Thunderbird 2.0.0.18 (X11/20081125) In-Reply-To: X-Y-GMX-Trusted: 0 X-FuHaFi: 0.53 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:108194 Archived-At: Eli Zaretskii wrote: > Pressing Ctrl-C where? Emacs redefines SIGINT so that it is produced > by C-g, not by C-c (because the latter is used in many key sequences), > so I presume you don't mean typing Ctrl-C into the Emacs window. But > then where did you type it? In the xterm. > Also, by "starting emacs at a xterm prompt", do you mean "emacs -nw" > or do you mean a GUI session started at the shell prompt? $ emacs >> IIRC to reproduce it it suffices to call 'pp' in a kill-emacs-hook. > > You mean, call 'pp' in a kill-emacs-hook and _then_ deliver a SIGINT? Yes. > Or do you mean that having `pp' called from kill-emacs-hook will cause > the abort even if Emacs is shut down normally, via "C-c C-c"? No. >> "prj-print-list" (0xbfa56bd0) >> "progn" (0xbfa56d10) >> "if" (0xbfa56d90) >> "when" (0xbfa56e10) >> "let" (0xbfa56f00) >> "let" (0xbfa56ff0) >> "progn" (0xbfa57080) >> "if" (0xbfa57100) >> "when" (0xbfa57180) >> "prj-saveconfig" (0xbfa57200) >> "prj-saveall" (0xbfa57320) >> "prj-on-kill" (0xbfa574ec) >> "run-hooks" (0xbfa57584) >> (gdb) > > What are those prj-* functions? > "eproject", available at Tom Tromey's ELPA.