From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Robert Weiner Newsgroups: gmane.emacs.devel Subject: Re: Drag-and-drop FROM Emacs to another editable application window under MacOS Date: Thu, 12 Oct 2017 12:30:07 -0400 Message-ID: References: <86fuaps9ip.fsf@misasa.okayama-u.ac.jp> <59DF2243.7080101@gmx.at> <867ew08n57.fsf@misasa.okayama-u.ac.jp> Reply-To: rswgnu@gmail.com NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="001a114063d26c3c4a055b5c0f57" X-Trace: blaine.gmane.org 1507825936 7136 195.159.176.226 (12 Oct 2017 16:32:16 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 12 Oct 2017 16:32:16 +0000 (UTC) Cc: martin rudalics , emacs-devel To: Tak Kunihiro Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Oct 12 18:32:07 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e2gOr-0008H9-Qb for ged-emacs-devel@m.gmane.org; Thu, 12 Oct 2017 18:31:57 +0200 Original-Received: from localhost ([::1]:46451 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e2gOy-0007nb-Pb for ged-emacs-devel@m.gmane.org; Thu, 12 Oct 2017 12:32:04 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52926) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e2gNf-0007lP-BQ for emacs-devel@gnu.org; Thu, 12 Oct 2017 12:30:44 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e2gNa-0002JY-BB for emacs-devel@gnu.org; Thu, 12 Oct 2017 12:30:43 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:46517) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e2gNa-0002JD-6X for emacs-devel@gnu.org; Thu, 12 Oct 2017 12:30:38 -0400 Original-Received: from mail-qt0-f169.google.com ([209.85.216.169]:46257) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1e2gNZ-0003Tx-QH for emacs-devel@gnu.org; Thu, 12 Oct 2017 12:30:37 -0400 Original-Received: by mail-qt0-f169.google.com with SMTP id 1so14697357qtn.3 for ; Thu, 12 Oct 2017 09:30:37 -0700 (PDT) X-Gm-Message-State: AMCzsaUcvSOAbAjgrcq26QXd7u1o5quMRpMXxTblXnGz+fDoQxFY1662 Mvvv9bhmFVQeV9In/w/NZb5lVW8NN6aqsrtBDD4= X-Google-Smtp-Source: AOwi7QCSP3XpF2qJXyq5MnqmVGUZ44hiNk9MTJHonAc1EAVtgDgSr1tNau7vJXWptA9SSOdHd5UcsTNTTWwrnaboDY4= X-Received: by 10.200.44.70 with SMTP id e6mr4700077qta.197.1507825837422; Thu, 12 Oct 2017 09:30:37 -0700 (PDT) Original-Received: by 10.237.34.225 with HTTP; Thu, 12 Oct 2017 09:30:07 -0700 (PDT) In-Reply-To: <867ew08n57.fsf@misasa.okayama-u.ac.jp> X-Gmail-Original-Message-ID: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:219422 Archived-At: --001a114063d26c3c4a055b5c0f57 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, Oct 12, 2017 at 10:19 AM, Tak Kunihiro wrote: > > > I wonder why it doesn't work to drop the text onto other application= s. > > > > Probably because there's no standard protocol to drag and drop anythin= g > > =E2=80=8B=E2=80=8Bbut files between different applications. > > > > =E2=80=8B=E2=80=8BMaybe not for every window system but on MacOS there = is and many > applications accept dragged text > > directly: > > =E2=80=8B=E2=80=8Bhttps://developer.apple.com/documentation/uikit/drag_= and_ > drop/making_a_view_into_a_drag_source > > =E2=80=8B - source info=E2=80=8B > > For now `mouse-drag-and-drop-region' does nothing when > (event-end (read-event)) is toward out of the current frame. > > I think the first step is to revise `mouse-drag-and-drop-region' to let > it drag text to a different frame. > =E2=80=8BSo I have fixed that as you can see in my prior message. Now what= must be done to allow Emacs to drop the text onto another Mac application that accepts dropped text? Bob =E2=80=8B --001a114063d26c3c4a055b5c0f57 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Thu, Oct 12, 2= 017 at 10:19 AM, Tak Kunihiro <homeros.misasa@gmail.com> wrote:
>= ;=C2=A0 > I wonder why it doesn't work to drop the text onto other a= pplications.
>
>=C2=A0 Probably because there's no standard protocol to drag and dr= op anything
>=C2=A0 =E2=80=8B=E2=80=8Bbut files between different applications.
>
> =E2=80=8B=E2=80=8BMaybe not for every window system but on MacOS there= is and many applications accept dragged text
> directly:
> =E2=80=8B=E2=80=8Bhttps://developer.apple.com/documentation/uikit/drag_= and_drop/making_a_view_into_a_drag_source
> =E2=80=8B - source info=E2=80=8B

For now `mouse-drag-and-drop-region' does nothing when
(event-end (read-event)) is toward out of the current frame.

I think the first step is to revise `mouse-drag-and-drop-region' to let=
it drag text to a different frame.

=E2=80=8BSo I= have fixed that as you can see in my prior message.=C2=A0 Now what must be= done to allow Emacs to drop the text onto another Mac application that acc= epts dropped text?

Bob
=E2=80=8B

--001a114063d26c3c4a055b5c0f57--