unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Jason Rumney <jasonrumney@gmail.com>
To: gnu.emacs.help@googlegroups.com
Cc: help-gnu-emacs@gnu.org
Subject: Re: emacs24 X primary selection changes
Date: Sat, 5 Jan 2013 06:18:39 -0800 (PST)	[thread overview]
Message-ID: <6a901d49-f95b-4365-84fd-df0cb5a04a18@googlegroups.com> (raw)
In-Reply-To: <mailman.16717.1357341108.855.help-gnu-emacs@gnu.org>

On Saturday, 5 January 2013 07:11:43 UTC+8, Bob Proulx  wrote:

> But X Window applications have always expected dragging mouse-1 to
> copy text and mouse-2 to paste text.

Which is what Emacs has always, and still does.

> I am becoming more convinced that it is a poor description.  But that
> modifying word "modern" is a "weasel word" that makes it harder to
> nail down.  It allows for "modern X app" to be different from "X app".
> If modern X applications are becoming more MS Windows like then it is
> true even if it is less X Window like.

Modern X applications are not becoming less X Window like.  In the bad old days, you had applications like xterm that only supported PRIMARY, and other applications (CDE ones especially, probably also Motif where they came from) that only supported CLIPBOARD.  There was no standard, and Emacs way of doing things was only one of many.

Now things are standardising - PRIMARY is for the currently selected text, and CLIPBOARD is for text that you explicitly put there.  It has been that way in Emacs for some time, except that the Emacs kill-ring (C-w/M-w/C-y) put PRIMARY are the front of the kill-ring, even though use of the kill-ring is an explicit action, so fits better with the CLIPBOARD.

In summary:

Selecting text with the mouse or keyboard: puts the text in PRIMARY for as long as the selection remains active and some other application does not override it.  In earlier versions, the text could remain in PRIMARY even after the selection became inactive.

mouse-2: inserts the text from PRIMARY (in previous versions it inserted from the kill-ring, which was often the same thing due to Emacs putting PRIMARY at the head of the kill-ring).

C-y: inserts the text from the kill-ring. In Emacs-24, CLIPBOARD from other applications is automatically placed at the head of the kill-ring, in previous versions, PRIMARY from other applications is automatically placed at the head of the kill-ring.

C-w/M-w: kill/copy to the kill-ring.  In Emacs-24, these also put text on the CLIPBOARD for other applications. In earlier versions, they put non-selected text into PRIMARY (which is non-standard behaviour - I don't think any other X application does/did this).



  parent reply	other threads:[~2013-01-05 14:18 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.16628.1357248711.855.help-gnu-emacs@gnu.org>
2013-01-03 21:37 ` emacs24 X primary selection changes Lars Magne Ingebrigtsen
2013-01-03 21:49   ` Bob Proulx
2013-01-03 22:38   ` Drew Adams
2013-01-03 22:58     ` Bob Proulx
2013-01-03 23:03       ` Drew Adams
2013-01-04  0:12         ` Bob Proulx
2013-01-04  0:33           ` Drew Adams
2013-01-04  0:49             ` Bob Proulx
     [not found]             ` <mailman.16650.1357260567.855.help-gnu-emacs@gnu.org>
2013-01-04  4:31               ` Jason Rumney
2013-01-04 23:03                 ` Bob Proulx
2013-01-05  5:12                   ` Yuri Khan
2013-01-07 20:30           ` Ken Goldman
     [not found]         ` <mailman.16641.1357258383.855.help-gnu-emacs@gnu.org>
2013-01-04  4:25           ` Jason Rumney
2013-01-05  1:45             ` Thomas E. Dickey
2013-01-05 22:54               ` Bob Proulx
2013-01-04  8:34         ` Eli Zaretskii
2013-01-04 23:11           ` Bob Proulx
2013-01-05  7:47             ` Eli Zaretskii
     [not found]           ` <mailman.16717.1357341108.855.help-gnu-emacs@gnu.org>
2013-01-05 14:18             ` Jason Rumney [this message]
2013-01-03 21:31 Bob Proulx
2013-01-08 15:57 ` Stefan Monnier

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=6a901d49-f95b-4365-84fd-df0cb5a04a18@googlegroups.com \
    --to=jasonrumney@gmail.com \
    --cc=gnu.emacs.help@googlegroups.com \
    --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).