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: Thu, 20 Mar 2014 23:10:19 +0000 Message-ID: References: <874n2v9l10.fsf@igel.home> <8361na9lom.fsf@gnu.org> <83r45x8re9.fsf@gnu.org> <83txas7ol8.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=20cf3010ebfd7676fd04f511df40 X-Trace: ger.gmane.org 1395357065 1440 80.91.229.3 (20 Mar 2014 23:11:05 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 20 Mar 2014 23:11:05 +0000 (UTC) Cc: Andreas Schwab , 17036@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Mar 21 00:11:14 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 1WQm7G-0001nS-DV for geb-bug-gnu-emacs@m.gmane.org; Fri, 21 Mar 2014 00:11:14 +0100 Original-Received: from localhost ([::1]:49936 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WQm7F-0004ty-S2 for geb-bug-gnu-emacs@m.gmane.org; Thu, 20 Mar 2014 19:11:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56220) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WQm78-0004mj-S0 for bug-gnu-emacs@gnu.org; Thu, 20 Mar 2014 19:11:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WQm74-0005IP-N2 for bug-gnu-emacs@gnu.org; Thu, 20 Mar 2014 19:11:06 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:41564) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WQm74-0005IF-KT for bug-gnu-emacs@gnu.org; Thu, 20 Mar 2014 19:11:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1WQm74-0008R2-1Z for bug-gnu-emacs@gnu.org; Thu, 20 Mar 2014 19:11: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: Thu, 20 Mar 2014 23:11: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.139535702632364 (code B ref 17036); Thu, 20 Mar 2014 23:11:01 +0000 Original-Received: (at 17036) by debbugs.gnu.org; 20 Mar 2014 23:10:26 +0000 Original-Received: from localhost ([127.0.0.1]:42746 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WQm6T-0008Pw-QY for submit@debbugs.gnu.org; Thu, 20 Mar 2014 19:10:26 -0400 Original-Received: from mail-yk0-f171.google.com ([209.85.160.171]:53530) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WQm6N-0008Pj-LZ for 17036@debbugs.gnu.org; Thu, 20 Mar 2014 19:10:24 -0400 Original-Received: by mail-yk0-f171.google.com with SMTP id q9so4217386ykb.2 for <17036@debbugs.gnu.org>; Thu, 20 Mar 2014 16:10:19 -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=Z5xhckPBwVcc0JtYPMiS/f5CO2CTDyD0tADktCCNIPM=; b=srvXGaS4invMeWVwtyAguf5qjuGXakCz6Y4gc+cSpP3psL/lHK+7iFvJhBSYtUFTEs zSZ7qcabaVtGaYlHrkdcu5fUen2qDFIwg0u1S0HZ3kkSyYSk2Oa1i/vHZcpOxalAhtCu +ya9oGpqxLTJxErNyp+tlPLXzP0Aqo7oN2TVc= 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=Z5xhckPBwVcc0JtYPMiS/f5CO2CTDyD0tADktCCNIPM=; b=JOPx2k0Nkif8H4UN5ZKfEb2IYT9vQrLaOPc0+EQkywo4p40dPL3VVyDXUvzODbRt1f cbi3ZJjmal4o6BLEOSKVNwE6l7BRFhY7tQaXaxDqOBPaPXb2/R61sFtxBFd8o54fBeq3 prBjRB9DB8gQd6BhfBOftPpSpCgTthEAjpwxViY41i8ctwOQh9bjq+S5QtQkPXjmwVnB Pa2iq6aVHQpcqCd0wTpAL9hgeiH3aXYmaKEUksw58p+sWceThEbs1rlX5M0BOU3ppSDO XjVosCxybPPfrJaqwa6yTprBwWieSaO8e/W/aL2zUBrSQJ9GDQWnAwZK0W3PxBVCwXWr AuPQ== X-Gm-Message-State: ALoCoQnxFuugACmdkNXdeDgz36k6KumJgakxbBT4Hc0VEaRTZegPPmU5WWPxY6Z920/d+BV3drvb X-Received: by 10.236.88.193 with SMTP id a41mr36721068yhf.22.1395357019165; Thu, 20 Mar 2014 16:10:19 -0700 (PDT) Original-Received: by 10.170.137.66 with HTTP; Thu, 20 Mar 2014 16:10:19 -0700 (PDT) In-Reply-To: <83txas7ol8.fsf@gnu.org> 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:87070 Archived-At: --20cf3010ebfd7676fd04f511df40 Content-Type: text/plain; charset=ISO-8859-1 On 20 March 2014 17:43, Eli Zaretskii wrote: > > Date: Thu, 20 Mar 2014 12:02:49 +0000 > > From: Reuben Thomas > > Cc: Stefan Monnier , Andreas Schwab < > schwab@linux-m68k.org>, > > 17036@debbugs.gnu.org > > > > I didn't discuss the command (it was Glenn Morris who suggested the > name), > > but in my original bug report I said: "This would be useful for > restarting > > having updated my configuration...as it would save having manually to > issue a > > new 'emacs' command..." For this, a simple "exec emacs" is enough, but > why > > not throw in command-line arguments too. > > I'm probably missing something, because I don't see how "exec emacs" > will do what you want. I'm sorry, I seem to have made a total hash of explaining something really simple. In effect, I want kill-emacs-and-exec, which takes a list of arguments, runs kill-emacs, and then execs the argument list. In fact, since kill-emacs can't currently take a list, it could be extended to do so. save-buffers-kill-emacs could be likewise extended. Does that make sense now? --20cf3010ebfd7676fd04f511df40 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
On 2= 0 March 2014 17:43, Eli Zaretskii <eliz@gnu.org> wrote:
> Date: Thu, 20 Mar 2014 12:02:49 +0000
> From: Reuben Thomas <rrt@sc3d.org>
> Cc: Stefan Monnier <mon= nier@iro.umontreal.ca>, Andreas Schwab <schwab@linux-m68k.org>,
> =A0 =A0 =A0 17036@debbugs.gnu= .org
>
> I didn't discuss the command (it was Glenn M= orris who suggested the name),
> but in my original bug report I said: "This would be useful for r= estarting
> having updated my configuration...as it would save having manual= ly to issue a
> new 'emacs' command..." For this, a simple "exec ema= cs" is enough, but why
> not throw in command-line arguments too.

I'm probably missing something, because I don't see how "= ;exec emacs"
will do what you want.

I'm sorry, I see= m to have made a total hash of explaining something really simple. In effec= t, I want kill-emacs-and-exec, which takes a list of arguments, runs kill-e= macs, and then execs the argument list.

In fact, since kill-emacs can't currently take a list, i= t could be extended to do so.

save-buffers-kill-emacs cou= ld be likewise extended.

Does that make sense now?
--20cf3010ebfd7676fd04f511df40--