emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] master d2b5f44: Fix DND on MS-Windows with files from UNC


From: Eli Zaretskii
Subject: [Emacs-diffs] master d2b5f44: Fix DND on MS-Windows with files from UNC directories
Date: Sat, 2 Mar 2019 13:08:54 -0500 (EST)

branch: master
commit d2b5f445c1a5f9e105eb65e10b28a40645516656
Author: Eli Zaretskii <address@hidden>
Commit: Eli Zaretskii <address@hidden>

    Fix DND on MS-Windows with files from UNC directories
    
    * 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 | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lisp/dnd.el b/lisp/dnd.el
index 7370386..459a723 100644
--- a/lisp/dnd.el
+++ b/lisp/dnd.el
@@ -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)))



reply via email to

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