From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#3468: drag and drop text Date: Thu, 24 Oct 2024 12:40:19 +0300 Message-ID: <86ttd1dekc.fsf@gnu.org> References: <20090604070321.177690@gmx.net> <8ba4e567-550e-4ac2-96f4-c6f7bacd78d0@imayhem.com> <86wmiv3p0r.fsf@gnu.org> <9bef55ae-e0aa-40d0-af77-7e7eac309b3a@imayhem.com> <86msjq4rp5.fsf@gnu.org> <55f3d9b3-4a46-4ca1-9f84-c3bf99d1c403@imayhem.com> <86ed4ux0xj.fsf@gnu.org> <86a5fiwx3e.fsf@gnu.org> <867camwwx8.fsf@gnu.org> <258ce0b8-95b3-4e39-ba52-fc007326c891@imayhem.com> <86msjhvk1n.fsf@gnu.org> <39db8246-18f9-44ea-8678-925af995549f@imayhem.com> <86msjgt96l.fsf@gnu.org> <86o73uspkk.fsf@gnu.org> <3adf9bbb-5c6a-4e6d-83f5-c1d2c6a059d6@imayhem.com> <861q06dk99.fsf@gnu.org> <720db34f-57ea-4de5-b2b5-b0f2c8f7c1ef@imayhem.com> <86y12ddifb.fsf@gnu.org> <8bcf754c-6447-4017-ac33-af63e6f203a7@imayhem.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3124"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 3468@debbugs.gnu.org To: Cecilio Pardo Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Oct 24 11:40:53 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1t3uKq-0000bw-Mt for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 24 Oct 2024 11:40:52 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t3uKY-0003XL-Jw; Thu, 24 Oct 2024 05:40:34 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1t3uKW-0003Vh-Ec for bug-gnu-emacs@gnu.org; Thu, 24 Oct 2024 05:40:32 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1t3uKW-0002EH-5j for bug-gnu-emacs@gnu.org; Thu, 24 Oct 2024 05:40:32 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=References:In-Reply-To:From:Date:To:Subject; bh=BSjAtjk7ZHnrvF4zo82gfUhowmReKdHP+Tz7aNSLojI=; b=JvMhbIBJgB2YnwCZBY0SdNGdqG4eB//h+nXF+avW8AV0xi48IejOmr+Pr618DaWVfoeZle1QpRRx7bpgxRlHWtA5Dt0dcq6R70Xn1TXEykRDiUlsTz+i0I0cUO02Iwvqs585ifROaHwXXMOWcIGEbsPXiEqbjfukqccvNM0KMY+5uskMI83DFanE9loU/AesIIQkMV4/ADSMRll0LJzdgeKZdkmtYDuBspbd+jIE0AayDjnFhWK6a5s12cyQJsHlIW74TUHFrVzowp7e/ZWkvnsEaxjePqR7JkMffcXa6LUyRZVpALNOPPnZAd8UAt5DEXdXkBHdaAh0D1NbsxE1mQ==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1t3uL0-0001EW-D1 for bug-gnu-emacs@gnu.org; Thu, 24 Oct 2024 05:41:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 24 Oct 2024 09:41:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 3468 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: help Original-Received: via spool by 3468-submit@debbugs.gnu.org id=B3468.17297628614722 (code B ref 3468); Thu, 24 Oct 2024 09:41:02 +0000 Original-Received: (at 3468) by debbugs.gnu.org; 24 Oct 2024 09:41:01 +0000 Original-Received: from localhost ([127.0.0.1]:33675 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t3uKy-0001E6-LU for submit@debbugs.gnu.org; Thu, 24 Oct 2024 05:41:00 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:39350) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t3uKw-0001Dm-V0 for 3468@debbugs.gnu.org; Thu, 24 Oct 2024 05:40:59 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1t3uKN-0002CK-8J; Thu, 24 Oct 2024 05:40:23 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=BSjAtjk7ZHnrvF4zo82gfUhowmReKdHP+Tz7aNSLojI=; b=oe5n3qbEvwxn Pn8drWQSHcpK03fS8FAl2pLhmrUY05Baf5ZT8EmpoOHwwclFWLLOrvfgKW16IK8syM3zQr8LWRc5h RTjlUDv4CgZM8bSrGvaCODBtSi1OCFoSBvVQCMu5xnwDChSB5pxd7Y2Vr/ik/TTmbQIFQl/ZRQWiX jp6uYshWWZ5fb1T6diXTETSEnwFQy3Gv19iNnBwZFBGtj0VkiC131Zd33qHDQHTWywXrOPu25Kf9b 086l+fI5VXbCr/EJpfgod6WRdPsXGYB9Vl4zEn1u8xIUrdhARPv4TuNcVgnkq+EMg6/mwCN38y1rE 7LLYFf7RgE+/Vsddr1snsg==; In-Reply-To: <8bcf754c-6447-4017-ac33-af63e6f203a7@imayhem.com> (message from Cecilio Pardo on Thu, 24 Oct 2024 10:46:12 +0200) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:294179 Archived-At: > Date: Thu, 24 Oct 2024 10:46:12 +0200 > Cc: 3468@debbugs.gnu.org > From: Cecilio Pardo > > On 24/10/2024 10:16, Eli Zaretskii wrote: > >> On 24/10/2024 9:37, Eli Zaretskii wrote: > >>> I guess I'm missing some higher-level understanding of how this work, > >>> because I don't think I understand why you needed to add a special > >>> message WM_EMACS_DRAGOVER for this. Can you explain? > >> > >> I could reuse WM_EMACS_DROP, maybe rename to WM_EMACS_DRAGDROP. Added a > >> new one just for clarity. > > > > I don't mind a new message, I just didn't understand why it was > > needed. What is the purpose of WM_EMACS_DROP, and how it differs from > > this new message? > > We receive the drag or drop information in the functions > w32_drop_target_Drop and w32_drop_target_DragOver, which run on another > thread. We need to notify that to the input thread, sending a message to > the window. We use those to custom messages, WM_EMACS_DROP and > WM_EMACS_DRAGDROP. One for the drop, the other for when the mouse moves > over the window. Ah, okay, thanks. So moving point and/or scrolling use different message from actually dropping the payload? Makes sense.