From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: X selection access in xterm (OSC 52) Date: Sun, 08 Feb 2015 23:23:08 -0500 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1423455800 13052 80.91.229.3 (9 Feb 2015 04:23:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 9 Feb 2015 04:23:20 +0000 (UTC) Cc: Philipp Stephani , Emacs developers To: Yuri Khan Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Feb 09 05:23:20 2015 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YKfsS-0007W2-R0 for ged-emacs-devel@m.gmane.org; Mon, 09 Feb 2015 05:23:16 +0100 Original-Received: from localhost ([::1]:58802 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YKfsS-0004C4-5C for ged-emacs-devel@m.gmane.org; Sun, 08 Feb 2015 23:23:16 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50155) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YKfsP-0004Bz-CA for emacs-devel@gnu.org; Sun, 08 Feb 2015 23:23:14 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YKfsL-0003pK-8o for emacs-devel@gnu.org; Sun, 08 Feb 2015 23:23:13 -0500 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:9411) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YKfsL-0003pF-5x for emacs-devel@gnu.org; Sun, 08 Feb 2015 23:23:09 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AkwUAPOG1lTAqyxp/2dsb2JhbABbgwaDX0+FBMBlBAICgQ1EAQEBAQEBfIQNAQQBIzMjBQsLGgIYDgICFBgNJIg4CLgylXEBAQgCAR+BIY4kMweCaIFCBYonoRAihAwggTMHgTkBAQE X-IPAS-Result: AkwUAPOG1lTAqyxp/2dsb2JhbABbgwaDX0+FBMBlBAICgQ1EAQEBAQEBfIQNAQQBIzMjBQsLGgIYDgICFBgNJIg4CLgylXEBAQgCAR+BIY4kMweCaIFCBYonoRAihAwggTMHgTkBAQE X-IronPort-AV: E=Sophos;i="5.09,536,1418101200"; d="scan'208";a="109993499" Original-Received: from 192-171-44-105.cpe.pppoe.ca (HELO pastel.home) ([192.171.44.105]) by ironport2-out.teksavvy.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 08 Feb 2015 23:23:08 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id 6F3D71F77; Sun, 8 Feb 2015 23:23:08 -0500 (EST) In-Reply-To: (Yuri Khan's message of "Mon, 9 Feb 2015 10:04:56 +0700") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.181 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:182660 Archived-At: > It=E2=80=99s a nice feature but be aware that most DE-specific X-based > terminal emulators (GNOME, Xfce, Konsole, =E2=80=A6) do not implement it = and > still advertise themselves as TERM=3Dxterm[-256color]. Right, the code needs to be able to handle the situation where the underlying terminal emulator doesn't support the feature. There are typically 2 situations: - the terminal emulator just ignores the special codes we send, so we can happily delude ourselves into thinking they always work. - we check the terminal version info before enabling/using the feature (see xterm--version-handler in lisp/xterm.el). It seems the first option won't work here, since we may send large chunks of text as clipboard contents, which are unlikely to be silently ignored. Stefan