From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Sam Halliday Newsgroups: gmane.emacs.help Subject: Re: run emacs in batch mode without a tty Date: Fri, 3 Jul 2015 15:01:18 -0700 (PDT) Message-ID: 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 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1435961148 16089 80.91.229.3 (3 Jul 2015 22:05:48 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 3 Jul 2015 22:05:48 +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 00:05:48 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 1ZB95d-0004VP-MQ for geh-help-gnu-emacs@m.gmane.org; Sat, 04 Jul 2015 00:05:45 +0200 Original-Received: from localhost ([::1]:42697 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZB95d-0002kE-4z for geh-help-gnu-emacs@m.gmane.org; Fri, 03 Jul 2015 18:05:45 -0400 X-Received: by 10.42.202.77 with SMTP id fd13mr4654066icb.0.1435960878397; Fri, 03 Jul 2015 15:01:18 -0700 (PDT) X-Received: by 10.140.100.136 with SMTP id s8mr491226qge.2.1435960878369; Fri, 03 Jul 2015 15:01:18 -0700 (PDT) Original-Path: usenet.stanford.edu!ff1no1846298igc.0!news-out.google.com!4ni39944qgh.1!nntp.google.com!s91no945906qgd.1!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=82.13.129.22; posting-account=kRukCAoAAAANs-vsVh9dFwo5kp5pwnPz Original-NNTP-Posting-Host: 82.13.129.22 User-Agent: G2/1.0 Injection-Date: Fri, 03 Jul 2015 22:01:18 +0000 Original-Xref: usenet.stanford.edu gnu.emacs.help:213124 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:105412 Archived-At: > So my question then becomes: is there a way to stop emacs -batch from terminating when it reaches the end of the script? The docs say: "In batch mode (see Batch Mode), sit-for cannot be interrupted, even by input from the standard input descriptor. It is thus equivalent to sleep-for, which is described below." but I am pretty sure (sit-for seconds) *IS* interrupted by something. So... this (while t (sleep-for 30)) Stops the script from ending until I'm ready to explicitly end it. Muahahaha!