LaurentHelpEmacsWind | 3 May 2007 21:54
Picon
Favicon

pb with the use of Merge

Dear Emacs for windows list,

    I use GNU Emacs 21.3 and I have a problem when I try to merge two files with the Merge menu. When I type "n" in the
control panel to find the first difference I have the following message :

             /cygdrive/d/cygwin/bin/diff3: subsidiary program 
`/usr/bin/diff' not found

         Since I can't install any software on my C: disk I installed 
emacs in D:\emacs directory and the cygwin programs in d:\cygwin and I 
added "d:\cygwin\bin"  in my PATH.

  May somebody help me to make Merge work.

On the other hand, I would like to add that the Compare (Ediff) menu 
works fine.

Best regards

Eli Zaretskii | 4 May 2007 09:27
Picon

Re: pb with the use of Merge

> Date: Thu, 03 May 2007 21:54:02 +0200
> From: LaurentHelpEmacsWind <laurenthelpemacswind <at> free.fr>
> 
>     I use GNU Emacs 21.3 and I have a problem when I try to merge two files with the Merge menu. When I type "n" in the
control panel to find the first difference I have the following message :
> 
>              /cygdrive/d/cygwin/bin/diff3: subsidiary program 
> `/usr/bin/diff' not found
> 
>          Since I can't install any software on my C: disk I installed 
> emacs in D:\emacs directory and the cygwin programs in d:\cygwin and I 
> added "d:\cygwin\bin"  in my PATH.

