GNU bug report logs - #14541
24.3.50; `ediff-buffers' does not play well with recent Cygwin version

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Severity: minor; Reported by: Drew Adams <drew.adams@HIDDEN>; dated Mon, 3 Jun 2013 04:15:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 14541 <at> debbugs.gnu.org:


Received: (at 14541) by debbugs.gnu.org; 6 Jun 2013 20:43:08 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Jun 06 16:43:08 2013
Received: from localhost ([127.0.0.1]:54982 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1Ukh1X-0008EQ-Sx
	for submit <at> debbugs.gnu.org; Thu, 06 Jun 2013 16:43:08 -0400
Received: from userp1040.oracle.com ([156.151.31.81]:33335)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <drew.adams@HIDDEN>) id 1Ukh1V-0008Dq-Ia
	for 14541 <at> debbugs.gnu.org; Thu, 06 Jun 2013 16:43:06 -0400
Received: from acsinet21.oracle.com (acsinet21.oracle.com [141.146.126.237])
	by userp1040.oracle.com (Sentrion-MTA-4.3.1/Sentrion-MTA-4.3.1) with
	ESMTP id r56KgxSj016430
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK);
	Thu, 6 Jun 2013 20:43:00 GMT
Received: from userz7022.oracle.com (userz7022.oracle.com [156.151.31.86])
	by acsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id
	r56KgxBo008282
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO);
	Thu, 6 Jun 2013 20:43:00 GMT
Received: from abhmt117.oracle.com (abhmt117.oracle.com [141.146.116.69])
	by userz7022.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id
	r56KgxsE029830; Thu, 6 Jun 2013 20:42:59 GMT
MIME-Version: 1.0
Message-ID: <dcf075b2-13f9-4136-b6a5-88dd0c53efb2@default>
Date: Thu, 6 Jun 2013 13:42:59 -0700 (PDT)
From: Drew Adams <drew.adams@HIDDEN>
To: Achim Gratz <Stromeko@HIDDEN>, 14541 <at> debbugs.gnu.org
Subject: RE: bug#14541: 24.3.50; `ediff-buffers' does not play well with
	recent Cygwin version
References: <7d461150-fe55-4278-bb7a-22fc24811364@default>>
	<83hahfxkw9.fsf@HIDDEN>>
	<2c39c869-9210-432d-aa95-d392e9ee8dac@default>
	<87txlfrvd8.fsf@HIDDEN>
	<5f681b7a-8e4d-4263-9337-817bd2c00fa6@default>
	<87a9n41fe0.fsf@HIDDEN>
	<9db8fa66-43bf-4d68-841d-8ddb3c1a65cf@default>
	<87ip1rdpnn.fsf@HIDDEN>
In-Reply-To: <87ip1rdpnn.fsf@HIDDEN>
X-Priority: 3
X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.7  (607090) [OL
	12.0.6668.5000 (x86)]
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: quoted-printable
X-Source-IP: acsinet21.oracle.com [141.146.126.237]
X-Spam-Score: -4.7 (----)
X-Debbugs-Envelope-To: 14541
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -4.7 (----)

> As I've been unsuccessfully trying to explain to you, there can be no
> such setup file.

And yet there is such a file.

> > But especially, please do provide something better.  I will be
> > the first to use it and to point others to it, believe me!
>=20
> I think I've already said that if you want to set that option and be
> sure it takes effect, you need to do it from the system panel.

I think I've already said that I recognize that.

> That's what you might put in a comment in setup-cygwin.el,=20

Which is just what I did.  Here is the comment, in case you have
not already taken a look:

;;; Without this env var setting, Cygwin causes `ediff-buffers', at
;;; least, to raise an error.  Making this setting here might have no
;;; effect, as the env var is checked only by the first Cygwin process
;;; invoked during your Windows session.  For best results, set this
;;; env var globally, in Windows itself.  An alternative might be to
;;; use `cygpath' to change from MS Windows file names to POSIX.

I might even cite this bug report there, so users can get more detail.

> without trying to produce unknown and potentially undefined or
> unwanted effects by setting the CYGWIN environment variable.

Sorry, bug I want to set that variable.  In the file, just in case
it is not set yet.

> >> It must already be set before Emacs gets started.
> >
> > Not as far as I can see.  Not for the case I use it for: using
> > Cygwin almost exclusively with Emacs.  In that use case, the
> > first Cygwin process is launched by Emacs.
>=20
> There never was a dispute that it didn't solved your problem.  In
> general however, you can't even be sure that Emacs starts the first
> Cygwin process after it gets to setup-cygwin.el and if you install
> Cygwin to provide services there will never be any point in time where
> there is no Cygwin process while your session is active.

Maybe so.  There was never any dispute that setting the var in this
file is not a panacea.

> > But wasn't it you, BTW, who said that an alternative (presumably
> > working reliably) is to "use cygpath to convert to POSIX instead"?
>=20
> Yes.  That warning says "please do not hand a Windows path to Cygwin",
> so you would never see this warning or need an option to suppress it if
> you would use POSIX paths only.  The tool to convert between the two
> representations is cygpath.

You claimed explicitly that the _only_ solution is to set the env var
at the system level.  And yet you also claim that there is another
solution: convert to POSIX using cygpath.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#14541; Package emacs. Full text available.

Message received at 14541 <at> debbugs.gnu.org:


Received: (at 14541) by debbugs.gnu.org; 6 Jun 2013 20:22:34 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Jun 06 16:22:34 2013
Received: from localhost ([127.0.0.1]:54954 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1Ukghd-0007Wv-Vk
	for submit <at> debbugs.gnu.org; Thu, 06 Jun 2013 16:22:34 -0400
Received: from mtaout20.012.net.il ([80.179.55.166]:54819)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <eliz@HIDDEN>) id 1Ukghc-0007Wd-4W
	for 14541 <at> debbugs.gnu.org; Thu, 06 Jun 2013 16:22:33 -0400
Received: from conversion-daemon.a-mtaout20.012.net.il by
	a-mtaout20.012.net.il (HyperSendmail v2007.08) id
	<0MNZ00700N5SK800@HIDDEN> for
	14541 <at> debbugs.gnu.org; Thu, 06 Jun 2013 23:21:18 +0300 (IDT)
Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il
	(HyperSendmail v2007.08) with ESMTPA id
	<0MNZ007EBN7H5A80@HIDDEN>;
	Thu, 06 Jun 2013 23:21:18 +0300 (IDT)
