unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Robert Weiner <rsw@gnu.org>
To: Tak Kunihiro <homeros.misasa@gmail.com>
Cc: emacs-devel <emacs-devel@gnu.org>
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	[thread overview]
Message-ID: <CA+OMD9iEouOGq8RXS9+yRkv1CGLDqumOo96tbQAdO6kpTaheZg@mail.gmail.com> (raw)
In-Reply-To: <861sli69gj.fsf@misasa.okayama-u.ac.jp>

[-- Attachment #1: Type: text/plain, Size: 1621 bytes --]

On Tue, Oct 31, 2017 at 10:04 PM, Tak Kunihiro <homeros.misasa@gmail.com>
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.

[-- Attachment #2: Type: text/html, Size: 3357 bytes --]

  reply	other threads:[~2017-11-01 15:24 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 [this message]
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
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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CA+OMD9iEouOGq8RXS9+yRkv1CGLDqumOo96tbQAdO6kpTaheZg@mail.gmail.com \
    --to=rsw@gnu.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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).