[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] emacs-24 1b70aa6: Fix bug#20233, do not merge with master
From: |
Michael Albinus |
Subject: |
[Emacs-diffs] emacs-24 1b70aa6: Fix bug#20233, do not merge with master |
Date: |
Wed, 01 Apr 2015 07:32:23 +0000 |
branch: emacs-24
commit 1b70aa634c9ce117fed418894b54b1f2647bda1c
Author: Michael Albinus <address@hidden>
Commit: Michael Albinus <address@hidden>
Fix bug#20233, do not merge with master
* lisp/net/tramp.el (tramp-handle-unhandled-file-name-directory):
Return nil when required by the spec. (Bug#20233)
---
lisp/ChangeLog | 5 +++++
lisp/net/tramp.el | 9 +++++----
2 files changed, 10 insertions(+), 4 deletions(-)
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index eb84df7..0b3d7c5 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
+2015-04-01 Michael Albinus <address@hidden>
+
+ * net/tramp.el (tramp-handle-unhandled-file-name-directory):
+ Return nil when required by the spec. (Bug#20233)
+
2015-04-01 Nicolas Petton <address@hidden>
* Version 24.5 released.
diff --git a/lisp/net/tramp.el b/lisp/net/tramp.el
index dddf501..79242a4 100644
--- a/lisp/net/tramp.el
+++ b/lisp/net/tramp.el
@@ -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."
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] emacs-24 1b70aa6: Fix bug#20233, do not merge with master,
Michael Albinus <=