Suppressing annoying warnings

Ken Brown kbrown@cornell.edu
Sun Nov 18 14:50:00 GMT 2012


On 11/18/2012 8:41 AM, Uday S Reddy wrote:
> On 10/1/2012 1:18 AM, Christopher Faylor wrote:
>> On Sat, Sep 29, 2012 at 11:53:06AM -0400, Ken Brown wrote:
>>> On 9/29/2012 11:33 AM, Daniel Corbe wrote:
>>>> If this were an environment that I had customized on my own I might
>>>> agree with you; however, this is a standard toolkit that I'm working
>>>> with and its functionally portable to every platform I've tried to use
>>>> so far except for cygwin.
>>>
>>> And the reason is that this "standard toolkit" uses an obsolete setting
>>> of the CYGWIN environment variable.  It needs to be updated.
>>
>> Especially since it had absolutely no business setting the variable to
>> begin with.
>
> I am trying to understand why it is said that emacs-w3m had no business
> setting the environment variable.
>
> Obviously, it was a setting recommended in earlier versions of Cygwin,
> and emacs-w3m is setting it for its own sub-processes.  Is there a
> better way of arranging things?

Yes.  Just don't set the CYGWIN environment variable.

Part of the confusion in this discussion is caused by the fact that the 
code we're talking about is not used by Cygwin emacs, but rather by 
native Windows emacs running Cygwin programs as subprocesses:

(if (eq system-type 'windows-nt)
     (cons "CYGWIN" "binmode tty"))

[For the Cygwin build of emacs, `system-type' is `cygwin', not 
`windows-nt'.]

Secondly, this code can't possibly do anything useful even in native 
Windows emacs.  The settings "binmode" and "tty" for the CYGWIN 
environment variable are both obsolete.

Ken

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple



More information about the Cygwin mailing list