all messages for Emacs-related lists mirrored at yhetil.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 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.