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: Sun, 18 Jan 2004 21:22:09 +0100 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: <200401171729.i0HHT1wq016912@stubby.bodenonline.com> 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 1074457548 7072 80.91.224.253 (18 Jan 2004 20:25:48 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 18 Jan 2004 20:25:48 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Sun Jan 18 21:25:40 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 1AiJUJ-0001Bz-00 for ; Sun, 18 Jan 2004 21:25:39 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1AiJUJ-00047m-00 for ; Sun, 18 Jan 2004 21:25:39 +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 1AiJSj-0005BK-KY for emacs-devel@quimby.gnus.org; Sun, 18 Jan 2004 15:24:01 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1AiJRg-00050R-D8 for emacs-devel@gnu.org; Sun, 18 Jan 2004 15:22:56 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1AiJRA-0004tD-DD for emacs-devel@gnu.org; Sun, 18 Jan 2004 15:22:55 -0500 Original-Received: from [193.201.16.94] (helo=stubby.bodenonline.com) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AiJR9-0004sd-Bc; Sun, 18 Jan 2004 15:22:23 -0500 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 i0ILEjwq017350; Sun, 18 Jan 2004 22:14:46 +0100 In-Reply-To: Original-To: David Kastrup 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:19244 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:19244 > >> The enclosed patch adds drag and drop support (well, actually only >> drop) in X to Emacs. The protocols supported are XDND (the most >> used nowdays, by Mozilla, OpenOffice, Gnome, KDE etc.) and the old >> KDE 1.x protocol. 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? > > You could call browse-url on them. My browse-url handles the mailto: > protocol within Emacs. I will do that, it is probably the best thing to do. > One could also call the handlers of browse-url for all treated URL > types, and for the rest insert into the > buffer. It would be nice if I could give it to browse-url first and then catch the error if there is no handler, but that doesn't seem to work since by default it seems that browse-url justs hands off the url to a browser (if I am reading it correctly). Jan D.