emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Patch for remote files in dnd.el


From: Jason Rumney
Subject: Re: Patch for remote files in dnd.el
Date: Fri, 08 Sep 2006 09:25:20 +0100
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.8.0.4) Gecko/20060516 Thunderbird/1.5.0.4 Mnenhy/0.7.4.666

Is this not a problem for local files as well? The "url" is constructed in the same way, and it is probable that Gnome, KDE etc will send such URLs (I don't have either in front of me right now, only CDE and Windows).


KOBAYASHI Yasuhiro wrote:
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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]