1. 04 Dec, 2007 1 commit
  2. 19 Nov, 2007 2 commits
  3. 18 Nov, 2007 1 commit
    • Michael Albinus's avatar
      * net/tramp.el (tramp-completion-reread-directory-timeout): New · b50dd0d2
      Michael Albinus authored
      defcustom.
      (tramp-handle-file-name-all-completions): Flush directory contents
      from cache regularly.
      (tramp-set-auto-save-file-modes): Check also for
      `buffer-modified-p'.
      (tramp-open-connection-setup-interactive-shell): Call
      `tramp-cleanup-connection' via funcall.
      
      * net/tramp-ftp.el (tramp-ftp-file-name-handler): Temp file is already
      created when copying.
      b50dd0d2
  4. 12 Nov, 2007 1 commit
  5. 08 Nov, 2007 1 commit
  6. 07 Nov, 2007 1 commit
    • Michael Albinus's avatar
      * net/tramp.el (tramp-handle-substitute-in-file-name): Don't · b08104a0
      Michael Albinus authored
      expand the remote connection identification.
      (tramp-find-shell, tramp-open-connection-setup-interactive-shell):
      Set also $PS2 and $PS3 when setting $PS1.  Check for shell echoing
      before calling stty.
      
      * net/tramp-cache.el (tramp-cache-print)
      (tramp-dump-connection-properties): Fix docstring.
      (tramp-list-connections): Renamed from
      `tramp-cache-list-connections'.
      
      * net/tramp-cmds.el (tramp-cleanup-connection): Apply it.
      
      * net/tramp-ftp.el (tramp-ftp-file-name-handler): Don't expand the
      remote connection identification when setting connection property.
      
      * net/tramp-smb.el (tramp-smb-handle-substitute-in-file-name):
      "//" substitutes only in the local filename part.
      b08104a0
  7. 06 Nov, 2007 1 commit
  8. 05 Nov, 2007 1 commit
  9. 31 Oct, 2007 2 commits
  10. 30 Oct, 2007 1 commit
  11. 27 Oct, 2007 1 commit
    • Michael Albinus's avatar
      * net/tramp.el (tramp-wrong-passwd-regexp): Tune regexp. · a4aeb9a4
      Michael Albinus authored
      (tramp-get-remote-tmpdir): New defun.
      (tramp-make-tramp-temp-file): Use it.
      (tramp-local-call-process): New defun.  Replace all calls of
      `call-process' by this when appropriate.
      (tramp-handle-write-region): Replace calls of `file-attributes' by
      `tramp-compat-file-attributes'.
      (tramp-find-shell, tramp-open-connection-setup-interactive-shell):
      Make the first command a `tramp-send-command' call, with let-bind
      of `tramp-end-of-output'.
      (tramp-version, tramp-bug, tramp-reporter-dump-variable)
      (tramp-load-report-modules, tramp-append-tramp-buffers): Move to
      tramp-cmds.el.
      
      * net/tramp-fish.el (tramp-fish-handle-copy-file)
      (tramp-fish-do-copy-or-rename-file)
      (tramp-fish-do-copy-or-rename-file-directly):
      * net/tramp-smb.el (tramp-smb-handle-copy-file):
      Add parameter PRESERVE-UID-GID.
      a4aeb9a4
  12. 23 Oct, 2007 1 commit
  13. 22 Oct, 2007 2 commits
  14. 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
  15. 18 Oct, 2007 1 commit
  16. 10 Oct, 2007 1 commit
  17. 08 Oct, 2007 1 commit
  18. 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
  19. 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
  20. 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
  21. 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
  22. 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
  23. 27 Sep, 2007 1 commit
  24. 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
  25. 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
  26. 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
  27. 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
  28. 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
  29. 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
  30. 08 Aug, 2007 1 commit
  31. 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
  32. 05 Aug, 2007 1 commit
  33. 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
  34. 25 Jul, 2007 1 commit