]> git.eshelyaron.com Git - emacs.git/commitdiff
Use right url-handler for drag-and-dropped files under Windows
authorDaniel Colascione <dancol@dancol.org>
Thu, 15 Nov 2012 23:28:27 +0000 (15:28 -0800)
committerDaniel Colascione <dancol@dancol.org>
Thu, 15 Nov 2012 23:28:27 +0000 (15:28 -0800)
lisp/ChangeLog
lisp/term/w32-win.el

index bd535894cdfd0cfb33329ea59d155e3ffb60542f..3273baad872a0f776a269ede970311544b0e5e35 100644 (file)
@@ -1,3 +1,10 @@
+2012-11-15  Daniel Colascione  <dancol@dancol.org>
+
+       * term/w32-win.el (w32-handle-dropped-file): Use a "file://"
+       prefix instead of "file:" so that when FILE-NAME begins with "//"
+       (as it does when the target file is on a network share),
+       url-handler isn't confused.
+
 2012-10-30  Glenn Morris  <rgm@gnu.org>
 
        * emacs-lisp/cl-extra.el (cl-mapc): Add autoload cookie.  Doc fix.
index ad6e11250270f2f58f3c45e1c6a2dbdf447a8d87..224fb7c14423a8b8d53a0577da589b14f96c1286 100644 (file)
                                    "/")
                      "/")))
                (dnd-handle-one-url window 'private
-                                   (concat "file:" file-name)))
+                                   (concat "file://" file-name)))
 
 (defun w32-drag-n-drop (event &optional new-frame)
   "Edit the files listed in the drag-n-drop EVENT.