From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#41519: 26.3; transient-mark-mode + WSL + vcxsrv clobbers clipboard Date: Mon, 25 May 2020 17:36:09 +0300 Message-ID: <83blmcw086.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="124705"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 41519@debbugs.gnu.org To: "Crawford, Christopher" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon May 25 16:37:15 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jdEE7-000WM5-1g for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 25 May 2020 16:37:15 +0200 Original-Received: from localhost ([::1]:43520 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jdEE6-0001Uw-56 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 25 May 2020 10:37:14 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50390) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jdEDu-0001UI-TB for bug-gnu-emacs@gnu.org; Mon, 25 May 2020 10:37:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:58766) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jdEDu-0000gW-JT for bug-gnu-emacs@gnu.org; Mon, 25 May 2020 10:37:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jdEDu-0001oS-GO for bug-gnu-emacs@gnu.org; Mon, 25 May 2020 10:37:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 25 May 2020 14:37:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41519 X-GNU-PR-Package: emacs Original-Received: via spool by 41519-submit@debbugs.gnu.org id=B41519.15904173706906 (code B ref 41519); Mon, 25 May 2020 14:37:02 +0000 Original-Received: (at 41519) by debbugs.gnu.org; 25 May 2020 14:36:10 +0000 Original-Received: from localhost ([127.0.0.1]:42079 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jdED4-0001nK-EP for submit@debbugs.gnu.org; Mon, 25 May 2020 10:36:10 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:42826) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jdED0-0001mo-PX for 41519@debbugs.gnu.org; Mon, 25 May 2020 10:36:09 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:50187) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jdECv-0000W1-3g; Mon, 25 May 2020 10:36:01 -0400 Original-Received: from [176.228.60.248] (port=2111 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jdECu-0001Xo-FW; Mon, 25 May 2020 10:36:00 -0400 In-Reply-To: (cbcraw2@g.uky.edu) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:180973 Archived-At: > From: "Crawford, Christopher" > Date: Sun, 24 May 2020 23:54:44 -0400 > > In a fresh 'emacs -q', > whenever I highlight text with the mouse, or S-, or C-spc 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?