From: Jim Porter <jporterbugs@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 71655@debbugs.gnu.org, james@literate-devops.io
Subject: bug#71655: Eshell external commands do not work under GNU Emacs for Windows
Date: Sun, 23 Jun 2024 18:40:37 -0700 [thread overview]
Message-ID: <ba25197b-be37-2b6d-b66a-ecf4e1785806@gmail.com> (raw)
In-Reply-To: <86pls8ff73.fsf@gnu.org>
On 6/22/2024 9:36 PM, Eli Zaretskii wrote:
>> Date: Sat, 22 Jun 2024 12:55:32 -0700
>> Cc: 71655@debbugs.gnu.org, james@literate-devops.io
>> From: Jim Porter <jporterbugs@gmail.com>
>>
>> I don't have a strong preference myself, but the latter seems
>> ever-so-slightly safer to me. This bug happened because we can't read
>> the file when trying to insert it, so ignoring file errors would cover
>> any other situations we haven't predicted. On the other hand, maybe
>> there's a case where we *want* the 'insert-file-contents-literally'
>> error to signal so that we don't try to execute the file normally (I
>> can't think of any such cases, though).
>
> Why not do both? If the file has zero size, reading it is pointless,
> and if reading it signals an error, we cannot examine it for the
> interpreter signature.
That could work, though thinking about this some more, I think there's a
benefit to being careful about how we add checks here. For Tramp files,
we should probably try to keep the number of calls that need to touch
the remote filesystem to a minimum.
I'll think about this some more and see if we can get all the checks we
want without making the code slower over Tramp. (Maybe Tramp caches
enough that this isn't a problem, but I'm not certain yet.)
next prev parent reply other threads:[~2024-06-24 1:40 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-06-19 15:53 bug#71655: Eshell external commands do not work under GNU Emacs for Windows James Hilling via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-06-19 19:12 ` Eli Zaretskii
2024-06-19 19:22 ` Eli Zaretskii
2024-06-19 19:40 ` Jim Porter
2024-06-20 4:53 ` Eli Zaretskii
2024-06-20 5:34 ` Jim Porter
2024-06-20 7:45 ` Eli Zaretskii
2024-06-22 19:55 ` Jim Porter
2024-06-23 4:36 ` Eli Zaretskii
2024-06-24 1:40 ` Jim Porter [this message]
2024-06-24 5:56 ` Michael Albinus via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-07-08 3:26 ` Jim Porter
2024-07-08 11:09 ` Eli Zaretskii
2024-06-19 19:30 ` Eli Zaretskii
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ba25197b-be37-2b6d-b66a-ecf4e1785806@gmail.com \
--to=jporterbugs@gmail.com \
--cc=71655@debbugs.gnu.org \
--cc=eliz@gnu.org \
--cc=james@literate-devops.io \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.