]> git.eshelyaron.com Git - emacs.git/commitdiff
*** empty log message ***
authorMichael Albinus <michael.albinus@gmx.de>
Sun, 5 Aug 2007 12:48:27 +0000 (12:48 +0000)
committerMichael Albinus <michael.albinus@gmx.de>
Sun, 5 Aug 2007 12:48:27 +0000 (12:48 +0000)
lisp/files.el

index 8e6fb9ff7250881c6bd953f0edc0ce7ef17464b4..dfa3cef384d47f015e694d87ec4073a2974c1f5b 100644 (file)
@@ -2260,10 +2260,10 @@ 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 (regexp-quote (file-remote-p buffer-file-name))))
+               (remote-id (file-remote-p buffer-file-name)))
            ;; Remove remote file name identification.
            (when (and (stringp remote-id)
-                      (string-match remote-id name))
+                      (string-match (regexp-quote remote-id) name))
              (setq name (substring name (match-end 0))))
            ;; Remove backup-suffixes from file name.
            (setq name (file-name-sans-versions name))