From: martin rudalics <rudalics@gmx.at>
To: rswgnu@gmail.com, Alan Third <alan@idiocy.org>
Cc: Tak Kunihiro <homeros.misasa@gmail.com>,
emacs-devel <emacs-devel@gnu.org>
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 [thread overview]
Message-ID: <59FAEA97.308@gmx.at> (raw)
In-Reply-To: <CA+OMD9g2oF1q+W7iv6eg9nA0Vn0roGtFrS0u=19catZDHNYCkg@mail.gmail.com>
> 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
next prev parent reply other threads:[~2017-11-02 9:51 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-10-12 16:27 Emacs 26: Code that fixes mouse-drag-and-drop-region to work across frames Robert Weiner
2017-10-12 16:42 ` Robert Weiner
2017-10-12 17:11 ` Robert Weiner
2017-10-13 9:57 ` Tak Kunihiro
2017-10-16 13:45 ` Robert Weiner
2017-10-16 14:13 ` Robert Weiner
2017-10-19 0:43 ` Tak Kunihiro
2017-10-26 22:07 ` Robert Weiner
2017-11-01 2:04 ` Tak Kunihiro
2017-11-01 15:24 ` Robert Weiner
2017-11-01 17:16 ` Alan Third
2017-11-01 20:18 ` Robert Weiner
2017-11-01 20:41 ` Robert Weiner
2017-11-02 9:51 ` martin rudalics [this message]
2017-11-02 19:00 ` Robert Weiner
2017-11-02 20:16 ` martin rudalics
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=59FAEA97.308@gmx.at \
--to=rudalics@gmx.at \
--cc=alan@idiocy.org \
--cc=emacs-devel@gnu.org \
--cc=homeros.misasa@gmail.com \
--cc=rswgnu@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.