Date: Thu, 06 Jun 2013 23:21:21 +0300
From: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#14541: 24.3.50;
	`ediff-buffers' does not play well with recent Cygwin version
In-reply-to: <87ip1rdpnn.fsf@HIDDEN>
X-012-Sender: halo1@HIDDEN
To: Achim Gratz <Stromeko@HIDDEN>
Message-id: <83mwr3uh1a.fsf@HIDDEN>
References: <2c39c869-9210-432d-aa95-d392e9ee8dac@default>
	<87txlfrvd8.fsf@HIDDEN>
	<5f681b7a-8e4d-4263-9337-817bd2c00fa6@default>
	<87a9n41fe0.fsf@HIDDEN>
	<9db8fa66-43bf-4d68-841d-8ddb3c1a65cf@default>
	<87ip1rdpnn.fsf@HIDDEN>
X-Spam-Score: 0.2 (/)
X-Debbugs-Envelope-To: 14541
Cc: 14541 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
Reply-To: Eli Zaretskii <eliz@HIDDEN>
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -1.2 (-)

> From: Achim Gratz <Stromeko@HIDDEN>
> Date: Thu, 06 Jun 2013 21:07:08 +0200
> 
> Yes.  That warning says "please do not hand a Windows path to Cygwin",
> so you would never see this warning or need an option to suppress it if
> you would use POSIX paths only.  The tool to convert between the two
> representations is cygpath.

That's unworkable.  There's no way to set up Emacs to use cygpath in
every place it passes a file name to external programs.  Especially if
some of those programs are native Windows executables, not Cygwin
programs.

So no, there's no way at all to arrange for Cygwin programs invoked
from a native Emacs to always get Posix-style file names.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#14541; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 6 Jun 2013 19:09:46 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Jun 06 15:09:46 2013
Received: from localhost ([127.0.0.1]:54844 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1UkfZC-0004ul-CY
	for submit <at> debbugs.gnu.org; Thu, 06 Jun 2013 15:09:46 -0400
Received: from eggs.gnu.org ([208.118.235.92]:49989)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <geb-bug-gnu-emacs@HIDDEN>) id 1UkfZ8-0004uV-TP
	for submit <at> debbugs.gnu.org; Thu, 06 Jun 2013 15:09:44 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <geb-bug-gnu-emacs@HIDDEN>) id 1UkfWw-0005Tj-1x
	for submit <at> debbugs.gnu.org; Thu, 06 Jun 2013 15:07:27 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-99.2 required=5.0 tests=BAYES_50,USER_IN_WHITELIST
	autolearn=disabled version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:51237)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <geb-bug-gnu-emacs@HIDDEN>) id 1UkfWv-0005Tf-Vf
	for submit <at> debbugs.gnu.org; Thu, 06 Jun 2013 15:07:25 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:51692)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <geb-bug-gnu-emacs@HIDDEN>) id 1UkfWt-0002WV-NY
	for bug-gnu-emacs@HIDDEN; Thu, 06 Jun 2013 15:07:25 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <geb-bug-gnu-emacs@HIDDEN>) id 1UkfWs-0005RG-Fn
	for bug-gnu-emacs@HIDDEN; Thu, 06 Jun 2013 15:07:23 -0400
Received: from plane.gmane.org ([80.91.229.3]:48192)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <geb-bug-gnu-emacs@HIDDEN>) id 1UkfWs-0005QM-9p
	for bug-gnu-emacs@HIDDEN; Thu, 06 Jun 2013 15:07:22 -0400
Received: from list by plane.gmane.org with local (Exim 4.69)
	(envelope-from <geb-bug-gnu-emacs@HIDDEN>) id 1UkfWq-0002nU-Oe
	for bug-gnu-emacs@HIDDEN; Thu, 06 Jun 2013 21:07:20 +0200
Received: from pd9eb10c7.dip0.t-ipconnect.de ([217.235.16.199])
	by main.gmane.org with esmtp (Gmexim 0.1 (Debian))
	id 1AlnuQ-0007hv-00
	for <bug-gnu-emacs@HIDDEN>; Thu, 06 Jun 2013 21:07:20 +0200
Received: from Stromeko by pd9eb10c7.dip0.t-ipconnect.de with local (Gmexim
	0.1 (Debian)) id 1AlnuQ-0007hv-00
	for <bug-gnu-emacs@HIDDEN>; Thu, 06 Jun 2013 21:07:20 +0200
X-Injected-Via-Gmane: http://gmane.org/
To: bug-gnu-emacs@HIDDEN
From: Achim Gratz <Stromeko@HIDDEN>
Subject: Re: bug#14541: 24.3.50;
	`ediff-buffers' does not play well with recent Cygwin version
Date: Thu, 06 Jun 2013 21:07:08 +0200
Organization: Linux Private Site
Lines: 47
Message-ID: <87ip1rdpnn.fsf@HIDDEN>
References: <7d461150-fe55-4278-bb7a-22fc24811364@default>>
	<83hahfxkw9.fsf@HIDDEN>>
	<2c39c869-9210-432d-aa95-d392e9ee8dac@default>
	<87txlfrvd8.fsf@HIDDEN>
	<5f681b7a-8e4d-4263-9337-817bd2c00fa6@default>
	<87a9n41fe0.fsf@HIDDEN>
	<9db8fa66-43bf-4d68-841d-8ddb3c1a65cf@default>
Mime-Version: 1.0
Content-Type: text/plain
X-Complaints-To: usenet@HIDDEN
X-Gmane-NNTP-Posting-Host: pd9eb10c7.dip0.t-ipconnect.de
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)
Cancel-Lock: sha1:EG2a8lIn8BOUGjBDPNWtgfC2oNA=
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address
	(bad octet value).
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -6.9 (------)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -6.9 (------)

Drew Adams writes:
>> It is wrong to do this in setup-cygwin.el even when you want this
>> environment variable to have exactly that value.
>
> Wrong?  Feel free to provide an Emacs setup file that "DTRT for
> everyone" all the time.

As I've been unsuccessfully trying to explain to you, there can be no
such setup file.

> But especially, please do provide something better.  I will be
> the first to use it and to point others to it, believe me!

I think I've already said that if you want to set that option and be
sure it takes effect, you need to do it from the system panel.  That's
what you might put in a comment in setup-cygwin.el, without trying to
produce unknown and potentially undefined or unwanted effects by setting
the CYGWIN environment variable.

>> It must already be set before Emacs gets started.
>
> Not as far as I can see.  Not for the case I use it for: using
> Cygwin almost exclusively with Emacs.  In that use case, the
> first Cygwin process is launched by Emacs.

There never was a dispute that it didn't solved your problem.  In
general however, you can't even be sure that Emacs starts the first
Cygwin process after it gets to setup-cygwin.el and if you install
Cygwin to provide services there will never be any point in time where
there is no Cygwin process while your session is active.

> But wasn't it you, BTW, who said that an alternative (presumably
> working reliably) is to "use cygpath to convert to POSIX instead"?

Yes.  That warning says "please do not hand a Windows path to Cygwin",
so you would never see this warning or need an option to suppress it if
you would use POSIX paths only.  The tool to convert between the two
representations is cygpath.


Regards,
Achim.
-- 
+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+

Factory and User Sound Singles for Waldorf rackAttack:
http://Synth.Stromeko.net/Downloads.html#WaldorfSounds





Information forwarded to bug-gnu-emacs@HIDDEN:
bug#14541; Package emacs. Full text available.

Message received at 14541 <at> debbugs.gnu.org:


Received: (at 14541) by debbugs.gnu.org; 5 Jun 2013 23:57:23 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Jun 05 19:57:23 2013
Received: from localhost ([127.0.0.1]:53095 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1UkNZy-0005G0-5j
	for submit <at> debbugs.gnu.org; Wed, 05 Jun 2013 19:57:23 -0400
Received: from aserp1040.oracle.com ([141.146.126.69]:41162)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <drew.adams@HIDDEN>) id 1UkNZu-0005Fa-F8
	for 14541 <at> debbugs.gnu.org; Wed, 05 Jun 2013 19:57:20 -0400
Received: from ucsinet22.oracle.com (ucsinet22.oracle.com [156.151.31.94])
	by aserp1040.oracle.com (Sentrion-MTA-4.3.1/Sentrion-MTA-4.3.1) with
	ESMTP id r55Nt4G4022694
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK);
	Wed, 5 Jun 2013 23:55:06 GMT
Received: from userz7022.oracle.com (userz7022.oracle.com [156.151.31.86])
	by ucsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id
	r55Nt3oe009017
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO);
	Wed, 5 Jun 2013 23:55:03 GMT
Received: from abhmt120.oracle.com (abhmt120.oracle.com [141.146.116.72])
	by userz7022.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id
	r55Nt2Ht009006; Wed, 5 Jun 2013 23:55:02 GMT
MIME-Version: 1.0
Message-ID: <9db8fa66-43bf-4d68-841d-8ddb3c1a65cf@default>
Date: Wed, 5 Jun 2013 16:55:01 -0700 (PDT)
From: Drew Adams <drew.adams@HIDDEN>
To: Achim Gratz <Stromeko@HIDDEN>, 14541 <at> debbugs.gnu.org
Subject: RE: bug#14541: 24.3.50; `ediff-buffers' does not play well with
	recent Cygwin version
References: <7d461150-fe55-4278-bb7a-22fc24811364@default>>
	<83hahfxkw9.fsf@HIDDEN>>
	<2c39c869-9210-432d-aa95-d392e9ee8dac@default>
	<87txlfrvd8.fsf@HIDDEN>
	<5f681b7a-8e4d-4263-9337-817bd2c00fa6@default>
	<87a9n41fe0.fsf@HIDDEN>
In-Reply-To: <87a9n41fe0.fsf@HIDDEN>
X-Priority: 3
X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.7  (607090) [OL
	12.0.6668.5000 (x86)]
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: quoted-printable
X-Source-IP: ucsinet22.oracle.com [156.151.31.94]
X-Spam-Score: -4.7 (----)
X-Debbugs-Envelope-To: 14541
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -4.7 (----)

> You are putting this file on EmacsWiki for others to use, aren't you?

Yes, I am.  To use if they want to.  I put a lot of stuff on Emacs
Wiki for others to use.  Some of it good, some of it no doubt not
as good.  And I will continue to do so, until I stop hacking Emacs.

I put code (and doc and...) on the wiki for anyone who finds it
helpful and wants to use it.  Anyone who does not want to use it
need not use it.  Anyone who wants to use setup-cygwin.el as
inspiration for their own, better setup file is welcome to copy &
adapt it.  They are also welcome to ignore it altogether.  It is
offered as is - no guarantees.

You clearly have your idea of what can be helpful; I have mine.
I know that this file has helped people.  And I don't know of
anyone who has been harmed by its existence.  But no doubt we
can do better - please do!

> Secondly, that warning is there for a reason, so simply switching
> it off certainly isn't going to do the right thing for everyone.

No one says that switching it off pretends to do the right thing
for everyone.  (Like Cygwin, for that matter, or even Emacs...)
Are you always this black & white?

Surely, turning it off (or on) for everyone would *NOT* DTRT for
everyone.  Otherwise there would be no need for the switch.
Where you go wrong (apparently) is assuming that setup-cygwin.el
is for everyone.  And (seemingly) that if it is not good for
everyone then it cannot be good for anyone.

> >> Don't.  You might override other settings that the user wants to take
> >> effect or at best produce a confusing no-op.  You'd be much better off
> >> if you would use cygpath to convert to POSIX instead.
> >
> > I'll leave it in setup-cygwin.el, at least for now.  But I'll add a
> > comment per what Eli said: that if come other Cygwin process started
> > earlier and turned this off then turning it on here has no effect.
>=20
> Again: it simply doesn't work the way you think it works.

I like how you are so certain of what I think. ;-)  Should we judge
your certainty about Cygwin and Emacs similarly?  I hope not.

> The comment isn't helping that issue in any way.

