From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: phillip.lord@newcastle.ac.uk (Phillip Lord) Newsgroups: gmane.emacs.help Subject: Re: in batch or during test Date: Tue, 21 Apr 2015 15:39:36 +0100 Message-ID: <87vbgpilzr.fsf@newcastle.ac.uk> References: <8c9c772b-9c7a-45f8-8cb8-b4626cc7effc@googlegroups.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1429627235 30883 80.91.229.3 (21 Apr 2015 14:40:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 21 Apr 2015 14:40:35 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Rusi Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Apr 21 16:40:35 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 1YkZLk-00085N-Pq for geh-help-gnu-emacs@m.gmane.org; Tue, 21 Apr 2015 16:40:32 +0200 Original-Received: from localhost ([::1]:58866 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YkZLk-0005Ec-0V for geh-help-gnu-emacs@m.gmane.org; Tue, 21 Apr 2015 10:40:32 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37692) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YkZKy-0004I4-QS for help-gnu-emacs@gnu.org; Tue, 21 Apr 2015 10:39:45 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YkZKt-0006AB-Q2 for help-gnu-emacs@gnu.org; Tue, 21 Apr 2015 10:39:44 -0400 Original-Received: from cheviot12.ncl.ac.uk ([128.240.234.12]:60682) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YkZKt-00068w-LO for help-gnu-emacs@gnu.org; Tue, 21 Apr 2015 10:39:39 -0400 Original-Received: from smtpauth-vm.ncl.ac.uk ([10.8.233.129] helo=smtpauth.ncl.ac.uk) by cheviot12.ncl.ac.uk with esmtp (Exim 4.63) (envelope-from ) id 1YkZKr-0000xJ-A6; Tue, 21 Apr 2015 15:39:37 +0100 Original-Received: from jangai.ncl.ac.uk ([10.66.67.223] helo=localhost) by smtpauth.ncl.ac.uk with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.63) (envelope-from ) id 1YkZKq-0004ZD-Sk; Tue, 21 Apr 2015 15:39:36 +0100 In-Reply-To: <8c9c772b-9c7a-45f8-8cb8-b4626cc7effc@googlegroups.com> (Rusi's message of "Tue, 21 Apr 2015 05:08:20 -0700") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 128.240.234.12 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:103908 Archived-At: Rusi writes: >> This works well, but unfortunately effectively swallows the backtrace. >> Particularly annoying when I am running automated tests. So, I want to >> write a macro like `condition-case-unless-debug' but which is "unless >> running in batch or running ert". But I don't know how to find out if I >> am in batch or running ert! >> >> Phil > > Maybe you want the variable 'noninteractive'? > (info "(elisp)batch mode") Perfect, yes! I apropos'ed for "batch", but couldn't find it. Phil