From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Mike FABIAN Newsgroups: gmane.emacs.bugs Subject: bug#20906: 25.0.50; Date: Fri, 09 Oct 2015 17:34:01 +0200 Organization: Red Hat Message-ID: References: <83y4fhztdz.fsf@gnu.org> <83mvvxzjz4.fsf@gnu.org> <83k2r1zgrm.fsf@gnu.org> <83egh9zeeh.fsf@gnu.org> <83612lz1ll.fsf@gnu.org> <83612kx8n5.fsf@gnu.org> <83y4fdcsq2.fsf@gnu.org> <83twq1crx0.fsf@gnu.org> <83si5lcqos.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1444413220 31342 80.91.229.3 (9 Oct 2015 17:53:40 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 9 Oct 2015 17:53:40 +0000 (UTC) Cc: Andreas Schwab , 20906@debbugs.gnu.org, monnier@iro.umontreal.ca To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Oct 09 19:53:24 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from eggs.gnu.org ([208.118.235.92]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Zkbr3-0005OD-B4 for geb-bug-gnu-emacs@m.gmane.org; Fri, 09 Oct 2015 19:53:17 +0200 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZkbqT-0003CF-CC for geb-bug-gnu-emacs@m.gmane.org; Fri, 09 Oct 2015 13:53:16 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:60374) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZkbqT-0003BT-7S for geb-bug-gnu-emacs@m.gmane.org; Fri, 09 Oct 2015 13:52:41 -0400 Original-Received: from localhost ([::1]:40644 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZkbqS-0001ig-Q7 for geb-bug-gnu-emacs@m.gmane.org; Fri, 09 Oct 2015 13:52:40 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52921) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZkZhL-0005Ny-QD for bug-gnu-emacs@gnu.org; Fri, 09 Oct 2015 11:35:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZkZhH-0007wj-KB for bug-gnu-emacs@gnu.org; Fri, 09 Oct 2015 11:35:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:45465) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZkZhG-0007s3-Ro for bug-gnu-emacs@gnu.org; Fri, 09 Oct 2015 11:35:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1ZkZhG-0007Z7-ER for bug-gnu-emacs@gnu.org; Fri, 09 Oct 2015 11:35:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Mike FABIAN Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 09 Oct 2015 15:35:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 20906 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 20906-submit@debbugs.gnu.org id=B20906.144440484929000 (code B ref 20906); Fri, 09 Oct 2015 15:35:02 +0000 Original-Received: (at 20906) by debbugs.gnu.org; 9 Oct 2015 15:34:09 +0000 Original-Received: from localhost ([127.0.0.1]:34436 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZkZgO-0007Xf-8R for submit@debbugs.gnu.org; Fri, 09 Oct 2015 11:34:08 -0400 Original-Received: from mx1.redhat.com ([209.132.183.28]:49465) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZkZgK-0007XU-MG for 20906@debbugs.gnu.org; Fri, 09 Oct 2015 11:34:05 -0400 Original-Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (Postfix) with ESMTPS id D60B7C0BE09F; Fri, 9 Oct 2015 15:34:03 +0000 (UTC) Original-Received: from ari.site (ovpn-116-29.ams2.redhat.com [10.36.116.29]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t99FY1YC010097 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Fri, 9 Oct 2015 11:34:03 -0400 Original-Received: from ari.site (localhost [IPv6:::1]) by ari.site (Postfix) with ESMTP id 192E96194A; Fri, 9 Oct 2015 17:34:01 +0200 (CEST) X-Face: "'; oPz9V1+<,`}1ZuxRv~EiSusWq*{Yjr"Sdvbhq'?q=2R\\6Y9O/,SAE`{J|6I=|w/sQg< rW_N'E3IV6~f8?\l#Es`]S`mv',PY(`8{$$R?+gLu}Qv/Mn>)?uladFjJ@yl!_p_Jh; 5QxlD6zL:?r IXe4FfK$C^mWhh$o`yt; .r.FLZLQOWBt> (Mike FABIAN's message of "Thu, 08 Oct 2015 18:56:54 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-Scanned-By: MIMEDefang 2.68 on 10.5.11.24 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 Xref: news.gmane.org gmane.emacs.bugs:107483 Archived-At: Mike FABIAN さんはかきました: > Eli Zaretskii さんはかきました: > >>> From: Andreas Schwab >>> Cc: 20906@debbugs.gnu.org, monnier@iro.umontreal.ca, mfabian@redhat.com >>> Date: Thu, 08 Oct 2015 17:33:55 +0200 >>> >>> Eli Zaretskii writes: >>> >>> >> From: Andreas Schwab >>> >> Cc: 20906@debbugs.gnu.org, monnier@iro.umontreal.ca, mfabian@redhat.com >>> >> Date: Thu, 08 Oct 2015 17:08:20 +0200 >>> >> >>> >> > So I guess gui-backend-get-selection on x-win.el should loop over the >>> >> > possible request types, like x-selection-value-internal did in Emacs >>> >> > 24.5, is that right? >>> >> >>> >> gui--selection-value-internal still does that. >>> > >>> > Right, so gui-get-primary-selection should call that instead of >>> > calling gui-get-selection, I guess? >>> >>> I suppose so, if it wants to be the successor of x-get-selection-value. >> >> Mike, can you try that? Or do you want me to write a patch for you to >> try? > > I can try to write such a patch tomorrow. This patch according to Andreas’ suggestion does indeed seem to fix it for me (pasting now always works, from firefox, gtk, xterm, ...): >From 615bf7c7969e79cbdb5a3890ceaed94c84f2111c Mon Sep 17 00:00:00 2001 From: Mike FABIAN Date: Thu, 8 Oct 2015 15:45:32 +0200 Subject: [PATCH 1/2] In gui-get-primary-selection use gui--selection-value-internal (Bug#20906) * lisp/select.el (gui-get-primary-selection): In gui-get-primary-selection use gui--selection-value-internal (Bug#20906) --- lisp/select.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/select.el b/lisp/select.el index 74b48d1..2d2ac5f 100644 --- a/lisp/select.el +++ b/lisp/select.el @@ -235,7 +235,7 @@ x-get-clipboard (defun gui-get-primary-selection () "Return the PRIMARY selection, or the best emulation thereof." - (or (gui-get-selection 'PRIMARY) + (or (gui--selection-value-internal 'PRIMARY) (and (fboundp 'w32-get-selection-value) (eq (framep (selected-frame)) 'w32) ;; MS-Windows emulates PRIMARY in x-get-selection, but only -- 2.4.3 -- Mike FABIAN 睡眠不足はいい仕事の敵だ。