unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Glenn Morris <rgm@gnu.org>
To: Tom Tromey <tromey@redhat.com>
Cc: 4399@emacsbugs.donarmstrong.com
Subject: bug#4399: 23.1; let a file know it was run with --script
Date: Fri, 18 Sep 2009 23:19:09 -0400	[thread overview]
Message-ID: <cxljkbsjte.fsf@fencepost.gnu.org> (raw)
In-Reply-To: m3r5u3agd3.fsf@fleche.redhat.com

reopen 4399
severity 4399 wishlist
retitle 4399 simple way to identify top-level --script file
stop

Tom Tromey wrote:

> I guess this will work as long as I don't mind hard-coding in the file's
> name.  Unless there's a way to also get this?

On reflection, it seems a pretty poor solution, so I'll reopen this as
a wishlist.

Summary:

When using --script, it would be nice if there was a simple way for
the file so loaded to identify itself as the "main file", distinct
from any libraries it might require.


(I'd probably just use a hack like:

#!/bin/sh

exec emacs -batch -l test.el -f batch-run-test

but I suppose this is against the spirit of --script)





  reply	other threads:[~2009-09-19  3:19 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-11  2:06 bug#4399: 23.1; let a file know it was run with --script Tom Tromey
2009-09-11  3:58 ` Glenn Morris
2009-09-18 17:34   ` Tom Tromey
2009-09-18 18:04     ` Glenn Morris
2009-09-18 18:56       ` Tom Tromey
2009-09-18 19:00         ` Glenn Morris
2009-09-19  1:11           ` Tom Tromey
2009-09-19  3:19             ` Glenn Morris [this message]
2009-09-19  3:25               ` Processed: " Emacs bug Tracking System
2022-02-07  0:54     ` bug#4399: simple way to identify top-level --script file Lars Ingebrigtsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=cxljkbsjte.fsf@fencepost.gnu.org \
    --to=rgm@gnu.org \
    --cc=4399@emacsbugs.donarmstrong.com \
    --cc=tromey@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).