I disagree.  I believe there are others who, like me, use Cygwin
mainly to provide `grep' etc. to Emacs.  There are also people who
do not even know how to set an env var in Windows, or might be
hesitant to do so.  For such a user, this file likely - typically
- will get Emacs working with Cygwin.

The real shame is that Cygwin no longer works with Emacs out of the
box.  From my perspective, which is admittedly limited wrt Cygwin,
that's more or less a regression.  (Perhaps I should have hung onto
my old version of Cygwin...)

And the thing about the env var being cached and looked up only by
the first Cygwin process seems downright perverted.  I repeat:
from my limited and ignorant perspective.  I have used Emacs on
Windows with Cygwin for many moon (decades).  Always in a limited
way, but always with no particular problem.

> It is wrong to do this in setup-cygwin.el even when you want this
> environment variable to have exactly that value.

Wrong?  Feel free to provide an Emacs setup file that "DTRT for
everyone" all the time.  Feel free to point out, on the wiki or
anywhere else, that setup-cygwin.el is wrong, bad, evil, or
whatever.

But especially, please do provide something better.  I will be
the first to use it and to point others to it, believe me!

I posted setup-cygwin.el because it took me a while to piece
together the stuff it contains, and I found that I needed it, in
addition to cygwin-mount.el.  I don't know or imagine that
everyone needs it.

I make no claim about its contents being 100% correct or complete.
Far from it.  It is a hack job born out of ignorance.  It is just
something I have used and still use.  And I know it has helped
others too, regardless of its probably being "wrong" in more than
one way.

And I'll be glad to use something better, when I come across it.

> It must already be set before Emacs gets started.

Not as far as I can see.  Not for the case I use it for: using
Cygwin almost exclusively with Emacs.  In that use case, the
first Cygwin process is launched by Emacs.

I do understand that setting the env var is better (and is sure).
I understand that it is needed if you expect to use Cygwin outside
Emacs, to be sure that the first Cygwin process sees the same
value.

But setup-cygwin.el works for the simple Emacs-only use case -
just in case you have not set the env var .

> > Sounds like the only good approach for an Emacs user on Windows, with
> > Cygwin installed, is to set the env var at the system level.  If that
> > is the case (please confirm) then I'll mention that too in a
> > setup-cygwin.el comment.  (And we might want to mention that in the
> > Emacs manual?)
>=20
> The only way to have it working reliably is to set it from the
> system panel, then log off and on again.

Sounds right to me.  And Eli too confirmed that.

But wasn't it you, BTW, who said that an alternative (presumably
working reliably) is to "use cygpath to convert to POSIX instead"?

Eli was more definitive, seemingly rejecting that alternative you
mentioned, when he confirmed "That's the _only_ way, yes."

Of course, "working reliably" is a strange term for a workaround
for such a hack (apparently) as this exceptional env var presents.
It may work reliably, but it seems to be a weird way of doing
things (the caching/one-time-lookup, I mean).

(Thinking that it seems weird does not mean that I have a better
idea for Cygwin, obviously.  Presumably this hack was the best
approach available.)

> I'm not sure what you want Emacs to document: the problem is that you
> are using non-Windows tools together with a Windows Emacs and you aren't
> correctly converting the different path conventions by these tools and
> Emacs.  That is not a Cygwin problem and not an Emacs problem.

Fair enough (though Cygwin is a Windows tool, AFAIK).  Nevertheless,
at least for the uses I make of Cygwin with Emacs, it seems to work
fine (once the env var is set), and it has for decades (without the
env var).

Now, if I used Cygwin as a *developer* on Windows (outside Emacs),
that might be different, as Eli has pointed out in the past.
I don't doubt that there is an impedance mismatch between Windows
Emacs and Cygwin, if you look hard enough.  For what I do, however,
I haven't run into it, so far.  I make no claim for anyone else.

> > OK, I suppose that's not the only good approach.  I guess you're
> > suggesting another, for someone who is willing to change to POSIX:
> > use the cygpath utility.  Feel free to document that one (for Emacs
> > users)...
>=20
> Actually, emacs-w32 from Cygwin is much better in almost all regards and
> doesn't have the problem to begin with because it never uses any Windows
> path names.

Aha - that's where you're coming from.  Thanks, but no thanks.
I will stick with vanilla GNU Emacs.  (Call me wrong.)

But I am sure both you and Eli are right that the combination of
Windows Emacs with Cygwin is not ideal for either.  It happens that
it works well enough for me, and it's the package I prefer - so far.
Sorry about that.

IMO, it would be good if Cygwin played better with Windows Emacs.
But I have no idea how feasible or difficult that would be to realize.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#14541; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 5 Jun 2013 20:20:12 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Jun 05 16:20:12 2013
Received: from localhost ([127.0.0.1]:52875 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1UkKBn-0005C3-Sj
	for submit <at> debbugs.gnu.org; Wed, 05 Jun 2013 16:20:12 -0400
Received: from eggs.gnu.org ([208.118.235.92]:36066)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <geb-bug-gnu-emacs@HIDDEN>) id 1UkKBk-0005Bc-Og
	for submit <at> debbugs.gnu.org; Wed, 05 Jun 2013 16:20:10 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <geb-bug-gnu-emacs@HIDDEN>) id 1UkK9Z-0003LN-H2
	for submit <at> debbugs.gnu.org; Wed, 05 Jun 2013 16:17:58 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-99.2 required=5.0 tests=BAYES_50,USER_IN_WHITELIST
	autolearn=disabled version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:54750)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <geb-bug-gnu-emacs@HIDDEN>) id 1UkK9Z-0003LA-Be
	for submit <at> debbugs.gnu.org; Wed, 05 Jun 2013 16:17:53 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:37756)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <geb-bug-gnu-emacs@HIDDEN>) id 1UkK9U-0007EP-6i
	for bug-gnu-emacs@HIDDEN; Wed, 05 Jun 2013 16:17:53 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <geb-bug-gnu-emacs@HIDDEN>) id 1UkK9O-0003Jr-G9
	for bug-gnu-emacs@HIDDEN; Wed, 05 Jun 2013 16:17:48 -0400
Received: from plane.gmane.org ([80.91.229.3]:54697)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <geb-bug-gnu-emacs@HIDDEN>) id 1UkK9O-0003JG-9k
	for bug-gnu-emacs@HIDDEN; Wed, 05 Jun 2013 16:17:42 -0400
Received: from list by plane.gmane.org with local (Exim 4.69)
	(envelope-from <geb-bug-gnu-emacs@HIDDEN>) id 1UkK9K-0008L4-2S
	for bug-gnu-emacs@HIDDEN; Wed, 05 Jun 2013 22:17:38 +0200
Received: from pd9eb52f7.dip0.t-ipconnect.de ([217.235.82.247])
	by main.gmane.org with esmtp (Gmexim 0.1 (Debian))
	id 1AlnuQ-0007hv-00
	for <bug-gnu-emacs@HIDDEN>; Wed, 05 Jun 2013 22:17:38 +0200
Received: from Stromeko by pd9eb52f7.dip0.t-ipconnect.de with local (Gmexim
	0.1 (Debian)) id 1AlnuQ-0007hv-00
	for <bug-gnu-emacs@HIDDEN>; Wed, 05 Jun 2013 22:17:38 +0200
X-Injected-Via-Gmane: http://gmane.org/
To: bug-gnu-emacs@HIDDEN
From: Achim Gratz <Stromeko@HIDDEN>
Subject: Re: bug#14541: 24.3.50;
	`ediff-buffers' does not play well with recent Cygwin version
Date: Wed, 05 Jun 2013 22:17:27 +0200
Organization: Linux Private Site
Lines: 55
Message-ID: <87a9n41fe0.fsf@HIDDEN>
References: <7d461150-fe55-4278-bb7a-22fc24811364@default>>
	<83hahfxkw9.fsf@HIDDEN>>
	<2c39c869-9210-432d-aa95-d392e9ee8dac@default>
	<87txlfrvd8.fsf@HIDDEN>
	<5f681b7a-8e4d-4263-9337-817bd2c00fa6@default>
Mime-Version: 1.0
Content-Type: text/plain
X-Complaints-To: usenet@HIDDEN
X-Gmane-NNTP-Posting-Host: pd9eb52f7.dip0.t-ipconnect.de
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)
Cancel-Lock: sha1:3qr47WlMxQe7thhbCstIRNnH7BM=
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address
	(bad octet value).
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -6.9 (------)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -6.9 (------)

