]> git.eshelyaron.com Git - emacs.git/commitdiff
* net/tramp.el (tramp-handle-file-remote-p): Return a string as
authorMichael Albinus <michael.albinus@gmx.de>
Sun, 5 Aug 2007 12:43:06 +0000 (12:43 +0000)
committerMichael Albinus <michael.albinus@gmx.de>
Sun, 5 Aug 2007 12:43:06 +0000 (12:43 +0000)
remote identification.

lisp/ChangeLog
lisp/files.el
lisp/net/tramp.el

index d07f01641c85ca52165f070cdaef3c9699448be1..d3604800a027513337a2c643daa3e84853227522 100644 (file)
@@ -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
index 135ccfafb92565b9b4b0a0ac51d1d2dd0093d43f..8e6fb9ff7250881c6bd953f0edc0ce7ef17464b4 100644 (file)
@@ -2260,7 +2260,7 @@ we don't actually set it to the same mode the buffer already has."
     (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))
index 03e97b747dab9fd34de0e0c173f756362e124266..9f665ca470761ac7f0655881eac7c663f59e8a84 100644 (file)
@@ -3872,7 +3872,7 @@ This will break if COMMAND prints a newline, followed by the value of
   "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)