🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.epoch.misc
Article #2202

Re: Cutting text out of epoch

#2202
From: Gillmer J. Derge
Date: Tue, 19 Feb 1991 13:26
23 lines
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
Technical Details
Message-ID: <16893@crdgw1.crd.ge.com>
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!crdgw1!paris!derge
References: <SMARTIN.91Feb13090410@torsys02_1.uucp> <ANTHONY.91Feb17151722@innisfre.cs.UAlberta.CA>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fc7ee,9a29fb6e0a68ed05
X-Google-Attributes: gidfc7ee,public
X-Google-ArrivalTime: 1991-02-19 06:10:02 PST
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!crdgw1!paris!derge
From: derge@paris.crd.ge.com (Gillmer J. Derge)
Newsgroups: gnu.epoch.misc
Subject: Re: Cutting text out of epoch
Message-ID: <16893@crdgw1.crd.ge.com>
Date: 19 Feb 91 13:26:57 GMT
References: <SMARTIN.91Feb13090410@torsys02_1.uucp> <ANTHONY.91Feb17151722@innisfre.cs.UAlberta.CA>
Sender: news@crdgw1.crd.ge.com
Reply-To: derge@crd.ge.com
Distribution: gnu
Organization: GE Corporate R&D Center, Schenectady, NY
Lines: 23