From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Jan D." Newsgroups: gmane.emacs.devel Subject: Re: Drag and drop patch for X, please review. Date: Tue, 20 Jan 2004 21:33:26 +0100 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> <23DA6486-4B65-11D8-91D5-00039363E640@swipnet.se> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 (Apple Message framework v609) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1074649442 4331 80.91.224.253 (21 Jan 2004 01:44:02 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 21 Jan 2004 01:44:02 +0000 (UTC) Cc: rms@gnu.org, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Wed Jan 21 02:43:56 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 1Aj7PQ-0005TR-00 for ; Wed, 21 Jan 2004 02:43:56 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1Aj7PQ-0000Xc-00 for ; Wed, 21 Jan 2004 02:43:56 +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 1Aj4Yj-000391-5i for emacs-devel@quimby.gnus.org; Tue, 20 Jan 2004 17:41:21 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1Aj2yA-0004Uk-2q for emacs-devel@gnu.org; Tue, 20 Jan 2004 15:59:30 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1Aj2Zy-0007Rf-5e for emacs-devel@gnu.org; Tue, 20 Jan 2004 15:35:01 -0500 Original-Received: from [213.115.192.53] (helo=mail2.norrnet.net) by monty-python.gnu.org with esmtp (Exim 4.24) id 1Aj2Zx-0007RJ-4b; Tue, 20 Jan 2004 15:34:29 -0500 Original-Received: from stubby.bodenonline.com (stubby.bodenonline.com [193.201.16.94]) by mail2.norrnet.net (BorderWare MXtreme Mail Firewall) with ESMTP id E6C8C9D0B8; Tue, 20 Jan 2004 21:31:22 +0100 (CET) Original-Received: from accessno42.bodenonline.com (accessno42.bodenonline.com [193.201.16.44]) by stubby.bodenonline.com (8.12.1/8.12.1) with ESMTP id i0KLQj7L007269; Tue, 20 Jan 2004 22:26:46 +0100 In-Reply-To: Original-To: Stefan Monnier X-Mailer: Apple Mail (2.609) 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:19373 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:19373 2004-01-20 kl. 19.43 skrev Stefan Monnier: >> Dropping a file name on the menu bar currently opens the file in a new >> window. I think that is useful (i.e. I use it all the time :-) > > It might be useful, but I'd find it confusing. It is how it works on most applications, and indeed in Emacs when running on W32 (at least it did a couple of years ago, when I ran Emacs on W32). For most people, the biggest benefit of supporting DND is to be able to open a file by dragging it from a file manager to the appropriate application (Emacs in this case). Inserting the file name in a buffer is a very non-standard behaviour. For example, all Gnome and KDE text editors behave this way. Since Emacs is relative new in the DND game, I'd like Emacs to behave like other applications in this regard (but not in any other function obviously :-). I find it harder to explain to a user why a drop on the tool bar and the menu bar is not acceptable to open a file. If we do that, I think we will get bug reports on it. >> If dropping text onto File, the user might reasonable expect the text >> to be pasted into window 1, because it is closest. Dropping on Tools >> can be expected to paste the text into window 3. > > For me that would spell more confusion. > I'd much rather drop directly into the window or maybe the modeline (in > case you want the "drop into window" to insert the file's path > instead). Yes of course. But then we are back to the question, shall we reject the drop in this case, or accept it. It sounds like you want to reject it in this case, which is what I tried to do initially. Jan D.