comparison lisp/net/tramp.el @ 82201:b3182f0c969c

* net/tramp.el: * net/tramp-uu.el: * net/trampver.el: Use utf-8 encoding with coding cookie. * net/tramp-cache.el: * net/tramp-fish.el: * net/tramp-ftp.el: * net/tramp-gw.el: * net/tramp-smb.el: Remove coding cookie. * net/tramp.el (tramp-handle-verify-visited-file-modtime): Flush buffer file-name's file property. (tramp-handle-file-remote-p): The first parameter is FILENAME. * net/trampver.el: Update release number.
author Michael Albinus <michael.albinus@gmx.de>
date Sun, 29 Jul 2007 15:32:56 +0000
parents b98604865ea0
children 5399c02bfd07 539530fa389c
comparison
equal deleted inserted replaced
82200:b85800eebe46 82201:b3182f0c969c
1 ;;; -*- mode: Emacs-Lisp; coding: iso-2022-7bit; -*- 1 ;;; -*- mode: Emacs-Lisp; coding: utf-8; -*-
2 ;;; tramp.el --- Transparent Remote Access, Multiple Protocol 2 ;;; tramp.el --- Transparent Remote Access, Multiple Protocol
3 3
4 ;; Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 4 ;; Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004,
5 ;; 2005, 2006, 2007 Free Software Foundation, Inc. 5 ;; 2005, 2006, 2007 Free Software Foundation, Inc.
6 6
7 ;; (copyright statements below in code to be updated with the above notice) 7 ;; (copyright statements below in code to be updated with the above notice)
8 8
9 ;; Author: Kai Gro,A_(Bjohann <kai.grossjohann@gmx.net> 9 ;; Author: Kai Großjohann <kai.grossjohann@gmx.net>
10 ;; Michael Albinus <michael.albinus@gmx.de> 10 ;; Michael Albinus <michael.albinus@gmx.de>
11 ;; Keywords: comm, processes 11 ;; Keywords: comm, processes
12 12
13 ;; This file is part of GNU Emacs. 13 ;; This file is part of GNU Emacs.
14 14
2446 (if (or (not (buffer-file-name)) 2446 (if (or (not (buffer-file-name))
2447 (eq (visited-file-modtime) 0)) 2447 (eq (visited-file-modtime) 0))
2448 t 2448 t
2449 (let ((f (buffer-file-name))) 2449 (let ((f (buffer-file-name)))
2450 (with-parsed-tramp-file-name f nil 2450 (with-parsed-tramp-file-name f nil
2451 (tramp-flush-file-property v localname)
2451 (let* ((attr (file-attributes f)) 2452 (let* ((attr (file-attributes f))
2452 (modtime (nth 5 attr)) 2453 (modtime (nth 5 attr))
2453 (mt (visited-file-modtime))) 2454 (mt (visited-file-modtime)))
2454 2455
2455 (cond 2456 (cond
3711 (t (tramp-error 3712 (t (tramp-error
3712 v 'file-error "Wrong method specification for `%s'" method))) 3713 v 'file-error "Wrong method specification for `%s'" method)))
3713 (run-hooks 'tramp-handle-file-local-copy-hook) 3714 (run-hooks 'tramp-handle-file-local-copy-hook)
3714 tmpfil))) 3715 tmpfil)))
3715 3716
3716 (defun tramp-handle-file-remote-p (file &optional identification connected) 3717 (defun tramp-handle-file-remote-p (filename &optional identification connected)
3717 "Like `file-remote-p' for Tramp files." 3718 "Like `file-remote-p' for Tramp files."
3718 (when (tramp-tramp-file-p filename) 3719 (when (tramp-tramp-file-p filename)
3719 (with-parsed-tramp-file-name filename nil 3720 (with-parsed-tramp-file-name filename nil
3720 (and (or (not connected) 3721 (and (or (not connected)
3721 (let ((p (tramp-get-connection-process v))) 3722 (let ((p (tramp-get-connection-process v)))
7356 ;; again. (Greg Stark) 7357 ;; again. (Greg Stark)
7357 ;; * Provide a local cache of old versions of remote files for the rsync 7358 ;; * Provide a local cache of old versions of remote files for the rsync
7358 ;; transfer method to use. (Greg Stark) 7359 ;; transfer method to use. (Greg Stark)
7359 ;; * Remove unneeded parameters from methods. 7360 ;; * Remove unneeded parameters from methods.
7360 ;; * Invoke rsync once for copying a whole directory hierarchy. 7361 ;; * Invoke rsync once for copying a whole directory hierarchy.
7361 ;; (Francesco Potort,Al(B) 7362 ;; (Francesco Potortì)
7362 ;; * Make it work for different encodings, and for different file name 7363 ;; * Make it work for different encodings, and for different file name
7363 ;; encodings, too. (Daniel Pittman) 7364 ;; encodings, too. (Daniel Pittman)
7364 ;; * Clean up unused *tramp/foo* buffers after a while. (Pete Forman) 7365 ;; * Clean up unused *tramp/foo* buffers after a while. (Pete Forman)
7365 ;; * Progress reports while copying files. (Michael Kifer) 7366 ;; * Progress reports while copying files. (Michael Kifer)
7366 ;; * Don't search for perl5 and perl. Instead, only search for perl and 7367 ;; * Don't search for perl5 and perl. Instead, only search for perl and