Clipboard problems with xemacs whole-line selection

2004-08-10 Thread Ed Avis
Normally recent versions of XWin have reliable cut and paste between X
and Windows.  The application I run under X is xemacs.  But I recently
noticed that when triple-clicking a line of text in xemacs to select
the whole line and put it in the clipboard, I couldn't paste it into
Windows.  The log file has some messages about UTF8String.   Other
ways of selecting the same text in xemacs set the Windows clipboard
correctly.  The text being pasted is just plain ASCII characters.

Here is the XWin.log showing a few attempts by me to select some text
by triple-clicking in xemacs and paste it into Firefox or Notepad.  I
also found that for a little while after I'd stopped doing anything
XWin was still spewing 'XConvertSelection () failed' messages to its
log once or twice a second.  But it stopped eventually.

Does the following log file have enough information or would you like
me to do some more investigation?

Welcome to the XWin X Server
Vendor: The Cygwin/X Project
Release: 6.7.0.0-12

Contact: [EMAIL PROTECTED]

XWin was started with the following command line:

/usr/X11R6/bin/XWin -clipboard -engine 1 -br 

ddxProcessArgument - Initializing default screens
winInitializeDefaultScreens - w 1200 h 1600
winInitializeDefaultScreens - Returning
winValidateArgs - g_iNumScreens: 1 iMaxConsecutiveScreen: 1
(II) XF86Config is not supported
(II) See http://x.cygwin.com/docs/faq/cygwin-x-faq.html for more information
winDetectSupportedEngines - Windows NT/2000/XP
winDetectSupportedEngines - DirectDraw installed
winDetectSupportedEngines - DirectDraw4 installed
winDetectSupportedEngines - Returning, supported engines 0007
winSetEngine - Using user's preference: 1
winAdjustVideoModeShadowGDI - Using Windows display depth of 32 bits per pixel
winAllocateFBShadowGDI - Creating DIB with width: 1194 height: 1547 depth: 32
winFinishScreenInitFB - Masks: 00ff ff00 00ff
winInitVisualsShadowGDI - Masks 00ff ff00 00ff BPRGB 8 d 24 bpp 32
MIT-SHM extension disabled due to lack of kernel support
XFree86-Bigfont extension local-client optimization disabled due to lack of shared 
memory support in the kernel
(--) Setting autorepeat to delay=250, rate=31
(--) winConfigKeyboard - Layout: 0809 (0809) 
(--) Using preset keyboard for English (United Kingdom) (809), type 4
Rules = xorg Model = pc105 Layout = gb Variant = (null) Options = (null)
Could not init font path element /usr/X11R6/lib/X11/fonts/CID/, removing from list!
winPointerWarpCursor - Discarding first warp: 597 773
winProcEstablishConnection - Hello
winInitClipboard ()
winProcEstablishConnection - winInitClipboard returned.
winClipboardProc - Hello
DetectUnicodeSupport - Windows NT/2000/XP
winClipboardProc - DISPLAY=127.0.0.1:0.0
winClipboardProc - XOpenDisplay () returned and successfully opened the display.
winProcSetSelectionOwner - Clipboard not yet started, aborting.
winProcSetSelectionOwner - Clipboard not yet started, aborting.
winWindowProc - WM_DISPLAYCHANGE - orig bpp: 32, last bpp: 32, new bpp: 32
winWindowProc - WM_DISPLAYCHANGE - new width: 1200 new height: 1600
winWindowProc - WM_DISPLAYCHANGE - orig bpp: 32, last bpp: 32, new bpp: 32
winWindowProc - WM_DISPLAYCHANGE - new width: 1200 new height: 1600
winClipboardWindowProc - WM_DRAWCLIPBOARD - Nested calls detected.  Bailing.
winClipboardFlushXEvents - SelectionNotify - XConvertSelection () failed for 
CompoundText, aborting: 1
winClipboardFlushXEvents - SelectionNotify - XConvertSelection () failed for 
UTF8String, aborting: 1
winProcessXEventsTimeout - Call to select () failed: 0.  Bailing.
winClipboardFlushXEvents - SelectionNotify - XConvertSelection () failed for 
CompoundText, aborting: 1
winClipboardFlushXEvents - SelectionNotify - XConvertSelection () failed for 
UTF8String, aborting: 1
winProcessXEventsTimeout - Call to select () failed: 0.  Bailing.
winClipboardFlushXEvents - SelectionNotify - XConvertSelection () failed for 
CompoundText, aborting: 1
winClipboardFlushXEvents - SelectionNotify - XConvertSelection () failed for 
UTF8String, aborting: 1
winProcessXEventsTimeout - Call to select () failed: 0.  Bailing.
winClipboardFlushXEvents - SelectionNotify - XConvertSelection () failed for 
CompoundText, aborting: 1
winClipboardFlushXEvents - SelectionNotify - XConvertSelection () failed for 
UTF8String, aborting: 1
winProcessXEventsTimeout - Call to select () failed: 0.  Bailing.
winClipboardFlushXEvents - SelectionNotify - XConvertSelection () failed for 
CompoundText, aborting: 1
winClipboardFlushXEvents - SelectionNotify - XConvertSelection () failed for 
UTF8String, aborting: 1
winProcessXEventsTimeout - Call to select () failed: 0.  Bailing.
winClipboardFlushXEvents - SelectionNotify - XConvertSelection () failed for 
CompoundText, aborting: 1
winClipboardFlushXEvents - SelectionNotify - XConvertSelection () failed for 
UTF8String, aborting: 1
winProcessXEventsTimeout - Call to select () failed: 0.  Bailing.
winClipboardFlushXEvents - SelectionNotify - 

