From: Daniel Colascione Date: Thu, 15 Nov 2012 23:28:27 +0000 (-0800) Subject: Use right url-handler for drag-and-dropped files under Windows X-Git-Tag: emacs-24.3.90~173^2~18^2~29^2 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=faeafc0133e90bdd6e1df134e507201d6e3c7a38;p=emacs.git Use right url-handler for drag-and-dropped files under Windows --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index bd535894cdf..3273baad872 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,10 @@ +2012-11-15 Daniel Colascione + + * 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 * emacs-lisp/cl-extra.el (cl-mapc): Add autoload cookie. Doc fix. diff --git a/lisp/term/w32-win.el b/lisp/term/w32-win.el index ad6e1125027..224fb7c1442 100644 --- a/lisp/term/w32-win.el +++ b/lisp/term/w32-win.el @@ -116,7 +116,7 @@ "/") "/"))) (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.