Re: Emacs "yank" behavior change

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Well, it only took me a month and a half to get around to figuring this
out.  I just bet I'm not going to be the only one to ask this question
once this version of Emacs spreads more widely, so it's worth posting the
solution.

On Wed, 1 Feb 2012 10:47:22 -0700
Stephen John Smoogen <smooge@xxxxxxxxx> wrote:

> > One thing has changed, though, and it drives me nuts.  The Emacs "yank"
> > command has, since time immemorial, yanked text from the X clipboard if a
> > selection had been made with the mouse.
> 
> Actually it doesn't always... it could choose from what is highlighted
> OR what is in its own copy buffer. I have had it randomly choose one
> or the other at times. Looking at the emacs faq I think they have been
> making it more sticky to one behaviour or another.
> 
> http://www.emacswiki.org/emacs/CopyAndPaste
> 
> So I can't answer if it is soemthing new in X or EMacs but it looks
> like there are ways to now fix it to which version of selection you
> want.

First of all, I was sloppy in my description of the problem.  The real
problem is that Emacs used to yank from the *primary* selection, but now
only yanks from the clipboard.  That forces me to do lots of explicit
"copy" operations and makes me grumpy.

It turns out that the Emacs developers explicitly changed the default
behavior in this regard for the 24 release.  But, of course, this is
Emacs, so there is certainly a knob that can be tweaked to get the old
behavior back.  In this case, that knob is well hidden, but I have
discovered its secret name:

	x-select-enable-primary

The default value is now nil; setting it back to t in .emacs restores the
behavior $DEITY intended and reduces the grumpiness level considerably.

Thanks,

jon
-- 
test mailing list
test@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe:
https://admin.fedoraproject.org/mailman/listinfo/test



[Index of Archives]     [Fedora Desktop]     [Fedora SELinux]     [Photo Sharing]     [Yosemite Forum]     [KDE Users]

  Powered by Linux