From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: KOBAYASHI Yasuhiro Newsgroups: gmane.emacs.devel Subject: Re: Patch for remote files in dnd.el Date: Fri, 08 Sep 2006 08:47:15 +0900 Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1157672864 23925 80.91.229.2 (7 Sep 2006 23:47:44 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 7 Sep 2006 23:47:44 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Sep 08 01:47:41 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 1GLTas-00020b-1l for ged-emacs-devel@m.gmane.org; Fri, 08 Sep 2006 01:47:38 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GLTar-0006Az-IQ for ged-emacs-devel@m.gmane.org; Thu, 07 Sep 2006 19:47:37 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GLTaf-00064r-1M for emacs-devel@gnu.org; Thu, 07 Sep 2006 19:47:25 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GLTad-0005zC-Nr for emacs-devel@gnu.org; Thu, 07 Sep 2006 19:47:24 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GLTad-0005yo-G4 for emacs-devel@gnu.org; Thu, 07 Sep 2006 19:47:23 -0400 Original-Received: from [210.157.254.238] (helo=mail.otsukakj.co.jp) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GLTb3-0006M2-FQ; Thu, 07 Sep 2006 19:47:49 -0400 Original-Received: from mail.otsukakj.co.jp (localhost [127.0.0.1]) by localhost.otsukakj.co.jp (Postfix) with ESMTP id 574942575; Fri, 8 Sep 2006 08:47:16 +0900 (JST) Original-Received: from nrt0174.otsukakj.co.jp (unknown [172.30.1.174]) by mail.otsukakj.co.jp (Postfix) with ESMTP id 43EB024E9; Fri, 8 Sep 2006 08:47:16 +0900 (JST) Original-Received: from nrt0178.opf.otsukakj.co.jp ([172.30.1.178] helo=NRT0178) by nrt0174.otsukakj.co.jp with esmtp (Exim 4.50) id 1GLTaW-0002YT-63; Fri, 08 Sep 2006 08:47:16 +0900 Original-To: Jason Rumney X-Face: sx{*Zd5t@lP<&#~%3p=Z'z@ru$R6Bvwu3`mD?-!>[pr@Do`[`tu-$[0\OB6%gb:z/7 iuq3LblNTXV@AU\/w=hI[\w}\Hr1UM~>x\cQtaXq&w:LcZn/yvAOIHk"^$laja@tc|:Y"DC]/F!W"D "*_Y$vOKK5 X-PGP-DSS: BE16 34D8 BC0B 52B5 0E86 9D4B 9B89 77B3 1D8D A872 X-PGP-Key: http://homepage3.nifty.com/y3tk/gpg/pubkey.asc In-Reply-To: (Jason Rumney's message of "Thu, 27 Jul 2006 23:22:28 +0100") User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.50 (windows-nt) 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:59534 Archived-At: I tried the latest HEAD but I have the error which occured with the filename with SPACEs or MULTIBYTEs. Debugger entered--Lisp error: (error "Invalid file url") signal(error ("Invalid file url")) error("Invalid file url") dnd-open-unc-file("file://NSZ/home/kobayays/My%20Documents/w_s3alog.csv" private) dnd-open-file("file://NSZ/home/kobayays/My%20Documents/w_s3alog.csv" private) [...] How about the following? *** /tmp/dnd.el~ Fri Sep 8 08:35:07 2006 --- /tmp/dnd.el Fri Sep 8 08:34:33 2006 *************** *** 181,187 **** and must have the format file://hostname/file-name. ACTION is ignored. //hostname/file-name is the unc path." (let ((unc-file (if (string-match "^file:" uri) ! (substring (uri) 5)))) (if (and unc-file (file-readable-p unc-file)) (progn (if dnd-open-file-other-window --- 181,187 ---- and must have the format file://hostname/file-name. ACTION is ignored. //hostname/file-name is the unc path." (let ((unc-file (if (string-match "^file:" uri) ! (substring (url-unhex-string uri) 5)))) (if (and unc-file (file-readable-p unc-file)) (progn (if dnd-open-file-other-window -- KOBAYASHI Yasuhiro