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: Tak Kunihiro
Subject: Re: Emacs 26: Code that fixes mouse-drag-and-drop-region to work across frames
Date: Wed, 01 Nov 2017 11:04:12 +0900
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (windows-nt)

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



reply via email to

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