Drew Adams writes:
>> It is not your business (or anyone else's but the user) to set that
>> environment variable.  
>
> I am the user.  Just trying to make the recent Cygwin versionn work with
> Emacs, like an older version did.

You are putting this file on EmacsWiki for others to use, aren't you?
Secondly, that warning is there for a reason, so simply switching it off
certainly isn't going to do the right thing for everyone.

>> Don't.  You might override other settings that the user wants to take
>> effect or at best produce a confusing no-op.  You'd be much better off
>> if you would use cygpath to convert to POSIX instead.
>
> I'll leave it in setup-cygwin.el, at least for now.  But I'll add a
> comment per what Eli said: that if come other Cygwin process started
> earlier and turned this off then turning it on here has no effect.

Again: it simply doesn't work the way you think it works.  The comment
isn't helping that issue in any way.  It is wrong to do this in
setup-cygwin.el even when you want this environment variable to have
exactly that value.  It must already be set before Emacs gets started.

> Sounds like the only good approach for an Emacs user on Windows, with
> Cygwin installed, is to set the env var at the system level.  If that
> is the case (please confirm) then I'll mention that too in a
> setup-cygwin.el comment.  (And we might want to mention that in the
> Emacs manual?)

The only way to have it working reliably is to set it from the system
panel, then log off and on again.

I'm not sure what you want Emacs to document: the problem is that you
are using non-Windows tools together with a Windows Emacs and you aren't
correctly converting the different path conventions by these tools and
Emacs.  That is not a Cygwin problem and not an Emacs problem.

> OK, I suppose that's not the only good approach.  I guess you're
> suggesting another, for someone who is willing to change to POSIX:
> use the cygpath utility.  Feel free to document that one (for Emacs
> users)...

Actually, emacs-w32 from Cygwin is much better in almost all regards and
doesn't have the problem to begin with because it never uses any Windows
path names.


Regards,
Achim.
-- 
+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+

Wavetables for the Terratec KOMPLEXER:
http://Synth.Stromeko.net/Downloads.html#KomplexerWaves





Information forwarded to bug-gnu-emacs@HIDDEN:
bug#14541; Package emacs. Full text available.

Message received at 14541 <at> debbugs.gnu.org:


Received: (at 14541) by debbugs.gnu.org; 3 Jun 2013 20:25:18 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jun 03 16:25:18 2013
Received: from localhost ([127.0.0.1]:49412 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1UjbJd-0000cQ-Js
	for submit <at> debbugs.gnu.org; Mon, 03 Jun 2013 16:25:17 -0400
Received: from mtaout22.012.net.il ([80.179.55.172]:42663)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <eliz@HIDDEN>) id 1UjbJa-0000c3-CC
	for 14541 <at> debbugs.gnu.org; Mon, 03 Jun 2013 16:25:15 -0400
Received: from conversion-daemon.a-mtaout22.012.net.il by
	a-mtaout22.012.net.il (HyperSendmail v2007.08) id
	<0MNU00700369SW00@HIDDEN> for
	14541 <at> debbugs.gnu.org; Mon, 03 Jun 2013 23:23:11 +0300 (IDT)
Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il
	(HyperSendmail v2007.08) with ESMTPA id
	<0MNU006PR3AM68T0@HIDDEN>;
	Mon, 03 Jun 2013 23:23:11 +0300 (IDT)
Date: Mon, 03 Jun 2013 23:23:07 +0300
From: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#14541: 24.3.50;
	`ediff-buffers' does not play well with recent Cygwin version
In-reply-to: <5f681b7a-8e4d-4263-9337-817bd2c00fa6@default>
X-012-Sender: halo1@HIDDEN
To: Drew Adams <drew.adams@HIDDEN>
Message-id: <83obbnvt90.fsf@HIDDEN>
References: <2c39c869-9210-432d-aa95-d392e9ee8dac@default>
	<87txlfrvd8.fsf@HIDDEN>
	<5f681b7a-8e4d-4263-9337-817bd2c00fa6@default>
X-Spam-Score: 0.7 (/)
X-Debbugs-Envelope-To: 14541
Cc: 14541 <at> debbugs.gnu.org, Stromeko@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
Reply-To: Eli Zaretskii <eliz@HIDDEN>
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -1.2 (-)

> Date: Mon, 3 Jun 2013 13:15:02 -0700 (PDT)
> From: Drew Adams <drew.adams@HIDDEN>
> 
> Sounds like the only good approach for an Emacs user on Windows, with
> Cygwin installed, is to set the env var at the system level.

That's the only way, yes.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#14541; Package emacs. Full text available.

Message received at 14541 <at> debbugs.gnu.org:


Received: (at 14541) by debbugs.gnu.org; 3 Jun 2013 20:17:11 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jun 03 16:17:11 2013
Received: from localhost ([127.0.0.1]:49404 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1UjbBl-0000OD-Kv
	for submit <at> debbugs.gnu.org; Mon, 03 Jun 2013 16:17:10 -0400
Received: from userp1040.oracle.com ([156.151.31.81]:47224)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <drew.adams@HIDDEN>) id 1UjbBh-0000NZ-N1
	for 14541 <at> debbugs.gnu.org; Mon, 03 Jun 2013 16:17:07 -0400
Received: from ucsinet21.oracle.com (ucsinet21.oracle.com [156.151.31.93])
	by userp1040.oracle.com (Sentrion-MTA-4.3.1/Sentrion-MTA-4.3.1) with
	ESMTP id r53KF3MG016855
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK);
	Mon, 3 Jun 2013 20:15:03 GMT
Received: from userz7021.oracle.com (userz7021.oracle.com [156.151.31.85])
	by ucsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id
	r53KF3V5028177
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO);
	Mon, 3 Jun 2013 20:15:04 GMT
Received: from abhmt111.oracle.com (abhmt111.oracle.com [141.146.116.63])
	by userz7021.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id
	r53KF3nV028156; Mon, 3 Jun 2013 20:15:03 GMT
MIME-Version: 1.0
Message-ID: <5f681b7a-8e4d-4263-9337-817bd2c00fa6@default>
Date: Mon, 3 Jun 2013 13:15:02 -0700 (PDT)
From: Drew Adams <drew.adams@HIDDEN>
To: Achim Gratz <Stromeko@HIDDEN>, 14541 <at> debbugs.gnu.org
Subject: RE: bug#14541: 24.3.50; `ediff-buffers' does not play well with
	recent Cygwin version
References: <7d461150-fe55-4278-bb7a-22fc24811364@default>>
	<83hahfxkw9.fsf@HIDDEN>>
	<2c39c869-9210-432d-aa95-d392e9ee8dac@default>
	<87txlfrvd8.fsf@HIDDEN>
In-Reply-To: <87txlfrvd8.fsf@HIDDEN>
X-Priority: 3
X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.7  (607090) [OL
	12.0.6668.5000 (x86)]
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: quoted-printable
X-Source-IP: ucsinet21.oracle.com [156.151.31.93]
X-Spam-Score: -4.7 (----)
X-Debbugs-Envelope-To: 14541
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -4.7 (----)

> > I read the postings at both of those URLs, but I do not see anywhere wh=
ere
> > they say what you say about reliability.  What is a concrete example of=
 a
> > problem introduced by Emacs setting this env var?
>=20
> It is not your business (or anyone else's but the user) to set that
> environment variable. =20

I am the user.  Just trying to make the recent Cygwin versionn work with
Emacs, like an older version did.

> Despite the appearance, setting things there is a
> lot more akin to giving an option on the kernel boot line.  It only
> takes effect when the cygwin1.dll is first loaded and can't be changed
> later as long as at least once Cygwin process is runnning.

Does not sound like a great design.  But what do I know?

> > FWIW, I have added (setenv "CYGWIN" "nodosfilewarning") to setup-
> > cygwin.el.  That seems to take care of the problem without, AFAICT,
> > creating other problems.  But if you know of problems that it
> > introduces, please let me know.
>=20
> Don't.  You might override other settings that the user wants to take
> effect or at best produce a confusing no-op.  You'd be much better off
> if you would use cygpath to convert to POSIX instead.

I'll leave it in setup-cygwin.el, at least for now.  But I'll add a
comment per what Eli said: that if come other Cygwin process started
earlier and turned this off then turning it on here has no effect.

So it sounds like even Emacs Dev (i.e., what this bug report is about)
cannot fix this.  If the env var was already looked up once then Emacs
cannot change it.

Sounds like the only good approach for an Emacs user on Windows, with
Cygwin installed, is to set the env var at the system level.  If that
is the case (please confirm) then I'll mention that too in a
setup-cygwin.el comment.  (And we might want to mention that in the
Emacs manual?)

OK, I suppose that's not the only good approach.  I guess you're
suggesting another, for someone who is willing to change to POSIX:
use the cygpath utility.  Feel free to document that one (for Emacs
users)...




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#14541; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 3 Jun 2013 16:53:24 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jun 03 12:53:24 2013
Received: from localhost ([127.0.0.1]:49233 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1UjY0Z-00022C-7N
	for submit <at> debbugs.gnu.org; Mon, 03 Jun 2013 12:53:24 -0400
Received: from eggs.gnu.org ([208.118.235.92]:46592)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <geb-bug-gnu-emacs@HIDDEN>) id 1UjY0W-00021a-4n
	for submit <at> debbugs.gnu.org; Mon, 03 Jun 2013 12:53:21 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <geb-bug-gnu-emacs@HIDDEN>) id 1UjXyZ-0004mU-HX
	for submit <at> debbugs.gnu.org; Mon, 03 Jun 2013 12:51:21 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-100.0 required=5.0 tests=BAYES_20, USER_IN_WHITELIST
	autolearn=disabled version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:35176)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <geb-bug-gnu-emacs@HIDDEN>) id 1UjXyZ-0004mQ-Dm
	for submit <at> debbugs.gnu.org; Mon, 03 Jun 2013 12:51:19 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:48287)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <geb-bug-gnu-emacs@HIDDEN>) id 1UjXyV-0005Qj-MZ
	for bug-gnu-emacs@HIDDEN; Mon, 03 Jun 2013 12:51:19 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <geb-bug-gnu-emacs@HIDDEN>) id 1UjXyU-0004l9-0Z
	for bug-gnu-emacs@HIDDEN; Mon, 03 Jun 2013 12:51:15 -0400
