|
From: | Robert Weiner |
Subject: | Re: Emacs 26: Code that fixes mouse-drag-and-drop-region to work across frames |
Date: | Wed, 1 Nov 2017 11:24:44 -0400 |
> 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.
[Prev in Thread] | Current Thread | [Next in Thread] |