简体   繁体   中英

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

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.

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 .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM