On Tue, Oct 31, 2017 at 10:04 PM, Tak Kunihiro wrote: > > I cannot drag text among frames yet. I think I still miss something. > > Can you show recipe that starts from emacs -Q? > > > > ​See if adding this fixes it: > > > > (setq mouse-position-function > > (lambda (frame-x-dot-y) > > "Under macOS, mouse-position and mouse-pixel-position > sometimes fail to return the selected-frame (returning the prior frame > instead); fix that here." > > (if frame-x-dot-y (setcar frame-x-dot-y > (selected-frame))) > > frame-x-dot-y)) > > ;; https://lists.gnu.org/archive/html/emacs-devel/2017-10/msg00804.html > ;; https://lists.gnu.org/archive/html/emacs-devel/2017-10/msg00591.html > ;; https://lists.gnu.org/archive/html/emacs-devel/2017-10/msg00588.html > > ;; GNU Emacs 27.0.50 (build 2, x86_64-apple-darwin13.4.0, NS > appkit-1265.21 Version 10.9.5 (Build 13F1911)) > ;; of 2017-11-01 > ;; ./Emacs -Q > ;; M-x eval-buffer > > I start to see yellow preview text by tooltip on destination frame. > However, I cannot drop the text yet. I still miss something. > ​Maybe it would be best if someone fixed the XSETFRAME macro in ​mouse-position so it works properly under the macOS window system so we could avoid any work arounds on this. -- Bob From mouse-position: ;; f = SELECTED_FRAME (); ;; XSETFRAME (lispy_dummy, f); ;; It seems like the XSETFRAME macro is not properly copying the value of f on initial frame selection under the macOS window system.