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 06:36:06 +0200 Message-ID: <639109ba1cd24c3d44f3795e1ca42d33@swipnet.se> References: <4ffa2515937474fb5129bf6781413018@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 1112848783 19886 80.91.229.2 (7 Apr 2005 04:39:43 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 7 Apr 2005 04:39:43 +0000 (UTC) Cc: Sean O'Rourke , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Apr 07 06:39:39 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DJOnm-0007u1-A7 for ged-emacs-devel@m.gmane.org; Thu, 07 Apr 2005 06:39:34 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DJON0-00054n-Lc for ged-emacs-devel@m.gmane.org; Thu, 07 Apr 2005 00:11:54 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DJOMK-0004zu-UO for emacs-devel@gnu.org; Thu, 07 Apr 2005 00:11:13 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DJOMJ-0004xo-Vv for emacs-devel@gnu.org; Thu, 07 Apr 2005 00:11:12 -0400 Original-Received: from [195.54.107.73] (helo=mxfep02.bredband.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DJOlX-0000nC-0B; Thu, 07 Apr 2005 00:37:15 -0400 Original-Received: from coolsville.localdomain ([83.226.180.210] [83.226.180.210]) by mxfep02.bredband.com with ESMTP id <20050407043639.UXKF22685.mxfep02.bredband.com@coolsville.localdomain>; Thu, 7 Apr 2005 06:36:39 +0200 In-Reply-To: Original-To: Jason Rumney 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:35678 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:35678 > "Sean O'Rourke" writes: > >> "Jan D." writes: >>> To make this more general, I think you should use or generalize the >>> defcustom variables in x-dnd.el so that Emacs customizations in this >>> area becomes available on several platforms. >> >> x-dnd-known-types, x-dnd-types-alist, and x-dnd-default-test-function >> are useless, since they deal with xdnd protocol specifics, and I >> handle character encodings at the C level. But the rest of the file >> looks like quite an improvement over my simple handler, so I'll look >> at creating a mac analog to the x-specific parts. > > It might be useful to look at what the w32 code does. I recall finding > it difficult to use much of x-dnd.el when I rewrote DND support on > w32, but I did manage to use enough of it to give a reasonably > consistent interface between w32 and X I think. We should break out what you can use in a general dnd.el file. The x-dnd.el currently contains both general DND handling and protocol specifics. I'll look at what the w32 code uses and try to generalize it more. Jan D.