Received: from plane.gmane.org ([80.91.229.3]:60320)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <geb-bug-gnu-emacs@HIDDEN>) id 1UjXyT-0004kX-PA
	for bug-gnu-emacs@HIDDEN; Mon, 03 Jun 2013 12:51:13 -0400
Received: from list by plane.gmane.org with local (Exim 4.69)
	(envelope-from <geb-bug-gnu-emacs@HIDDEN>) id 1UjXyR-0001IX-Rz
	for bug-gnu-emacs@HIDDEN; Mon, 03 Jun 2013 18:51:11 +0200
Received: from pd9eb0793.dip0.t-ipconnect.de ([217.235.7.147])
	by main.gmane.org with esmtp (Gmexim 0.1 (Debian))
	id 1AlnuQ-0007hv-00
	for <bug-gnu-emacs@HIDDEN>; Mon, 03 Jun 2013 18:51:11 +0200
Received: from Stromeko by pd9eb0793.dip0.t-ipconnect.de with local (Gmexim
	0.1 (Debian)) id 1AlnuQ-0007hv-00
	for <bug-gnu-emacs@HIDDEN>; Mon, 03 Jun 2013 18:51:11 +0200
X-Injected-Via-Gmane: http://gmane.org/
To: bug-gnu-emacs@HIDDEN
From: Achim Gratz <Stromeko@HIDDEN>
Subject: Re: bug#14541: 24.3.50;
	`ediff-buffers' does not play well with recent Cygwin version
Date: Mon, 03 Jun 2013 18:50:59 +0200
Organization: Linux Private Site
Lines: 27
Message-ID: <87txlfrvd8.fsf@HIDDEN>
References: <7d461150-fe55-4278-bb7a-22fc24811364@default>>
	<83hahfxkw9.fsf@HIDDEN>>
	<2c39c869-9210-432d-aa95-d392e9ee8dac@default>
Mime-Version: 1.0
Content-Type: text/plain
X-Complaints-To: usenet@HIDDEN
X-Gmane-NNTP-Posting-Host: pd9eb0793.dip0.t-ipconnect.de
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)
Cancel-Lock: sha1:aCq09K/I3flo+oD9nxWnEwi1IDU=
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address
	(bad octet value).
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -6.9 (------)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -6.9 (------)

Drew Adams writes:
> I read the postings at both of those URLs, but I do not see anywhere where
> they say what you say about reliability.  What is a concrete example of a
> problem introduced by Emacs setting this env var?

It is not your business (or anyone else's but the user) to set that
environment variable.  Despite the appearance, setting things there is a
lot more akin to giving an option on the kernel boot line.  It only
takes effect when the cygwin1.dll is first loaded and can't be changed
later as long as at least once Cygwin process is runnning.

> FWIW, I have added (setenv "CYGWIN" "nodosfilewarning") to setup-cygwin.el.
> That seems to take care of the problem without, AFAICT, creating other
> problems.  But if you know of problems that it introduces, please let me know.

Don't.  You might override other settings that the user wants to take
effect or at best produce a confusing no-op.  You'd be much better off
if you would use cygpath to convert to POSIX instead.


Regards,
Achim.
-- 
+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+

SD adaptations for KORG EX-800 and Poly-800MkII V0.9:
http://Synth.Stromeko.net/Downloads.html#KorgSDada





Information forwarded to bug-gnu-emacs@HIDDEN:
bug#14541; Package emacs. Full text available.

Message received at 14541 <at> debbugs.gnu.org:


Received: (at 14541) by debbugs.gnu.org; 3 Jun 2013 16:39:17 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jun 03 12:39:17 2013
Received: from localhost ([127.0.0.1]:49226 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1UjXmu-0001N8-Ee
	for submit <at> debbugs.gnu.org; Mon, 03 Jun 2013 12:39:16 -0400
Received: from mtaout22.012.net.il ([80.179.55.172]:48972)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <eliz@HIDDEN>) id 1UjXmq-0001MQ-UL
	for 14541 <at> debbugs.gnu.org; Mon, 03 Jun 2013 12:39:14 -0400
Received: from conversion-daemon.a-mtaout22.012.net.il by
	a-mtaout22.012.net.il (HyperSendmail v2007.08) id
	<0MNT00500SQRD700@HIDDEN> for
	14541 <at> debbugs.gnu.org; Mon, 03 Jun 2013 19:37:12 +0300 (IDT)
Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il
	(HyperSendmail v2007.08) with ESMTPA id
	<0MNT004Q1SU0LIG0@HIDDEN>;
	Mon, 03 Jun 2013 19:37:12 +0300 (IDT)
Date: Mon, 03 Jun 2013 19:37:08 +0300
From: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#14541: 24.3.50;
	`ediff-buffers' does not play well with recent Cygwin version
In-reply-to: <2c39c869-9210-432d-aa95-d392e9ee8dac@default>
X-012-Sender: halo1@HIDDEN
To: Drew Adams <drew.adams@HIDDEN>
Message-id: <83a9n7xia3.fsf@HIDDEN>
References: <2c39c869-9210-432d-aa95-d392e9ee8dac@default>
X-Spam-Score: 0.7 (/)
X-Debbugs-Envelope-To: 14541
Cc: 14541 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
Reply-To: Eli Zaretskii <eliz@HIDDEN>
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -1.2 (-)

> Date: Mon, 3 Jun 2013 09:21:10 -0700 (PDT)
> From: Drew Adams <drew.adams@HIDDEN>
> Cc: 14541 <at> debbugs.gnu.org
> 
> > We could perhaps push "CYGWIN=nodosfilewarning" into the environment
> > when Emacs launches child processes.  However, as these URLs indicate:
> > 
> >   http://stackoverflow.com/questions/9079982/cygwin-nodosfilewarning-doesnt-
> > help-cygwin-warning
> >   http://superuser.com/questions/370545/behaviour-of-cygwins-
> > nodosfilewarning
> > 
> > this solution is not reliable if there's some other Cygwin process
> > running on the same system.  So I think the only reliable solution is
> > to put the above into the System environment variables, so that
> > whatever the first Cygwin process is, it always sees it.
> 
> I read the postings at both of those URLs, but I do not see anywhere where
> they say what you say about reliability.  What is a concrete example of a
> problem introduced by Emacs setting this env var?

According to those URLs, only the first Cygwin process invoked on a
system checks the CYGWIN environment variable.  It leaves the result
in a shared memory, which all the other Cygwin processes access.  So
if the first process was invoked outside of Emacs, and didn't see that
variable, you will get the warning, even if we push the variable into
the environment of our child programs.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#14541; Package emacs. Full text available.

