bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#4399: 23.1; let a file know it was run with --script


From: Glenn Morris
Subject: bug#4399: 23.1; let a file know it was run with --script
Date: Fri, 18 Sep 2009 23:19:09 -0400
User-agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/)

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 via email to

[Prev in Thread] Current Thread [Next in Thread]