From: Tak Ota <Takaaki.Ota@am.sony.com>
Cc: emacs-devel@gnu.org
Subject: Re: `eshell-under-cygwin-p' etc. inappropriate?
Date: Thu, 08 Aug 2002 10:23:16 -0700 (PDT) [thread overview]
Message-ID: <20020808.102316.91281422.Takaaki.Ota@am.sony.com> (raw)
In-Reply-To: <87bs8f8dh7.fsf@bundalo.shootybangbang.com>
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)))))))
This has been often useful for me regardless of under emacs or
xemacs. Since it is w32 platform specific w32-cygwin-exists-p maybe
more appropriate.
-Tak
next prev parent reply other threads:[~2002-08-08 17:23 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 [this message]
2002-08-11 13:49 ` Eli Zaretskii
2002-08-12 18:19 ` Tak Ota
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
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=20020808.102316.91281422.Takaaki.Ota@am.sony.com \
--to=takaaki.ota@am.sony.com \
--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 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).