unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Bob Proulx <bob@proulx.com>
To: help-gnu-emacs@gnu.org
Subject: Re: emacs24 X primary selection changes
Date: Fri, 4 Jan 2013 16:03:46 -0700	[thread overview]
Message-ID: <20130104230346.GB14639@hysteria.proulx.com> (raw)
In-Reply-To: <a379d9be-0ff7-4595-b950-82fcfa2173f6@googlegroups.com>

Jason Rumney wrote:
> Bob Proulx  wrote:
> > Because maybe Firefox and Chromium are both using the primary
> > selection instead of the clipboard for compatibilty but if they were
> > configured differently then perhaps it would work?  Don't know.
> 
> Firefox and Chromium are doing the same as what Emacs 24 now does by
> default.
> If you select something with the mouse, it becomes the primary
> selection.

Right.  So Firefox and Chromium are using the primary selection by
default.  No change.  Sounds good.

> If you press C-c, or select Copy from the menu, then it
> also gets put on the clipboard.

Oh, so if you take the additional action after highlighting some text
of typing in the keys C-c or the menu copy action then with that
additional explicit action it goes to the clipboard instead of the
primary selection.  Or perhaps in addition to the primary selection
because it went there first when it was highlighted.  Gotcha!

So if I had highlighted something and then added C-c to push it into
the clipboard and then yanked that into emacs I would have seen the
text in emacs.

I would never have expected that!  And I would have tried it if I had
thought of it.

But of course there isn't a way to cause that difference with a xterm
which is where I mostly cut text from.  So while that works with the X
browsers it doesn't work with a text terminal.  (I know that some text
terminals add mouse menus that doing that would add a lot of mouse
clicks and would be tedious to do very many very fast.)

> If you want to insert the primary selection into the URL bar or a
> text field on a form in Firefox or Chrome, you need to use the
> mouse.

Right.  But that is long standing normal behavior.  Drag mouse-1 and
it copies text where it can then be pasted from.  That is the way that
it has always worked on X Windows.  That is what everyone coming from
an X Windows background expects.  But the words of your response read
as if that would be abnormal.  But that isn't abnormal.  It is normal.

(I realize that people coming from an MS Windows background expects
something different and that I am outnumbered by the huge number of
the newcomers.  But I still resist because the paradigm isn't as nice.)

> If you use C-v, or Paste from the menu, then it will insert
> from the clipboard.

Gotcha.  Keys use the clipboard in the new MS-Windows way to do things.

> Actually cut buffers and the primary selection are not the same
> thing. Cut buffers are an older method of transferring text between
> applications, which have been obsolete for decades, and for which
> support was removed in Emacs 24. The primary selection is what you are
> used to using.

The naming is a little confusing.  And as I said I found the wrong
section by poor use of keywords while searching.  I can't believe I
missed the section immediately above the one I found.  Thank you for
educating me that the cut buffers referred to something yet
different.  That is useful to know to interpret that entry.

Bob



  reply	other threads:[~2013-01-04 23:03 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 [this message]
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
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=20130104230346.GB14639@hysteria.proulx.com \
    --to=bob@proulx.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).