public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* strange cut and paste between windows and xemacs after upgrade to 1.5.3
@ 2003-09-04 12:29 Thomas Pfaff
  2003-09-04 19:03 ` David Rothenberger
  2003-09-07 18:53 ` David Rothenberger
  0 siblings, 2 replies; 3+ messages in thread
From: Thomas Pfaff @ 2003-09-04 12:29 UTC (permalink / raw)
  To: cygwin

After upgrading my cygwin release box from 1.33.2 to 1.5.3 i see a 
strange cut and paste probleme between xemacs 21.4.13 and windows.

Cut and paste from and to windows works as long as xemacs does not fork 
a child process. After a fork of a shell, gdb or gnuserv the actual 
clipboard content is lost and cut and paste works only inside xemacs.

Thomas


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: strange cut and paste between windows and xemacs after upgrade to 1.5.3
  2003-09-04 12:29 strange cut and paste between windows and xemacs after upgrade to 1.5.3 Thomas Pfaff
@ 2003-09-04 19:03 ` David Rothenberger
  2003-09-07 18:53 ` David Rothenberger
  1 sibling, 0 replies; 3+ messages in thread
From: David Rothenberger @ 2003-09-04 19:03 UTC (permalink / raw)
  To: Thomas Pfaff; +Cc: cygwin

Thomas Pfaff wrote:

> After upgrading my cygwin release box from 1.33.2 to 1.5.3 i see a 
> strange cut and paste probleme between xemacs 21.4.13 and windows.
> 
> Cut and paste from and to windows works as long as xemacs does not fork 
> a child process. After a fork of a shell, gdb or gnuserv the actual 
> clipboard content is lost and cut and paste works only inside xemacs.
> 
> Thomas

I reported the same problem a month or so ago.

You can avoid the problem by adding evaluating
   (setq process-connection-type nil)

before a child process is created.  This forces XEmacs to use pipes 
instead of ptys for the child process communications.

However, I've noticed that tramp does not work with this setting, so 
I've gone back to the default "t" value.  There may be other things 
which don't work correctly this way, too.  Shell mode works fine for me, 
though.

What I've been doing as a work-around is using /dev/clipboard from 
within XEmacs.  To copy, highlight the region and then do

     M-|
     u2d >/dev/clipboard
     ENTER

To paste, drop a mark with C-space, then do

     C-u M-|
     cat </dev/clipboard
     ENTER

Alternatively, you could use getclip.exe and putclip.exe.

Not exactly convenient or quick, but it works.  I have yet to wrap this 
up into elisp functions to bind to keys, but I will probably do that 
unless I can figure out what's wrong with XEmacs.  If you do that, 
please share.

Dave




--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: strange cut and paste between windows and xemacs after upgrade to 1.5.3
  2003-09-04 12:29 strange cut and paste between windows and xemacs after upgrade to 1.5.3 Thomas Pfaff
  2003-09-04 19:03 ` David Rothenberger
@ 2003-09-07 18:53 ` David Rothenberger
  1 sibling, 0 replies; 3+ messages in thread
From: David Rothenberger @ 2003-09-07 18:53 UTC (permalink / raw)
  To: Thomas Pfaff; +Cc: cygwin

Thomas Pfaff wrote:

> After upgrading my cygwin release box from 1.33.2 to 1.5.3 i see a 
> strange cut and paste probleme between xemacs 21.4.13 and windows.
> 
> Cut and paste from and to windows works as long as xemacs does not fork 
> a child process. After a fork of a shell, gdb or gnuserv the actual 
> clipboard content is lost and cut and paste works only inside xemacs.

It looks like this is fixed in 21.4.14.  I just compiled it myself from 
CVS sources (with X support enabled) and copy-paste works fine even with 
process-connection-type set to t (use ptys).

Hooray!

Dave



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-09-07 18:53 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-09-04 12:29 strange cut and paste between windows and xemacs after upgrade to 1.5.3 Thomas Pfaff
2003-09-04 19:03 ` David Rothenberger
2003-09-07 18:53 ` David Rothenberger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).