Re: [itz@speakeasy.org (Ian Zimmerman)] emacs20: X selection misbehavior
itz> Sometimes when I select a piece of text in another program (xterm
itz> or tkman or mozilla are examples, but it seems it can happen with
itz> any program) I am unable to paste the selection into emacs.
itz> Instead, doing the "yank" command in emacs always pastes emacs'
itz> last "kill". When I do "Alt-: (x-get-selection-internal 'PRIMARY
itz> 'STRING)" the result is also emacs' last kill, even though I just
itz> selected something in xterm a second before that. And once this
itz> happens, is seems impossible to get the right behavior in that
itz> session of emacs - the only way to set it right is to quit emacs
itz> and restart it.
Christian> What about using 'clipboard-yank. Available in emacs 21 but
Christian> also in emacs 20 if I remember well.
No, the clipboard is a different feature, a program must explicitly
ask to store the current selection in the clipoard. Typically that
happens when you select a menu item like "Edit|Copy". And when I do
that in Mozilla, clipboard-copy indeed works in emacs (even when the
plain yank doesn't). But many programs don't have such a menu item,
rxvt and tkman don't. The plain selection should still work (and
does, most of the time).
--
Ian Zimmerman, Oakland, California, U.S.A.
GPG: 433BA087 9C0F 194F 203A 63F7 B1B8 6E5A 8CA3 27DB 433B A087
EngSoc adopts market economy: cheap is wasteful, efficient is expensive.
Reply to: