all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Drew Adams <drew.adams@oracle.com>
To: Achim Gratz <Stromeko@nexgo.de>, 14541@debbugs.gnu.org
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)	[thread overview]
Message-ID: <5f681b7a-8e4d-4263-9337-817bd2c00fa6@default> (raw)
In-Reply-To: <87txlfrvd8.fsf@Rainer.invalid>

> > 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.  

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.
> 
> 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)...





  reply	other threads:[~2013-06-03 20:15 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <<7d461150-fe55-4278-bb7a-22fc24811364@default>
     [not found] ` <<83hahfxkw9.fsf@gnu.org>
2013-06-03 16:21   ` bug#14541: 24.3.50; `ediff-buffers' does not play well with recent Cygwin version Drew Adams
2013-06-03 16:37     ` Eli Zaretskii
2013-06-03 16:50     ` Achim Gratz
2013-06-03 20:15       ` Drew Adams [this message]
2013-06-03 20:23         ` Eli Zaretskii
2013-06-05 20:17         ` Achim Gratz
2013-06-05 23:55           ` Drew Adams
2013-06-06 19:07             ` Achim Gratz
2013-06-06 20:21               ` Eli Zaretskii
2022-02-13  9:26                 ` Lars Ingebrigtsen
2013-06-06 20:42               ` Drew Adams
2013-06-03  4:12 Drew Adams
2013-06-03 15:40 ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5f681b7a-8e4d-4263-9337-817bd2c00fa6@default \
    --to=drew.adams@oracle.com \
    --cc=14541@debbugs.gnu.org \
    --cc=Stromeko@nexgo.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.