You installed a Cygwin port of Diffutils, but your Emacs is a native
Windows program, not a Cygwin program, so it doesn't understand the
/cygdrive/d/ stuff and the intricacies of the way Cygwin ``mounts'' a
certain directory as `/usr/bin'.  I suggest to uninstall the Cygwin
utilities (or remove them from PATH visible to Emacs), and instead
install native Windows ports.  One place you can find such native
Windows ports is here:

  http://gnuwin32.sourceforge.net/packages.html

LaurentHelpEmacsWind | 4 May 2007 10:09
Picon
Favicon

Re: pb with the use of Merge

Eli Zaretskii a écrit :

>>Date: Thu, 03 May 2007 21:54:02 +0200
>>From: LaurentHelpEmacsWind <laurenthelpemacswind <at> free.fr>
>>
>>    I use GNU Emacs 21.3 and I have a problem when I try to merge two files with the Merge menu. When I type "n" in
the control panel to find the first difference I have the following message :
>>
>>             /cygdrive/d/cygwin/bin/diff3: subsidiary program 
>>`/usr/bin/diff' not found
>>
>>         Since I can't install any software on my C: disk I installed 
>>emacs in D:\emacs directory and the cygwin programs in d:\cygwin and I 
>>added "d:\cygwin\bin"  in my PATH.
>>    
>>
>
>You installed a Cygwin port of Diffutils, but your Emacs is a native
>Windows program, not a Cygwin program, so it doesn't understand the
>/cygdrive/d/ stuff and the intricacies of the way Cygwin ``mounts'' a
>certain directory as `/usr/bin'.  I suggest to uninstall the Cygwin
>utilities (or remove them from PATH visible to Emacs), and instead
>install native Windows ports.  One place you can find such native
>Windows ports is here:
>
>  http://gnuwin32.sourceforge.net/packages.html
>
>
>  
>
(Continue reading)

LaurentHelpEmacsWind | 4 May 2007 10:37
Picon
Favicon

Re: pb with the use of Merge

LaurentHelpEmacsWind a écrit :

> Eli Zaretskii a écrit :
>
>>> Date: Thu, 03 May 2007 21:54:02 +0200
>>> From: LaurentHelpEmacsWind <laurenthelpemacswind <at> free.fr>
>>>
>>>    I use GNU Emacs 21.3 and I have a problem when I try to merge two 
>>> files with the Merge menu. When I type "n" in the control panel to 
>>> find the first difference I have the following message :
>>>
>>>             /cygdrive/d/cygwin/bin/diff3: subsidiary program 
>>> `/usr/bin/diff' not found
>>>
>>>         Since I can't install any software on my C: disk I installed 
>>> emacs in D:\emacs directory and the cygwin programs in d:\cygwin and 
>>> I added "d:\cygwin\bin"  in my PATH.
>>>   
>>
>>
>> You installed a Cygwin port of Diffutils, but your Emacs is a native
>> Windows program, not a Cygwin program, so it doesn't understand the
>> /cygdrive/d/ stuff and the intricacies of the way Cygwin ``mounts'' a
>> certain directory as `/usr/bin'.  I suggest to uninstall the Cygwin
>> utilities (or remove them from PATH visible to Emacs), and instead
>> install native Windows ports.  One place you can find such native
>> Windows ports is here:
>>
>>  http://gnuwin32.sourceforge.net/packages.html
>>
(Continue reading)

Phil Betts | 4 May 2007 11:04
Favicon

RE: pb with the use of Merge

LaurentHelpEmacsWind wrote on Friday, May 04, 2007 9:37 AM::

> That's fantastic, it works very well ! Thank you very much again
> because I searched a lot of time ! (=> don't use cygwin)

Alternatively, you could have installed cygwin-mount.el and
kept all that juicy cygwin goodness.

As its name suggests, the cygwin-mount.el library allows emacs 
to understand cygwin mount points.

The latest version is available here:
http://home.avvanta.com/~offby1/cygwin-mount/cygwin-mount.el

For me, running Windows without cygwin would be unthinkable.

Eli Zaretskii | 4 May 2007 12:26
Picon

Re: pb with the use of Merge

> Date: Fri, 04 May 2007 10:37:07 +0200
> From: LaurentHelpEmacsWind <laurenthelpemacswind <at> free.fr>
> CC: Eli Zaretskii <eliz <at> gnu.org>,  help-emacs-windows <at> gnu.org
> 
> That's fantastic, it works very well ! Thank you very much again because 
> I searched a lot of time ! (=> don't use cygwin)

You're welcome.  I'm glad I could help you so easily.

Could you perhaps suggest a good place in the Emacs distribution to
mention the GnuWin32 site?  If you ever looked for that in some of the
Emacs files, telling us what were those files would be a good starting
point.

TIA

LaurentHelpEmacsWind | 4 May 2007 12:30
Picon
Favicon

Re: pb with the use of Merge

Phil Betts a écrit :

>LaurentHelpEmacsWind wrote on Friday, May 04, 2007 9:37 AM::
>
>  
>
>>That's fantastic, it works very well ! Thank you very much again
>>because I searched a lot of time ! (=> don't use cygwin)
>>    
>>
>
>Alternatively, you could have installed cygwin-mount.el and
>kept all that juicy cygwin goodness.
>
>As its name suggests, the cygwin-mount.el library allows emacs 
>to understand cygwin mount points.
>
>The latest version is available here:
>http://home.avvanta.com/~offby1/cygwin-mount/cygwin-mount.el
>
>For me, running Windows without cygwin would be unthinkable.
>
>
>
>
>  
>
All right, I will try that.
May you give me some examples about the fact that it is for you 
unthinkable to work with windows without cygwin ?
(Continue reading)

Eli Zaretskii | 4 May 2007 12:37
Picon

Re: pb with the use of Merge

> Date: Fri, 4 May 2007 10:04:14 +0100
> From: "Phil Betts" <Phil.Betts <at> ascribe.com>
> 
> Alternatively, you could have installed cygwin-mount.el and
> kept all that juicy cygwin goodness.
> 
> As its name suggests, the cygwin-mount.el library allows emacs 
> to understand cygwin mount points.
> 
> The latest version is available here:
> http://home.avvanta.com/~offby1/cygwin-mount/cygwin-mount.el
> 
> For me, running Windows without cygwin would be unthinkable.

Cygwin is okay, if it does for you what you want, but please note that
cygwin-mount.el solves only one of several incompatibilities between
Cygwin and native Windows programs.  As an example, there are
incompatibilities in how pipes and tty's are emulated, which might
cause grief to users of GUD, "M-x shell", and other similar features.
Another problem is emulation of signals.  Admittedly, these issues
raise their head only in very specific situations, but when they do,
they can drive users crazy.  Needless to say, cygwin-mount.el does
nothing to solve these problems.

If you like Cygwin, I think it's better to switch to the Cygwin build
of Emacs.

Richard M. Heiberger | 4 May 2007 15:16
Picon
Favicon

Fwd: Re: pb with the use of Merge

ediff is worth the price of admission.

emacs needs an exernal diff, and cygwin provides it.

---- Original message ----
>>As its name suggests, the cygwin-mount.el library allows emacs 
>>to understand cygwin mount points.
>>
>>The latest version is available here:
>>http://home.avvanta.com/~offby1/cygwin-mount/cygwin-mount.el
>>
>>For me, running Windows without cygwin would be unthinkable.
>>

>>
>All right, I will try that.
>May you give me some examples about the fact that it is for you 
>unthinkable to work with windows without cygwin ?
>

Drew Adams | 4 May 2007 15:32
Picon
Favicon

RE: Re: pb with the use of Merge

> ediff is worth the price of admission.
> emacs needs an exernal diff, and cygwin provides it.
>
> >>As its name suggests, the cygwin-mount.el library allows emacs
> >>to understand cygwin mount points....
> >>For me, running Windows without cygwin would be unthinkable.

As one more data point, I too happily use Emacs on Windows and Cygwin. I
don't use the Cygwin build of Emacs (I tried it once, long ago, and was
disappointed, but I don't remember the details).

I don't claim that using Cygwin is better; I've never tried the native
Windows tools ports. I'm sure that Eli's points are valid. But
`cygwin-mount.el' makes Cygwin play well enough with Emacs for me.

I also use `setup-cygwin.el', which provides a few other nice-to-haves:
http://www.emacswiki.org/cgi-bin/wiki/setup-cygwin.el. The file header
references Markus Hoenika paper "SGML for Windows NT", which you might also
find useful.

HTH.


Gmane