Re: Paste from xterm to Emacs no longer works

2013-04-06 Thread Fredrik Staxeng
Ken Brown kbr...@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 \
  KeyBackSpace: 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: s...@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/



Re: Paste from xterm to Emacs no longer works

2013-04-03 Thread Csaba Raduly
Hi Fredrik,
You need to give a bit more detail than It doesn't work.

http://www.chiark.greenend.org.uk/~sgtatham/bugs.html#respect

Start here:
 Problem reports:   http://cygwin.com/problems.html

Csaba
--
GCS a+ e++ d- C++ ULS$ L+$ !E- W++ P+++$ w++$ tv+ b++ DI D++ 5++
The Tao of math: The numbers you can count are not the real numbers.
Life is complex, with real and imaginary parts.
Ok, it boots. Which means it must be bug-free and perfect.  -- Linus Torvalds
People disagree with me. I just ignore them. -- Linus Torvalds

--
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/



Re: Paste from xterm to Emacs no longer works

2013-04-03 Thread Ken Brown

On 4/3/2013 7:54 AM, Csaba Raduly wrote:

Hi Fredrik,
You need to give a bit more detail than It doesn't work.

http://www.chiark.greenend.org.uk/~sgtatham/bugs.html#respect

Start here:

Problem reports:   http://cygwin.com/problems.html


Right.

In addition, the OP should give a recipe for reproducing the problem 
starting with `emacs -Q'.


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.


Ken

--
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/



Re: Paste from xterm to Emacs no longer works

2013-04-03 Thread Fredrik Staxeng

This works for me:

(global-set-key [mouse-3]  'mouse-yank-primary)



-- 
Fredrik Stax\ang | rot13: s...@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/