Mercurial > emacs
changeset 78411:58cb4546b377
* net/tramp.el (tramp-handle-file-remote-p): Return a string as
remote identification.
author | Michael Albinus <michael.albinus@gmx.de> |
---|---|
date | Sun, 05 Aug 2007 12:43:06 +0000 |
parents | 7ed1b196b926 |
children | 8a48dd7864d1 |
files | lisp/ChangeLog lisp/files.el lisp/net/tramp.el |
diffstat | 3 files changed, 5 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/ChangeLog Sun Aug 05 08:57:24 2007 +0000 +++ b/lisp/ChangeLog Sun Aug 05 12:43:06 2007 +0000 @@ -3,6 +3,9 @@ * files.el (set-auto-mode): Handle also remote files wrt `auto-mode-alist'. + * net/tramp.el (tramp-handle-file-remote-p): Return a string as + remote identification. + 2007-08-04 Glenn Morris <rgm@gnu.org> * autorevert.el (auto-revert-tail-mode): auto-revert-tail-pos is
--- a/lisp/files.el Sun Aug 05 08:57:24 2007 +0000 +++ b/lisp/files.el Sun Aug 05 12:43:06 2007 +0000 @@ -2260,7 +2260,7 @@ (unless done (if buffer-file-name (let ((name buffer-file-name) - (remote-id (file-remote-p buffer-file-name))) + (remote-id (regexp-quote (file-remote-p buffer-file-name)))) ;; Remove remote file name identification. (when (and (stringp remote-id) (string-match remote-id name))
--- a/lisp/net/tramp.el Sun Aug 05 08:57:24 2007 +0000 +++ b/lisp/net/tramp.el Sun Aug 05 12:43:06 2007 +0000 @@ -3872,7 +3872,7 @@ "Like `file-remote-p' for tramp files." (when (tramp-tramp-file-p filename) (with-parsed-tramp-file-name filename nil - (vector multi-method method user host "")))) + (tramp-make-tramp-file-name multi-method method user host "")))) (defun tramp-handle-insert-file-contents (filename &optional visit beg end replace)