From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: run emacs in batch mode without a tty Date: Sat, 04 Jul 2015 10:44:11 +0300 Message-ID: <83y4iwxt84.fsf@gnu.org> References: <74b79522-cff4-4173-ad1c-178ffdce70fd@googlegroups.com> <91362e27-aad2-4aa8-bfa6-d447881103d1@googlegroups.com> <8f6a541f-2324-4d86-85b0-0472bed4f0a3@googlegroups.com> NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1435995859 20162 80.91.229.3 (4 Jul 2015 07:44:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 4 Jul 2015 07:44:19 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Jul 04 09:44:13 2015 Return-path: Envelope-to: geh-help-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 1ZBI7Q-0000Ps-NC for geh-help-gnu-emacs@m.gmane.org; Sat, 04 Jul 2015 09:44:12 +0200 Original-Received: from localhost ([::1]:43546 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZBI7Q-0000tw-4b for geh-help-gnu-emacs@m.gmane.org; Sat, 04 Jul 2015 03:44:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38449) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZBI7H-0000td-1R for help-gnu-emacs@gnu.org; Sat, 04 Jul 2015 03:44:03 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZBI7D-0001rn-SY for help-gnu-emacs@gnu.org; Sat, 04 Jul 2015 03:44:02 -0400 Original-Received: from mtaout25.012.net.il ([80.179.55.181]:51499) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZBI7D-0001rf-Jr for help-gnu-emacs@gnu.org; Sat, 04 Jul 2015 03:43:59 -0400 Original-Received: from conversion-daemon.mtaout25.012.net.il by mtaout25.012.net.il (HyperSendmail v2007.08) id <0NQY00B00D4C4U00@mtaout25.012.net.il> for help-gnu-emacs@gnu.org; Sat, 04 Jul 2015 10:39:49 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout25.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NQY008LRDADPK20@mtaout25.012.net.il> for help-gnu-emacs@gnu.org; Sat, 04 Jul 2015 10:39:49 +0300 (IDT) In-reply-to: X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 80.179.55.181 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:105423 Archived-At: > Date: Fri, 3 Jul 2015 14:25:08 -0700 (PDT) > From: Sam Halliday > > So my question then becomes: is there a way to stop emacs -batch from terminating when it reaches the end of the script? i.e. require an explicit kill-emacs call. As you've already figured out, you need to have the top-level form wait until all your processing is done.