Article View: gnu.emacs.bug
Article #99095Cut Buffers Problem
From: LUSYSNZ
Date: Fri, 26 Oct 1990 21:37
Date: Fri, 26 Oct 1990 21:37
34 lines
2132 bytes
2132 bytes
Relay-Version: VMS News - V5.9C 19/12/89 VAX/VMS V5.3; site vax1.cc.lehigh.edu
Path: vax1.cc.lehigh.edu!vax1.cc.lehigh.edu!netnews.upenn.edu!rutgers!tut.cis.ohio-state.edu!isa.de!schwarze
Newsgroups: gnu.emacs.bug
Subject: Cut Buffers Problem
Message-ID: <9010181728.AA11946@isaak.isa.de>
From: schwarze@isa.de (Jochen Schwarze)
Date: 18 Oct 90 17:28:05 GMT
Sender: daemon@tut.cis.ohio-state.edu
Distribution: gnu
Organization: GNUs Not Usenet
Approved: bug-gnu-emacs@prep.ai.mit.edu
Lines: 21
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:
<138E5E9C2C7F800042@VAX1.CC.LEHIGH.EDU>Path:
arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!cs.utexas.edu!tut.cis.ohio-state.edu!VAX1.CC.LEHIGH.EDU!LUSYSNZShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fb2f1,2c4c88330dbf9ee7,start X-Google-Attributes: gidfb2f1,public X-Google-ArrivalTime: 1990-10-26 14:37:00 PST Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!cs.utexas.edu!tut.cis.ohio-state.edu!VAX1.CC.LEHIGH.EDU!LUSYSNZ From: LUSYSNZ@VAX1.CC.LEHIGH.EDU Newsgroups: gnu.emacs.bug Subject: Cut Buffers Problem Message-ID: <138E5E9C2C7F800042@VAX1.CC.LEHIGH.EDU> Date: 26 Oct 90 21:37:00 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 34 Approved: bug-gnu-emacs@prep.ai.mit.edu Posted: Fri Oct 26 22:37:00 1990