GNU bug report logs - #41519
26.3; transient-mark-mode + WSL + vcxsrv clobbers clipboard

Previous Next

Package: emacs;

Reported by: "Crawford, Christopher" <cbcraw2 <at> g.uky.edu>

Date: Mon, 25 May 2020 05:56:03 UTC

Severity: normal

Found in version 26.3

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Eli Zaretskii <eliz <at> gnu.org>
To: "Crawford, Christopher" <cbcraw2 <at> g.uky.edu>
Cc: 41519 <at> debbugs.gnu.org
Subject: bug#41519: 26.3; transient-mark-mode + WSL + vcxsrv clobbers clipboard
Date: Mon, 25 May 2020 17:36:09 +0300
> From: "Crawford, Christopher" <cbcraw2 <at> 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?




This bug report was last modified 5 years and 53 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.