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: Tue, 20 Jan 2004 10:31:13 -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> <66F4EDBB-4AC4-11D8-BCBC-00039363E640@swipnet.se> Reply-To: rms@gnu.org NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1074613510 2720 80.91.224.253 (20 Jan 2004 15:45:10 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 20 Jan 2004 15:45:10 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Tue Jan 20 16:45:05 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 1Aiy3r-0001y4-00 for ; Tue, 20 Jan 2004 16:45:03 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1Aiy3r-0005HA-00 for ; Tue, 20 Jan 2004 16:45:03 +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 1Aiy3f-0005mY-Cd for emacs-devel@quimby.gnus.org; Tue, 20 Jan 2004 10:44:51 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1Aixt6-0000ij-Fv for emacs-devel@gnu.org; Tue, 20 Jan 2004 10:33:56 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1AixsO-0000Ny-6c for emacs-devel@gnu.org; Tue, 20 Jan 2004 10:33:43 -0500 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AixsN-0000Na-NA for emacs-devel@gnu.org; Tue, 20 Jan 2004 10:33:11 -0500 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.24) id 1AixqT-0004Dv-St; Tue, 20 Jan 2004 10:31:13 -0500 Original-To: "Jan D." In-reply-to: <66F4EDBB-4AC4-11D8-BCBC-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:19344 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:19344 > Is there a way that Dired mode could make a local variable binding, > or a local key binding, so as to control this? I could add some more events or hooks at various points in the DND protocol, but most DND protocols behave differently, so we would probably get different behaviour when dropping with the XDND protocol and when dropping with the Motif protocol. I am surprised you think it is difficult, because it looks trivial to me. + (global-set-key [drag-n-drop] 'x-dnd-handle-drag-n-drop-event) If Dired mode makes a local binding for drag-n-drop, won't that do the job?