From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: Drag and drop patch for X, please review. Date: Mon, 19 Jan 2004 15:12:01 -0500 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: <200401171729.i0HHT1wq016912@stubby.bodenonline.com> <9616315C-49F9-11D8-A763-00039363E640@swipnet.se> Reply-To: rms@gnu.org NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1074543597 2148 80.91.224.253 (19 Jan 2004 20:19:57 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 19 Jan 2004 20:19:57 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Mon Jan 19 21:19:53 2004 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AifsH-0000vx-00 for ; Mon, 19 Jan 2004 21:19:53 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1AifsH-0007fr-00 for ; Mon, 19 Jan 2004 21:19:53 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1Aifof-0000Lc-SO for emacs-devel@quimby.gnus.org; Mon, 19 Jan 2004 15:16:09 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1Aifn5-0008QY-3G for emacs-devel@gnu.org; Mon, 19 Jan 2004 15:14:31 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1AifmT-00085P-Ec for emacs-devel@gnu.org; Mon, 19 Jan 2004 15:14:24 -0500 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AifmT-00084P-2j for emacs-devel@gnu.org; Mon, 19 Jan 2004 15:13:53 -0500 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.24) id 1Aifkf-0005MW-HW; Mon, 19 Jan 2004 15:12:01 -0500 Original-To: "Jan D." In-reply-to: <9616315C-49F9-11D8-A763-00039363E640@swipnet.se> (jan.h.d@swipnet.se) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:19281 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:19281 > If the user drops an icon representing a file into a Dired buffer, > I think it should rename or copy the file into that directory. > That is what drag-and-drop was used for originally on > the Mac: to move files between directories. But I don't > see any code here to do rename or copy. If we know the target is a dired buffer, we can then accept the action that the source sends us (XdndActionCopy or XdndActionMove) instead of always using XdndActionPrivate and to the right thing for each action. It should be easy to tell whether the buffer it was dropped into is a Dired buffer. But that is not the most elegant solution. Is there a way that Dired mode could make a local variable binding, or a local key binding, so as to control this? The types text/uri-list, text/x-moz-url, FILE_NAME and _NETSCAPE_URL all can have file:// URLs. text/uri-list is the one XDND and the freedesktop organization wants everybody to use. text/x-moz-url is used by mozilla and newer netscape. In modern systems, do the directory browsers use text/uri-list? If so, it is vital that Dired handle it right. If you have multiple windows in the >> frame, it is hard to select the one the user intended. What is the difficulty? Can you tell the position at which the drop occurred? If so, is it hard to find the window containing that position?