From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: mouse-yank-primary and bug #7699 Date: Tue, 21 Dec 2010 21:29:42 +0200 Message-ID: <837hf2gc0p.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1292959927 3935 80.91.229.12 (21 Dec 2010 19:32:07 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 21 Dec 2010 19:32:07 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Dec 21 20:32:01 2010 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PV7wH-0001RO-B0 for ged-emacs-devel@m.gmane.org; Tue, 21 Dec 2010 20:32:01 +0100 Original-Received: from localhost ([127.0.0.1]:33325 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PV7wG-0000ue-L3 for ged-emacs-devel@m.gmane.org; Tue, 21 Dec 2010 14:32:00 -0500 Original-Received: from [140.186.70.92] (port=54328 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PV7w8-0000tw-CI for emacs-devel@gnu.org; Tue, 21 Dec 2010 14:31:53 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PV7w6-0002qx-V2 for emacs-devel@gnu.org; Tue, 21 Dec 2010 14:31:52 -0500 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:40024) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PV7w6-0002qG-OQ for emacs-devel@gnu.org; Tue, 21 Dec 2010 14:31:50 -0500 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0LDS00J00LFYGR00@a-mtaout22.012.net.il> for emacs-devel@gnu.org; Tue, 21 Dec 2010 21:31:43 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([84.229.167.122]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LDS00HSZM8ULZE0@a-mtaout22.012.net.il> for emacs-devel@gnu.org; Tue, 21 Dec 2010 21:31:43 +0200 (IST) X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:133868 Archived-At: I have a question for experts on X selections. I think I can fix bug#7699 if I switch the order of calling x-get-selection-value and x-get-selection in this snippet from mouse-yank-primary: (let ((primary (cond ((fboundp 'x-get-selection-value) ; MS-DOS, MS-Windows and X. (or (x-get-selection-value) (x-get-selection 'PRIMARY))) My question is: could switching the order do the wrong thing on X? I looked into x-get-selection-value and x-get-selection as they are implemented on X, and they seem to do very similar things, but I don't know enough to understand the semantics of the subtle differences. If switching the order is not TRT on X, I could do that only for w32. TIA