From: Tak Ota <Takaaki.Ota@am.sony.com>
Cc: jpw@shootybangbang.com, emacs-devel@gnu.org
Subject: Re: `eshell-under-cygwin-p' etc. inappropriate?
Date: Mon, 12 Aug 2002 11:19:31 -0700 (PDT) [thread overview]
Message-ID: <20020812.111931.12333219.Takaaki.Ota@am.sony.com> (raw)
In-Reply-To: <9743-Sun11Aug2002164949+0300-eliz@is.elta.co.il>
Sun, 11 Aug 2002 16:49:49 +0300: "Eli Zaretskii" <eliz@is.elta.co.il> wrote:
> > From: Tak Ota <Takaaki.Ota@am.sony.com>
> > Date: Thu, 08 Aug 2002 10:23:16 -0700 (PDT)
> >
> > 07 Aug 2002 06:06:12 +0100: John Paul Wallington <jpw@shootybangbang.com> wrote:
> >
> > > Maybe `eshell-under-cygwin-p' should be called something else?
> >
> > I use the following function for my own use.
> >
> > (defun cygwin-exists-p ()
> > "Search cygwin1.dll in the exec-path and return the full path if it exists or nil otherwise."
> > (catch 'exists
> > (let ((path-list exec-path))
> > (while path-list
> > (let ((full-path (expand-file-name "cygwin1.dll" (car path-list))))
> > (if (file-exists-p full-path)
> > (throw 'exists full-path))
> > (setq path-list (cdr path-list)))))))
>
> I think this might be dangerous: a user could have some Cygwin tools
> installed, but she could still be using a natively-co9mpiled Emacs.
>
> In other words, the mere fact of cygwin.dll's existence does not
> necessarily mean that this Emacs is a Cygwin binary.
You are right. For that purpose I think `system-type' should provide
appropriate distinction between the two. `cygwin-exists-p' does
nothing more than what its name and doc string say.
-Tak
next prev parent reply other threads:[~2002-08-12 18:19 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-08-06 9:24 `eshell-under-cygwin-p' etc. inappropriate? John Paul Wallington
2002-08-06 20:28 ` John Wiegley
2002-08-07 5:06 ` John Paul Wallington
2002-08-07 5:02 ` Eli Zaretskii
2002-08-07 5:23 ` John Wiegley
2002-08-07 5:23 ` Eli Zaretskii
2002-08-07 6:10 ` John Paul Wallington
2002-08-07 20:32 ` John Wiegley
2002-08-07 21:53 ` John Paul Wallington
2002-08-08 4:50 ` Eli Zaretskii
2002-08-10 0:44 ` John Wiegley
2002-08-08 17:23 ` Tak Ota
2002-08-11 13:49 ` Eli Zaretskii
2002-08-12 18:19 ` Tak Ota [this message]
2002-08-13 9:48 ` Eli Zaretskii
2002-08-10 0:05 ` John Paul Wallington
2002-08-10 0:06 ` John Wiegley
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=20020812.111931.12333219.Takaaki.Ota@am.sony.com \
--to=takaaki.ota@am.sony.com \
--cc=emacs-devel@gnu.org \
--cc=jpw@shootybangbang.com \
/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.