unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Christopher Howard <christopher@librehacker.com>
To: Jim Porter <jporterbugs@gmail.com>
Cc: 70847@debbugs.gnu.org
Subject: bug#70847: 29.3; eshell scripts "from anywhere"
Date: Tue, 28 May 2024 14:49:24 -0800	[thread overview]
Message-ID: <87a5k9v9fv.fsf@librehacker.com> (raw)
In-Reply-To: Jim Porter's message of "Tue, 28 May 2024 14:51:07 -0700 (55 seconds ago)"

Hi, am attempting to do further testing of features using the current patched install:

(1) Regarding eshell-execute-file:
 (a) command executes as expected when called as a normal function
 (b) it would seem highly desireable for this to be an interactive function as well. Though of course you'd have to think through exactly how you wanted to handle ARGS and DESTINATION during an interactive call.

(2) I'm having trouble testing the eshell-batch-file functionality. I created a script like so:

```
#!/home/christopher/local/bin/emacs --batch -f eshell-batch-file
echo bleep
```

When I try to run this, the correct emacs gets launched (the patched one) but emacs also tries to load my local init.el file - the one written for my 29.3 install - which leads to a backtrace as certain things don't load correctly. My understanding was that --batch is supposed to prevent local init files from being loaded.

I tried adding -Q to the shebang line but that doesn't seem to have an effect.

I find that I can do something like this fine from the console:

```
christopher@theoden ~ [env]$ EMACSLOADPATH=/home/christopher/local/share/emacs/site-lisp:/home/christopher/local/share/emacs/30.0.50/lisp ~/local/bin/emacs --batch -f pwd
Directory ~/
```

-- 
Christopher Howard





  parent reply	other threads:[~2024-05-28 22:49 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-05-09 17:57 bug#70847: 29.3; eshell scripts "from anywhere" Christopher Howard
2024-05-23 20:30 ` Jim Porter
2024-05-24 14:27 ` Christopher Howard
2024-05-25  2:17   ` Jim Porter
2024-05-28 19:42 ` Christopher Howard
2024-05-28 21:51   ` Jim Porter
2024-05-28 19:46 ` Christopher Howard
2024-05-28 22:49 ` Christopher Howard [this message]
2024-05-29  0:31   ` Jim Porter
2024-05-29 14:16 ` Christopher Howard
2024-05-29 19:22   ` Jim Porter

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=87a5k9v9fv.fsf@librehacker.com \
    --to=christopher@librehacker.com \
    --cc=70847@debbugs.gnu.org \
    --cc=jporterbugs@gmail.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).