Message received at 14541 <at> debbugs.gnu.org:


Received: (at 14541) by debbugs.gnu.org; 3 Jun 2013 16:24:53 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jun 03 12:24:53 2013
Received: from localhost ([127.0.0.1]:49213 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1UjXYy-0000eC-B3
	for submit <at> debbugs.gnu.org; Mon, 03 Jun 2013 12:24:53 -0400
Received: from aserp1040.oracle.com ([141.146.126.69]:21057)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <drew.adams@HIDDEN>) id 1UjXYv-0000dr-H4
	for 14541 <at> debbugs.gnu.org; Mon, 03 Jun 2013 12:24:51 -0400
Received: from ucsinet22.oracle.com (ucsinet22.oracle.com [156.151.31.94])
	by aserp1040.oracle.com (Sentrion-MTA-4.3.1/Sentrion-MTA-4.3.1) with
	ESMTP id r53GMnp5027050
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK);
	Mon, 3 Jun 2013 16:22:50 GMT
Received: from userz7022.oracle.com (userz7022.oracle.com [156.151.31.86])
	by ucsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id
	r53GMmfV027123
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO);
	Mon, 3 Jun 2013 16:22:49 GMT
Received: from abhmt115.oracle.com (abhmt115.oracle.com [141.146.116.67])
	by userz7022.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id
	r53GMll7027103; Mon, 3 Jun 2013 16:22:48 GMT
MIME-Version: 1.0
Message-ID: <2c39c869-9210-432d-aa95-d392e9ee8dac@default>
Date: Mon, 3 Jun 2013 09:21:10 -0700 (PDT)
From: Drew Adams <drew.adams@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: RE: bug#14541: 24.3.50;	`ediff-buffers' does not play well with
	recent Cygwin version
References: <<7d461150-fe55-4278-bb7a-22fc24811364@default>>
	<<83hahfxkw9.fsf@HIDDEN>>
In-Reply-To: <<83hahfxkw9.fsf@HIDDEN>>
X-Priority: 3
X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.7  (607090) [OL
	12.0.6668.5000 (x86)]
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: quoted-printable
X-Source-IP: ucsinet22.oracle.com [156.151.31.94]
X-Spam-Score: -2.8 (--)
X-Debbugs-Envelope-To: 14541
Cc: 14541 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -4.7 (----)

> > But I wonder if `ediff-buffers' could perhaps prevent the error/warning
> > anyway.  I don't know whether it is really the 8-char DOS file-name
> > format that Cygwin objects to, but I think so.  Maybe just having it
> > use full Windows (not DOS) file names would be a fix?
>=20
> No.  Cygwin w[h]ines about drive letters, not about the 8+3 aliases.  So
> using long file names will not help.  You can verify that by invoking
> Diff from the shell prompt.

I see.  That was not clear to me, but it seems you are right.

> We could perhaps push "CYGWIN=3Dnodosfilewarning" into the environment
> when Emacs launches child processes.  However, as these URLs indicate:
>=20
>   http://stackoverflow.com/questions/9079982/cygwin-nodosfilewarning-does=
nt-
> help-cygwin-warning
>   http://superuser.com/questions/370545/behaviour-of-cygwins-
> nodosfilewarning
>=20
> this solution is not reliable if there's some other Cygwin process
> running on the same system.  So I think the only reliable solution is
> to put the above into the System environment variables, so that
> whatever the first Cygwin process is, it always sees it.

I read the postings at both of those URLs, but I do not see anywhere where
they say what you say about reliability.  What is a concrete example of a
problem introduced by Emacs setting this env var?

FWIW, I have added (setenv "CYGWIN" "nodosfilewarning") to setup-cygwin.el.
That seems to take care of the problem without, AFAICT, creating other
problems.  But if you know of problems that it introduces, please let me kn=
ow.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#14541; Package emacs. Full text available.

Message received at 14541 <at> debbugs.gnu.org:


Received: (at 14541) by debbugs.gnu.org; 3 Jun 2013 15:42:47 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jun 03 11:42:47 2013
Received: from localhost ([127.0.0.1]:49191 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1UjWuE-0006vn-TV
	for submit <at> debbugs.gnu.org; Mon, 03 Jun 2013 11:42:47 -0400
Received: from mtaout20.012.net.il ([80.179.55.166]:63554)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <eliz@HIDDEN>) id 1UjWuC-0006uy-Fk
	for 14541 <at> debbugs.gnu.org; Mon, 03 Jun 2013 11:42:45 -0400
Received: from conversion-daemon.a-mtaout20.012.net.il by
	a-mtaout20.012.net.il (HyperSendmail v2007.08) id
	<0MNT00200Q4LEY00@HIDDEN> for
	14541 <at> debbugs.gnu.org; Mon, 03 Jun 2013 18:40:45 +0300 (IDT)
Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il
	(HyperSendmail v2007.08) with ESMTPA id
	<0MNT0021YQ7UAS40@HIDDEN>;
	Mon, 03 Jun 2013 18:40:42 +0300 (IDT)
Date: Mon, 03 Jun 2013 18:40:38 +0300
From: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#14541: 24.3.50;
	`ediff-buffers' does not play well with recent Cygwin version
In-reply-to: <7d461150-fe55-4278-bb7a-22fc24811364@default>
X-012-Sender: halo1@HIDDEN
To: Drew Adams <drew.adams@HIDDEN>
Message-id: <83hahfxkw9.fsf@HIDDEN>
References: <7d461150-fe55-4278-bb7a-22fc24811364@default>
X-Spam-Score: 0.7 (/)
X-Debbugs-Envelope-To: 14541
Cc: 14541 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
Reply-To: Eli Zaretskii <eliz@HIDDEN>
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -1.2 (-)

> Date: Sun, 2 Jun 2013 21:12:40 -0700 (PDT)
> From: Drew Adams <drew.adams@HIDDEN>
> 
> I used to use an old (2007?) version of Cygwin.  I just
> installed the latest Cygwin verion on Windows 7.  I use the same setup
> for Emacs as previously (cygwin-mount.el, then setup-cygwin.el, both
> from Emacs Wiki).
> 
> Previously, Cygwin handled MS DOS-style file names OK.
> But `ediff-buffers' passes such file names for its temporary files,
> and the latest version of Cygwin (on Windows 7 at least) does not,
> by default, handle such file names: it issues a warning, which means
> that Emacs raises an error and prints the Cygwin warning.
> 
> This makes `ediff-buffers' unusable.  There is a workaround: set env var
> CYGWIN to `nodosfilewarning'.  I have added that to file setup-cygwin.el
> as a workaround.

May I again urge you to consider switching to MinGW ports instead?  I
can point to those I use for years, which means they are reliable.

> But I wonder if `ediff-buffers' could perhaps prevent the error/warning
> anyway.  I don't know whether it is really the 8-char DOS file-name
> format that Cygwin objects to, but I think so.  Maybe just having it
> use full Windows (not DOS) file names would be a fix?

No.  Cygwin wines about drive letters, not about the 8+3 aliases.  So
using long file names will not help.  You can verify that by invoking
Diff from the shell prompt.

