emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Emacs 26: Code that fixes mouse-drag-and-drop-region to work across


From: martin rudalics
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

> 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-position
> 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.

‘frame-x-dot-y’ 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]