[comp.windows.x] Text widget and selections

brossard@sasun1.epfl.ch (Alain Brossard EPFL-SIC/SII) (10/24/90)

   Sun 4/110, Sun OS 4.1, X.V11R4, up to patch18 and the Xaw Text Widget:

	I give up!  I've tried and tried to do the following:

"L6" puts a selection in a buffer (CLIPBOARD if possible) (copy)
"L8" inserts it (paste)
"L10" puts the selection in buffer and then deletes it. (cut)


   Looks simple doesn't it (and very similar to what xview does :-).
But the only thing I've managed to do is:
	1- select with pointer
	2- "Copy" in CLIPBOARD
	3- Paste in place.
	
    Notice that I can't move the mouse between 2 and 3, which makes
my results pretty useless.  If I use xcutsel to stuff in the CLIPBOAARD,
then "copy" works ... once .. and then it starts inserting n nulls;
where n was the size of the selection.

    Here are the translation I used:

*Text*translations:     #override \n\
        <Key>L6: extend-end(PRIMARY,SECONDARY,CLIPBOARD) \n\
        <Key>L5: select-end(CLIPBOARD) \n\
        <Key>L8: insert-selection(CLIPBOARD) \n\
        <Key>F7: insert-selection(SECONDARY) \n\
        <Key>L10: select-end(CLIPBOARD) delete-selection() \n

   The only part that seems to work as I expect it to work is
the delete-selection!  I tested those translations using
xedit if that makes a difference.  I've tried the same thing in xterm:

        <Key>L6: select-end(PRIMARY,SECONDARY,CLIPBOARD) \n\
        <Key>L8: insert-selection(CLIPBOARD) \n\
        <Key>L10: select-end(CLIPBOARD) \n\

   And no success either.  What is the magic invocation to

A- Put something in a buffer (eg: CLIPBOARD) so that it STAYS there
B- Insert it somewhere so that it doesn't disappear from the buffer.


				Alain Brossard

PS:	The only impact I had was to put xclipboard in an infinite
   loop at one point.
--

Alain Brossard, Ecole Polytechnique Federale de Lausanne,
	SIC/SII, EL-Ecublens, CH-1015 Lausanne, Suisse
brossard@sasun1.epfl.ch