Skip to content

Emacs failed on clicking mouse-2 to paste #1337

@sunlin7

Description

@sunlin7

The Emacs failed on clicking mouse-2 to paste, it caused by the mintty respond primer clipboard querying with constant "..;c;...".
Here a simple way to reproduce the issue:

$ echo -e '\e]52;c;?\e\\'
 52;c;aGVsbG8=
$ echo -e '\e]52;p;?\e\\'
 52;c;aGVsbG8=

The "..;p;.." query want a response same as "..;p;..", but mintty respond "..;c;..".

child_printf("\e]52;c;%s%s", b64, osc_fini());

The full steps to reproduce the issue are list as below, in a mintty, ssh to remote ubuntu 22.04, and

  1. run "emacs -nw -q"
  2. eval "(xterm-mouse-mode)" and "(xterm--init-activate-get-selection)"
  3. press middle button on mouse to paste text, it does not work; (press Ctrl+y works)

The bug was reported to emacs mail list https://debbugs.gnu.org/cgi/bugreport.cgi?bug=79592, but located as a mintty issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions