From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Daniel =?UTF-8?Q?Ekl=C3=B6f?= Newsgroups: gmane.emacs.bugs Subject: bug#36879: 26.2; OSC 52 paste in term/xterm.el not working Date: Sun, 04 Aug 2019 10:19:07 +0200 Message-ID: <877e7tqr5w.fsf@mini.la.casa> References: <87lfwecfb7.fsf@mini.la.casa> Mime-Version: 1.0 Content-Type: text/plain; format=flowed Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="92913"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: mu4e 1.2.0; emacs 26.2 Cc: Philipp Stephani , Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= , 36879@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Aug 04 10:20:12 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1huBkO-000O0I-Ff for geb-bug-gnu-emacs@m.gmane.org; Sun, 04 Aug 2019 10:20:08 +0200 Original-Received: from localhost ([::1]:43172 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1huBkN-00020C-Du for geb-bug-gnu-emacs@m.gmane.org; Sun, 04 Aug 2019 04:20:07 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44806) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1huBkJ-000206-EX for bug-gnu-emacs@gnu.org; Sun, 04 Aug 2019 04:20:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1huBkI-0008Pw-Ek for bug-gnu-emacs@gnu.org; Sun, 04 Aug 2019 04:20:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:51576) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1huBkI-0008Po-7h for bug-gnu-emacs@gnu.org; Sun, 04 Aug 2019 04:20:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1huBkI-0003IC-1e for bug-gnu-emacs@gnu.org; Sun, 04 Aug 2019 04:20:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Daniel =?UTF-8?Q?Ekl=C3=B6f?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 04 Aug 2019 08:20:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 36879 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 36879-submit@debbugs.gnu.org id=B36879.156490675412578 (code B ref 36879); Sun, 04 Aug 2019 08:20:01 +0000 Original-Received: (at 36879) by debbugs.gnu.org; 4 Aug 2019 08:19:14 +0000 Original-Received: from localhost ([127.0.0.1]:60397 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1huBjW-0003Go-I4 for submit@debbugs.gnu.org; Sun, 04 Aug 2019 04:19:14 -0400 Original-Received: from mail.ekloef.se ([193.105.134.189]:42680) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1huBjU-0003Gf-Ne for 36879@debbugs.gnu.org; Sun, 04 Aug 2019 04:19:13 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=ekloef.se; s=mail; t=1564906747; bh=LpMyj0UOW7YVzR0fy6+QOt7eMbbbfcGxBTXGOsWSH2k=; h=References:From:To:Cc:Subject:In-reply-to:Date:From; b=SigWEu+zp+L9VGHESCkf1vmxDwF6qlbqRMubRhaDZ2EE1VHhaES12JW4pBIEWfMzV bu6WdDQ9I2uSHwMPNPLYBoYq94k9jEQdF77XmzB14da/Kx8YARMsXtPQd6DLvky2rS 2bM+9M+KKX8MF9NA+BeIHruU4y+pRCqlMIPNYKi2gnwGNb8PTxi79XE4c8RGxC6EI9 tPL7FHPUxNQrPUJclYG62VYdT/pQtlp+5iux/RFWMDLFcOkteRpveY17BCzGJhxTc4 E7FSkdNtPPxzdZugTa6VY5IhIfYDV4R8XlsOTGlwgfk0Gat/g13E/THlQuuY+JSbs9 VOBH3tfRknqqw== In-reply-to: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:164536 Archived-At: > - I did test the code with the xterm that comes with Debian. > I definitely remember making it work it in one direction > (paste or > yank, can't remember), not sure if I did get it to work in > both > directions at the time. set-selection has always worked, at least for me. That one is also enabled by default in xterm.el (when an xterm supporting it is detected, I assume). > - The feature is fundamentally dodgy from a security > perspective. I'm probably missing something obvious, but how is talking to xclip more secure than talking to the terminal emulator? Or is the "security perspective" somewhere else? > So I'm not sure it's worth the trouble supporting this, really: > In many/most cases `xclip-mode` can be used instead, and is much > more straightforward. Except that xclip assumes x11. Would it not make sense to support a window protocol agnostic method? By supporting OSC 52, you support whatever clipboard mechanism the terminal emulator supports. Perhaps one could use the heavy weight solution (change quit char) when 'screen' is detected, but simply use ST in the non-screen case? (before I tried this, OSC 52, I was using https://github.com/bugaevc/wl-clipboard with my own Emacs "bindings" - yes, I'm on Wayland)