Thread View: gnu.epoch.misc
4 messages
4 total messages
Started by Stephen Martin
Wed, 13 Feb 1991 14:04
Cutting text out of epoch
Author: Stephen Martin
Date: Wed, 13 Feb 1991 14:04
Date: Wed, 13 Feb 1991 14:04
9 lines
1127 bytes
1127 bytes
I seem to have no problem cutting text out of an xterm and pasting it into epoch but when i try to go the other way it doesn't work. Is there something i can configure to do this? -- Stephen Martin ------- LSI Logic Corporation of Canada, Inc. Phone: (416) 620-7400 LSI|LOGIC| Suite 1110, 401 The West Mall, Fax: (416) 620-5005 | | Etobicoke, Ontario, Canada. Email: smartin@lsican.uucp ------- M9C 5J5 or smartin@Canada.lsil.com
Re: Cutting text out of epoch
Author: Anthony Mutiso
Date: Sun, 17 Feb 1991 20:17
Date: Sun, 17 Feb 1991 20:17
19 lines
1675 bytes
1675 bytes
>>>>> On 13 Feb 91 14:04:10 GMT, smartin@Canada.lsil.com (Stephen Martin) said: Stephen> I seem to have no problem cutting text out of an xterm and pasting it into Stephen> epoch but when i try to go the other way it doesn't work. Is there something Stephen> i can configure to do this? I have been having the same trouble, but a quick hack/fix that works is to make sure no xterm owns the selection. ie. Highlight some text in an xterm window, then do a mouse-button-1, which will de-select the text. Now if you do a epoch region selection, the cut/paste will work fine. I belive the problem relates to epoch (emacs also too), not being able saving the cut test in the primary cut buffer, if it still owned by some other client. Anthony -- Anthony Mutiso (anthony@cs.ualberta.ca) Life-motto: Logic Rules.
Re: Cutting text out of epoch
Author: Alan M. Carroll
Date: Mon, 18 Feb 1991 16:04
Date: Mon, 18 Feb 1991 16:04
31 lines
1995 bytes
1995 bytes
The problem is that Epoch uses cut buffers, and xterms like
selections. Here is something that can make things work a little
better.
-------
Here is a nice little hack to make life easier to cut & paste between
epoch and xterms or other Toolkit-based applications. Just before cutting
text into the cut buffer, clear the current selection, so that when you paste
in a xterm afterwards, you will really paste the epoch text, no an old
selection hiding somewhere...
Here is the patch to src/x11fns.c:
avahi$ diff -c x11fns.c.orig x11fns.c
*** x11fns.c.orig Wed Jul 18 11:06:01 1990
- --- x11fns.c Wed Jul 18 11:09:35 1990
***************
*** 93,98 ****
- --- 93,99 ----
check_xterm ();
BLOCK_INPUT ();
+ XSetSelectionOwner(XD_display, XA_PRIMARY, None, CurrentTime);
XStoreBytes (XD_display, XSTRING (string)->data,
XSTRING (string)->size);
UNBLOCK_INPUT ();
(hack found by Arnaud Le Hors, lehors@mirsa.inria.fr, Koala Project)
--
Alan M. Carroll "I hate shopping with the reality-impaired"
Epoch Development Team - Susan
CS Grad / U of Ill @ Urbana ...{ucbvax,pur-ee,convex}!cs.uiuc.edu!carroll
Re: Cutting text out of epoch
Author: Gillmer J. Derge
Date: Tue, 19 Feb 1991 13:26
Date: Tue, 19 Feb 1991 13:26
23 lines
1662 bytes
1662 bytes
It's possible to hack around this problem using resources. I have the following settings in my .xrdb: XTerm*VT100.translations:#override \n\ <Btn2Up>: insert-selection(CUT_BUFFER0, PRIMARY) *Text.translations:#override \n\ <Btn2Down>: insert-selection(CUT_BUFFER0, PRIMARY) The root of the problem is that emacs and epoch put cut text into only CUT_BUFFER0. Xterm, but default, checks PRIMARY first, and then uses CUT_BUFFER0 only if PRIMARY is empty. If you've selected some text in an xterm window, and then subsequently select epoch text, the xterm will paste from the original xterm selection in PRIMARY. The second resource setting makes this apply to text widgets as well (for xrn, for example). I haven't noticed any side-effects from making this change. Do be careful, however, to use ".translations" rather than "*translations". If you use a *, the translation will also be in effect in the scrollbar. This causes xterm to crash. Gill Derge derge@crd.ge.com
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads