> From: "Crawford, Christopher" <cbcraw2@g.uky.edu>
> Date: Sun, 24 May 2020 23:54:44 -0400
>
> In a fresh 'emacs -q',
> whenever I highlight text with the mouse, or S-<right>, or C-spc <right?, etc, emacs copies the text into the
> Windows clipboard, and I can't disable it. This means that I cannot highlight text in Emacs and replace it
> with text previously copied from a Windows program. I'm running on Ubuntu 18.04 on WSL using VcXsrv.
I don't think this is an Emacs bug. Emacs puts the selected text into
the X selection; I'm guessing that some WSL agent then copies that
selection into the Windows clipboard. This doesn't happen when
running on Windows natively.
> I've tried every combination of
> transient-mark-mode
> shift-selection-mode
> save-interprogram-paste-before-kill
> with no success.
> If I disable select-enable-clipboard , it won't paste from the clipboard,
> and setting select-enable-primary also doesn't seem to matter.
Did you try setting select-active-regions to nil?