]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix DND on MS-Windows with files from UNC directories
authorEli Zaretskii <eliz@gnu.org>
Sat, 2 Mar 2019 18:07:36 +0000 (20:07 +0200)
committerEli Zaretskii <eliz@gnu.org>
Sat, 2 Mar 2019 18:07:36 +0000 (20:07 +0200)
* lisp/dnd.el (dnd-get-local-file-uri): Always return nil on
MS-Windows, as this method cannot possibly work there: URIs
that begin with the local system's name are UNCs, where the
//SERVER part cannot be removed.  (Bug#34675)

lisp/dnd.el

index 73703863e6b8cc93d344951afd3648bcfa477cb5..459a7238dcd8f5a50b20888542657e2b5718a675 100644 (file)
@@ -130,6 +130,7 @@ Return nil if URI is not a local file."
                         (match-string 0 sysname)
                       sysname))))
       (when (and hostname
+                 (not (eq system-type 'windows-nt))
                 (or (string-equal "localhost" hostname)
                     (string-equal (downcase sysname) hostname)
                     (string-equal sysname-no-dot hostname)))