]> code.delx.au - gnu-emacs/commitdiff
Fix bug#20233, do not merge with master
authorMichael Albinus <michael.albinus@gmx.de>
Wed, 1 Apr 2015 07:31:20 +0000 (09:31 +0200)
committerMichael Albinus <michael.albinus@gmx.de>
Wed, 1 Apr 2015 07:31:20 +0000 (09:31 +0200)
* lisp/net/tramp.el (tramp-handle-unhandled-file-name-directory):
Return nil when required by the spec.  (Bug#20233)

lisp/ChangeLog
lisp/net/tramp.el

index eb84df715033de0929ddc94435325a5950e3474b..0b3d7c5f107a75ced76600350b120581846f231c 100644 (file)
@@ -1,3 +1,8 @@
+2015-04-01  Michael Albinus  <michael.albinus@gmx.de>
+
+       * net/tramp.el (tramp-handle-unhandled-file-name-directory):
+       Return nil when required by the spec.  (Bug#20233)
+
 2015-04-01  Nicolas Petton  <nicolas@petton.fr>
 
        * Version 24.5 released.
index dddf501fecc78c1b0609a4620d1b69e9999cce20..79242a46755583868ce9033cd9a3783dde82a7d3 100644 (file)
@@ -3355,10 +3355,11 @@ User is always nil."
 
 (defun tramp-handle-unhandled-file-name-directory (_filename)
   "Like `unhandled-file-name-directory' for Tramp files."
-  ;; With Emacs 23, we could simply return `nil'.  But we must keep it
-  ;; for backward compatibility.  "~/" cannot be returned, because
-  ;; there might be machines without a HOME directory (like hydra).
-  "/")
+  ;; Starting with Emacs 23, we must simply return `nil'.  But we must
+  ;; keep backward compatibility, also with XEmacs.  "~/" cannot be
+  ;; returned, because there might be machines without a HOME
+  ;; directory (like hydra).
+  (and (< emacs-major-version 23) "/"))
 
 (defun tramp-handle-set-visited-file-modtime (&optional time-list)
   "Like `set-visited-file-modtime' for Tramp files."