From xemacs-m  Thu Mar 13 14:51:56 1997
Received: from mailbox1.ucsd.edu (mailbox1.ucsd.edu [132.239.1.53])
	by xemacs.org (8.8.5/8.8.5) with ESMTP id OAA05654
	for <xemacs-beta@xemacs.org>; Thu, 13 Mar 1997 14:51:53 -0600 (CST)
Received: from sdnp5.ucsd.edu (sdnp5.ucsd.edu [132.239.79.10]) by mailbox1.ucsd.edu (8.8.5/8.6.9) with SMTP id MAA08307 for <xemacs-beta@xemacs.org>; Thu, 13 Mar 1997 12:51:51 -0800 (PST)
Received: by sdnp5.ucsd.edu (SMI-8.6/SMI-SVR4)
	id MAA04173; Thu, 13 Mar 1997 12:53:55 -0800
Sender: dmoore@sdnp5.ucsd.edu
To: xemacs-beta@xemacs.org
Subject: Re: 20.1-b6: pasting text
References: <QQcgsu14671.199703132013@crystal.WonderWorks.COM>
X-Face: "oX;zS#-JU$-,WKSzG.1gGE]x^cIg!hW.dq>.f6pzS^A+(k!T|M:}5{_%>Io<>L&{hO7W4cicOQ|>/lZ1G(m%7iaCf,6Qgk0%%Bz7b2-W3jd0m_UG\Y;?]}4s0O-U)uox>P3JN)9cm]O\@,vy2e{`3pb!"pqmRy3peB90*2L
Mail-Copies-To: never
Mime-Version: 1.0 (generated by tm-edit 7.105)
Content-Type: text/plain; charset=US-ASCII
From: David Moore <dmoore@ucsd.edu>
Date: 13 Mar 1997 12:53:54 -0800
In-Reply-To: Kyle Jones's message of Thu, 13 Mar 1997 15:13:54 -0500 (EST)
Message-ID: <rvzpw7y0m5.fsf@sdnp5.ucsd.edu>
Lines: 49
X-Mailer: Gnus v5.4.24/XEmacs 19.15

Kyle Jones <kyle_jones@wonderworks.com> writes:

> If the pasting code is something we can lift whole and screaming
> from FSF Emcas, I say let's do it.  And for God's sake let's make
> button2 and the Paste button do the same thing.

I don't know what fsf emacs is doing, and it's been years since I
pounded my head on a wall screaming at X selection design, but my memory
seems to be telling me that there were two somewhat incompatible notions
of doing this.  One involved the "clipboard", and the other involved
"selections", or something like that.

Although I would say we should make button2 and paste do the same thing,
figuring out how to merge them might be a challenge, unless we can lift
the code from something.  As people have been reporting recently on some
systems only paste seems to work for them and for others only button2
works.

For me, if I click button2, I get:
egrep CAN_DEBUG_WITHOUT_FP

And hitting paste, I get:
http://www.miranova.com/~steve/vs-screenshot.gif

The button2 reflects what I've most recently cut&paste in various
xterms, and is generally what I want.  I have no idea where the info in
from paste came from.  I think I used button3 to grab a url to
clipboard in netscape 3 days ago.  Btw, that information was pastable
with button2 at that time as well.

So I suspect that certain programs only stick the info in one place.
such as xterms in selections.  Other programs stick them in the
clipboard.  Netscape sticks them in both.  It looks like the `copy' menu
in XEmacs sticks them in both, but that dragging with button1 only
sticks them in the selection.

There is also a program called xclipboard that you can run which might
do some of these conversions for you if you run it.  The xcutsel man
page suggests that there may even be a 3rd way of moving things around:
cut buffers, whatever they are.

Welcome to the nightmare known as X.


-- 
David Moore <dmoore@ucsd.edu>       | Computer Systems Lab      __o
UCSD Dept. Computer Science - 0114  | Work: (619) 534-8604    _ \<,_
La Jolla, CA 92093-0114             | Fax:  (619) 534-1445   (_)/ (_)
<URL:http://oj.egbt.org/dmoore/>    | In a cloud bones of steel.

