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: Fri, 13 Mar 2015 18:08:31 -0400 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1426284543 2546 80.91.229.3 (13 Mar 2015 22:09:03 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 13 Mar 2015 22:09:03 +0000 (UTC) Cc: Emacs developers , Yuri Khan To: Philipp Stephani Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Mar 13 23:08:52 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 1YWXlD-0005xH-Bp for ged-emacs-devel@m.gmane.org; Fri, 13 Mar 2015 23:08:51 +0100 Original-Received: from localhost ([::1]:38845 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YWXlC-00043U-1O for ged-emacs-devel@m.gmane.org; Fri, 13 Mar 2015 18:08:50 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60643) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YWXkz-00043J-5y for emacs-devel@gnu.org; Fri, 13 Mar 2015 18:08:38 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YWXkv-0002Gn-47 for emacs-devel@gnu.org; Fri, 13 Mar 2015 18:08:37 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:10729) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YWXku-0002Gb-WE for emacs-devel@gnu.org; Fri, 13 Mar 2015 18:08:33 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AswUAPOG1lRFxLnr/2dsb2JhbABbgwZSWoIzhVO6fIU2MwQCAoENRAEBAQEBAXyEDQEEAVYjBQsLDiYSFBgNJAoJiCUIDbs8kloBAQEBAQEEAQEBAQEZBI8WEQFQB4QqBYUUPo0ZgXWEf4MDixeBeYFFIoICHIFsIjEFgQaBNwEBAQ X-IPAS-Result: AswUAPOG1lRFxLnr/2dsb2JhbABbgwZSWoIzhVO6fIU2MwQCAoENRAEBAQEBAXyEDQEEAVYjBQsLDiYSFBgNJAoJiCUIDbs8kloBAQEBAQEEAQEBAQEZBI8WEQFQB4QqBYUUPo0ZgXWEf4MDixeBeYFFIoICHIFsIjEFgQaBNwEBAQ X-IronPort-AV: E=Sophos;i="5.09,536,1418101200"; d="scan'208";a="113506804" Original-Received: from 69-196-185-235.dsl.teksavvy.com (HELO pastel.home) ([69.196.185.235]) by ironport2-out.teksavvy.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 13 Mar 2015 18:08:31 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id C2DD8FA0; Fri, 13 Mar 2015 18:08:31 -0400 (EDT) In-Reply-To: (Philipp Stephani's message of "Fri, 27 Feb 2015 19:44:03 +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:183858 Archived-At: >>> Indeed, sounds good. Can someone prepare a patch for that feature? >> I'm on it. Thanks. I don't see your name in copyright.list. Did you sign the copyright paperwork yet? If not, then please fill the form below and email it as instructed so the FSF can send you the relevant paperwork to sign. > Taken from > https://github.com/chromium/hterm/blob/64b3819692526f41eb960f6c9444c2c58e658f79/etc/osc52.el. Can you figure out who are the authors of that file, so we can get their copyright cleared? > This is an xterm escape sequence to save text to the X clipboard. [...] > + interprogramCut -- if supported, Xterm saves yanked text to the X selection" Is it the "clipboard" or the "selection"? > + (setq interprogram-cut-function > + (if (string-prefix-p "screen" (getenv "TERM")) > + #'xterm--screen-interprogram-cut > + #'xterm--interprogram-cut))) Please don't change interprogram-cut-function, since this breaks down if you use a single Emacs session with both GUI and text frames (and with potentially various different terminal kinds). Instead use gui-method-declare for gui-set-selection (new in Emacs-25). Also, do I understand it correctly, that this only handles transfers in one direction (i.e. pushing Emacs's selection to the X server, but not fetching the X server's selection for use in Emacs)? Stefan Please email the following information to assign@gnu.org, and we will send you the assignment form for your past and future changes. Please use your full legal name (in ASCII characters) as the subject line of the message. ---------------------------------------------------------------------- REQUEST: SEND FORM FOR PAST AND FUTURE CHANGES [What is the name of the program or package you're contributing to?] Emacs [Did you copy any files or text written by someone else in these changes? Even if that material is free software, we need to know about it.] [Do you have an employer who might have a basis to claim to own your changes? Do you attend a school which might make such a claim?] [For the copyright registration, what country are you a citizen of?] [What year were you born?] [Please write your email address here.] [Please write your postal address here.] [Which files have you changed so far, and which new files have you written so far?]