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: Wed, 6 Apr 2005 21:22:32 +0200 Message-ID: <768d977a4c88bf77e918442d1be3c972@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 1112815523 23019 80.91.229.2 (6 Apr 2005 19:25:23 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 6 Apr 2005 19:25:23 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Apr 06 21:25:18 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DJG8g-0006xc-V7 for ged-emacs-devel@m.gmane.org; Wed, 06 Apr 2005 21:24:35 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DJFhq-0004zR-Js for ged-emacs-devel@m.gmane.org; Wed, 06 Apr 2005 14:56:50 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DJFhG-0004qS-Mt for emacs-devel@gnu.org; Wed, 06 Apr 2005 14:56:15 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DJFhF-0004ob-6I for emacs-devel@gnu.org; Wed, 06 Apr 2005 14:56:13 -0400 Original-Received: from [195.54.107.73] (helo=mxfep02.bredband.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DJG7I-0001Jt-P8 for emacs-devel@gnu.org; Wed, 06 Apr 2005 15:23:09 -0400 Original-Received: from coolsville.localdomain ([83.226.180.210] [83.226.180.210]) by mxfep02.bredband.com with ESMTP id <20050406192238.SPMY22685.mxfep02.bredband.com@coolsville.localdomain>; Wed, 6 Apr 2005 21:22:38 +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:35654 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:35654 > "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. Not really xdnd protocol specifics, rather X11 DND specifics. x-dnd-types-alist is the only place a user can configure what to do with URL:s. Some want to open them in a browser, some want to insert the URL text. I think it would be much more flexible if the mac C code generated x-dnd.el compatible events. That must be easy. And please don't do (raise-frame) (recenter). I really dislike applications that raises windows and scrolls without being told to do so. At least make it an option, default off. Jan D.