[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Set X primary selection with Emacs in xterm
From: |
Stefan Monnier |
Subject: |
Re: Set X primary selection with Emacs in xterm |
Date: |
Fri, 03 Jun 2022 08:27:42 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) |
>> --- a/lisp/frame.el
>> +++ b/lisp/frame.el
>> @@ -2164,6 +2164,9 @@ display-selections-p
>> (not (null dos-windows-version))))
>> ((memq frame-type '(x w32 ns pgtk))
>> t)
>> + ((and (memq frame-type '(t))
>> + (eq (terminal-parameter nil 'xterm--set-selection) t))
>> + t)
>
> This doesn't look very clean... I wonder if there is a cleaner way to
> check for this support.
This snippet should belong in `xt-mouse.el` instead, indeed.
Either using an advice, or a generic function, or a `<foo>-predicate`
variable, or by having `xt-mouse.el` set a "generic" frame parameter
which could be called `display-selection-p`.
Stefan