From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Miles Bader Newsgroups: gmane.emacs.devel Subject: Re: Drag and drop patch for X, please review. Date: Sat, 17 Jan 2004 19:40:09 -0500 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <20040118004009.GA24635@fencepost> References: <200401171729.i0HHT1wq016912@stubby.bodenonline.com> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1074447926 18227 80.91.224.253 (18 Jan 2004 17:45:26 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 18 Jan 2004 17:45:26 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Sun Jan 18 18:45:22 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 1AiGfR-0008LT-00 for ; Sun, 18 Jan 2004 18:24:57 +0100 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1Ai16m-0007s2-00 for ; Sun, 18 Jan 2004 01:48:08 +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 1Ai13m-0007dD-8n for emacs-devel@quimby.gnus.org; Sat, 17 Jan 2004 19:45:02 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1Ai139-0007by-Rp for emacs-devel@gnu.org; Sat, 17 Jan 2004 19:44:23 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1Ai10f-0007EX-Ps for emacs-devel@gnu.org; Sat, 17 Jan 2004 19:42:21 -0500 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1Ai10d-0007EE-He for emacs-devel@gnu.org; Sat, 17 Jan 2004 19:41:47 -0500 Original-Received: from miles by fencepost.gnu.org with local (Exim 4.24) id 1Ai0z3-0006Wt-Fl; Sat, 17 Jan 2004 19:40:09 -0500 Original-To: "Jan D." Content-Disposition: inline In-Reply-To: <200401171729.i0HHT1wq016912@stubby.bodenonline.com> User-Agent: Mutt/1.3.28i Blat: Foop 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:19234 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:19234 On Sat, Jan 17, 2004 at 05:35:19PM +0100, Jan D. wrote: > You can currently drop file names and text. Files will be opened > and text inserted (at mouse position). Http urls and such are just > ignored, probably there is something more intelligent one could do, > suggestions? It should just use an alist of (DND-TYPE . FUNCTION) pairs so the user can define his own preferences (in the case where there's some subtyping, e.g., I see you checking if the data is `some text type', you could look for more specific type in the alist first, and if not found, look for a more generic supertype like`text'). Personally, I'd like URLs to be just inserted, as I _very_ often want to copy a url from mozilla into a mail message or something, and having such an alist would make it simple for me to implement this. -Miles -- Yo mama's so fat when she gets on an elevator it HAS to go down.