From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.devel Subject: Re: Drag and drop patch for X, please review. Date: 17 Jan 2004 21:20:29 +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 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1074371062 16818 80.91.224.253 (17 Jan 2004 20:24:22 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 17 Jan 2004 20:24:22 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Sat Jan 17 21:24:18 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 1AhwzR-00048E-00 for ; Sat, 17 Jan 2004 21:24:17 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1AhwzR-0002cu-00 for ; Sat, 17 Jan 2004 21:24:17 +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 1AhwwY-0004Kd-W5 for emacs-devel@quimby.gnus.org; Sat, 17 Jan 2004 15:21:19 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1AhwwK-0004IA-DA for emacs-devel@gnu.org; Sat, 17 Jan 2004 15:21:04 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1Ahwvo-0003mL-8H for emacs-devel@gnu.org; Sat, 17 Jan 2004 15:21:03 -0500 Original-Received: from [62.226.11.131] (helo=localhost.localdomain) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.24) id 1Ahwvn-0003ku-Ev for emacs-devel@gnu.org; Sat, 17 Jan 2004 15:20:31 -0500 Original-Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by localhost.localdomain (8.12.8/8.12.8) with ESMTP id i0HKKUBr030781 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 17 Jan 2004 21:20:30 +0100 Original-Received: (from dak@localhost) by localhost.localdomain (8.12.8/8.12.8/Submit) id i0HKKUYT030777; Sat, 17 Jan 2004 21:20:30 +0100 Original-To: "Jan D." In-Reply-To: <200401171729.i0HHT1wq016912@stubby.bodenonline.com> Original-Lines: 19 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 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:19227 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:19227 "Jan D." writes: > 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. One could also call the handlers of browse-url for all treated URL types, and for the rest insert into the buffer. -- David Kastrup, Kriemhildstr. 15, 44793 Bochum