all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Crawford, Christopher" <cbcraw2@g.uky.edu>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 41519@debbugs.gnu.org
Subject: bug#41519: 26.3; transient-mark-mode + WSL + vcxsrv clobbers clipboard
Date: Mon, 25 May 2020 17:49:08 -0400	[thread overview]
Message-ID: <CANzRthobeOYjJ1aRS3beKqoR-bXjo4YqBiVEcT8pX1d4SFPY3A@mail.gmail.com> (raw)
In-Reply-To: <83blmcw086.fsf@gnu.org>

[-- Attachment #1: Type: text/plain, Size: 1464 bytes --]

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 <eliz@gnu.org> wrote:

> > 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?
>

[-- Attachment #2: Type: text/html, Size: 1996 bytes --]

  reply	other threads:[~2020-05-25 21:49 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-25  3:54 bug#41519: 26.3; transient-mark-mode + WSL + vcxsrv clobbers clipboard Crawford, Christopher
2020-05-25 14:36 ` Eli Zaretskii
2020-05-25 21:49   ` Crawford, Christopher [this message]
2020-05-26  2:24     ` Eli Zaretskii
2020-05-26  6:28       ` Crawford, Christopher
2020-05-26 15:15         ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CANzRthobeOYjJ1aRS3beKqoR-bXjo4YqBiVEcT8pX1d4SFPY3A@mail.gmail.com \
    --to=cbcraw2@g.uky.edu \
    --cc=41519@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.