From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#36879: 26.2; OSC 52 paste in term/xterm.el not working Date: Sun, 04 Aug 2019 08:46:20 -0400 Message-ID: References: <87lfwecfb7.fsf@mini.la.casa> <877e7tqr5w.fsf@mini.la.casa> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="162569"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: Philipp Stephani , Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= , 36879@debbugs.gnu.org To: Daniel =?UTF-8?Q?Ekl=C3=B6f?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Aug 04 15:07:10 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 1huGEA-000gBw-4Q for geb-bug-gnu-emacs@m.gmane.org; Sun, 04 Aug 2019 15:07:10 +0200 Original-Received: from localhost ([::1]:44426 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1huGE8-0001bf-Pt for geb-bug-gnu-emacs@m.gmane.org; Sun, 04 Aug 2019 09:07:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47079) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1huGE2-0001Zt-Vo for bug-gnu-emacs@gnu.org; Sun, 04 Aug 2019 09:07:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1huGE1-00039J-Vv for bug-gnu-emacs@gnu.org; Sun, 04 Aug 2019 09:07:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:51942) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1huGE1-000395-Sc for bug-gnu-emacs@gnu.org; Sun, 04 Aug 2019 09:07:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1huGE1-0008Ph-MI for bug-gnu-emacs@gnu.org; Sun, 04 Aug 2019 09:07:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 04 Aug 2019 13:07: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.156492398932252 (code B ref 36879); Sun, 04 Aug 2019 13:07:01 +0000 Original-Received: (at 36879) by debbugs.gnu.org; 4 Aug 2019 13:06:29 +0000 Original-Received: from localhost ([127.0.0.1]:60761 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1huGDV-0008O8-I6 for submit@debbugs.gnu.org; Sun, 04 Aug 2019 09:06:29 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:36765) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1huGDS-0008NY-RP for 36879@debbugs.gnu.org; Sun, 04 Aug 2019 09:06:27 -0400 Original-Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 2624F102D99; Sun, 4 Aug 2019 08:46:24 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id ABC9E102D83; Sun, 4 Aug 2019 08:46:22 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1564922782; bh=UUVwWuO7eD+O88PA27hJaovzbuM60MQBO5zYSRdxh0s=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=BVW17ltgv5tVUmeXGmbfIsSwC1m6vygkQZMsrVQ2RLh7SnqzEAl/UUEGoaL1jbVUa 0KLq7PJ2fjnCbbaL43rJ9wmDOcNL0GAAc+fdQNRe8KghaOuzGj7bgMSFGkqZonXr0d /XjZUSOkyJfcZU9hV7sMW9zpqw2IPD9b9BRgXJSuxGBXQ5ZGv8Lp9VeM6VCjeBznkB xOtZKUORavlV+1WZeywdv6uO6Q5X6/i97SlLE5iB1Slt3aHShVDNiPbgkODw75I8sq y/Z12hlCOZO1tXr78WvGNqBQ9yg8Xk85IbgMFlMLxvInjf/Eg7akp2+2ifFz1ytv14 JihkgiWd3aJTA== Original-Received: from alfajor (unknown [78.192.50.77]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 056DA120C58; Sun, 4 Aug 2019 08:46:21 -0400 (EDT) In-Reply-To: <877e7tqr5w.fsf@mini.la.casa> ("Daniel \=\?windows-1252\?Q\?Ekl\?\= \=\?windows-1252\?Q\?\=F6f\=22's\?\= message of "Sun, 04 Aug 2019 10:19:07 +0200") 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:164561 Archived-At: >> - 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? I remember various attack vectors. They're not necessarily trivial to exploit, but it's still problematic (which is likely why it's disabled by default in Debian's build). >> 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. I'm talking about xclip-mode, not xclip. > (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) xclip-mode also has code to support wl-clipboard (I never tested it, tho). > 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. It has its advantages, of course. But also its downsides. The overlap with xclip-mode is fairly large, tho. Stefan