From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#14541: 24.3.50; `ediff-buffers' does not play well with recent Cygwin version Date: Mon, 03 Jun 2013 18:40:38 +0300 Message-ID: <83hahfxkw9.fsf@gnu.org> References: <7d461150-fe55-4278-bb7a-22fc24811364@default> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1370274081 6776 80.91.229.3 (3 Jun 2013 15:41:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 3 Jun 2013 15:41:21 +0000 (UTC) Cc: 14541@debbugs.gnu.org To: Drew Adams Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jun 03 17:41:23 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 1UjWss-00013p-NZ for geb-bug-gnu-emacs@m.gmane.org; Mon, 03 Jun 2013 17:41:22 +0200 Original-Received: from localhost ([::1]:46668 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UjWss-0006LO-09 for geb-bug-gnu-emacs@m.gmane.org; Mon, 03 Jun 2013 11:41:22 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55340) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UjWsk-0006Kz-Mb for bug-gnu-emacs@gnu.org; Mon, 03 Jun 2013 11:41:19 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UjWsf-0008CX-QP for bug-gnu-emacs@gnu.org; Mon, 03 Jun 2013 11:41:14 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:60833) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UjWsf-0008C3-Mi for bug-gnu-emacs@gnu.org; Mon, 03 Jun 2013 11:41:09 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1UjWuT-0006wm-Pq for bug-gnu-emacs@gnu.org; Mon, 03 Jun 2013 11:43:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 03 Jun 2013 15:43:01 +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.137027416726653 (code B ref 14541); Mon, 03 Jun 2013 15:43:01 +0000 Original-Received: (at 14541) by debbugs.gnu.org; 3 Jun 2013 15:42:47 +0000 Original-Received: from localhost ([127.0.0.1]:49191 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UjWuE-0006vn-TV for submit@debbugs.gnu.org; Mon, 03 Jun 2013 11:42:47 -0400 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:63554) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UjWuC-0006uy-Fk for 14541@debbugs.gnu.org; Mon, 03 Jun 2013 11:42:45 -0400 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0MNT00200Q4LEY00@a-mtaout20.012.net.il> for 14541@debbugs.gnu.org; Mon, 03 Jun 2013 18:40:45 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MNT0021YQ7UAS40@a-mtaout20.012.net.il>; Mon, 03 Jun 2013 18:40:42 +0300 (IDT) In-reply-to: <7d461150-fe55-4278-bb7a-22fc24811364@default> X-012-Sender: halo1@inter.net.il 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:74777 Archived-At: > Date: Sun, 2 Jun 2013 21:12:40 -0700 (PDT) > From: Drew Adams > > 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.