From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: "Crawford, Christopher" Newsgroups: gmane.emacs.bugs Subject: bug#41519: 26.3; transient-mark-mode + WSL + vcxsrv clobbers clipboard Date: Mon, 25 May 2020 17:49:08 -0400 Message-ID: References: <83blmcw086.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000761d1c05a67ff37c" Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="22565"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 41519@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon May 25 23:50:22 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 1jdKzG-0005kW-00 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 25 May 2020 23:50:22 +0200 Original-Received: from localhost ([::1]:57716 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jdKzF-000569-0K for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 25 May 2020 17:50:21 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37412) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jdKyx-0004to-Dy for bug-gnu-emacs@gnu.org; Mon, 25 May 2020 17:50:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:59341) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jdKyx-0003gi-4z for bug-gnu-emacs@gnu.org; Mon, 25 May 2020 17:50:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jdKyx-0008MU-2q for bug-gnu-emacs@gnu.org; Mon, 25 May 2020 17:50:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: "Crawford, Christopher" Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 25 May 2020 21:50:03 +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.159044336732074 (code B ref 41519); Mon, 25 May 2020 21:50:03 +0000 Original-Received: (at 41519) by debbugs.gnu.org; 25 May 2020 21:49:27 +0000 Original-Received: from localhost ([127.0.0.1]:42650 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jdKyN-0008LG-6L for submit@debbugs.gnu.org; Mon, 25 May 2020 17:49:27 -0400 Original-Received: from mail-io1-f41.google.com ([209.85.166.41]:45970) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jdKyL-0008L2-6O for 41519@debbugs.gnu.org; Mon, 25 May 2020 17:49:25 -0400 Original-Received: by mail-io1-f41.google.com with SMTP id u23so6839499iot.12 for <41519@debbugs.gnu.org>; Mon, 25 May 2020 14:49:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=g-uky-edu.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=mhyxP0vEpdq3xfZ5QLUNPUu8SnAQGFU+8vsfm2g+JHI=; b=v2IU15qmTGJpTuVrVaUUQNVIDcB5tBVtqBx4G+Z5WA//i4jMiumUmA9DKs+Sry577q PD8vTk/AjsbMSGP0lEmPIhXsHbto8knngTaNUG7e6PmD6P59TX4kGC27nTVxTxztZuVU 81UzoC4zw1a6mCB6Bsf09B+16OR5sr0Ij01wCFRoJi59d0/xgG/esUF3z5qGAz+nqBwA ZKX025Kaf3X86tZhq7xMq7/nSZsJ9unfaMqiCGh7afqOU/aSoVTF14n6gUQLKb+93CpP NTV5OjzVInxcia7PK8Yef1OFxGlVEch1k9zcwWmDLRCTtpSv/Eyo8AJLsADHm48HDFg5 zNAQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=mhyxP0vEpdq3xfZ5QLUNPUu8SnAQGFU+8vsfm2g+JHI=; b=jVkpbUSwJukoV+lBZygYAvqUhADHOoDDwRnQVg1NoqRMJZ82Vxj3X/PP9n2OFlf7oJ MG6302f6lQ4vmnglI5VvK93O5lgL9xwzriFmG7ZtMkRLvCVUMDYAV3FGyPlyj6BDczDI NMJ8M6uoAYts8QRXmEwqoGea91/nKzWYZcoAJpBDEqbNiMzlnXe5YNJ1xkxu3Mo0c1uZ X4hiwfT7TA6/viFozi4a5AOkOCY6K2IzgMtUjFCyAXyggW7F83CzI7ITKJcXcWjCyYDj HcNGzGGl6rMWzmCMUYNJuGM+XQ9cq/8zKgNrJC+Tuf2/P2CpTqckypJkp2x8seA/C/z0 Xd2Q== X-Gm-Message-State: AOAM532XUZZkUC1/MA2JhT298zdC0KrjyI9yXTylgGdfjk03dPdUiqzD kKxCi5nXmZKbPMelk55hAtZbtu8hf79oUzn8oRlgSw== X-Google-Smtp-Source: ABdhPJwG0Lnm53K/sbYR05K6MVFo3wwwUg9E3Pv+lKdHR87UeVps6V40Tka7WOX0FtysZeCuaUjDl17Yq16xD9vxMfo= X-Received: by 2002:a02:85ec:: with SMTP id d99mr21090221jai.144.1590443359208; Mon, 25 May 2020 14:49:19 -0700 (PDT) In-Reply-To: <83blmcw086.fsf@gnu.org> 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:181004 Archived-At: --000000000000761d1c05a67ff37c Content-Type: text/plain; charset="UTF-8" Thanks for your help, and you are right: disabling select-active-regions fixes it. Prompted by your response, I found an option in VcXsrv, "Clipboard may use PRIMARY selection" (right-clicking on the server icon) which could also be disabled to allow cut and paste between Windows and Emacs without clobbering the clipboard. On Mon, May 25, 2020 at 10:36 AM Eli Zaretskii wrote: > > 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? > --000000000000761d1c05a67ff37c Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Thanks for your help, and you are right:=C2=A0 disabling= =C2=A0 select-active-regions=C2=A0 fixes it.
Prompted by your response,= I found an option in VcXsrv, "Clipboard may use PRIMARY selection&quo= t; (right-clicking on the server icon) which could also be disabled to allo= w cut and paste between Windows and Emacs without clobbering the clipboard.=

--000000000000761d1c05a67ff37c--