🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.bug
Article #99204

Cut Buffers Problem

#99204
From: Jochen Schwarze
Date: Thu, 18 Oct 1990 17:28
21 lines
1600 bytes
The function x-store-cut-buffer from x11fns.c stores the text using
XStoreBytes(). If the current selection is owned by an xterm, the
selection owner will *not* be changed and the text yanked in xterm
with the middle button will not be the one that was just stored in
emacs. A simple, if somewhat non-conforming solution, is to put the
call 
    
        XSetSelectionOwner(XXdisplay, XA_PRIMARY, None, CurrentTime);

after XStoreBytes(). The selection owner will be cleared, in which
case an xterm will get the cut buffer directly, without asking the
selection owner. A better solution would be if emacs explicitly
requested the selection ownership and replied to SelectionRequest
events.  (I'm not too familiar with selections but as I see it that's
the way it should be done.)

-- 

Jochen Schwarze                     Domain: schwarze@isa.de
ISA GmbH, Stuttgart, West Germany   UUCP:   schwarze@isaak.uucp
                                    Bang:   ...!uunet!unido!isaak!schwarze
Technical Details
Message-ID: <9010181728.AA11946@isaak.isa.de>
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!tut.cis.ohio-state.edu!isa.de!schwarze

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fb2f1,af435bd500272f68,start
X-Google-Attributes: gidfb2f1,public
X-Google-ArrivalTime: 1990-10-18 10:28:05 PST
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!tut.cis.ohio-state.edu!isa.de!schwarze
From: schwarze@isa.de (Jochen Schwarze)
Newsgroups: gnu.emacs.bug
Subject: Cut Buffers Problem
Message-ID: <9010181728.AA11946@isaak.isa.de>
Date: 18 Oct 90 17:28:05 GMT
Sender: daemon@tut.cis.ohio-state.edu
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 21
Approved: bug-gnu-emacs@prep.ai.mit.edu
Posted: Thu Oct 18 18:28:05 1990