From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Philipp Stephani
>>> Indeed, sounds good.=C2=A0 Can someone prepare a pa= tch for that feature?
>> I'm on it.
Thanks.=C2=A0 I don't see your name in copyright.list.=C2=A0 Did you si= gn the
copyright paperwork yet?=C2=A0 If not, then please fill the form below and<= br> email it as instructed so the FSF can send you the relevant paperwork
to sign.
> Taken from
> https://github.com/chr= omium/hterm/blob/64b3819692526f41eb960f6c9444c2c58e658= f79/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.
[...]
> +=C2=A0 interprogramCut=C2=A0 -- if supported, Xterm saves yanked text= to the X selection"
Is it the "clipboard" or the "selection"?It should probably be "X Window selection"= because both the primary selection and the clipboard can be accessed.=C2=A0
> +=C2=A0 (setq interprogram-cut-function
> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 (if (string-prefix-p "screen" (= getenv "TERM"))
> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 #'xterm--screen-interpr= ogram-cut
> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 #'xterm--interprogram-cut)))
Please don't change interprogram-cut-function, since this breaks down i= f
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).
=Thanks, I'll modify the patch accordin= gly tomorrow.=C2=A0
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<= br> fetching the X server's selection for use in Emacs)?
Yes. IIUC pasting has always been supp= orted, either via the slow path of character-by-character insertion, or the= bracketed paste functionality.=C2=A0