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: Fri, 28 Jul 2006 12:44:41 +0200 Message-ID: <44C9EA99.7060602@swipnet.se> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1154083543 8103 80.91.229.2 (28 Jul 2006 10:45:43 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 28 Jul 2006 10:45:43 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jul 28 12:45:40 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 1G6PqF-0005JP-0N for ged-emacs-devel@m.gmane.org; Fri, 28 Jul 2006 12:45:15 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1G6PqE-000658-Qk for ged-emacs-devel@m.gmane.org; Fri, 28 Jul 2006 06:45:14 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1G6Pq3-000651-SD for emacs-devel@gnu.org; Fri, 28 Jul 2006 06:45:03 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1G6Pq2-00064g-2R for emacs-devel@gnu.org; Fri, 28 Jul 2006 06:45:03 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1G6Pq1-00064b-W6 for emacs-devel@gnu.org; Fri, 28 Jul 2006 06:45:02 -0400 Original-Received: from [81.228.9.183] (helo=av8-1-sn3.vrr.skanova.net) by monty-python.gnu.org with esmtp (Exim 4.52) id 1G6Prv-0004rX-MK; Fri, 28 Jul 2006 06:46:59 -0400 Original-Received: by av8-1-sn3.vrr.skanova.net (Postfix, from userid 502) id 1C14E37EAA; Fri, 28 Jul 2006 12:44:56 +0200 (CEST) Original-Received: from smtp3-1-sn3.vrr.skanova.net (smtp3-1-sn3.vrr.skanova.net [81.228.9.101]) by av8-1-sn3.vrr.skanova.net (Postfix) with ESMTP id 0E09A37E76; Fri, 28 Jul 2006 12:44:56 +0200 (CEST) Original-Received: from coolsville.localdomain (81-235-205-204-no59.tbcn.telia.com [81.235.205.204]) by smtp3-1-sn3.vrr.skanova.net (Postfix) with ESMTP id E7E5C37E44; Fri, 28 Jul 2006 12:44:55 +0200 (CEST) User-Agent: Thunderbird 1.5.0.4 (X11/20060614) Original-To: Jason Rumney In-Reply-To: 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:57731 Archived-At: Jason Rumney skrev: > The following patch to dnd.el adds support for remote files via a new > variable dnd-open-remote-file-function. > > On Windows, this defaults to the new function dnd-open-unc-file, on > other platforms it is nil, giving the old behavior. If other platforms > can receive remote files by drag and drop, then appropriate methods > for accessing them can be added (perhaps via tramp). > > > Any objections to installing this now? Just one: > + (defcustom dnd-open-remote-file-function > + (if (eq system-type 'windows-nt) > + 'dnd-open-unc-file > + nil) > + "The function to call when opening a file on a remote machine. > + The function will be called with two arguments; URI and ACTION. See > + `dnd-open-file' for details. > + If nil, then dragging remote files into Emacs will result in an error. > + Predefined functions are `dnd-open-unc-file', which attempts to open > + the file using its UNC name and is the default on MS-Windows." > + :version "22.1" > + :type 'function > + :group 'dnd) I'd prefer if dnd-open-unc-file and the setting of dnd-open-remote-file-function when system-type eq 'windows-nt goes in some w32 specific file. Jan D.