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: Thu, 3 Jan 2013 17:12:57 -0700	[thread overview]
Message-ID: <20130104001257.GA32352@hysteria.proulx.com> (raw)
In-Reply-To: <2D113F6751EB4E7F8003DD556B818ED4@us.oracle.com>

Drew Adams wrote:
> Bob Proulx wrote:
> > Drew Adams wrote:
> > > +1 to getting back sane defaults.
> > 
> > Are you also having this problem on MS Windows?
> 
> Not sure what "this problem" is,

"The Problem" was loss of emacs keyboard interaction with the X Window
primary selection cut buffer between v23 and v24.  Cutting with the
mouse in some other X window application puts the text into the X
Windows cut buffer also known as the primary selection.  In v23
yanking text would copy text from that buffer.  In v24 C-y no longer
yanked text in from it.  In v24 C-y yank ignored the X Window primary
selection cut buffer.  This breaks keyboard use.  However paste using
the mouse still worked.

This is one of those features that you don't realize is nice until it
is taken away.  Then if you were using it you really miss it.

> but yes, I had to change the default settings as I described, to get
> back the previous, sane behavior.

Probably similar but substituting MS Windows clipboard for X Windows
primary selection cut buffer.  Don't know.

> > > But I use non-nil `x-select-enable-clipboard'.
> > 
> > Probably the best answer for you on MS-Windows.  Does Windows have
> > anything other than the clipboard?  I don't know.
> 
> It has no separate primary.

Right.

> > I don't know why the default was changed.  I assume it is further
> > encroachment of CUA mode to be more MS Windows like since I can't
> > think of any other reason.
> 
> I can't speak for Emacs Dev obviously, and I might have
> misunderstood, but I believe that all of the default changes wrt
> selection etc. were to bring Emacs more into line with X Window.
> AFAIK, nothing to do with CUA or MS Windows.

Tragicomically although I found the news entry for "cut buffer",
because I searched it for "cut buffer" I missed the entried
*immediately above it* in the NEWS file titled "Selection changes"
that describes these changes in some detail.  "D'oh!"  It was there
but I missed seeing it due to poor keyword selection.

In that news entry it says:

  The default handling of clipboard and primary selections has been
  changed to conform with modern X applications.  In short, most
  commands for killing and yanking text now use the clipboard, while
  mouse commands use the primary selection.

For me these changes broke my X applications.  I guess I am not using
any application that uses the clipboard.  For me the main X
applications from which I cut text from are Xterm, Firefox, Chromium,
other random programs but I will ignore Xterm from this discussion
since it is a venerable old program.

But Firefox and Chromium are both new and cutting text from neither of
them could be pasted into emacs using C-y unless the suggested return
to v23 control variable values were made.  Therefore that news entry
seems incorrect with regards to "modern X applications" unless they
are also arguing that Firefox and Chromium are not modern X
applications.

Bob




  reply	other threads:[~2013-01-04  0:12 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 [this message]
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
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=20130104001257.GA32352@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).