From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Jan D." Newsgroups: gmane.emacs.devel Subject: Re: [patch] enhanced mac drag-n-drop Date: Thu, 7 Apr 2005 17:18:12 +0200 Message-ID: <53087d133382cd79e77e039fe64f500e@swipnet.se> References: <4ffa2515937474fb5129bf6781413018@swipnet.se> <639109ba1cd24c3d44f3795e1ca42d33@swipnet.se> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (Apple Message framework v619.2) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1112887485 10233 80.91.229.2 (7 Apr 2005 15:24:45 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 7 Apr 2005 15:24:45 +0000 (UTC) Cc: emacs-devel@gnu.org, Jason Rumney Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Apr 07 17:24:42 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DJYqU-0005Fy-8F for ged-emacs-devel@m.gmane.org; Thu, 07 Apr 2005 17:23:03 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DJYPo-0006Kn-FK for ged-emacs-devel@m.gmane.org; Thu, 07 Apr 2005 10:55:28 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DJYNv-0005ft-BL for emacs-devel@gnu.org; Thu, 07 Apr 2005 10:53:33 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DJYNr-0005dH-BG for emacs-devel@gnu.org; Thu, 07 Apr 2005 10:53:27 -0400 Original-Received: from [195.54.107.70] (helo=mxfep01.bredband.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DJYmv-0005mL-Nw; Thu, 07 Apr 2005 11:19:22 -0400 Original-Received: from coolsville.localdomain ([83.226.180.210] [83.226.180.210]) by mxfep01.bredband.com with ESMTP id <20050407151839.WUWP25559.mxfep01.bredband.com@coolsville.localdomain>; Thu, 7 Apr 2005 17:18:39 +0200 In-Reply-To: Original-To: "Sean O'Rourke" X-Mailer: Apple Mail (2.619.2) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:35699 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:35699 > Jason Rumney writes: >>> We should break out what you can use in a general dnd.el file. > > Second, the XDND version has message decoding mixed throughout the > Lisp code. This is implementation-dependent, so IMHO it should be > done before Lisp gets ahold of the data, or at least before the > platform-independent part. Examples include splitting URL-list > strings into separate URLs and matching on the XDND command names. This is one thing that I won't remove from Lisp. For example, the format of URLs from Netscape/Mozilla has changed several times. More and more new types are being added by Gnome and KDE file managers. Having the decoding of all that in Lisp is so much more flexible and much easier to modify, maintain and debug than having it in C. If a general part is made, the decodings will be done in the platform specific parts, that's obvious. > > Third, there are the drop types, which have both different encodings > (platform-dependent) and different default actions (platform- > independent). For the latter, it would be nice to agree on a set of > names (e.g. text, URL, file). I don't follow, what kind of action is text, URL, file? An action would be more like insert-text, open-file or some such. > Finally, the "suggested action" in XDND will be very useful on Mac, so > I hope it stays around. As it is part of the protocol in both XDND and Motif, it will not go anywhere. I'll try to include some generalization of the concept. Jan D.