We could perhaps push "CYGWIN=nodosfilewarning" into the environment
when Emacs launches child processes.  However, as these URLs indicate:

  http://stackoverflow.com/questions/9079982/cygwin-nodosfilewarning-doesnt-help-cygwin-warning
  http://superuser.com/questions/370545/behaviour-of-cygwins-nodosfilewarning

this solution is not reliable if there's some other Cygwin process
running on the same system.  So I think the only reliable solution is
to put the above into the System environment variables, so that
whatever the first Cygwin process is, it always sees it.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#14541; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 3 Jun 2013 04:14:50 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jun 03 00:14:50 2013
Received: from localhost ([127.0.0.1]:48335 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1UjMAT-0003gW-VY
	for submit <at> debbugs.gnu.org; Mon, 03 Jun 2013 00:14:50 -0400
Received: from eggs.gnu.org ([208.118.235.92]:51700)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <drew.adams@HIDDEN>) id 1UjMAO-0003fj-L5
	for submit <at> debbugs.gnu.org; Mon, 03 Jun 2013 00:14:46 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <drew.adams@HIDDEN>) id 1UjM8V-00087F-Vs
	for submit <at> debbugs.gnu.org; Mon, 03 Jun 2013 00:12:49 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-100.0 required=5.0 tests=BAYES_20, USER_IN_WHITELIST
	autolearn=disabled version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:37449)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <drew.adams@HIDDEN>) id 1UjM8V-00087B-Sv
	for submit <at> debbugs.gnu.org; Mon, 03 Jun 2013 00:12:47 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:53418)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <drew.adams@HIDDEN>) id 1UjM8T-0005FR-LR
	for bug-gnu-emacs@HIDDEN; Mon, 03 Jun 2013 00:12:47 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <drew.adams@HIDDEN>) id 1UjM8S-00086v-D5
	for bug-gnu-emacs@HIDDEN; Mon, 03 Jun 2013 00:12:45 -0400
Received: from aserp1040.oracle.com ([141.146.126.69]:45374)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <drew.adams@HIDDEN>) id 1UjM8S-00086o-73
	for bug-gnu-emacs@HIDDEN; Mon, 03 Jun 2013 00:12:44 -0400
Received: from ucsinet21.oracle.com (ucsinet21.oracle.com [156.151.31.93])
	by aserp1040.oracle.com (Sentrion-MTA-4.3.1/Sentrion-MTA-4.3.1) with
	ESMTP id r534CgUU018362
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK)
	for <bug-gnu-emacs@HIDDEN>; Mon, 3 Jun 2013 04:12:43 GMT
Received: from userz7021.oracle.com (userz7021.oracle.com [156.151.31.85])
	by ucsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id
	r534CfW3021477
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO)
	for <bug-gnu-emacs@HIDDEN>; Mon, 3 Jun 2013 04:12:42 GMT
Received: from abhmt111.oracle.com (abhmt111.oracle.com [141.146.116.63])
	by userz7021.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id
	r534Cf0v021465
	for <bug-gnu-emacs@HIDDEN>; Mon, 3 Jun 2013 04:12:41 GMT
MIME-Version: 1.0
Message-ID: <7d461150-fe55-4278-bb7a-22fc24811364@default>
Date: Sun, 2 Jun 2013 21:12:40 -0700 (PDT)
From: Drew Adams <drew.adams@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: 24.3.50; `ediff-buffers' does not play well with recent Cygwin version
X-Priority: 3
X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.7  (607090) [OL
	12.0.6668.5000 (x86)]
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: quoted-printable
X-Source-IP: ucsinet21.oracle.com [156.151.31.93]
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic]
X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address
	(bad octet value).
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -4.8 (----)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -6.2 (------)

I used to use an old (2007?) version of Cygwin.  I just
installed the latest Cygwin verion on Windows 7.  I use the same setup
for Emacs as previously (cygwin-mount.el, then setup-cygwin.el, both
from Emacs Wiki).

Previously, Cygwin handled MS DOS-style file names OK.
But `ediff-buffers' passes such file names for its temporary files,
and the latest version of Cygwin (on Windows 7 at least) does not,
by default, handle such file names: it issues a warning, which means
that Emacs raises an error and prints the Cygwin warning.

This makes `ediff-buffers' unusable.  There is a workaround: set env var
CYGWIN to `nodosfilewarning'.  I have added that to file setup-cygwin.el
as a workaround.

But I wonder if `ediff-buffers' could perhaps prevent the error/warning
anyway.  I don't know whether it is really the 8-char DOS file-name
format that Cygwin objects to, but I think so.  Maybe just having it
use full Windows (not DOS) file names would be a fix?

This is the error shown in buffer *ediff-errors*:

cygwin warning:
  MS-DOS style path detected: c:/Users/XXXXXX~1.XXX/AppData/Local/Temp/foo.=
el
  Preferred POSIX equivalent is: /cygdrive/c/Users/XXXXXX~1.XXX/AppData/Loc=
al/Temp/foo.el
  CYGWIN environment variable option "nodosfilewarning" turns off this warn=
ing.
  Consult the user's guide for more details about POSIX paths:
    http://cygwin.com/cygwin-ug-net/using.html#using-pathnames

And this is the *Backtrace* I see:

Debugger entered--Lisp error:
(error "Errors in diff output.  Diff output is in #<buffer *ediff-diff*>")
  signal(error ("Errors in diff output.  Diff output is in #<buffer *ediff-=
diff*>"))
  error("Errors in diff output.  Diff output is in %S" #<buffer *ediff-diff=
*>)
  ediff-prepare-error-list("^\\([0-9,]+[acd][0-9,]+
?$\\|[<>] \\|---\\|.*Warning *:\\|.*No +newline\\|.*missing +newline\\|^
?$\\)" #<buffer *ediff-diff*>)
  ediff-setup-diff-regions("c:/Users/XXXXXX~1.XXX/AppData/Local/Temp/foo.el=
"
                           "c:/Users/XXXXXX~1.XXX/AppData/Local/Temp/bar.el=
" nil)
  ediff-setup(#<buffer foo.el> "c:/Users/XXXXXX~1.XXX/AppData/Local/Temp/fo=
o.el"
              #<buffer bar.el> "c:/Users/XXXXXX~1.XXX/AppData/Local/Temp/ba=
r.el" nil nil
((lambda nil (delete-file "c:/Users/XXXXXX~1.XXX/AppData/Local/Temp/foo.el"=
)
(delete-file "c:/Users/XXXXXX~1.XXX/AppData/Local/Temp/bar.el")
(if (stringp nil) (delete-file nil)))) ((ediff-job-name . ediff-buffers)) n=
il)
  ediff-buffers-internal("foo.el" "bar.el" nil nil ediff-buffers)
  ediff-buffers("foo.el" "bar.el")
  call-interactively(ediff-buffers nil nil)
  command-execute(ediff-buffers)

In GNU Emacs 24.3.50.1 (i386-mingw-nt6.1.7601)
 of 2013-06-01 on ODIEONE
Bzr revision: 112809 xfq.free@HIDDEN
Windowing system distributor `Microsoft Corp.', version 6.1.7601
Configured using:
 `configure --with-gcc (4.7) --no-opt --enable-checking --cflags
 -IC:/Devel/emacs/build/include --ldflags -LC:/Devel/emacs/build/lib'




Acknowledgement sent to Drew Adams <drew.adams@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#14541; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Fri, 31 Oct 2014 17:00:04 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.