public inbox for cygwin-xfree@sourceware.org
help / color / mirror / Atom feed
From: Fredrik Staxeng <fstx+u@update.uu.se>
To: cygwin-xfree@cygwin.com
Subject: Re: Paste from xterm to Emacs no longer works
Date: Sat, 06 Apr 2013 18:49:00 -0000	[thread overview]
Message-ID: <1mli8vq4od.fsf@Psilocybe.Update.UU.SE> (raw)
In-Reply-To: <515C20FA.8050302@cornell.edu>

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/


  reply	other threads:[~2013-04-06 18:49 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-03 11:35 Fredrik Staxeng
2013-04-03 11:54 ` Csaba Raduly
2013-04-03 12:31   ` Ken Brown
2013-04-06 18:49     ` Fredrik Staxeng [this message]
2013-04-03 12:34   ` Fredrik Staxeng

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1mli8vq4od.fsf@Psilocybe.Update.UU.SE \
    --to=fstx+u@update.uu.se \
    --cc=cygwin-xfree@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).