Prevent mouse-selected text from being put into Emacs paste buffer?

136 views Asked by At

In emacs, there is a feature where if I select text with a mouse, then without pressing ctrl-c I can paste into emacs with ctrl-v if I have cua mode turned on.

I want to turn off this feature while keeping the cua mode on. I mean I want to explicitly press ctrl-c so that the text will get copied to the clipboard.

1

There are 1 answers

1
Rupert Swarbrick On BEST ANSWER

I suspect that you are using a version of Emacs older than version 24? If so, see the last paragraph of this page of the current Emacs manual. You can probably get rid of the behaviour you dislike by setting x-select-enable-primary to nil.

From my quick tests, setting it to T (which isn't the default on Emacs 24) reproduces the problem behaviour, and this happens both in and not in cua-mode.