unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Suggestions for corrections to executable.el - use of PATHEXT
@ 2004-09-11  0:05 Lennart Borgman
  2004-09-11  1:07 ` Davis Herring
  0 siblings, 1 reply; 6+ messages in thread
From: Lennart Borgman @ 2004-09-11  0:05 UTC (permalink / 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 ";")))
    '("")))

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2004-09-12 10:56 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2004-09-11 12:12       ` Jason Rumney
2004-09-12 10:56       ` Lennart Borgman

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).