emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: X selection access in xterm (OSC 52)


From: Stefan Monnier
Subject: Re: X selection access in xterm (OSC 52)
Date: Fri, 13 Mar 2015 18:08:31 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

>>> 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 address@hidden, 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?]



reply via email to

[Prev in Thread] Current Thread [Next in Thread]