Article View: gnu.epoch.misc
Article #1824Re: Cut 'n paste between Epoch and Open Windows
From: Chris Weikart
Date: Fri, 02 Aug 1991 11:48
Date: Fri, 02 Aug 1991 11:48
58 lines
3076 bytes
3076 bytes
In article <1991Aug2.010309.4295@eua.ericsson.se>, ebubra@ebu.ericsson.se (Bertil Askelid) writes:
>
> [sorry for wasted bandwidth if this occurs twice, I have some problems with
> my mailserver]
>
> Cut 'n paste works fine bothways between an Epoch screen and an xterm, but
> not between Epoch and an Open Windows shelltool, mailtool, etc.
>
> Does anyone know how to fix this, i.e. to make Epoch running under Open
> Windows work also with the Open Windows clipboard?
> --
> Bertil Askelid
> ebubra@ebu.ericsson.se
[Here's a message I sent to our lab awhile back which may be useful...]
The problem is that most X apps use the "primary selection", while gnuemacs/
epoch use "cut buffer 0", for copy & paste. There's a very simple clipboard
tool called "xcutsel" that allows interchange between these buffers, thus
enabling all combinations of copy/paste. You click on either of two
push-buttons, "copy PRIMARY to 0" or "copy 0 to PRIMARY".
The following applications use the indicated buffer for both copy and paste:
CUT BUFFER 0 PRIMARY
------------ -------
xrn x
dxmail x
notes x
(etc) x
xterm x (1) x (1)
gnuemacs x
epoch x (2)
(1) Xterm is friendly. Selecting within xterm copies into both buffers,
and one can paste into xterm from either buffer. By default, PRIMARY
has priority in case both are non-empty, but priority can be given to
CUT BUFFER 0 with the following resource:
XTerm*VT100.translations:#override \n\
<Btn2Up>: insert-selection(CUT_BUFFER0, PRIMARY)
(2) After selection into CUT BUFFER 0, epoch as currently patched [locally?]
deletes the contents of PRIMARY; this is intended to facilitate
interchange with xterm (without the resource mentioned above).
Therefore, for instance, you can select text in xrn, click on "copy PRIMARY to
0" in xcutsel, and middle-button-click in gnuemacs to paste. Or you can select
text in epoch, click on "copy 0 to PRIMARY" in xcutsel, and right-button-click
in the dxmail "create" window to paste.
I know, what a drag to have to think about this, but it's better than nothing.
The next release of epoch is supposed to use PRIMARY instead of CUT BUFFER 0.
-------------------------------------------------------------------------------
Chris Weikart <weikart@prl.dec.com> .............. DEC Paris Research Lab (PRL)
Technical Details
Message-ID:
<1991Aug2.114833.6795@prl.dec.com>Path:
arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!decwrl!pa.dec.com!decprl!decprl!weikartReferences:
<1991Aug2.010309.4295@eua.ericsson.se>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fc7ee,a57a59cc2680aa19 X-Google-Attributes: gidfc7ee,public X-Google-ArrivalTime: 1991-08-02 20:44:46 PST Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!decwrl!pa.dec.com!decprl!decprl!weikart From: weikart@prl.dec.com (Chris Weikart) Newsgroups: gnu.epoch.misc Subject: Re: Cut 'n paste between Epoch and Open Windows Message-ID: <1991Aug2.114833.6795@prl.dec.com> Date: 2 Aug 91 11:48:33 GMT References: <1991Aug2.010309.4295@eua.ericsson.se> Sender: news@prl.dec.com (USENET News System) Organization: Digital Equipment Corporation - Paris Research Laboratory Lines: 58 Nntp-Posting-Host: prl310.prl.dec.com