This is the mail archive of the
cygwin-xfree
mailing list for the Cygwin XFree86 project.
Re: Paste from xterm to Emacs no longer works
- From: Fredrik Staxeng <fstx+u at update dot uu dot se>
- To: cygwin-xfree at cygwin dot com
- Date: Sat, 06 Apr 2013 13:28:18 +0200
- Subject: Re: Paste from xterm to Emacs no longer works
- References: <1mtxnn6e49 dot fsf at Psilocybe dot Update dot UU dot SE> <CAEhDDbB7aY5ZiTM32AmKeyE364UhbPeMzTjWNXmKTQwTn6h4mA at mail dot gmail dot com> <515C20FA dot 8050302 at cornell dot edu>
- Reply-to: cygwin-xfree at cygwin dot com
Ken Brown <kbrown@cornell.edu> writes:
>While waiting for this, I'll make a wild guess that his problem is
>related to the selection changes that started with emacs-24.1. Browse
>the NEWS file (`C-h n') and search for "Selection changes".
Thank you for trying to help.
I found that when I googled, but I did not find it helpful at
first. I think the following is incomplete.
*** `x-select-enable-primary' now defaults to nil.
Thus, commands that kill text or copy it to the kill-ring (such as
M-w, C-w, and C-k) also use the clipboard---not the primary selection.
I think that x-select-enable-primary also affects C-y.
I tried to paste with the scroll wheel, but apparently that generated
mouse-4, not mouse-2. But I really want to paste with the right mouse
button.
In .emacs:
(global-set-key [mouse-3] 'mouse-yank-primary)
In .Xdefaults:
XTerm*VT100.Translations: #override \
<Key>BackSpace: string(0x7f) \n\
~Shift ~Ctrl ~Meta <Btn1Up>: select-end(PRIMARY, CLIPBOARD) \n\
~Shift ~Ctrl ~Meta <Btn3Down>: ignore() \n\
~Shift ~Ctrl ~Meta <Btn3Up>: insert-selection(PRIMARY, CLIPBOARD)
(When I first tried to post this, I got the backspace invokes help
problem. I put in the fix for that also)
--
Fredrik Stax\"ang | rot13: sfgk@hcqngr.hh.fr
This is all you need to know about vi: ESC : q ! RET
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ: http://x.cygwin.com/docs/faq/