bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [patch] 21.3 filecache.el - Added Cygwin support


From: Eli Zaretskii
Subject: Re: [patch] 21.3 filecache.el - Added Cygwin support
Date: 26 Jan 2004 08:59:07 +0200

> From: jari.aalto@poboxes.com (Jari Aalto+mail.linux)
> Newsgroups: gnu.emacs.bug
> Date: Mon, 26 Jan 2004 02:25:26 +0200
> | 
> | I know that on Windows one must test whether `find' is the Unix-style
> | `find'.  What I was asking was something different: why not make that
> | test unconditionally, on all systems.
> 
> Hard to do. The code currently tests GNU find by searching "GNU" from
> --version.  But --version does not work in SunOS, HP, SGI, IBM, they have
> their own find and making tests for all of those is beyond my reach.

You could create a file and see if "find . -name THAT-FILE" finds it
and prints its name like a Unixy `find' should, for example.

> | What about the Mac?
> 
> elisp-manual-21-2.8 reports variable window-system like this:
> 
> 
>  - Variable: window-system
>      This variable tells Lisp programs what window system Emacs is
>      running under.  The possible values are
>     `x'
>           Emacs is displaying using X.
>     `pc'
>           Emacs is displaying using MS-DOS.
>     `w32'
>           Emacs is displaying using Windows.
>     `mac'
>           Emacs is displaying using a Macintosh.
>     `nil'
>           Emacs is using a character-based terminal.
> 
> Is there a bug in documentation, because I can't see `windows-nt' or
> `ms-dos' values?

You are looking at the docs for the wrong variable: your code, quite
correctly, works with system-type, not with window-system.
windows-nt and ms-dos are values of system-type, while the
corresponding values for window-system are pc and w32 (assuming these
ports are not run with the -nw switch).





reply via email to

[Prev in Thread] Current Thread [Next in Thread]