Xref: utzoo gnu.emacs:3869 comp.windows.x:27008 Path: utzoo!mnetor!tmsoft!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!uunet!decwrl!shelby!neon!lucid.com!jwz From: jwz@lucid.com (Jamie Zawinski) Newsgroups: gnu.emacs,comp.windows.x Subject: X cutbuffer weirdness Message-ID: Date: 15 Sep 90 07:19:25 GMT Sender: jwz@lucid.com Organization: Lucid, Inc., Menlo Park, CA Lines: 26 I've been encountering some strange interactions between GNU Emacs and the X server cutbuffer. I am using some code which transfers text from Emacs to the server cutbuffer with a form like (x-store-cut-buffer (buffer-substring ... )). This usually works - I can, for example, click middle in an Xterm and have the text pasted there. And also, the form (insert (x-get-cut-buffer)) will put the text back into emacs. But every now and then, the text seems to go to a different place - say I copy the form "FOO" from Emacs to the cut buffer; and then some time later, I copy "BAR". If I click middle in an Xterm, it pastes "FOO" instead of "BAR", although pasting it into emacs (with x-get-cut-buffer) pastes "BAR". Also, sometimes clicking in one Xterm will paste "FOO" and clicking in another will paste "BAR". It is as if one of the Xterms is deciding that it should be using a different cut buffer or something. I'm not sure exactly what is the thing between copying "FOO" and "BAR" that makes the behavior change, but I suspect it might have something to do with copying or pasting large blocks of text. Does it seem possible that something like that could cause Emacs or an Xterm to use a different cut buffer? Is there a way to examine the contents of the various server cut buffers? Any suggestions would be appreciated. Thanks, -- Jamie PS: Emacs 18.55, X11R4 patchlevel 11, Sun3.