From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Tak Kunihiro Newsgroups: gmane.emacs.devel Subject: Re: Drag-and-drop FROM Emacs to another editable application window under MacOS Date: Thu, 12 Oct 2017 23:19:00 +0900 Message-ID: <867ew08n57.fsf@misasa.okayama-u.ac.jp> References: <86fuaps9ip.fsf@misasa.okayama-u.ac.jp> <59DF2243.7080101@gmx.at> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1507817968 29587 195.159.176.226 (12 Oct 2017 14:19:28 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 12 Oct 2017 14:19:28 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (windows-nt) Cc: martin rudalics , Tak Kunihiro , rswgnu@gmail.com, emacs-devel To: Robert Weiner Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Oct 12 16:19:21 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 1e2eKT-0006Rv-Jx for ged-emacs-devel@m.gmane.org; Thu, 12 Oct 2017 16:19:17 +0200 Original-Received: from localhost ([::1]:45824 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e2eKa-00060x-Sr for ged-emacs-devel@m.gmane.org; Thu, 12 Oct 2017 10:19:24 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40327) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e2eKO-00060P-Vw for emacs-devel@gnu.org; Thu, 12 Oct 2017 10:19:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e2eKM-0000uQ-Bi for emacs-devel@gnu.org; Thu, 12 Oct 2017 10:19:12 -0400 Original-Received: from mail-pf0-x22c.google.com ([2607:f8b0:400e:c00::22c]:49219) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e2eKM-0000to-5d; Thu, 12 Oct 2017 10:19:10 -0400 Original-Received: by mail-pf0-x22c.google.com with SMTP id l188so5014759pfc.6; Thu, 12 Oct 2017 07:19:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=csrFamdNe1aHfUyH4hTiia0EnF8V+l25sH1XzHkpWtg=; b=psJuxTXKQSAMoyYTYU/l3fuwbQJYvNDUAPSaT3hNmdFJv/mG4pXI3JA+Zq5GNa9LjF CGB/IvC/VBsi5chD1nclCKHaxteotVafdJql/DgTSmCSlcQsikQXOYS6ZhALaeeEfMGL AtbuPOd+RzWBXsBjjHp59uSeziaMX6/dInpVl3+s9HoS7Ta96lY6GfZtFKl2O1FrVseC 0dzqOiPrOLnGyAHT2xR4XYLCLYySXY4WxmbEefw42jtbGr8gYNo8IPI/jT7fhcIvDSfr OZzAhJuUaOD4/jFBipQdndkk3yRggWZSZoqVGuwGknakCLxpEN04AHUdZjpwI3uEspbw Xx/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=csrFamdNe1aHfUyH4hTiia0EnF8V+l25sH1XzHkpWtg=; b=Fr5FPIIq9wiDyUO+Puvi5Szaf0IL3OWFdYpHTZgJ6OIWTfiHJMacCdsx+2xTp//Dew O/WUkAuLjrj/nwu9240+Dv+EL5b36ks3/HduRADq7FjOX/nfkuXYrG6x8muk3r5Rygyo +xmKIolFcowBatByRX9YJIkjjZnefHR7nlW4pa3YEQSZJ9Ezwa6RHv3Gjop3752pEY9R mYfqLLh3WDkpjwDwoHSMIeENYlHurLeWjleBB1h8jk5HbNidWy4nyCyZWQD2e96y0LO3 j55IA0Dvnuh5v5uJcg0+7JXRco7yaXb4LBp056q7hD0rmihpu+ctxb9p6ETh/HzMmcmi 6u2g== X-Gm-Message-State: AMCzsaWXawcml2VD1QYA0ZGojnMVcYdY9waSsDZXoK/Bm0nykyOPJ4Hi pqzD0UCxj8DR3l9865uTMzKPKw== X-Google-Smtp-Source: AOwi7QBWwLM+eiFA/pw5h2K9sGgST6UbD8m/XerYqLr+nUfoiqV4qOXqtDVJFWtujFlkTzGFGRyE8g== X-Received: by 10.99.154.18 with SMTP id o18mr388221pge.18.1507817949260; Thu, 12 Oct 2017 07:19:09 -0700 (PDT) Original-Received: from thankless (p221050-ipngn200207tottori.tottori.ocn.ne.jp. [153.182.220.50]) by smtp.gmail.com with ESMTPSA id q73sm34405228pfl.146.2017.10.12.07.19.06 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 12 Oct 2017 07:19:08 -0700 (PDT) X-Google-Original-From: Tak Kunihiro In-Reply-To: (Robert Weiner's message of "Thu, 12 Oct 2017 09:23:47 -0400") X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400e:c00::22c 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:219417 Archived-At: > > I wonder why it doesn't work to drop the text onto other applications. > > Probably because there's no standard protocol to drag and drop anything > =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_an= d_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.