1. 22 Oct, 2007 2 commits
  2. 21 Oct, 2007 1 commit
    • Michael Albinus's avatar
      * net/tramp.el (top): Put load of all tramp-* files into a dolist. · 9c13938d
      Michael Albinus authored
      Require tramp-cmds.el.
      (tramp-make-tramp-temp-file): We can get rid of DONT-CREATE.
      (tramp-handle-file-name-all-completions): Expand DIRECTORY.
       (tramp-do-copy-or-rename-file-directly): Make more rigid checks.
      (tramp-do-copy-or-rename-file-out-of-band)
      (tramp-maybe-open-connection): Use `make-temp-name'.  This is
      possible, because we don't need to create the temporary file, but
      we need a prefix for ssh, which has its own temporary file
      handling.
      (tramp-handle-delete-directory): Add "-f" to rmdir.
      (tramp-handle-dired-recursive-delete-directory): Call "rm -rf".
      (tramp-handle-insert-file-contents): Don't raise a tramp-error but
      a signal, in order to give the callee a chance to suppress.
      (tramp-handle-write-region): Set owner also in case of short
      track.  Don't use compatibility calls for `write-region' anymore.
      (tramp-clear-passwd): Add parameter VEC.  Adapt all callees.
      (tramp-append-tramp-buffers): Apply `tramp-list-tramp-buffers'.
      
      * net/tramp-cmds.el: New file.
      
      * net/tramp-gw.el (tramp-gw-basic-authentication): Apply VEC to
      `tramp-clear-passwd'.
      
      * net/trampver.el: Update release number.
      9c13938d
  3. 18 Oct, 2007 1 commit
  4. 10 Oct, 2007 1 commit
  5. 08 Oct, 2007 1 commit
  6. 06 Oct, 2007 2 commits
    • Michael Albinus's avatar
      * net/tramp.el (tramp-completion-mode): Extend doc-string. · 893895d3
      Michael Albinus authored
      (tramp-completion-mode-p): Revert change from 2007-09-24.
      Checking for `return' etc as last character is not sufficient, for
      example in dired-mode when entering <g> (revert-buffer) or
      <s> (dired-sort).
      893895d3
    • Michael Albinus's avatar
      * net/tramp.el (top): Move loading of tramp-util.el and · a6e96327
      Michael Albinus authored
      tramp-vc.el to tramp-compat.el.
      (tramp-make-tramp-temp-file): Complete rewrite.  Create remote
      temporary file if possible, in order to avoid a security hole.
      (tramp-do-copy-or-rename-file-out-of-band)
      (tramp-maybe-open-connection): Call `tramp-make-tramp-temp-file'
      with DONT-CREATE, because the connection is not setup yet.
      (tramp-handle-process-file): Rewrite temporary file handling.
      (tramp-completion-mode): New defvar.
      (tramp-completion-mode-p): Use it.
      
      * net/tramp-compat.el (top):  Load tramp-util.el and tramp-vc.el.
      
      * net/tramp-fish.el (tramp-fish-handle-process-file): Rewrite
      temporary file handling.
      a6e96327
  7. 04 Oct, 2007 1 commit
    • Michael Albinus's avatar
      * net/tramp.el (tramp-make-temp-file): Move to tramp-compat.el. · 258800f8
      Michael Albinus authored
      (tramp-do-copy-or-rename-file-directly): Handle tmpfile only in
      the cond clauses where needed.
      (tramp-handle-write-region): Rearrange code for proper handling of
      tmpfile.
      
      * net/tramp-compat.el (tramp-compat-make-temp-file): New defsubst.
      
      * net/tramp.el:
      * net/tramp-fish.el:
      * net/tramp-ftp.el:
      * net/tramp-smb.el: Rename `tramp-make-temp-file' to
      `tramp-compat-make-temp-file'.
      258800f8
  8. 03 Oct, 2007 1 commit
    • Michael Albinus's avatar
      * net/tramp.el (top): Add tramp-compat to `tramp-unload-hook'. · 94be87e8
      Michael Albinus authored
      (tramp-file-name-handler-alist): Add
      `tramp-handle-insert-file-contents-literally'.  Neded for XEmacs.
      (tramp-make-temp-file): Use `make-temp-name'. `make-temp-file',
      used before, creates the file already, which is not desired.
      (tramp-do-copy-or-rename-file-directly): Simplify handling of
      temporary file.
      (tramp-handle-insert-file-contents): Assign the result in the
      short track case.
      (tramp-handle-insert-file-contents-literally): New defun.
      (tramp-completion-mode-p): Revert change from 2007-09-24.
      Checking for `return' etc as last character is not sufficient, for
      example in dired-mode when entering <g> (revert-buffer) or
      <s> (dired-sort).
      
      * net/tramp-compat.el (top): Add also compatibility code for loading
      appropriate timer package.
      (tramp-compat-copy-tree): Check for `subrp' and `symbol-file' in
      order to avoid autoloading problems.
      
      * net/tramp-fish.el:
      * net/tramp-smb.el: Move further compatibility code to
      tramp-compat.el.
      
      * net/tramp-ftp.el (tramp-ftp-file-name-handler): Handle the case
      where the second parameter of `copy-file' or `rename-file' is a
      remote file but not via ftp.
      94be87e8
  9. 30 Sep, 2007 1 commit
    • Michael Albinus's avatar
      * net/tramp-compat.el: New file. · 9e6ab520
      Michael Albinus authored
      * net/tramp.el:
      * net/tramp-fish.el:
      * net/tramp-smb.el:
      * net/tramp-uu.el:
      * net/trampver.el: Move compatibility code to tramp-compat.el.
      Apply `mapc' instead of `mapcar' when the code needs side effects
      only.  Move utf-8 coding cookie to the second line.
      9e6ab520
  10. 28 Sep, 2007 1 commit
    • Michael Albinus's avatar
      * net/tramp.el (with-file-property, with-connection-property): · 9ce8462a
      Michael Albinus authored
      Highlight as keyword.
      (tramp-rfn-eshadow-setup-minibuffer)
      (tramp-rfn-eshadow-update-overlay, tramp-handle-set-file-times)
      (tramp-set-file-uid-gid, tramp-do-copy-or-rename-file-via-buffer)
      (tramp-do-copy-or-rename-file-directly)
      (tramp-do-copy-or-rename-file-out-of-band)
      (tramp-handle-shell-command, tramp-get-debug-buffer)
      (tramp-send-command-and-read, tramp-equal-remote)
      (tramp-get-local-gid): Pacify byte-compiler.
      (tramp-handle-file-name-directory): Result shall not be expanded.
      (tramp-find-foreign-file-name-handler): Rewrite.
      (tramp-dissect-file-name): Add optional parameter NODEFAULT.
      
      * net/tramp-cache.el (tramp-cache-print): Pacify byte-compiler.
      
      * net/tramp-fish.el (tramp-fish-handle-expand-file-name): Apply
      `tramp-completion-mode-p'.
      (tramp-fish-handle-set-file-times)
      (tramp-fish-handle-executable-find)
      (tramp-fish-handle-process-file, tramp-fish-get-file-entries)
      (tramp-fish-retrieve-data): Pacify byte-compiler.
      
      * net/tramp-gw.el (tramp-gw-basic-authentication): Call
      `tramp-read-passwd' with first parameter `nil'.
      9ce8462a
  11. 27 Sep, 2007 1 commit
  12. 24 Sep, 2007 2 commits
    • Michael Albinus's avatar
      * net/tramp.el (tramp-completion-mode-p): Rename from · 7a3cdcc5
      Michael Albinus authored
      `tramp-completion-mode'. Revert logic, check `return', `newline'
      and such alike. Packages like Icicles tend to use other completion
      characters but `tab' and `space' only.
      (top): Require cl.el, when `copy-tree' is not available otherwise.
      
      * net/tramp-vc.el (tramp-vc-user-login-name): Get argument by
      `ad-get-arg'.  Use `vc-find-version' instead of `process-file' to check
      whether we have a new enough vc that doesn't need the defadvice.
      7a3cdcc5
    • Michael Albinus's avatar
      * net/tramp.el (tramp-completion-mode-p): Rename from · 6c4e47fa
      Michael Albinus authored
      `tramp-completion-mode'. Revert logic, check `return', `newline'
      and such alike. Packages like Icicles tend to use other completion
      characters but `tab' and `space' only.
      6c4e47fa
  13. 21 Sep, 2007 1 commit
    • Michael Albinus's avatar
      * rfn-eshadow.el (rfn-eshadow-setup-minibuffer-hook) · d037d501
      Michael Albinus authored
      (rfn-eshadow-update-overlay-hook): New defvars.
      (rfn-eshadow-setup-minibuffer, rfn-eshadow-update-overlay): Run
      the hooks.
      
      * net/tramp.el (tramp-rfn-eshadow-overlay): New defvar.
      (tramp-rfn-eshadow-setup-minibuffer)
      (tramp-rfn-eshadow-update-overlay): New defuns.  Hook into
      rfn-eshadow.el.
      
      * net/tramp-smb.el (tramp-smb-errors): Add error message for call
      timeout.
      d037d501
  14. 09 Sep, 2007 1 commit
    • Michael Albinus's avatar
      * net/tramp.el (top): Remove declarations of `tramp-gw-*' symbols, · 8a4438b6
      Michael Albinus authored
      they are useless with the byte compiler.
      (tramp-make-temp-file, tramp-make-tramp-temp-file): Move up.
      (tramp-do-copy-or-rename-file-directly): Rearrange let-bindings.
      (tramp-compute-multi-hops): Mask `tramp-gw-*' symbols.
      (tramp-file-name-real-host, tramp-file-name-port)
      (tramp-find-method, tramp-find-user, tramp-find-host): Make them
      defuns.
      
      * net/tramp-cache.el (top): Improve error message when
      `tramp-persistency-file-name' is corrupted.
      8a4438b6
  15. 28 Aug, 2007 1 commit
    • Michael Albinus's avatar
      * net/tramp.el (tramp-handle-set-file-times): Flush the file · 8d60099b
      Michael Albinus authored
      properties.
      (tramp-set-file-uid-gid, tramp-get-local-uid)
      (tramp-get-local-gid): New defuns.
      (tramp-handle-copy-file): Handle new parameter PRESERVE-UID-GID.
      (tramp-do-copy-or-rename-file): New parameter PRESERVE-UID-GID.
      Improve fast track.
      (tramp-do-copy-or-rename-file-directly): Sync parameter list with
      the other tramp-do-copy-or-rename-file-* functions.  Major
      rewrite.
      (tramp-handle-file-local-copy, tramp-handle-insert-file-contents)
      (tramp-handle-write-region): Improve fast track.
      (tramp-handle-file-remote-p): IDENTIFICATION can also be
      'localname.
      (tramp-maybe-open-connection): Let `process-adaptive-read-buffering'
      be nil.
      8d60099b
  16. 24 Aug, 2007 1 commit
    • Michael Albinus's avatar
      * net/tramp.el (tramp-local-host-p): New defun. · 0f205eee
      Michael Albinus authored
      (tramp-handle-file-local-copy, tramp-handle-write-region):
      Implement fast track when being on the local host.
      (tramp-file-name-handler): Don't set "started" property.  It shall
      be reserved for the "ftp" method.
      (tramp-make-copy-program-file-name): Use `tramp-file-name-real-host'.
      
      * net/tramp-ftp.el (top): Autoload `tramp-set-connection-property'.
      (tramp-ftp-file-name-handler):  Set "started" property.
      0f205eee
  17. 22 Aug, 2007 1 commit
    • Michael Albinus's avatar
      * net/tramp.el (top): Require cl.el, when `copy-tree' is not available · f84638eb
      Michael Albinus authored
      otherwise.
      (tramp-get-remote-path): New defun.  Replace occurences of
      `tramp-default-remote-path' by this function.
      (tramp-set-remote-path): Move most of the code to
      `tramp-get-remote-path'.
      (tramp-get-ls-command, tramp-get-remote-id): Don't check for not
      existing directories, this is done already in
      `tramp-get-remote-path'.
      f84638eb
  18. 08 Aug, 2007 1 commit
  19. 07 Aug, 2007 2 commits
    • Michael Albinus's avatar
      * net/tramp.el (tramp-wrong-passwd-regexp): Make the regexp more · 27e813fe
      Michael Albinus authored
      global matching.
      (tramp-handle-process-file): Fix bug inserting
      resulting output.
      (tramp-handle-shell-command): Handle OUTPUT-BUFFER and
      ERROR-BUFFER more robust.  Display output.
      (tramp-file-name-handler): Add a connection property when we found
      a foreign file name handler.  This allows backends like ftp to
      profit also from usr/host name completion based on connection
      cache.
      (tramp-send-command-and-read): Search for trash after the regexp
      until eol only.  In XEmacs, there is a problem with \n.
      
      * net/tramp-cache.el (top): Read persistent connection history
      when cache is empty.
      27e813fe
    • Michael Albinus's avatar
      * net/tramp.el (tramp-handle-file-remote-p): Handle optional · d62c9a33
      Michael Albinus authored
      parameters IDENTIFICATION and CONNECTED.
      (tramp-handle-insert-file-contents): VISIT must be handled after
      insertion of the local copy.  Reported by Peter Gordon
      <peter@pg-consultants.com>.
      (tramp-file-name-handler): No special handling for
      `expand-file-name'.  But for `file-name-as-directory'.
      (tramp-find-shell, tramp-open-connection-telnet)
      (tramp-open-connection-rsh, tramp-open-connection-su)
      (tramp-open-connection-multi)
      (tramp-open-connection-setup-interactive-shell): Guard against
      $PROMPT_COMMAND shell var.  Reported by Steve Youngs
      <steve@sxemacs.org>.
      (tramp-append-tramp-buffers): Replace "sensible" by "sensitive" in
      the hint.
      
      * net/trampver.el: Update release number.
      d62c9a33
  20. 05 Aug, 2007 1 commit
  21. 29 Jul, 2007 1 commit
    • Michael Albinus's avatar
      * net/tramp.el: · bce04fee
      Michael Albinus authored
      * 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.
      bce04fee
  22. 25 Jul, 2007 1 commit
  23. 23 Jul, 2007 1 commit
    • Michael Albinus's avatar
      * net/tramp.el (tramp-perl-file-attributes) · d4443a0d
      Michael Albinus authored
      (tramp-perl-directory-files-and-attributes)
      (tramp-handle-file-attributes-with-stat)
      (tramp-handle-directory-files-and-attributes-with-stat(
      (tramp-convert-file-attributes): Handle huge file sizes.
      d4443a0d
  24. 22 Jul, 2007 1 commit
  25. 17 Jul, 2007 1 commit
    • Michael Albinus's avatar
      * net/tramp.el (tramp-handle-file-remote-p): Handle optional · ce3f516f
      Michael Albinus authored
      parameter IDENTIFICATION.
      (tramp-handle-set-file-times): New defun.  Replaces `tramp-touch'.
      (tramp-file-name-handler-alist, tramp-file-name-for-operation):
      Add entry for `set-file-times'.
      (tramp-do-copy-or-rename-file-via-buffer)
      (tramp-do-copy-or-rename-file-out-of-band): Use `set-file-times'.
      (tramp-handle-unhandled-file-name-directory): Rewrite.
      (tramp-convert-file-attributes): Add error handling when inode is
      extraordinary big.
      (tramp-get-inode): Change parameter from FILE to VEC.
      (tramp-handle-start-file-process ): Use (current-buffer) if BUFFER
      is NIL.  This is according to the specification.  Goto (point-max)
      when ready.
      (tramp-handle-shell-command): Rewrite completely, using
      `process-file' and `start-file-process'.
      (tramp-methods, tramp-find-shell)
      (tramp-open-connection-setup-interactive-shell)
      (tramp-maybe-open-connection): Guard against $PROMPT_COMMAND shell
      var.  Reported by Steve Youngs <steve@sxemacs.org>.
      
      * net/tramp-fish.el (tramp-fish-file-name-handler-alist): Add
      entry for `set-file-times'.  Rename `start-process' into
      `start-file-process'.  Remove `call-process' entry.
      (tramp-fish-handle-set-file-times): New defun.
      (tramp-fish-handle-executable-find): Use `process-file'.
      (tramp-fish-handle-process-file): New defun.  Replaces
      `tramp-fish-handle-call-process'.
      (tramp-fish-do-copy-or-rename-file-directly): Use
      `set-file-times'.
      (tramp-fish-get-file-entries): Change `tramp-get-inode' parameter.
      
      * net/tramp-smb.el (tramp-smb-handle-file-attributes): Change
      `tramp-get-inode' parameter.
      ce3f516f
  26. 08 Jul, 2007 1 commit
    • Michael Albinus's avatar
      * files.el (file-remote-p): Introduce optional parameter CONNECTED. · 00d6fd04
      Michael Albinus authored
      * net/tramp.el:
      * net/tramp-ftp.el:
      * net/tramp-smb.el:
      * net/tramp-uu.el:
      * net/trampver.el: Migrate to Tramp 2.1.
      
      * net/tramp-cache.el:
      * net/tramp-fish.el:
      * net/tramp-gw.el: New Tramp packages.
      
      * net/tramp-util.el:
      * net/tramp-vc.el: Removed.
      
      * net/ange-ftp.el: Add ange-ftp property to 'start-file-process
      (ange-ftp-file-remote-p): Handle optional parameter CONNECTED.
      
      * net/rcompile.el (remote-compile): Handle Tramp 2.1 arguments.
      
      * progmodes/compile.el (compilation-start): Redefine
      `start-process' temporarily when `default-directory' is remote.
      Remove case of synchronous compilation, this won't happen ever.
      (compilation-setup): Make local variable `comint-file-name-prefix'
      for remote compilation.
      00d6fd04
  27. 07 Jun, 2007 1 commit
  28. 28 May, 2007 1 commit
  29. 31 Mar, 2007 1 commit
    • Michael Albinus's avatar
      * net/tramp.el (tramp-register-file-name-handler) · 69cee873
      Michael Albinus authored
      (tramp-register-completion-file-name-handler): New defsubst,
      derived from `tramp-register-file-name-handlers'.  The split is
      necessary because Tramp's file name handlers must be registered at
      different startup places.
      69cee873
  30. 05 Mar, 2007 1 commit
  31. 28 Feb, 2007 2 commits
  32. 12 Feb, 2007 1 commit
  33. 27 Jan, 2007 1 commit
  34. 21 Jan, 2007 1 commit
  35. 11 Jan, 2007 1 commit