projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7c843ee
)
Fix problem in tramp-handle-substitute-in-file-name
author
Michael Albinus
<michael.albinus@gmx.de>
Mon, 26 Feb 2018 15:23:21 +0000
(16:23 +0100)
committer
Michael Albinus
<michael.albinus@gmx.de>
Tue, 27 Feb 2018 07:31:18 +0000
(08:31 +0100)
* lisp/net/tramp.el (tramp-handle-substitute-in-file-name): Concat "/"
only for local file "~".
lisp/net/tramp.el
patch
|
blob
|
history
diff --git
a/lisp/net/tramp.el
b/lisp/net/tramp.el
index 618d026abde56c7cbfe36d2756205d1f3bda9acb..bae039dba13933d8e5dc4e58ede89fea920bee80 100644
(file)
--- a/
lisp/net/tramp.el
+++ b/
lisp/net/tramp.el
@@
-3564,7
+3564,7
@@
support symbolic links."
(concat (file-remote-p filename)
(substitute-in-file-name localname))))))
;; "/m:h:~" does not work for completion. We use "/m:h:~/".
- (if (string-match "
~$" file
name)
+ (if (string-match "
^~$" local
name)
(concat filename "/")
filename))))