----- Original Message ----- From: "Ujjal Bose" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Tuesday, November 07, 2006 1:19 PM
Subject: Re: gvim cut paste selection


On 11/8/06, Stahlman Family <[EMAIL PROTECTED]> wrote:
Ujjal,
Although it fixed the problem (or perhaps only masked it, as the underlying problem is with Cygwin X), the patch I submitted to
Vim was rejected. Bram maintained that since the bug pertained to Cygwin 
XWindows, so should the fix. I actually did not disagree
with him on this point. The reason I had started with Vim rather than XWindows was that I was more familiar with Vim's source code.
However, since Bram refused to incorporate the patch, I proceeded to post to 
the XWindows list. It was suggested that I write a
patch and submit it. I wrote a patch, and Colin Harrison (who was more familiar with the patch submission process) tested the patch
and submitted it to the Bugzilla bug tracking database. I also tested on my own 
PC running Cygwin X and gVim compiled from unix
sources. Months after patch submission, the patch was accepted and the issue changed to FIXED / RESOLVED. I have not yet checked to
see whether the patch has actually been rolled into the most recently released 
version of XWin. You can see a full description of
the bug and how I fixed it by reading the thread below. Also, I've included the 
link to the Bugzilla submission page, so you can
obtain and apply the Xwin patch if you like. Alternatively, you could obtain and apply the Vim patch, but since it's not likely ever
to find its way into Vim (and really is kind of a kludge anyways), I'd 
recommend the former approach...

Hope this helps,
   Brett Stahlman

Thread subject: "Serious flaw in Cygwin X clipboard integration prevents paste from 
X to Windows app"
http://www.cygwin.com/ml/cygwin-xfree/2006-01/msg00030.html

Bugzilla entry 5375:
https://bugs.freedesktop.org/show_bug.cgi?id=5735

----- Original Message -----
From: Ujjal Bose
To: [EMAIL PROTECTED]
Sent: Tuesday, November 07, 2006 3:16 AM
Subject: Fwd: gvim cut paste selection


Hi,

I saw ur patch that you have posted to the URL mentioned below. So will the same patch work for a unix vim or is it only for Win32 ?
As you can see from the thread below that I am also facing similar problems , but 
from Unix Gvim <----> Windows Apps.

Thanks,
Ujjal

Hi Brett,

I tested your vim patch on my machine and its working for me in Unix,
after removing the "ifdef WIN32" macros from the patch. Now cut/paste
across gvim (unix) <--> Windows apps is perfect !

As noted earlier by Brett, this may not be the best approach, but it
pretty much solves my problem :)

Ujjal,
I'm glad you got it working. Although the XWin patch is probably the ideal solution, building Vim is probably easier than building XWin, and a working non-ideal solution is always better than none at all. However, I am meaning to download the latest XWin source distribution to see whether my patch is in it yet. When I see that it is, I'll notify the list, since there are probably other Vim users who have been affected by this...

Brett Stahlman


Thanks to Brett and Yakov !

-Ujjal


Reply via email to