From: Miles Bader <miles@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: Using the clipboard in development version of Emacs
Date: Wed, 13 Oct 2010 18:18:46 +0900 [thread overview]
Message-ID: <buoaamimow9.fsf@dhlpc061.dev.necel.com> (raw)
In-Reply-To: jwvr5h4a8uf.fsf-monnier+gnu.emacs.help@gnu.org
Stefan Monnier <monnier@iro.umontreal.ca> writes:
>> Hmm, sorry, I should have done more googling first. I am getting the
>> impression that this is work-in-progress, rather than a stable change.
>
> Actually, while some of the implementation details may still change, the
> behavior you describe is the one sought after. It may seem odd after
> all these years of using the other behavior, but it is the standard
> behavior of most other X applications: the PRIMARY selection and the
> CLIPBOARD are 2 separate entities: the PRIMARY is set via "mouse-1
> selection" and used via "mouse-2 paste", and the CLIPBOARD is set/used
> via things like C-k/C-y or C-x/C-v.
>
> Check NEWS (e.g. with C-h N) to see what's changed, and hence how to
> change back if you prefer the earlier behavior.
What I really want is a way to:
(1) use `x-select-enable-primary = t' (so I can insert the x-primary
using C-y in emacs -- mouse-only insertion is awful)
(2) _but_ avoid the effect of C-y inserting whatever was last selected
in emacs (because I use C-w in emacs)
(3) _and_ keep the "selecting text in emacs via any method writes to
x-primary" behavior
I.e., I like the fact that I can select text in emacs via the keyboard,
then insert in xterm using middle-button, but I don't want _emacs_ to
see the primary text.
The only way I think to do this is to make emacs ignore the x-primary if
it came from itself.
hmm, that shouldn't be tooooo hard...
-miles
--
Saa, shall we dance? (from a dance-class advertisement)
next prev parent reply other threads:[~2010-10-13 9:18 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-07 18:12 Using the clipboard in development version of Emacs Dan Davison
2010-09-07 18:47 ` Dan Davison
2010-09-08 23:20 ` suvayu ali
[not found] ` <mailman.8.1283885285.25613.help-gnu-emacs@gnu.org>
2010-09-07 22:06 ` Tim X
2010-09-08 9:36 ` Stefan Monnier
2010-10-13 9:18 ` Miles Bader [this message]
2010-10-13 9:54 ` David Kastrup
2010-10-13 10:25 ` Miles Bader
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=buoaamimow9.fsf@dhlpc061.dev.necel.com \
--to=miles@gnu.org \
--cc=help-gnu-emacs@gnu.org \
/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).