From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Po Lu Newsgroups: gmane.emacs.help Subject: Re: gui-get Date: Fri, 12 Nov 2021 14:22:08 +0800 Message-ID: <8735o1rizz.fsf@yahoo.com> References: <87k0hd7vff.fsf@zoho.eu> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7943"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.60 (gnu/linux) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Fri Nov 12 07:22:53 2021 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mlPxd-0001s9-9V for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 12 Nov 2021 07:22:53 +0100 Original-Received: from localhost ([::1]:45006 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mlPxb-0003RV-Nl for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 12 Nov 2021 01:22:51 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:35954) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mlPxC-0003Ou-O3 for help-gnu-emacs@gnu.org; Fri, 12 Nov 2021 01:22:26 -0500 Original-Received: from sonic316-22.consmr.mail.ne1.yahoo.com ([66.163.187.148]:42272) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mlPx7-0002PD-T1 for help-gnu-emacs@gnu.org; Fri, 12 Nov 2021 01:22:26 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1636698139; bh=AAVgE89GgH6AISb8s2nrlMgWXZC3EItXN9eboUtGHb0=; h=From:To:Subject:References:Date:In-Reply-To:From:Subject:Reply-To; b=XqnP3HKqwS26OPqFOV9wyk2A35Krqy9PygjyLB+BxU+VY8sJEtyE8KFqSx1Zpu5lBxhMtC/1OlGblVJBT8rF4EsxVeCW8/naaMYtyXKuViroIRF4ZkFVjxVci0cfQDyOlm0FKyVWv6F5CB/8N0oj3L45Klto4x6pL9N0U9tp6InvWd7ws0px6j3N3boUHDwh4yrDHNROtoreTu9rTXRYHWMc+/XzICGLPFdUmv18SLXhoHFbMU95QM3CzwF66wmmDuUKOWRAw9bYZQulmePuUWIr84uQs+jwlUD2Oa/0n8jROfCxQv5BASs0Gqay1aK5RX6nE9ewpQr9v6FAw+3Ltg== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1636698139; bh=0QKf4Fjv+Dj21n6i4BKPDMsa8RCmd4Vd6/R+S2jea4/=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=mTxeJcvoXfWZpyFQqv+U2pRoEVLOLizrqUeTiZYDHwwAqpGqSnHA6Jk5SJraN9f7z4RfK4LR+98NSg+Q3+VMWwjaMF22fzdtuIHLca2Ee95+VtF5jG6vYLgCKBtk6JUv1L4PcdNMH6WcqXe67w9DsNtJGX1slnD/MinW1moxZd5jH0eRRZ0aR/lSCCRZ5dHSRgC9z+x9svkhnvnZExBojq5U3SZrPjGdi3Esqyr/UJVVa9wLepgS1oej/hFCt9J1HdulRIbzDOzVBWALe27vwo7atxUzpeclK7+raMff75d3NhYcdPH5r+uBgD0vVlieGUWouT45igcGa3M2jFfbFQ== X-YMail-OSG: bbfVpa8VM1n7f0G4FxB_0uqabshni_clYBKiHQG3PN.ZYQQgFpAvNpGmi0DmBqm bdYrNf9ho0Mg_4uVdOI1kwVc9Ka7yRChtR4bhBhj3WUcmoymruFr9zUgA7xYDb4V7XG.I9DKAAVl XwkBdJGXLBuVNgamfICPCQtKvsbQHxnxJbwsWUtrdQvIfF3X9Oqpn0PCr52kIja4Zcxq_3Z4p7KP YBtn_MkfYTmja.LZZ9qO3q2VxylZqYBImsbl45qhiw5Ys4VFnlQSyvWXCXxuNQG0I_oZawhekDpM cGGTdXFc.1BY3n1oi.UWP4_GtioNOcHBQOLLByc7rqEDWXj.RgW.DSsiM.SPOB2b3AypBTymAdCG d4l_TKxKwGEcCXn7PaKk__dxItj2wwrkVV99gi6VKeOuBYetoWIn9Fjyhe36WFo7_CJvSO51z9l7 7RLDJiRUAoARh.l2BN2DjZsdr.9W_moOA1.Oe3Amhl1_cpGys5VpbjD.Q_zCSawmCE_hPSh2qDMT np1zJS2vxS7ArPgyaJAbxqEAKiXuX51oHRD4GCFTlz5ey9XtCvjc5dOhG0WR3aBbtrbBmj7xxKuN ulw5XASwOL9VFEG.lv7aTteI_GbeVBv8XWVUludDOBwXqPsRKjKKJVXpficTOEHK7QT3AJRMakDi jXRZEFuYF_8KHGGIENhKnefXk_rbcnqsrLMZLwHyj0O4SGl28Q9obJsbxWJT0Rg_kgwxzDPYtH40 nYhbrikRr6oAR4ae2PUy31Xuu8518T0CclVgXSatBMR8phXYbuCb8SDFuLkHTHRL8sGksef4nk9j S2LYbeB00kVPi_Oy7cDCLrixotZuLugZ834g0yCcRs X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic316.consmr.mail.ne1.yahoo.com with HTTP; Fri, 12 Nov 2021 06:22:19 +0000 Original-Received: by kubenode509.mail-prod1.omega.sg3.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID 7b23e9f652d579b4341064df4f565494; Fri, 12 Nov 2021 06:22:12 +0000 (UTC) In-Reply-To: <87k0hd7vff.fsf@zoho.eu> (Emanuel Berg via Users list for the's message of "Fri, 12 Nov 2021 07:13:56 +0100") X-Mailer: WebService/1.1.19306 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Received-SPF: pass client-ip=66.163.187.148; envelope-from=luangruo@yahoo.com; helo=sonic316-22.consmr.mail.ne1.yahoo.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:134526 Archived-At: Emanuel Berg via Users list for the GNU Emacs text editor 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.