[Xquartz-dev] X11 2.4.0 vs nedit 5.6-cvs20081118

Merle Reinhart merlereinhart at mac.com
Fri Aug 28 05:24:41 PDT 2009


Jack,

That fink lesstif change works for me.  Fink's nedit now behaves in  
X11-2.4.0 the same as it did in X11-2.3.3.2.  I'm running a 1st-gen  
MacPro with fink in i386 mode.

When the X11/OSX pasteboard synchronization stuff started appearing in  
X11, nedit wound up with a tendency to not want to copy between nedit  
windows in an X11 sort of way.  However, if instead of control-c to  
copy in nedit you use command-c (ie, round-trip via the OS X  
pasteboard), then you can just control-v in the other nedit window  
(though control-c/control-v works within a nedit window).

Since a large amount of my cutting-and-pasting is between OSX windows  
and nedit windows, I personally don't find this a problem (in some  
ways, it is a step closer to X11 behaving like the rest of OS X with  
cut/paste).

However, I did notice that if you disable the pasteboard synching in  
the X11 preferences, you can copy back and forth between nedit windows  
in the standard X11 way without issue (and you can still cut-and-paste  
between the X11 windows and OSX windows as one did before the  
pasteboard synching got put into X11).

This is with the lesstif-0.95.2 update and nedit-5.5-2 rebuilt against  
that updated lesstif and X11-2.4.0.

I was also playing a bit with cut in ddd (which uses lesstif).  It  
would crash the same way nedit crashed with the previous fink lesstif  
version when trying to copy to the clipboard.  Now it no longer  
crashes and the copy/paste seems to work.

So, the fink lesstif fix looks good to me with X11-2.4.0.

Thanks!

Merle



On Aug 27, 2009, at 11:39 PM, Jack Howarth wrote:

>   I have been trying to solve some issues with the lesstif-0.95.2
> and nedit fink packages on i386, powerpc and x86_64. I believe I
> have solved the lesstif 0.95.2 bus errors (which was due to missing
> braces from a debian patch accepted upstream)...
>
> --- lesstif-0.95.2/lib/Xm-2.1/CutPaste.c.org    2009-08-27  
> 21:44:12.000000000 -0400
> +++ lesstif-0.95.2/lib/Xm-2.1/CutPaste.c        2009-08-27  
> 21:45:25.000000000 -0400
> @@ -1028,9 +1028,11 @@
>        /* XChangeProperty expects a buffer of longs when receiving  
> 32 bits
>           data, MEUHH */
>        if (sizeof(long) != 4)
> +        {
>            convert_buf = XtMalloc(len * sizeof(long));
>         for (i = 0; i < len; i++)
>             convert_buf[i] = data[i];
> +        }
>        break;
>
>     case 16:
>
> The ability to copy and paste in nedit 5.5 still seems non- 
> functional under
> i386 fink. Upgrading nedit to the same 5.6-cvs20081118 debian sid  
> tarball solved the
> paste problem with one oddity. I have to disable ""Update Pasteboard  
> when clipboard
> changes" in the Preferences of X11 or I get an error message...
>
> XmClipboardInquireLength() failed: clipboard locked.
>
> when I try to paste text from one nedit window to another (but not  
> when I
> copy the text beforehand). Has anyone else run into this issue yet?
>          Jack
> _______________________________________________
> Xquartz-dev mailing list
> Xquartz-dev at lists.macosforge.org
> http://lists.macosforge.org/mailman/listinfo.cgi/xquartz-dev



More information about the Xquartz-dev mailing list