From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?ISO-8859-1?Q?Jan_Dj=E4rv?= Newsgroups: gmane.emacs.devel Subject: Re: Patch for remote files in dnd.el Date: Wed, 06 Sep 2006 14:06:54 +0200 Message-ID: <44FEB9DE.8050103@swipnet.se> References: <44FEADBA.6080401@swipnet.se> <85fyf5fcyh.fsf@lola.goethe.zz> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1157544668 17099 80.91.229.2 (6 Sep 2006 12:11:08 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 6 Sep 2006 12:11:08 +0000 (UTC) Cc: Jason Rumney , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Sep 06 14:11:05 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GKwFF-00025h-DU for ged-emacs-devel@m.gmane.org; Wed, 06 Sep 2006 14:11:05 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GKwFE-0001LD-Rb for ged-emacs-devel@m.gmane.org; Wed, 06 Sep 2006 08:11:04 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GKwCF-0007af-OS for emacs-devel@gnu.org; Wed, 06 Sep 2006 08:07:59 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GKwCB-0007X1-NK for emacs-devel@gnu.org; Wed, 06 Sep 2006 08:07:56 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GKwCB-0007Wq-7D for emacs-devel@gnu.org; Wed, 06 Sep 2006 08:07:55 -0400 Original-Received: from [81.228.8.186] (helo=av12-2-sn2.hy.skanova.net) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GKwCI-0004oD-9j; Wed, 06 Sep 2006 08:08:02 -0400 Original-Received: by av12-2-sn2.hy.skanova.net (Postfix, from userid 502) id 76FDA38568; Wed, 6 Sep 2006 14:07:52 +0200 (CEST) Original-Received: from smtp4-1-sn2.hy.skanova.net (smtp4-1-sn2.hy.skanova.net [81.228.8.92]) by av12-2-sn2.hy.skanova.net (Postfix) with ESMTP id 69F2F38515; Wed, 6 Sep 2006 14:07:52 +0200 (CEST) Original-Received: from coolsville.localdomain (81-235-205-78-no59.tbcn.telia.com [81.235.205.78]) by smtp4-1-sn2.hy.skanova.net (Postfix) with ESMTP id 44F2837E49; Wed, 6 Sep 2006 14:07:52 +0200 (CEST) User-Agent: Thunderbird 1.5.0.5 (X11/20060808) Original-To: David Kastrup In-Reply-To: <85fyf5fcyh.fsf@lola.goethe.zz> 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:59441 Archived-At: David Kastrup skrev: > Jan Dj=E4rv writes: >=20 >> I think we should install this. On GNU/Linux neither Nautilus or >> Konqueror (file browsers for Gnome and KDE) puts the host name in >> files dropped. So there is basically no way a user can drop remote >> files onto Emacs in GNU/Linux. On W32 this restors the old >> behaviour of Emacs 21 AFAIK, so it is not a new feature. Actually I take some of that back. You can browse ftp:// and nfs:// in=20 nautilus, it wasn't in the documentation. >=20 > I think we should generally have this transform the stuff properly, > independent of platform. I am not sure that would work for w32. For Samba shares, the URL becomes= =20 smb://host/... But in W32, I think it is in the UNC-format (\\host\...). = The=20 UNC format just works on those machines, but the smb:// URL:s are not=20 supported by tramp on W32. >=20 > Can't we just generally use the same mechanism as for `browse-url' for > files dropped into Emacs? >=20 If dnd-protocol-alist does not match the URL and if=20 browse-url-browser-function is a list of handlers, then those handlers ar= e tried. We could also enable url-handler-mode and match against url-handler-regex= p.=20 If that matches, a normal find-file should work. Jan D.