Re: Clipboard problems with xemacs whole-line selection

2004-08-10 Thread Dr. Volker Zell
 Ed Avis writes:

 Normally recent versions of XWin have reliable cut and paste between X
 and Windows.  The application I run under X is xemacs.  But I recently
 noticed that when triple-clicking a line of text in xemacs to select
 the whole line and put it in the clipboard, I couldn't paste it into
 Windows.  The log file has some messages about UTF8String.   Other
 ways of selecting the same text in xemacs set the Windows clipboard
 correctly.  The text being pasted is just plain ASCII characters.


I just checked and it works fine for me.

 Here is the XWin.log showing a few attempts by me to select some text
 by triple-clicking in xemacs and paste it into Firefox or Notepad.  I
 also found that for a little while after I'd stopped doing anything
 XWin was still spewing 'XConvertSelection () failed' messages to its
 log once or twice a second.  But it stopped eventually.

Here is my XWin.log

Welcome to the XWin X Server
Vendor: The Cygwin/X Project
Release: 6.7.0.0-12

Contact: [EMAIL PROTECTED]

XWin was started with the following command line:

X -ac -nodecoration -rootless -nowinkill -clipboard -fp
/usr/X11R6/lib/X11/fonts/misc/,/usr/X11R6/lib/X11/fonts/75dpi/:unscaled,/usr/X11R6/lib/X11/fonts/100dpi/:unscaled,/usr/X1
1R6/lib/X11/fonts/Type1/,/usr/X11R6/lib/X11/fonts/Speedo/,/usr/X11R6/lib/X11/fonts/75dpi/,/usr/X11R6/lib/X11/fonts/100dpi
/,/usr/local/share/emacs/fonts/,/dev/c/WINNT/Fonts/,/usr/local/share/fonts/,/usr/X11R6/lib/X11/fonts/Ethiopic/,/usr/X11R6
/lib/X11/fonts/TTF/,/usr/X11R6/lib/X11/fonts/cyrillic/

ddxProcessArgument - Initializing default screens
winInitializeDefaultScreens - w 1024 h 768
winInitializeDefaultScreens - Returning
_XSERVTransmkdir: Owner of /tmp/.X11-unix should be set to root
winValidateArgs - g_iNumScreens: 1 iMaxConsecutiveScreen: 1
(II) XF86Config is not supported
(II) See http://x.cygwin.com/docs/faq/cygwin-x-faq.html for more information
winDetectSupportedEngines - Windows NT/2000/XP
winDetectSupportedEngines - DirectDraw installed
winDetectSupportedEngines - DirectDraw4 installed
winDetectSupportedEngines - Returning, supported engines 0007
winSetEngine - Using Shadow DirectDraw NonLocking
winAdjustVideoModeShadowDDNL - Using Windows display depth of 32 bits per pixel
winFinishScreenInitFB - Masks: 00ff ff00 00ff
(--) Setting autorepeat to delay=250, rate=31
(--) winConfigKeyboard - Layout: 0407 (0407)
(--) Using preset keyboard for German (Germany) (407), type 4
Rules = xorg Model = pc105 Layout = de Variant = (null) Options = (null)
winPointerWarpCursor - Discarding first warp: 512 383
winProcEstablishConnection - Hello
winInitClipboard ()
winProcEstablishConnection - winInitClipboard returned.
winClipboardProc - Hello
DetectUnicodeSupport - Windows NT/2000/XP
winClipboardProc - DISPLAY=127.0.0.1:0.0
winClipboardProc - XOpenDisplay () returned and successfully opened the
display.

 Ed Avis [EMAIL PROTECTED]

Ciao
  Volker