[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: gui-get
From: |
Po Lu |
Subject: |
Re: gui-get |
Date: |
Fri, 12 Nov 2021 14:22:08 +0800 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.60 (gnu/linux) |
Emanuel Berg via Users list for the GNU Emacs text editor
<help-gnu-emacs@gnu.org> writes:
> (gui-get-primary-selection)
>
> (gui-get-selection)
> (gui-get-selection 'primary)
> (gui-get-selection 'secondary)
> (gui-get-selection 'clipboard)
gui-get-selection uses the X selection names. So you should be doing:
(gui-get-selection 'PRIMARY)
(gui-get-selection 'SECONDARY)
(gui-get-selection 'CLIPBOARD)
Instead.
I suspect all you want is the value of the clipboard, so just use
'CLIPBOARD. The PRIMARY selection is probably not what you want here,
and the SECONDARY selection is a relic of X-Windows.