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 11:16:56 +0300 Message-ID: <86y12ddifb.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> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20839"; 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 10:17:54 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 1t3t2V-0005ES-D1 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 24 Oct 2024 10:17:51 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t3t2O-0003Qx-IX; Thu, 24 Oct 2024 04:17:44 -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 1t3t2D-0003QT-0l for bug-gnu-emacs@gnu.org; Thu, 24 Oct 2024 04:17:34 -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 1t3t2B-0007ki-UQ for bug-gnu-emacs@gnu.org; Thu, 24 Oct 2024 04:17: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=B56XW52n+C7Q+57TKYRT7w9wid2I9bacZoB67i6L8Pc=; b=j8wLrZrQo6POebqv4Xi0EP3zGVMW+UQWz5QeAZdB2HEr4Ynh43AcChW9AAMNA4+/5Y/xIxN6OJojDtpKNXtKQs4+RzDzaNVwFHlLW0R6o7mooVOIHG63DG1DaRqWBhv6FLesOkZp/4dhc/iqCeMTCbmi3+iniuCpMYcfpShuelhjIgkMv5ExjrlUxC4j3Nr/qxEJ/dDAf/O+mvYQCz0fApunG1chE+tZ7n/2uXocnubjQF3ndESX2A1akYxPxIpjWFnGaefKRxQlbMShndEp3VFMZKp//txEuN+6ZI6NpuTDICUW9NwSQWVKg4lTt/6CyvexjcJtK9lONGrthOULzQ==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1t3t2g-0005ob-7U for bug-gnu-emacs@gnu.org; Thu, 24 Oct 2024 04:18: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 08:18: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.172975785922319 (code B ref 3468); Thu, 24 Oct 2024 08:18:02 +0000 Original-Received: (at 3468) by debbugs.gnu.org; 24 Oct 2024 08:17:39 +0000 Original-Received: from localhost ([127.0.0.1]:33557 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t3t2J-0005nv-05 for submit@debbugs.gnu.org; Thu, 24 Oct 2024 04:17:39 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:40956) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t3t2G-0005ng-UM for 3468@debbugs.gnu.org; Thu, 24 Oct 2024 04:17:37 -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 1t3t1f-0007ix-EG; Thu, 24 Oct 2024 04:17:00 -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=B56XW52n+C7Q+57TKYRT7w9wid2I9bacZoB67i6L8Pc=; b=mWDpJoxQPCbF dulSqDRVyNxrtMxAnGPtbhvz5PN37mHnvEVVcppdCyEjFyPmRSZu+RdPe3TUnVSoiRUjdhpfQH0R9 QZbkW9EqWCmVEqCf1ojpWlK2TAFvdiH7DQ7ffpMAFob54/0kJ29f8jYdRCj3KfXlZVQkwkTKdFmOl X4FARaqNys7OdO1Jf69nQxoZ+webAiyDIDQuKtUtqxyWKS+G0PUlC/d1CvLekFdXfbc0hyRo3uHwA FPgWQM34sVybJEk2THcuBwvhNAP9pSJlcDdAwyqHT5Wv4VHlZxMB3YbzWPRRGUypUEIbg+1+Rfnja WKXWagsMQQ6BsepCxKWNnw==; In-Reply-To: <720db34f-57ea-4de5-b2b5-b0f2c8f7c1ef@imayhem.com> (message from Cecilio Pardo on Thu, 24 Oct 2024 09:56:16 +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:294172 Archived-At: > Date: Thu, 24 Oct 2024 09:56:16 +0200 > From: Cecilio Pardo > > 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? > > What are the reasons for removing save-excursion? > > dnd-handle-movement needs to move the point to apply > dnd-indicate-insertion-point- Then maybe use save-excursion when dnd-handle-movement is NOT called?