From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Reuben Thomas Newsgroups: gmane.emacs.bugs Subject: bug#17036: Continuation for Emacs: invoking a process on exit? Date: Tue, 18 Mar 2014 22:56:34 +0000 Message-ID: References: <874n2v9l10.fsf@igel.home> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=20cf30063822a04c7104f4e9729d X-Trace: ger.gmane.org 1395183430 32127 80.91.229.3 (18 Mar 2014 22:57:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 18 Mar 2014 22:57:10 +0000 (UTC) Cc: 17036@debbugs.gnu.org To: Andreas Schwab Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Mar 18 23:57:18 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WQ2wf-0008Fn-TL for geb-bug-gnu-emacs@m.gmane.org; Tue, 18 Mar 2014 23:57:18 +0100 Original-Received: from localhost ([::1]:37763 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WQ2wf-0003xJ-IL for geb-bug-gnu-emacs@m.gmane.org; Tue, 18 Mar 2014 18:57:17 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46778) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WQ2wX-0003xA-AN for bug-gnu-emacs@gnu.org; Tue, 18 Mar 2014 18:57:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WQ2wQ-0000Yx-7v for bug-gnu-emacs@gnu.org; Tue, 18 Mar 2014 18:57:09 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:39322) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WQ2wQ-0000Yr-4Z for bug-gnu-emacs@gnu.org; Tue, 18 Mar 2014 18:57:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1WQ2wP-0000fs-SI for bug-gnu-emacs@gnu.org; Tue, 18 Mar 2014 18:57:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Reuben Thomas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 18 Mar 2014 22:57:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 17036 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 17036-submit@debbugs.gnu.org id=B17036.13951833992557 (code B ref 17036); Tue, 18 Mar 2014 22:57:01 +0000 Original-Received: (at 17036) by debbugs.gnu.org; 18 Mar 2014 22:56:39 +0000 Original-Received: from localhost ([127.0.0.1]:40503 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WQ2w2-0000fB-IH for submit@debbugs.gnu.org; Tue, 18 Mar 2014 18:56:39 -0400 Original-Received: from mail-yh0-f41.google.com ([209.85.213.41]:51988) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WQ2vz-0000f1-7R for 17036@debbugs.gnu.org; Tue, 18 Mar 2014 18:56:36 -0400 Original-Received: by mail-yh0-f41.google.com with SMTP id v1so7840363yhn.0 for <17036@debbugs.gnu.org>; Tue, 18 Mar 2014 15:56:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sc3d.org; s=google; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=v9x/+UxqWldKNpgDSQxzD65x92zRScVI/3EFLajuTjE=; b=YcL8KFPXsv+HEy7wW6vCwVVO93WtBKlUVJXkv1SHfke0VXaX1mGDFtm90WUqzQrQB4 cUfZze499R4T5EqcsbulYgUw59eizDdmVzBsX8gsYkkd3OT9yB37Q+6v9/KaV4O9KVGr UIFC/YHicEbymTmujPxtJz/Z7Esz17JpcTVOg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=v9x/+UxqWldKNpgDSQxzD65x92zRScVI/3EFLajuTjE=; b=kvHgpAVcFFoZNsF/6JmwjiE7Orsf7phGfZZFAb4Muy+nud2U4he0xrV6xQ+7g3gnz+ AmdSof0Nce6JZ2/cWvj4CkJtTEZZjFJctNeMAzO4tM5Xm+eih9Oi+H7X3WDRazrQgEWj BMipyE51FQEkYAEi66Zl6mZQT4/z8HENuDvaYsmtcS+6ohROSUmcUxczPVMeCWgV+zpI SnYIO/saOpUWcdMJFi9u+Nv5dhQ07spIQsLXKa6GpkrIXsoB382j5I1ZGE/oIpeJH/7n DXygac9OHxAFOoeBgNY4J+gMkjcc+8E//J5a7Icf3K0sztkDC93+X43bJ8AdX5A2DAXr ZJEQ== X-Gm-Message-State: ALoCoQm9hQtKeazsIK9TUEykhTmCld2yEkg55V4RR/QnF1aKnKfJC+PTDHQhLVjEOzk3Ml60TGsg X-Received: by 10.236.44.173 with SMTP id n33mr5997587yhb.98.1395183394500; Tue, 18 Mar 2014 15:56:34 -0700 (PDT) Original-Received: by 10.170.137.66 with HTTP; Tue, 18 Mar 2014 15:56:34 -0700 (PDT) In-Reply-To: <874n2v9l10.fsf@igel.home> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:86951 Archived-At: --20cf30063822a04c7104f4e9729d Content-Type: text/plain; charset=ISO-8859-1 On 18 March 2014 22:52, Andreas Schwab wrote: > Reuben Thomas writes: > > > Is there a way to give Emacs itself a continuation, i.e. a command to > exec > > when it exits? > > kill-emacs-hook? > That's not a tail-call: to reexec Emacs, it needs to be a proper exec. It might work from kill-emacs-hook, but it's surely not safe? Emacs hasn't finished shutting down when it runs... -- http://rrt.sc3d.org --20cf30063822a04c7104f4e9729d Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
On 1= 8 March 2014 22:52, Andreas Schwab <schwab@linux-m68k.org> wrote:
Reuben Thomas <rrt@sc3d.org> writes:

> Is there a way to give Emacs itself a continuation, i.e. a command to = exec
> when it exits?

kill-emacs-hook?

That's not a tail-= call: to reexec Emacs, it needs to be a proper exec. It might work from kil= l-emacs-hook, but it's surely not safe? Emacs hasn't finished shutt= ing down when it runs…

--
http://rr= t.sc3d.org
--20cf30063822a04c7104f4e9729d--