From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.devel Subject: Re: Emacs 26: Code that fixes mouse-drag-and-drop-region to work across frames Date: Thu, 02 Nov 2017 10:51:19 +0100 Message-ID: <59FAEA97.308@gmx.at> References: <86d15rjrpe.fsf@misasa.okayama-u.ac.jp> <86tvywotlz.fsf@misasa.okayama-u.ac.jp> <861sli69gj.fsf@misasa.okayama-u.ac.jp> <20171101171658.GB78963@breton.holly.idiocy.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1509616337 1297 195.159.176.226 (2 Nov 2017 09:52:17 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 2 Nov 2017 09:52:17 +0000 (UTC) Cc: Tak Kunihiro , emacs-devel To: rswgnu@gmail.com, Alan Third Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Nov 02 10:52:13 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eACAQ-0007wS-MC for ged-emacs-devel@m.gmane.org; Thu, 02 Nov 2017 10:52:06 +0100 Original-Received: from localhost ([::1]:59412 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eACAY-0004YM-1s for ged-emacs-devel@m.gmane.org; Thu, 02 Nov 2017 05:52:14 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34313) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eACAH-0004Sl-Nk for emacs-devel@gnu.org; Thu, 02 Nov 2017 05:51:58 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eACAC-0006oL-R8 for emacs-devel@gnu.org; Thu, 02 Nov 2017 05:51:57 -0400 Original-Received: from mout.gmx.net ([212.227.15.18]:62120) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eACAC-0006nc-Hi for emacs-devel@gnu.org; Thu, 02 Nov 2017 05:51:52 -0400 Original-Received: from [192.168.1.100] ([46.125.250.46]) by mail.gmx.com (mrgmx002 [212.227.17.190]) with ESMTPSA (Nemesis) id 0LwJFG-1d4JrC46vu-0184Iy; Thu, 02 Nov 2017 10:51:29 +0100 In-Reply-To: X-Provags-ID: V03:K0:qn9/dpF+/V5TSwHaUmkH3uLNw0IvpXjuoGV3C+uQxS0NOEoGNLR ouzRA5lvJG/KQ8jrCc3ZSS/EelXM9eizqU4IIKb6c0ed3WyQlean4IyfEKOXY4ey6bXw7p/ q3RlJlX0EvbfUVX5ep2VAeMVlqrz+TnUr5AqW1GwhRanCUM4rwtsHy/PoAFQicKf/0xZkWb LNfmCXg7v3gpYBHxSofUA== X-UI-Out-Filterresults: notjunk:1;V01:K0:0H3IFxhHBxI=:jRtFns5md43j9IUmlJliY5 lV9TJWGLqgAemw2GvOcHzuDHBm7CahqFEwzgp7zY+9evbxFKc84SPbj6A8KAYkKBt07Ti7CZw egzQB9D5WUW4fnv+5IU93nIDdQwEflM8WZtbw9yj1WmYZksxqxAYbrCSD5PSyITw7MAhiC6Jo Uizl/RpRDsKDm9IjMD4pktVBqqwUrJFYOtgEDAM5Vk7cl4KTTsi9ia6UjYCLSRUvAZIrgIq4Z K9ct2uUnoMFgFIjQFLpto5KNs2Y+7ZuUvAeN3R0O+ymPcjIUvASIUhiRmzUPkyL+hfAz1ZHrQ bA18NOYTYNnEKIo6uaJxftx1xn+2t5MjWg8LbpM8Z+phwacSpn0Ovai+TH6/D3nRrOTpAl0A2 7IMV42fM00gwSi3d27p3o12dPWwUCmQGJmYQxK7flG+w4L3Mma7FG9brIhm6vT+DvmnlXX/oY x0PSDkmdVQ1UUmD0FHjzXVGBwLoWzK63EcoQ4HUWWu8zBP3bHg23/xGfgavl65UZA2eoo82Q8 3TkR8YgIoXhP5aIDXg6no2FWatwq/koqi1vLMJvUQUuKuLjjiUS4aEpM4O2kIpOXlkPDDuH5p iYym7XKkf6J8oq1Bq1GSUnzD3hsKSrcr/qgrokHHbW1gk5J/KLAm3WRUECwoe5IvA2wT5sWYS E/Y+dhZ0xfuQ2C3adP6+jlnh4nmtttX3p7rYgbMTxsaByOWS5ol+RMhTAHsfQrVHcN16qqrUk t423FkwMMgmNK3Vn/P7N0yvRPQfgVPdzKLpAfAcyO9JMRhlQK/05mHCefHNicLcwA6zAS+nE X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 212.227.15.18 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:219864 Archived-At: > I have been using this snippet without a problem for a while. Is it > sufficient > to resolve the issues we are discussing with mouse-position and > mouse-pixel-position? > > (setq mouse-position-function > (lambda (frame-x-dot-y) > "Under macOS and Windows 7, mouse-position and mouse-pixel-positi= on > sometimes return the prior frame; change to always return the selected= > frame." > (if (consp frame-x-dot-y) (setcar frame-x-dot-y (selected-frame))= ) > frame-x-dot-y)) I don't have the slightest idea why you wanted to do that. =E2=80=98frame-x-dot-y=E2=80=99 should be the Emacs frame under the mouse= which is not necessarily the selected frame. Why do you want it to be the selected frame? Don't you want to drop your object on the frame under the mouse? martin