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: Tue, 24 Mar 2015 17:55:12 -0400 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1427234167 23020 80.91.229.3 (24 Mar 2015 21:56:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 24 Mar 2015 21:56:07 +0000 (UTC) Cc: Emacs developers , Yuri Khan To: Philipp Stephani Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Mar 24 22:55:55 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 1YaWnf-0005bM-FJ for ged-emacs-devel@m.gmane.org; Tue, 24 Mar 2015 22:55:51 +0100 Original-Received: from localhost ([::1]:34709 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YaWne-0003yN-SV for ged-emacs-devel@m.gmane.org; Tue, 24 Mar 2015 17:55:50 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58619) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YaWn6-0003ut-Hr for emacs-devel@gnu.org; Tue, 24 Mar 2015 17:55:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YaWn3-0001DJ-BS for emacs-devel@gnu.org; Tue, 24 Mar 2015 17:55:16 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:30369) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YaWn3-0001DD-72 for emacs-devel@gnu.org; Tue, 24 Mar 2015 17:55:13 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgUFAGvvdVTO+KpL/2dsb2JhbAA3gVOhb4EIgXUBAQQBViMFCwsOJhIUGA0kiBOiEYxkCQMBAoM+A4NwBKNjhFg X-IPAS-Result: AgUFAGvvdVTO+KpL/2dsb2JhbAA3gVOhb4EIgXUBAQQBViMFCwsOJhIUGA0kiBOiEYxkCQMBAoM+A4NwBKNjhFg X-IronPort-AV: E=Sophos;i="5.01,1,1400040000"; d="scan'208";a="114490834" Original-Received: from 206-248-170-75.dsl.teksavvy.com (HELO pastel.home) ([206.248.170.75]) by ironport2-out.teksavvy.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 24 Mar 2015 17:55:13 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 752091F4A; Tue, 24 Mar 2015 17:55:12 -0400 (EDT) In-Reply-To: (Philipp Stephani's message of "Tue, 24 Mar 2015 15:14:00 +0000") 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:184187 Archived-At: > Sorry for the delay. I've tried implementing this, but I'm a bit at a loss > here: If I understand the GUI method code correctly, it only works for real > GUIs, not terminal emulators that happen to be GUI > applications, right? No, they work for text terminals as well. > At least the window-system variable, which gui-method apparently uses, > is always nil in my tests with hterm. Should this be something > like 'xterm? No, it will be nil. Of course, it will apply to all terminals, so you'll then have to check whether the current text terminal is an xterm. Stefan