From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Philipp Stephani
==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 accordingly tomorrow.==C2=A0= div>Sorry for the delay. I've tr= ied implementing this, but I'm a bit at a loss here: If I understand th= e GUI method code correctly, it only works for real GUIs, not terminal emul= ators that happen to be GUI applications, right? 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?=C2=A0