From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tom Tromey Newsgroups: gmane.emacs.bugs Subject: bug#4399: 23.1; let a file know it was run with --script Date: Fri, 18 Sep 2009 12:56:59 -0600 Message-ID: References: Reply-To: Tom Tromey , 4399@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1253301187 1842 80.91.229.12 (18 Sep 2009 19:13:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 18 Sep 2009 19:13:07 +0000 (UTC) Cc: 4399@emacsbugs.donarmstrong.com To: Glenn Morris Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Sep 18 21:13:00 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Moit9-0004u5-SD for geb-bug-gnu-emacs@m.gmane.org; Fri, 18 Sep 2009 21:13:00 +0200 Original-Received: from localhost ([127.0.0.1]:48939 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Moit9-0005OS-6d for geb-bug-gnu-emacs@m.gmane.org; Fri, 18 Sep 2009 15:12:59 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MoipV-0003pe-NI for bug-gnu-emacs@gnu.org; Fri, 18 Sep 2009 15:09:13 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MoipR-0003n2-A1 for bug-gnu-emacs@gnu.org; Fri, 18 Sep 2009 15:09:13 -0400 Original-Received: from [199.232.76.173] (port=50277 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MoipQ-0003mt-OS for bug-gnu-emacs@gnu.org; Fri, 18 Sep 2009 15:09:08 -0400 Original-Received: from mx20.gnu.org ([199.232.41.8]:25392) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MoipQ-0005Bg-AO for bug-gnu-emacs@gnu.org; Fri, 18 Sep 2009 15:09:08 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MoipP-0003Cz-IJ for bug-gnu-emacs@gnu.org; Fri, 18 Sep 2009 15:09:07 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n8IJ72dc012235; Fri, 18 Sep 2009 12:07:02 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n8IJ56Ru011653; Fri, 18 Sep 2009 12:05:06 -0700 Resent-Date: Fri, 18 Sep 2009 12:05:06 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Tom Tromey Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs 2Resent-Date: Fri, 18 Sep 2009 19:05:05 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 4399 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 4399-submit@emacsbugs.donarmstrong.com id=B4399.12533002289930 (code B ref 4399); Fri, 18 Sep 2009 19:05:05 +0000 Original-Received: (at 4399) by emacsbugs.donarmstrong.com; 18 Sep 2009 18:57:08 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n8IIv6ee009927 for <4399@emacsbugs.donarmstrong.com>; Fri, 18 Sep 2009 11:57:07 -0700 Original-Received: from int-mx04.intmail.prod.int.phx2.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.17]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id n8IIv3gp011333; Fri, 18 Sep 2009 14:57:03 -0400 Original-Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx04.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id n8IIux0b019032; Fri, 18 Sep 2009 14:56:59 -0400 Original-Received: from opsy.redhat.com (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id n8IIv0f2014421; Fri, 18 Sep 2009 14:57:01 -0400 Original-Received: by opsy.redhat.com (Postfix, from userid 500) id 4D99A3782A5; Fri, 18 Sep 2009 12:57:00 -0600 (MDT) X-Attribution: Tom In-Reply-To: (Glenn Morris's message of "Fri, 18 Sep 2009 14:04:44 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) X-Scanned-By: MIMEDefang 2.67 on 10.5.11.17 X-detected-operating-system: by mx20.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) Resent-Date: Fri, 18 Sep 2009 15:09:13 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:31235 Archived-At: >>>>> "GM" == Glenn Morris writes: GM> It sounds like noninteractive will work fine (you could perhaps check GM> command-line-args if you want finer control)? Or use the traditional: I don't think that has the same effect if you load multiple such files. I only want the "main" one to eval the code. GM> emacs -batch -l ./test.el -f batch-run-tests This won't work if you want to use #! to start a script. I guess I can work around this by writing a new .el that just loads things and evals something. Tom