From: "Eli Zaretskii" <eliz@gnu.org>
Cc: lennart.borgman.073@student.lu.se, emacs-devel@gnu.org
Subject: Re: Suggestions for corrections to executable.el - use of PATHEXT
Date: Sat, 11 Sep 2004 14:40:01 +0300 [thread overview]
Message-ID: <01c497f4$Blat.v2.2.2$380b5e20@zahav.net.il> (raw)
In-Reply-To: <Pine.LNX.4.44.0409101916380.25172-200000@x-mail.lanl.gov> (message from Davis Herring on Fri, 10 Sep 2004 19:20:17 -0600 (MDT))
> Date: Fri, 10 Sep 2004 19:20:17 -0600 (MDT)
> From: Davis Herring <herring@lanl.gov>
> Cc: Emacs Devel <emacs-devel@gnu.org>
>
> If I'm going to contribute, let's do it usefully. This is a patch against
> the CVS `bindings.el' (where `executable-binary-suffixes' has migrated and
> become `exec-suffixes'). I also have done my homework now and see that
> 'cygwin is a valid `system-type', which means we don't need the ""s.
Thanks.
This is something for the Windows experts to respond; mine are just
questions and superficial comments.
First, I'm not sure we should look at PATHEXT. That variable is AFAIK
looked at by the shell, so if we want Emacs behave _exactly_ like the
shell does, we should at least look at the value of SHELL and/or
ComSpec (and COMSPEC for older systems). I mean, what if the user's
shell is Bash, which AFAIK doesn't look at PATHEXT at all? And if the
shell is COMMAND.COM, then ".cmd" should not be in the list. Etc.,
etc.
More generally, I'm not sure Emacs _should_ behave like a Windows
shell. There's nothing wrong in expanding or improving on the shell's
functionality, especially since Windows shells are not too smart, even
on XP. For example, ".btm" is the extension of 4DOS and 4NT
replacement shells; why shouldn't Emacs know about that, even if
PATHEXT doesn't include it?
As for Cygwin being part of the condition--do users of the
Cygwin-compiled Emacs really want to disregard Windows batch files?
If not, `cygwin' should be part of the condition.
next prev parent reply other threads:[~2004-09-11 11:40 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-09-11 0:05 Suggestions for corrections to executable.el - use of PATHEXT Lennart Borgman
2004-09-11 1:07 ` Davis Herring
2004-09-11 1:20 ` Davis Herring
2004-09-11 11:40 ` Eli Zaretskii [this message]
2004-09-11 12:12 ` Jason Rumney
2004-09-12 10:56 ` Lennart Borgman
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='01c497f4$Blat.v2.2.2$380b5e20@zahav.net.il' \
--to=eliz@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=lennart.borgman.073@student.lu.se \
/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.