unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: David De La Harpe Golden <david@harpegolden.net>
To: Eli Zaretskii <eliz@gnu.org>
Cc: Chong Yidong <cyd@stupidchicken.com>, emacs-devel@gnu.org
Subject: Re: select-active-regions
Date: Sat, 18 Jul 2009 21:15:52 +0100	[thread overview]
Message-ID: <4A622D78.7090802@harpegolden.net> (raw)
In-Reply-To: <83fxctpyg1.fsf@gnu.org>

Eli Zaretskii wrote:


> Not when you use Emacs, which puts text into clipboard on every kill.
> 

Select-active-regions is essentially not intended to be such an 
operation though, it quite deliberately avoids placing text on the 
kill-ring or clipboard on x11 and ONLY sets primary.

You're muddling mouse-drag-copy-region and select-active-regions I 
think. The former affects the kill ring, and typically though not 
necessarily, x11 select-active-regions users would actually turn off 
mouse-drag-copy-region as what they probably want is:

* keyboard and mouse selection and mouse middle click involves ONLY primary

* keyboard/menu/toolbar kill/kill-ring-save/yank (... cut/copy/paste),
involves ONLY kill-ring_and_clipboard.

Why do they want that? Because it's how quite a lot of other X11 apps 
work nowadays, if you assume the kill-ring is analogous to an extended 
clipboard (as e.g. cua-mode clearly assumes when it does its binding 
trickery).  The point was for emacs to optionally (optionally!) support 
such behaviour, with the following:

(setq x-select-enable-clipboard t)
(setq x-select-enable-primary nil)
(setq mouse-drag-copy-region nil)
(setq select-active-regions t)
(global-set-key [mouse-2] 'mouse-yank-primary)

If you also want C-x/C-c/C-v bindings, you of course also turn on cua-mode.







  reply	other threads:[~2009-07-18 20:15 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-18 11:20 select-active-regions Eli Zaretskii
2009-07-18 13:41 ` select-active-regions David De La Harpe Golden
2009-07-18 13:47   ` select-active-regions David De La Harpe Golden
2009-07-18 13:54   ` select-active-regions Eli Zaretskii
2009-07-18 14:19     ` select-active-regions Chong Yidong
2009-07-18 18:33       ` select-active-regions Eli Zaretskii
2009-07-18 18:48         ` select-active-regions David De La Harpe Golden
2009-07-18 19:23           ` select-active-regions Eli Zaretskii
2009-07-18 19:50             ` select-active-regions David De La Harpe Golden
2009-07-19 14:41             ` select-active-regions Jason Rumney
2009-07-19 17:39               ` select-active-regions Eli Zaretskii
2009-07-19 19:36                 ` select-active-regions David De La Harpe Golden
2009-07-19 20:20                   ` select-active-regions Eli Zaretskii
2009-07-19 21:52                     ` select-active-regions Lennart Borgman
2009-07-20  3:15                       ` select-active-regions Eli Zaretskii
2009-07-20  3:20                         ` select-active-regions Lennart Borgman
2009-07-20 18:40                           ` select-active-regions Eli Zaretskii
2009-07-20  0:22                     ` select-active-regions David De La Harpe Golden
2009-07-20  3:12                       ` select-active-regions Eli Zaretskii
2009-07-18 18:51         ` select-active-regions Chong Yidong
2009-07-18 19:20           ` select-active-regions Eli Zaretskii
2009-07-18 19:37             ` select-active-regions Chong Yidong
2009-07-18 19:45               ` select-active-regions Eli Zaretskii
2009-07-18 20:15                 ` David De La Harpe Golden [this message]
2009-07-18 18:45     ` select-active-regions David De La Harpe Golden
2009-07-18 19:26       ` select-active-regions Eli Zaretskii
2009-07-18 19:10   ` select-active-regions Eli Zaretskii
2009-07-18 19:30     ` select-active-regions David De La Harpe Golden

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=4A622D78.7090802@harpegolden.net \
    --to=david@harpegolden.net \
    --cc=cyd@stupidchicken.com \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@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.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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).