From: "Lennart Borgman" <lennart.borgman.073@student.lu.se>
Subject: Suggestions for corrections to executable.el - use of PATHEXT
Date: Sat, 11 Sep 2004 02:05:15 +0200 [thread overview]
Message-ID: <002601c49796$49acb380$0200a8c0@sedrcw11488> (raw)
I believe there is an error in the definition of executable-binary-suffixes
in the w32 part. The environment var PATHEXT is not taken into account and
the order of the default suffixes is incorrect as far as I can see. There is
also a suffix ".btm" I do not know about.
This error is present in Emacs 21.3 and I do not know if it has been
corrected in CVS. Below is my fix to this error:
- Lennart
;; The PATHEXT environment variable defines the list of file
;; extensions checked by Windows NT when searching for an executable
;; file. Like the PATH variable, semi-colons separate individual items
;; in the PATHEXT variable. The default value of PATHEXT is
;; .COM;.EXE;.BAT;.CMD.
(defvar executable-binary-suffixes
(if (memq system-type '(ms-dos windows-nt))
(let ((pathext (getenv-internal "PATHEXT")))
(if (eq nil pathext)
'(".com" ".exe" ".bat" ".cmd")
(split-string pathext ";")))
'("")))
next reply other threads:[~2004-09-11 0:05 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-09-11 0:05 Lennart Borgman [this message]
2004-09-11 1:07 ` Suggestions for corrections to executable.el - use of PATHEXT Davis Herring
2004-09-11 1:20 ` Davis Herring
2004-09-11 11:40 ` Eli Zaretskii
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
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='002601c49796$49acb380$0200a8c0@sedrcw11488' \
--to=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 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).