CYGWIN=nodosfilewarning doesn't help cygwin warning
Asked Answered
A

3

22

When I try to use ediff-revision under Emacs 23.2.1 for a CVS-managed file, I receive the following error in the *ediff-errors* frame, instead of commencing directly to the ediff results:

cygwin warning:
  MS-DOS style path detected: c:/Users/BILL/AppData/Local/Temp/misc.cpp.~1.10~
  Preferred POSIX equivalent is: /cygdrive/c/Users/BILL/AppData/Local/Temp/misc.cpp.~1.10~
  CYGWIN environment variable option "nodosfilewarning" turns off this warning.
  Consult the user's guide for more details about POSIX paths:
    http://cygwin.com/cygwin-ug-net/using.html#using-pathnames

My problem is that I have already set that CYGWIN environment variable option "nodosfilewarning", so I have no idea why I am receiving this error.

In fact, I can verify this right from an inferior shell under the same Emacs instance:

> set | grep -i nodos
CYGWIN=nodosfilewarning

I am running Cygwin 1.7.9-1 under Windows 7, in case this may be relevant (and I never had this problem before upgrading from Cygwin 1.5 to 1.7).

Any idea how to get rid of this error?

P.S. A subsequent call to ediff-revision succeeds without triggering this warning.

Alcazar answered 31/1, 2012 at 13:3 Comment(0)
R
33

The CYGWIN variable is parsed when the first process in a Cygwin process tree is invoked. Hence, setting it in .bashrc or something like that is too late. A good place to set it is in the global Windows environment, under Control Panel->System->Advanced->Environment Variables.

Regulate answered 31/1, 2012 at 13:56 Comment(2)
Thank you! Indeed, I was exporting that env var in .bashrc. Once I moved it to the global Windows environment, everything works exactly as it used to work before I upgraded Cygwin.Alcazar
Doling out propers would be, well, proper. Props! This is one of those things that never really affected me per se, but annoyed me subconsciously when I saw it.Neritic
F
8

I added (setenv "CYGWIN" "nodosfilewarning") to setup-cygwin.el. That seems to take care of the problem without, AFAICT, creating other problems. I also filed Emacs bug #14541 for this.

Fermin answered 3/6, 2013 at 16:11 Comment(0)
A
3

From within emacs, you may also:

  • M-x setenv
  • CYGWIN
  • nodosfilewarning

as an immediate alternative to altering setup-cygwin.el.

Alva answered 22/12, 2013 at 2:19 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.