From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#14541: 24.3.50; `ediff-buffers' does not play well with recent Cygwin version Date: Mon, 3 Jun 2013 13:15:02 -0700 (PDT) Message-ID: <5f681b7a-8e4d-4263-9337-817bd2c00fa6@default> References: <7d461150-fe55-4278-bb7a-22fc24811364@default>> <83hahfxkw9.fsf@gnu.org>> <2c39c869-9210-432d-aa95-d392e9ee8dac@default> <87txlfrvd8.fsf@Rainer.invalid> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1370290585 29967 80.91.229.3 (3 Jun 2013 20:16:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 3 Jun 2013 20:16:25 +0000 (UTC) To: Achim Gratz , 14541@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jun 03 22:16:24 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UjbB0-00042D-EU for geb-bug-gnu-emacs@m.gmane.org; Mon, 03 Jun 2013 22:16:22 +0200 Original-Received: from localhost ([::1]:46980 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UjbAz-0001Z2-Sq for geb-bug-gnu-emacs@m.gmane.org; Mon, 03 Jun 2013 16:16:21 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35163) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UjbAs-0001SH-2g for bug-gnu-emacs@gnu.org; Mon, 03 Jun 2013 16:16:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UjbAn-0006W1-9Q for bug-gnu-emacs@gnu.org; Mon, 03 Jun 2013 16:16:14 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:32815) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UjbAn-0006Vx-5w for bug-gnu-emacs@gnu.org; Mon, 03 Jun 2013 16:16:09 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1UjbCc-0000Pq-FG for bug-gnu-emacs@gnu.org; Mon, 03 Jun 2013 16:18:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 03 Jun 2013 20:18:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 14541 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 14541-submit@debbugs.gnu.org id=B14541.13702906311506 (code B ref 14541); Mon, 03 Jun 2013 20:18:02 +0000 Original-Received: (at 14541) by debbugs.gnu.org; 3 Jun 2013 20:17:11 +0000 Original-Received: from localhost ([127.0.0.1]:49404 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UjbBl-0000OD-Kv for submit@debbugs.gnu.org; Mon, 03 Jun 2013 16:17:10 -0400 Original-Received: from userp1040.oracle.com ([156.151.31.81]:47224) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UjbBh-0000NZ-N1 for 14541@debbugs.gnu.org; Mon, 03 Jun 2013 16:17:07 -0400 Original-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 Original-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 Original-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 In-Reply-To: <87txlfrvd8.fsf@Rainer.invalid> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.7 (607090) [OL 12.0.6668.5000 (x86)] X-Source-IP: ucsinet21.oracle.com [156.151.31.93] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:74791 Archived-At: > > 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)...