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: Jan Djärv
Subject: Re: Patch for remote files in dnd.el
Date: Fri, 15 Sep 2006 09:11:05 +0200
User-agent: Thunderbird 1.5.0.5 (X11/20060808)


Shall this be installed?  Can W32-users confirm that this works OK?

        Jan D.

KOBAYASHI Yasuhiro skrev:
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]