all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Davis Herring <herring@lanl.gov>
Cc: Emacs Devel <emacs-devel@gnu.org>
Subject: Re: Suggestions for corrections to executable.el - use of PATHEXT
Date: Fri, 10 Sep 2004 19:07:30 -0600 (MDT)	[thread overview]
Message-ID: <Pine.LNX.4.44.0409101859590.25172-100000@x-mail.lanl.gov> (raw)
In-Reply-To: <002601c49796$49acb380$0200a8c0@sedrcw11488>

Tiny augmentation:

(defvar executable-binary-suffixes
  (if (memq system-type '(ms-dos windows-nt))
      (let ((pathext (getenv-internal "PATHEXT")))
        (if pathext
             (nconc (split-string pathext ";") '(""))
          '(".com" ".exe" ".bat" ".cmd" ".pif" "")))
    '("")))

(Indentation made into spaces; don't compare to nil with `eq'; add ".pif" 
and "".  I add back "" because with Cygwin, you have commands with no 
extension; if my assumption is wrong and `system-type' isn't set 
Windowsishly then, drop that entry.)

Davis Herring

-- 
This product is sold by volume, not by mass.  If it seems too dense or too 
sparse, it means mass-energy conversion has occurred during shipping.

  reply	other threads:[~2004-09-11  1:07 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 [this message]
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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Pine.LNX.4.44.0409101859590.25172-100000@x-mail.lanl.gov \
    --to=herring@lanl.gov \
    --cc=emacs-devel@gnu.org \
    /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.