1. 01 Aug, 2013 1 commit
    • Michael Albinus's avatar
      Complete file name handlers. · a43dc424
      Michael Albinus authored
      * net/tramp.el (tramp-handle-set-visited-file-modtime)
      (tramp-handle-verify-visited-file-modtime)
      (tramp-handle-file-notify-rm-watch): New functions.
      (tramp-call-process): Do not bind `default-directory'.
      
      * net/tramp-adb.el (tramp-adb-file-name-handler-alist): Order
      alphabetically.
      [access-file, add-name-to-file, dired-call-process]:
      [dired-compress-file, file-acl, file-notify-rm-watch]:
      [file-ownership-preserved-p, file-selinux-context]:
      [make-directory-internal, make-symbolic-link, set-file-acl]:
      [set-file-selinux-context, set-visited-file-modtime]:
      [verify-visited-file-modtime]: Add handler.
      (tramp-adb-handle-write-region): Apply `set-visited-file-modtime'.
      
      * net/tramp-gvfs.el (tramp-gvfs-file-name-handler-alist)
      [file-notify-add-watch, file-notify-rm-watch]:
      [set-file-times, set-visited-file-modtime]:
      [verify-visited-file-modtime]: Add handler.
      (with-tramp-gvfs-error-message)
      (tramp-gvfs-handle-set-visited-file-modtime)
      (tramp-gvfs-fuse-file-name): Remove.
      (tramp-gvfs-handle-file-notify-add-watch)
      (tramp-gvfs-file-gvfs-monitor-file-process-filter): New defuns.
      (tramp-gvfs-handle-write-region): Fix error in moving tmpfile.
      
      * net/tramp-sh.el (tramp-sh-file-name-handler-alist): Order
      alphabetically.
      [file-notify-rm-watch ]: Use default Tramp handler.
      [executable-find]: Remove private handler.
      (tramp-do-copy-or-rename-file-out-of-band): Do not bind
      `default-directory'.
      (tramp-sh-handle-executable-find)
      (tramp-sh-handle-file-notify-rm-watch): Remove functions.
      (tramp-sh-file-gvfs-monitor-dir-process-filter)
      (tramp-sh-file-inotifywait-process-filter, tramp-set-remote-path):
      Do not use `format' in `tramp-message'.
      
      * net/tramp-smb.el (tramp-smb-file-name-handler-alist)
      [file-notify-rm-watch, set-visited-file-modtime]:
      [verify-visited-file-modtime]: Add handler.
      (tramp-smb-call-winexe): Do not bind `default-directory'.
      a43dc424
  2. 24 Jul, 2013 1 commit
    • Michael Albinus's avatar
      * filenotify.el (file-notify-supported-p): · d5d3c58a
      Michael Albinus authored
      * net/tramp-sh.el (tramp-sh-handle-file-notify-supported-p):
      Remove functions.
      
      * autorevert.el (auto-revert-use-notify):
      (auto-revert-notify-add-watch):
      * net/tramp.el (tramp-file-name-for-operation):
      * net/tramp-adb.el (tramp-adb-file-name-handler-alist):
      * net/tramp-gvfs.el (tramp-gvfs-file-name-handler-alist):
      * net/tramp-sh.el (tramp-sh-file-name-handler-alist):
      * net/tramp-smb.el (tramp-smb-file-name-handler-alist):
      Remove `file-notify-supported-p' entry.
      d5d3c58a
  3. 23 Jul, 2013 1 commit
  4. 18 Jul, 2013 1 commit
    • Michael Albinus's avatar
      * filenotify.el (file-notify--library): Renamed from · e06ec67f
      Michael Albinus authored
      `file-notify-support'.  Do not autoload.  Adapt all uses.
      (file-notify-supported-p): New defun.
      
      * autorevert.el (auto-revert-use-notify): Use
      `file-notify-supported-p' instead of `file-notify-support'.  Adapt
      docstring.
      (auto-revert-notify-add-watch): Use `file-notify-supported-p'.
      
      * net/tramp.el (tramp-file-name-for-operation):
      Add `file-notify-supported-p'.
      
      * net/tramp-sh.el (tramp-sh-handle-file-notify-supported-p):
      New defun.
      (tramp-sh-file-name-handler-alist): Add it as handler for
      `file-notify-supported-p '.
      
      * net/tramp-adb.el (tramp-adb-file-name-handler-alist):
      * net/tramp-gvfs.el (tramp-gvfs-file-name-handler-alist):
      * net/tramp-smb.el (tramp-smb-file-name-handler-alist):
      Add `ignore' as handler for `file-notify-*' functions.
      e06ec67f
  5. 21 Jan, 2013 1 commit
    • Michael Albinus's avatar
      Improve XEmacs compatibility. · a36e2d26
      Michael Albinus authored
      * net/tramp.el (tramp-replace-environment-variables): Make it a defun.
      
      * net/tramp-adb.el (top): Require `time-date'.
      (tramp-adb-ls-output-time-less-p): Use `tramp-time-less-p'.
      (tramp-adb-handle-copy-file, tramp-adb-handle-rename-file): Use
      `tramp-file-name-handler'.
      (tramp-adb-maybe-open-connection): Use
      `tramp-compat-set-process-query-on-exit-flag'.
      
      * net/tramp-sh.el (tramp-sh-handle-file-acl): Use
      `tramp-compat-funcall'.
      
      * net/tramp-smb.el (tramp-smb-handle-file-acl): Use `looking-at' and
      `tramp-compat-funcall'.
      a36e2d26
  6. 02 Jan, 2013 1 commit
  7. 01 Jan, 2013 1 commit
  8. 30 Dec, 2012 1 commit
  9. 17 Dec, 2012 1 commit
    • Michael Albinus's avatar
      Add support for preserving ACL entries of files. · 53b6a8b1
      Michael Albinus authored
      * net/tramp.el (tramp-file-name-for-operation): Add `file-acl' and
      `set-file-acl' handlers.
      
      * net/tramp-adb.el (tramp-adb-handle-copy-file): Handle
      PRESERVE-EXTENDED-ATTRIBUTES.
      
      * net/tramp-compat.el (tramp-compat-copy-file): Handle
      PRESERVE-EXTENDED-ATTRIBUTES.
      
      * net/tramp-gvfs.el (tramp-gvfs-file-name-handler-alist): Add
      `file-acl' and `set-file-acl' handlers.
      (tramp-gvfs-handle-copy-file): Handle
      PRESERVE-EXTENDED-ATTRIBUTES.
      (tramp-gvfs-handle-file-acl, tramp-gvfs-handle-set-file-acl): New
      defuns.
      
      * net/tramp-sh.el (tramp-sh-file-name-handler-alist): Add
      `file-acl' and `set-file-acl' handlers.
      (tramp-remote-acl-p, tramp-sh-handle-file-acl)
      (tramp-sh-handle-set-file-acl): New defuns.
      (tramp-sh-handle-copy-file, tramp-do-copy-or-rename-file): Handle
      PRESERVE-EXTENDED-ATTRIBUTES.
      
      * net/tramp-smb.el (tramp-smb-file-name-handler-alist): Add
      `file-acl' and `set-file-acl' handlers.
      (tramp-smb-handle-copy-file): Handle PRESERVE-EXTENDED-ATTRIBUTES.
      53b6a8b1
  10. 14 Dec, 2012 1 commit
  11. 23 Oct, 2012 1 commit
  12. 09 Oct, 2012 1 commit
    • Michael Albinus's avatar
      * net/tramp.el (tramp-debug-message): Remove · 1d51f99c
      Michael Albinus authored
      "tramp-with-progress-reporter" from regexp of ignored functions.
      (with-tramp-progress-reporter): Rename from
      `tramp-with-progress-reporter'.
      (with-tramp-file-property, with-tramp-connection-property): Move
      from tramp-cache.el, rename from `with-file-property' and
      `with-connection-property', respectively.
      
      * net/tramp-cache.el: Remove `with-file-property' and
      `with-connection-property'.
      
      * net/tramp.el:
      * net/tramp-gvfs.el:
      * net/tramp-sh.el:
      * net/tramp-smb.el: Adapt callees.
      
      * net/trampver.el: Update release number.
      1d51f99c
  13. 15 Aug, 2012 1 commit
  14. 11 Jun, 2012 1 commit
    • Michael Albinus's avatar
      Sync with Tramp 2.2.6-pre. · 2fe4b125
      Michael Albinus authored
      * net/tramp-cache.el (tramp-dump-connection-properties): Let-bind
        `print-length' and `print-level' to nil, in order to avoid
        truncation.  Reported by Christopher Schmidt
        <christopher@ristopher.com>.
      
      * net/tramp-cmds.el (tramp-cleanup-connection): Delete also
      process.
      
      * net/tramp-compat.el (tramp-compat-condition-case-unless-debug):
      New defmacro.
      (tramp-compat-copy-directory): Add optional argument
      COPY-CONTENTS.  It is not handled yet.
      
      * net/tramp-ftp.el (tramp-disable-ange-ftp): Fix docstring.
      (tramp-ftp-file-name-p): Simplify.
      
      * net/tramp-gvfs.el (tramp-gvfs-handle-expand-file-name):
      * net/tramp-gw.el (tramp-gw-open-connection): Add hop to
      connection vector.
      
      * net/tramp-sh.el (tramp-copy-size-limit): Fix docstring.
      (tramp-methods): Do not use `tramp-password-end-of-line'.
      (tramp-completion-function-alist-putty): Handle
      UNIX case.
      (tramp-remote-path): Add "/opt/bin", "/opt/sbin"
      and "/opt/local/bin".
      (tramp-do-file-attributes-with-stat)
      (tramp-do-directory-files-and-attributes-with-stat)
      Return uid and gid as real numbers.  They could run out of
      integer range on cygwin.
      (tramp-do-copy-or-rename-file-out-of-band): Better
      trace format.
      (tramp-sh-handle-expand-file-name): Handle hops.
      (tramp-open-connection-setup-interactive-shell):
      Use `tramp-cleanup'.  Move check for busyboxes ...
      (tramp-find-shell): ... here.  Simplify
      implementation.  Set "remote-shell" property also for alternative
      shells.
      (tramp-remote-coding-commands): Check "test -c
      /dev/stdout".  If failing, a regular file would be written
      otherwise.  Reported by
      Dmitry Kurochkin <dmitry.kurochkin@gmail.com>.
      (tramp-find-inline-encoding): Cache the coding
      commands in the process cache.  Apply test command on the remote
      side, if defined.
      (tramp-find-inline-compress): Cache the compress
      commands in the process cache.
      (tramp-compute-multi-hops): Save
      `tramp-default-proxies-alist'
      when requested.  Handle hops.
      (tramp-current-connection): New defvar.
      (tramp-maybe-open-connection): Use
      `tramp-cleanup'.  Throw
      `suppress', if there was a failed connection
      shortly before.  Handle user interrupt.  (Bug#10187)
      (tramp-get-inline-compress,
      tramp-get-inline-coding): Read
      connection properties from the process cache.
      
      * net/tramp-smb.el (tramp-smb-server-version)
      (tramp-smb-wrong-passwd-regexp,
      tramp-smb-actions-with-tar): New defconsts.
      (tramp-smb-prompt): Extend for powershell prompt.
      (tramp-smb-file-name-handler-alist): Add handlers for
      `process-file', `shell-command' and
      `start-file-process'.
      (tramp-smb-winexe-program, tramp-smb-winexe-shell-command)
      (tramp-smb-winexe-shell-command-switch): New
      defcustoms.
      (tramp-smb-file-name-p): Simplify.
      (tramp-smb-action-with-tar,
      tramp-smb-handle-process-file)
      (tramp-smb-kill-winexe-function, tramp-smb-call-winexe)
      (tramp-smb-shell-quote-argument): New defuns.
      (tramp-smb-handle-copy-directory): Add
      COPY-CONTENTS argument.
      Implement using "tar".  By this, time-stamps are
      preserved.
      (tramp-smb-handle-copy-file): Handle also the case
      of directories.
      (tramp-smb-do-file-attributes-with-stat)
      (tramp-smb-get-file-entries,
      tramp-smb-get-cifs-capabilities): Use
      `tramp-get-connection-buffer').
      (tramp-smb-handle-rename-file): Use "rename", when source and
      target are on the same share.
      (tramp-smb-maybe-open-connection): Handle wrong passwords.  Use
      `tramp-smb-server-version'.
      (tramp-smb-wait-for-output): Remove prompt.
      
      * net/tramp.el (top): Require 'cl.
      (tramp-methods, tramp-rsh-end-of-line): Remove
      `tramp-password-end-of-line' from docstring.
      (tramp-save-ad-hoc-proxies): New defcustom.
      (tramp-completion-function-alist): Adapt docstring.
      (tramp-default-password-end-of-line): Remove defcustom.
      (tramp-shell-prompt-pattern): Allow "[]" style
      prompts.  (Bug#11065)
      (tramp-user-regexp, tramp-file-name-regexp-unified)
      (tramp-file-name-regexp-url): Extend regexp by hop
      separator.
      (tramp-postfix-hop-format,
      tramp-postfix-hop-regexp) 
      (tramp-remote-file-name-spec-regexp): New defconst.
      (tramp-file-name-structure): Extend structure for
      hops.
      (tramp-get-method-parameter): Move up.
      (tramp-file-name-p, tramp-dissect-file-name)
      (with-parsed-tramp-file-name): Handle hops.
      (tramp-file-name-hop): New defun.
      (tramp-make-tramp-file-name): New optional arg HOP.
      (tramp-message-show-progress-reporter-message):
      New defvar.
      (tramp-with-progress-reporter): Use it.  We cannot use
      `tramp-message-show-message' here, because this
      suppresses also error buffers.
      (tramp-error-with-buffer): Suppress buffer view, if
      `tramp-message-show-message' is nil.  Use
      `tramp-get-connection-buffer'.
      (tramp-cleanup): New defun.
      (tramp-rfn-eshadow-update-overlay): Let-bind
      `non-essential' to `t'.
      (tramp-file-name-handler): If `debug-on-error' is
      set, propagate an error unchanged.
      (tramp-completion-handle-file-name-all-completions):
      Handle hops.  Fix an error when called from ido.
      (tramp-completion-dissect-file-name): Use better
      local variable name.  Add hop to the vector.
      (tramp-handle-insert-file-contents): Use
      progress-reporter for the whole scenario.
      (tramp-action-password): Let-bind
      `enable-recursive-minibuffers' to `t'.
      (tramp-check-for-regexp): Simplify search.
      (tramp-enter-password): Remove it.  Move
      implementation ...
      (tramp-action-password): ... here.
      (tramp-mode-string-to-int, tramp-local-host-p)
      (tramp-make-tramp-temp-file, tramp-read-passwd)
      (tramp-clear-passwd, tramp-time-less-p,
      tramp-time-diff): Set tramp-autoload cookie.
      
      * net/trampver.el: Update release number.
      
      * net/tramp.el (tramp-set-completion-function): Fix
      docstring.
      (tramp-parse-group, tramp-parse-file)
      (tramp-parse-shostkeys-sknownhosts): New defuns.
      (tramp-parse-rhosts, tramp-parse-rhosts-group, tramp-parse-shosts)
      (tramp-parse-shosts-group, tramp-parse-sconfig)
      (tramp-parse-sconfig-group, tramp-parse-shostkeys)
      (tramp-parse-sknownhosts, tramp-parse-hosts)
      (tramp-parse-hosts-group, tramp-parse-passwd,
      tramp-parse-netrc): Use them.
      (tramp-parse-passwd-group, tramp-parse-netrc-group)
      (tramp-parse-putty-group): Don't narrow.
      (tramp-parse-putty): Make a loop.
      (tramp-file-name-handler): Catch the `suppress'
      signal.
      2fe4b125
  15. 09 Apr, 2012 1 commit
  16. 25 Feb, 2012 1 commit
  17. 11 Jan, 2012 1 commit
  18. 05 Jan, 2012 1 commit
  19. 31 Dec, 2011 1 commit
  20. 20 Nov, 2011 1 commit
  21. 18 Sep, 2011 1 commit
    • Michael Albinus's avatar
      * net/tramp.el (top): Don't require 'shell. · 710dec63
      Michael Albinus authored
      (tramp-methods): Fix docstring.
      (tramp-get-remote-tmpdir): New defun, moved from tramp-sh.el.
      Return complete remote file name.  Handle "smb" case.  Use
      `tramp-tmpdir', if defined for the respective method.
      (tramp-make-tramp-temp-file): Adapt call of `tramp-get-remote-tmpdir'.
      
      * net/tramp-compat.el (top): Require 'shell.
      
      * net/tramp-sh.el (tramp-do-copy-or-rename-file-out-of-band)
      (tramp-maybe-open-connection): Use `tramp-file-name-real-host' for
      `tramp-current-host'.
      (tramp-get-remote-tmpdir): Remove.
      
      * net/tramp-smb.el (tramp-methods): Add `tramp-remote-shell' and
      `tramp-tmpdir' entries.
      (tramp-smb-errors): Add "NT_STATUS_IMAGE_ALREADY_LOADED".
      (tramp-smb-handle-file-attributes): Ignore errors.
      (tramp-smb-wait-for-output): Check also for process end.
      710dec63
  22. 04 Jun, 2011 1 commit
    • Michael Albinus's avatar
      * net/tramp.el (tramp-set-completion-function, tramp-parse-rhosts) · f8f91c2b
      Michael Albinus authored
      (tramp-parse-shosts, tramp-parse-sconfig, tramp-parse-shostkeys)
      (tramp-parse-hosts, tramp-parse-passwd, tramp-parse-netrc)
      (tramp-parse-putty):
      * net/tramp-sh.el (tramp-completion-function-alist-rsh)
      (tramp-completion-function-alist-ssh)
      (tramp-completion-function-alist-telnet)
      (tramp-completion-function-alist-su)
      (tramp-completion-function-alist-putty): Set `tramp-autoload'
      cookie.
      
      * net/tramp-ftp.el:
      * net/tramp-sh.el:
      * net/tramp-smb.el: Set `tramp-autoload' cookie, and eval after
      load "tramp.el" `tramp-set-completion-function'.
      f8f91c2b
  23. 02 Jun, 2011 1 commit
  24. 25 Apr, 2011 2 commits
    • Michael Albinus's avatar
      * net/tramp.el (tramp-process-actions): Add POS argument. Delete · bfd31217
      Michael Albinus authored
      region between POS and (pos).
      
      * net/tramp-sh.el (tramp-do-copy-or-rename-file-out-of-band): Use
      `nil' position in `tramp-process-actions' call.
      (tramp-maybe-open-connection): Call `tramp-process-actions' with pos.
      
      * net/tramp-smb.el (tramp-smb-maybe-open-connection): Use `nil'
      position in `tramp-process-actions' call.
      
      * net/trampver.el: Update release number.
      bfd31217
    • Michael Albinus's avatar
      * net/tramp.el (tramp-process-actions): Add POS argument. Delete · 46155cd3
      Michael Albinus authored
      region between POS and (pos).
      (tramp-do-copy-or-rename-file-out-of-band): Use `nil' position in
      `tramp-process-actions' call.
      (tramp-maybe-open-connection): Call `tramp-process-actions' with pos.
      
      * net/tramp-smb.el (tramp-smb-maybe-open-connection): Use `nil'
      position in `tramp-process-actions' call.
      46155cd3
  25. 14 Apr, 2011 1 commit
  26. 05 Feb, 2011 1 commit
  27. 03 Feb, 2011 1 commit
  28. 25 Jan, 2011 1 commit
  29. 02 Jan, 2011 1 commit
  30. 30 Dec, 2010 1 commit
    • Michael Albinus's avatar
      * net/tramp.el (tramp-default-method-alist) · b191c9d9
      Michael Albinus authored
      (tramp-default-user-alist)
      (tramp-local-host-regexp, tramp-prefix-domain-format)
      (tramp-prefix-domain-regexp): Set tramp-autoload cookie.
      
      * net/tramp-ftp.el:
      * net/tramp-gvfs.el:
      * net/tramp-gw.el:
      * net/tramp-imap.el:
      * net/tramp-sh.el:
      * net/tramp-smb.el: Add tramp-autoload cookie for initialisation
      code of `tramp-default-method-alist' and `tramp-default-user-alist'.
      b191c9d9
  31. 02 Dec, 2010 1 commit
    • Michael Albinus's avatar
      * net/tramp.el (tramp-local-host-regexp): Add "localhost6". · 66feec8b
      Michael Albinus authored
      (tramp-file-name-port): Check also for `tramp-default-port'.
      (tramp-get-connection-name): New defun.
      (tramp-get-connection-process): Use it.
      (tramp-debug-message): Extend function exclude list.
      (tramp-drop-volume-letter): Fix doc string.
      
      * net/tramp-cmds.el: Remove solved todo item.
      
      * net/tramp-efs.el:
      * net/tramp-ftp.el:
      * net/tramp-gvfs.el:
      * net/tramp-gw.el:
      * net/tramp-imap.el:
      * net/tramp-smb.el: Fix regexps added to `tramp-default-method-alist'
      and `tramp-default-user-alist', respectively.
      
      * net/tramp-gw.el (tramp-gw-open-connection): Use
      `tramp-get-connection-name' and `tramp-get-connection-buffer'.
      
      * net/tramp-imap.el (tramp-imap-make-iht): Use just
      `tramp-file-name-port'.
      
      * net/tramp-sh.el (tramp-methods): Add recursive options to "pscp"
      and "psftp".  Exchange "%k" marker with options.
      (tramp-do-copy-or-rename-file, tramp-sh-handle-file-local-copy):
      Compute size of link target.
      (tramp-do-copy-or-rename-file-out-of-band). Move setting of
      `tramp-current-*' up due to gateway methods.  Optimze computing of
      copy arguments.  Use `tramp-get-connection-name' and
      `tramp-get-connection-buffer'.  Improve debug messages.
      (tramp-compute-multi-hops): Remove port determination.
      (tramp-maybe-open-connection): Use `tramp-get-connection-name'.
      
      * net/trampver.el: Update release number.
      66feec8b
  32. 13 Nov, 2010 1 commit
    • Michael Albinus's avatar
      * net/tramp-compat.el (tramp-compat-line-beginning-position) · 6e060cee
      Michael Albinus authored
      (tramp-compat-line-end-position): Remove them.
      
      * net/tramp.el (tramp-parse-rhosts-group)
      (tramp-parse-shosts-group, tramp-parse-sconfig-group)
      (tramp-parse-hosts-group, tramp-parse-passwd-group)
      (tramp-parse-netrc-group, tramp-parse-putty-group)
      * net/tramp-cmds.el (tramp-append-tramp-buffers)
      * net/tramp-sh.el (tramp-do-file-attributes-with-ls)
      (tramp-sh-handle-file-selinux-context)
      (tramp-sh-handle-file-name-all-completions)
      (tramp-sh-handle-insert-directory)
      (tramp-sh-handle-expand-file-name, tramp-find-executable)
      (tramp-wait-for-output, tramp-send-command-and-read)
      * net/tramp-smb.el (tramp-smb-read-file-entry)
      (tramp-smb-get-cifs-capabilities): Use `point-at-eol'.
      
      * net/tramp-sh.el (tramp-sh-handle-insert-directory) Use
      `point-at-bol'.
      (tramp-remote-coding-commands): Add an alternative using "base64
      -d -i".  This is needed for older base64 versions from GNU
      coreutils.  Reported by Klaus Reichl
      <Klaus.Reichl@thalesgroup.com>.
      6e060cee
  33. 05 Oct, 2010 1 commit
    • Michael Albinus's avatar
      * net/tramp.el (tramp-handle-directory-files-and-attributes) · bd8fadca
      Michael Albinus authored
      (tramp-handle-file-exists-p, tramp-handle-file-newer-than-file-p):
      New defuns, taken from tramp-smb.el.
      (tramp-coding-system-change-eol-conversion)
      (tramp-set-process-query-on-exit-flag): Removed.
      
      * net/tramp-compat.el (top): Do not check for byte-compiler
      objects.
      (tramp-compat-coding-system-change-eol-conversion)
      (tramp-compat-set-process-query-on-exit-flag): New defuns, taken
      from tramp.el.
      
      * net/tramp-gvfs.el:
      * net/tramp-gw.el: Replace `tramp-set-process-query-on-exit-flag'
      by `tramp-compat-set-process-query-on-exit-flag'.
      
      * net/tramp-imap.el (tramp-imap-file-name-handler-alist): Use
      `tramp-handle-directory-files-and-attributes',
      `tramp-handle-file-exists-p' and
      `tramp-handle-file-newer-than-file-p'.
      (tramp-imap-handle-file-exists-p)
      (tramp-imap-handle-file-executable-p)
      (tramp-imap-handle-file-readable-p)
      (tramp-imap-handle-directory-files-and-attributes)
      (tramp-imap-handle-file-newer-than-file-p): Removed.
      
      * net/tramp-sh.el: Replace `tramp-set-process-query-on-exit-flag'
      by `tramp-compat-set-process-query-on-exit-flag' and
      `tramp-coding-system-change-eol-conversion' by
      `tramp-compat-coding-system-change-eol-conversion'.
      
      * net/tramp-smb.el (tramp-smb-file-name-handler-alist): Use
      `tramp-handle-directory-files-and-attributes',
      `tramp-handle-file-exists-p' and
      `tramp-handle-file-newer-than-file-p'.
      (tramp-smb-handle-directory-files-and-attributes)
      (tramp-smb-handle-file-exists-p)
      (tramp-smb-handle-file-newer-than-file-p): Removed.
      (tramp-smb-maybe-open-connection): Replace
      `tramp-set-process-query-on-exit-flag' by
      `tramp-compat-set-process-query-on-exit-flag'.
      bd8fadca
  34. 04 Oct, 2010 1 commit
    • Michael Albinus's avatar
      Continue reorganization of load dependencies. (Bug#7156) · 4a93e698
      Michael Albinus authored
      * net/tramp.el (tramp-handle-file-local-copy-hook)
      (tramp-delete-temp-file-function): Move down.
      (tramp-exists-file-name-handler): Move up.
      (tramp-register-file-name-handlers): Simplify autoload.
      (tramp-handle-write-region-hook, tramp-handle-directory-file-name)
      (tramp-handle-directory-files, tramp-handle-dired-uncache)
      (tramp-handle-file-modes, tramp-handle-file-name-as-directory)
      (tramp-handle-file-name-completion)
      (tramp-handle-file-name-directory)
      (tramp-handle-file-name-nondirectory, tramp-handle-file-regular-p)
      (tramp-handle-file-remote-p, tramp-handle-file-symlink-p)
      (tramp-handle-find-backup-file-name)
      (tramp-handle-insert-file-contents, tramp-handle-load)
      (tramp-handle-substitute-in-file-name)
      (tramp-handle-unhandled-file-name-directory)
      (tramp-mode-string-to-int, tramp-local-host-p)
      (tramp-make-tramp-temp-file): Moved from tramp-sh.el.
      
      * net/tramp-gvfs.el (top):
      * net/tramp-smb.el (top): Do not require 'tramp-sh.
      
      * net/tramp-sh.el (all): Move several objects to tramp.el, see
      there.  Rename `tramp-handle-*' to `tramp-sh-handle-*'.
      4a93e698
  35. 13 Sep, 2010 1 commit
    • Michael Albinus's avatar
      Major code cleanup. Split tramp.el into tramp.el and tramp-sh.el. · 03c1ad43
      Michael Albinus authored
      * Makefile.in (TRAMP_SRC): Remove tramp-fish.el.  Add tramp-sh.el.
      
      * net/tramp.el (top): Don't show loading message.  Require just
      'tramp-compat, everything else is required there.  Use
      `ignore-errors' where appropriate.
      (tramp-inline-compress-start-size, tramp-copy-size-limit)
      (tramp-terminal-type, tramp-end-of-output)
      (tramp-initial-end-of-output, tramp-completion-function-alist-rsh)
      (tramp-completion-function-alist-ssh)
      (tramp-completion-function-alist-telnet)
      (tramp-completion-function-alist-su)
      (tramp-completion-function-alist-putty, tramp-remote-path)
      (tramp-remote-process-environment, tramp-sh-extra-args)
      (tramp-actions-before-shell, tramp-uudecode)
      (tramp-perl-file-truename, tramp-perl-file-name-all-completions)
      (tramp-perl-file-attributes)
      (tramp-perl-directory-files-and-attributes)
      (tramp-perl-encode-with-module, tramp-perl-decode-with-module)
      (tramp-perl-encode, tramp-perl-decode)
      (tramp-vc-registered-read-file-names, tramp-file-mode-type-map)
      (tramp-file-name-handler-alist, tramp-make-tramp-temp-file)
      (tramp-handle-make-symbolic-link, tramp-handle-load)
      (tramp-handle-file-name-as-directory)
      (tramp-handle-file-name-directory)
      (tramp-handle-file-name-nondirectory, tramp-handle-file-truename)
      (tramp-handle-file-exists-p, tramp-handle-file-attributes)
      (tramp-do-file-attributes-with-ls)
      (tramp-do-file-attributes-with-perl)
      (tramp-do-file-attributes-with-stat)
      (tramp-handle-set-visited-file-modtime)
      (tramp-handle-verify-visited-file-modtime)
      (tramp-handle-set-file-modes, tramp-handle-set-file-times)
      (tramp-set-file-uid-gid, tramp-remote-selinux-p)
      (tramp-handle-file-selinux-context)
      (tramp-handle-set-file-selinux-context)
      (tramp-handle-file-executable-p, tramp-handle-file-readable-p)
      (tramp-handle-file-newer-than-file-p, tramp-handle-file-modes)
      (tramp-handle-file-directory-p, tramp-handle-file-regular-p)
      (tramp-handle-file-symlink-p, tramp-handle-file-writable-p)
      (tramp-handle-file-ownership-preserved-p)
      (tramp-handle-directory-file-name, tramp-handle-directory-files)
      (tramp-handle-directory-files-and-attributes)
      (tramp-do-directory-files-and-attributes-with-perl)
      (tramp-do-directory-files-and-attributes-with-stat)
      (tramp-handle-file-name-all-completions)
      (tramp-handle-file-name-completion, tramp-handle-add-name-to-file)
      (tramp-handle-copy-file, tramp-handle-copy-directory)
      (tramp-handle-rename-file, tramp-do-copy-or-rename-file)
      (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-make-directory, tramp-handle-delete-directory)
      (tramp-handle-delete-file)
      (tramp-handle-dired-recursive-delete-directory)
      (tramp-handle-dired-compress-file, tramp-handle-dired-uncache)
      (tramp-handle-insert-directory)
      (tramp-handle-unhandled-file-name-directory)
      (tramp-handle-expand-file-name)
      (tramp-handle-substitute-in-file-name)
      (tramp-handle-executable-find, tramp-process-sentinel)
      (tramp-handle-start-file-process, tramp-handle-process-file)
      (tramp-handle-call-process-region, tramp-handle-shell-command)
      (tramp-handle-file-local-copy, tramp-handle-file-remote-p)
      (tramp-handle-insert-file-contents)
      (tramp-handle-insert-file-contents-literally)
      (tramp-handle-find-backup-file-name)
      (tramp-handle-make-auto-save-file-name, tramp-handle-write-region)
      (tramp-vc-registered-file-names, tramp-handle-vc-registered)
      (tramp-sh-file-name-handler, tramp-vc-file-name-handler)
      (tramp-maybe-send-script, tramp-set-auto-save, tramp-run-test)
      (tramp-run-test2, tramp-find-executable, tramp-set-remote-path)
      (tramp-find-file-exists-command, tramp-open-shell)
      (tramp-find-shell, tramp-barf-if-no-shell-prompt)
      (tramp-open-connection-setup-interactive-shell)
      (tramp-local-coding-commands, tramp-remote-coding-commands)
      (tramp-find-inline-encoding, tramp-call-local-coding-command)
      (tramp-inline-compress-commands, tramp-find-inline-compress)
      (tramp-compute-multi-hops, tramp-maybe-open-connection)
      (tramp-send-command , tramp-wait-for-output)
      (tramp-send-command-and-check, tramp-barf-unless-okay)
      (tramp-send-command-and-read, tramp-mode-string-to-int)
      (tramp-convert-file-attributes, tramp-check-cached-permissions)
      (tramp-file-mode-from-int, tramp-file-mode-permissions)
      (tramp-shell-case-fold, tramp-make-copy-program-file-name)
      (tramp-method-out-of-band-p, tramp-local-host-p)
      (tramp-get-remote-path, tramp-get-remote-tmpdir)
      (tramp-get-ls-command, tramp-get-ls-command-with-dired)
      (tramp-get-test-command, tramp-get-test-nt-command)
      (tramp-get-file-exists-command, tramp-get-remote-ln)
      (tramp-get-remote-perl, tramp-get-remote-stat)
      (tramp-get-remote-readlink, tramp-get-remote-trash)
      (tramp-get-remote-id, tramp-get-remote-uid, tramp-get-remote-gid)
      (tramp-get-local-uid, tramp-get-local-gid)
      (tramp-get-inline-compress, tramp-get-inline-coding, ): Move to
      tramp-sh.el.
      (tramp-methods, tramp-default-method-alist)
      (tramp-default-user-alist, tramp-foreign-file-name-handler-alist):
      Move initialization to tramp-sh.el.
      (tramp-temp-name-prefix): Make it a defconst.
      (tramp-dissect-file-name): Don't check anymore for multi-hop
      methods.
      (tramp-debug-outline-regexp): Add a docstring.
      (tramp-debug-outline-level): Renamed from `tramp-outline-level'.
      (tramp-get-debug-buffer): Use it.
      
      * net/tramp-cache.el (top): Set tramp-autoload cookie for
      initialization forms.
      (tramp-set-connection-property): Don't protect `tramp-message'
      call, it isn't necessary any longer.
      (tramp-dump-connection-properties): Use `ignore-errors'.
      
      * net/tramp-compat.el (top): Require 'advice, 'format-spec,
      'password-cache and 'auth-source.
      
      * net/tramp-gvfs.el (top):
      * net/tramp-smb.el (top): Require 'tramp-sh.
      
      * net/tramp-gw.el (tramp-gw-open-network-stream): Use `ignore-errors'.
      
      * net/tramp-sh.el: New file, derived from tramp.el.
      (top): Initialize `tramp-methods', `tramp-default-method-alist',
      `tramp-default-user-alist', tramp-foreign-file-name-handler-alist.
      Remove "scp1_old", "scp2_old", "ssh1_old", "ssh2_old".  Use
      `ignore-errors' where appropriate.
      (tramp-sh-file-name-handler-alist): Renamed from
      `tramp-file-name-handler-alist'.
      (tramp-send-command-and-check): Return t or nil.  Remove all
      `zerop' checks, where called.
      (tramp-handle-set-file-modes)
      (tramp-do-copy-or-rename-file-directly)
      (tramp-handle-delete-directory, tramp-handle-delete-file)
      (tramp-maybe-send-script, ): Use `tramp-barf-unless-okay'.
      (tramp-sh-file-name-handler, tramp-send-command-and-check)
      (tramp-get-remote-ln): Set tramp-autoload cookie.
      
      * net/tramp-fish.el: Remove file.
      03c1ad43
  36. 08 Sep, 2010 1 commit
    • Michael Albinus's avatar
      Migrate to Tramp 2.2. Rearrange load dependencies. · 0f34aa77
      Michael Albinus authored
      (Bug#1529, Bug#5448, Bug#5705)
      
      * Makefile.in (TRAMP_DIR, TRAMP_SRC): New variables.
      ($(TRAMP_DIR)/tramp-loaddefs.el): New target.
      (LOADDEFS): Add $(lisp)/net/tramp-loaddefs.el.
      
      * net/tramp.el (top): Remove all other tramp-* loads except
      tramp-compat.el.  Remove all changes to tramp-unload-hook for
      other tramp-* packages.  Rearrange defun order.  Change calls of
      `tramp-compat-call-process', `tramp-compat-decimal-to-octal',
      `tramp-compat-octal-to-decimal' to new function names.
      (tramp-terminal-type, tramp-initial-end-of-output)
      (tramp-methods, tramp-foreign-file-name-handler-alist)
      (tramp-tramp-file-p, tramp-completion-mode-p)
      (tramp-send-command-and-check, tramp-get-remote-path)
      (tramp-get-remote-tmpdir, tramp-get-remote-ln)
      (tramp-shell-quote-argument): Set tramp-autoload cookie.
      (with-file-property, with-connection-property): Move to
      tramp-cache.el.
      (tramp-local-call-process, tramp-decimal-to-octal)
      (tramp-octal-to-decimal): Move to tramp-compat.el.
      (tramp-handle-shell-command): Do not require 'shell.
      (tramp-compute-multi-hops): No special handling for tramp-gw-*
      symbols.
      (tramp-unload-tramp): Do not call `tramp-unload-file-name-handlers'.
      
      * net/tramp-cache.el (top): Require 'tramp.  Add to
      `tramp-unload-hook'.
      (tramp-cache-data, tramp-get-file-property)
      (tramp-set-file-property, tramp-flush-file-property)
      (tramp-flush-directory-property, tramp-get-connection-property)
      (tramp-set-connection-property, tramp-flush-connection-property)
      (tramp-cache-print, tramp-list-connections): Set tramp-autoload
      cookie.
      (with-file-property, with-connection-property): New defuns, moved
      from tramp.el.
      (tramp-flush-file-function): Use `with-parsed-tramp-file-name'
      macro.
      
      * net/tramp-cmds.el (top): Add to `tramp-unload-hook'.
      (tramp-version): Set tramp-autoload cookie.
      
      * net/tramp-compat.el (top): Require 'tramp-loaddefs.  Remove all
      changes to tramp-unload-hook for other tramp-* packages.  Add to
      `tramp-unload-hook'.
      (tramp-compat-decimal-to-octal, tramp-compat-octal-to-decimal)
      (tramp-compat-call-process): New defuns, moved from tramp.el.
      
      * net/tramp-fish.el (top) Require just 'tramp.  Add objects to
      `tramp-methods' and `tramp-foreign-file-name-handler-alist'.  Add
      to `tramp-unload-hook'.  Change call of
      `tramp-compat-decimal-to-octal' to new function name.
      (tramp-fish-method): Make it a defconst.
      (tramp-fish-file-name-p): Make it a defsubst.
      (tramp-fish-method, tramp-fish-file-name-handler)
      (tramp-fish-file-name-p): Set tramp-autoload cookie.
      
      * net/tramp-ftp.el (top) Add objects to `tramp-methods' and
      `tramp-foreign-file-name-handler-alist'.  Add to
      `tramp-unload-hook'.
      (tramp-ftp-method): Make it a defconst.
      (tramp-ftp-file-name-p): Make it a defsubst.
      (tramp-ftp-method, tramp-ftp-file-name-handler)
      (tramp-ftp-file-name-p): Set tramp-autoload cookie.
      
      * net/tramp-gvfs.el (top) Add objects to `tramp-methods' and
      `tramp-foreign-file-name-handler-alist'.  Add to
      `tramp-unload-hook'.  Change checks, whether package can be
      loaded.
      (tramp-gvfs-file-name-p): Make it a defsubst.
      (tramp-gvfs-methods, tramp-gvfs-file-name-handler)
      (tramp-gvfs-file-name-p): Set tramp-autoload cookie.
      (tramp-gvfs-handle-file-directory-p): New defun.
      (tramp-gvfs-file-name-handler-alist): Use it.
      
      * net/tramp-gw.el (top) Add objects to `tramp-methods' and
      `tramp-foreign-file-name-handler-alist'.  Add to
      `tramp-unload-hook'.
      (tramp-gw-tunnel-method, tramp-gw-default-tunnel-port)
      (tramp-gw-socks-method, tramp-gw-default-socks-port): Make it a
      defconst.
      (tramp-gw-tunnel-method, tramp-gw-socks-method)
      (tramp-gw-open-connection): Set tramp-autoload cookie.
      
      * net/tramp-imap.el (top) Require just 'tramp.  Add objects to
      `tramp-methods' and `tramp-foreign-file-name-handler-alist'.  Add
      to `tramp-unload-hook'.  Change checks, whether package can be
      loaded.
      (tramp-imap-file-name-p): Make it a defsubst.
      (tramp-imap-method, tramp-imaps-method)
      (tramp-imap-file-name-handler)
      (tramp-imap-file-name-p): Set tramp-autoload cookie.
      
      * net/tramp-smb.el (top) Require just 'tramp.  Add objects to
      `tramp-methods' and `tramp-foreign-file-name-handler-alist'.  Add
      to `tramp-unload-hook'.  Change checks, whether package can be
      loaded.  Change call of `tramp-compat-decimal-to-octal' to new
      function name.
      (tramp-smb-tunnel-method): Make it a defconst.
      (tramp-smb-file-name-p): Make it a defsubst.
      (tramp-smb-method, tramp-smb-file-name-handler)
      (tramp-smb-file-name-p): Set tramp-autoload cookie.
      
      * net/tramp-uu.el (top) Add to `tramp-unload-hook'.
      (tramp-uuencode-region): Set tramp-autoload cookie.
      
      * net/trampver.el (top) Add to `tramp-unload-hook'.
      (tramp-version, tramp-bug-report-address): Set tramp-autoload
      cookie.  Update release number.
      0f34aa77
  37. 29 Aug, 2010 1 commit
  38. 26 Aug, 2010 1 commit
    • Michael Albinus's avatar
      Sync with Tramp 2.1.19. · 20b8ac83
      Michael Albinus authored
      * net/tramp-cmds.el (tramp-cleanup-all-connections)
      (tramp-reporter-dump-variable, tramp-load-report-modules)
      (tramp-append-tramp-buffers): Use `tramp-compat-funcall'.
      (tramp-bug): Recommend setting of `tramp-verbose' to 9.
      
      * net/tramp-compat.el (top): Do not autoload
      `tramp-handle-file-remote-p'.  Load tramp-util.el and tramp-vc.el
      only when `start-file-process' is not bound.
      (byte-compile-not-obsolete-vars): Define if not bound.
      (tramp-compat-funcall): New defmacro.
      (tramp-compat-line-beginning-position)
      (tramp-compat-line-end-position)
      (tramp-compat-temporary-file-directory)
      (tramp-compat-make-temp-file, tramp-compat-file-attributes)
      (tramp-compat-copy-file, tramp-compat-copy-directory)
      (tramp-compat-delete-file, tramp-compat-delete-directory)
      (tramp-compat-number-sequence, tramp-compat-process-running-p):
      Use it.
      (tramp-advice-file-expand-wildcards): Do not use
      `tramp-handle-file-remote-p'.
      (tramp-compat-make-temp-file): Simplify fallback implementation.
      (tramp-compat-copy-file): Add PRESERVE-SELINUX-CONTEXT.
      (tramp-compat-copy-tree): Remove function.
      (tramp-compat-delete-file): New defun.
      (tramp-compat-delete-directory): Provide implementation for older
      Emacsen.
      (tramp-compat-file-attributes): Handle only
      `wrong-number-of-arguments' error.
      
      * net/tramp-fish.el (tramp-fish-handle-copy-file): Add
      PRESERVE_SELINUX_CONTEXT.
      (tramp-fish-handle-delete-file): Add TRASH arg.
      (tramp-fish-handle-directory-files-and-attributes):
      Do not use `tramp-fish-handle-file-attributes.
      (tramp-fish-handle-file-local-copy)
      (tramp-fish-handle-insert-file-contents)
      (tramp-fish-maybe-open-connection): Use `with-progress-reporter'.
      
      * net/tramp-gvfs.el (top): Require url-util.
      (tramp-gvfs-mount-point): Remove.
      (tramp-gvfs-file-name-handler-alist): Add `file-selinux-context'
      and `set-file-selinux-context'.
      (tramp-gvfs-stringify-dbus-message, tramp-gvfs-send-command)
      (tramp-gvfs-handle-file-selinux-context)
      (tramp-gvfs-handle-set-file-selinux-context): New defuns.
      (with-tramp-dbus-call-method): Format trace message.
      (tramp-gvfs-handle-copy-file): Handle PRESERVE-SELINUX-CONTEXT.
      (tramp-gvfs-handle-copy-file, tramp-gvfs-handle-rename-file):
      Implement backup call, when operation on local files fails.  Use
      progress reporter.  Flush properties of changed files.
      (tramp-gvfs-handle-delete-file): Add TRASH arg.  Use
      `tramp-compat-delete-file'.
      (tramp-gvfs-handle-expand-file-name): Expand "~/".
      (tramp-gvfs-handle-make-directory): Make more traces.
      (tramp-gvfs-handle-write-region): Protect deleting tmpfile.
      (tramp-gvfs-url-file-name): Hexify file name in url.
      (tramp-gvfs-fuse-file-name): Take also prefix (like dav shares)
      into account for the resulting file name.
      (tramp-gvfs-handler-askquestion): Preserve current message, in
      order to let progress reporter continue afterwards.  (Bug#6257)
      Return dummy mountpoint, when the answer is "no".  See
      `tramp-gvfs-maybe-open-connection'.
      (tramp-gvfs-handler-mounted-unmounted)
      (tramp-gvfs-connection-mounted-p): Test also for new mountspec
      attribute "default_location".  Set "prefix" property.  Handle
      default-location.
      (tramp-gvfs-mount-spec): Return both prefix and mountspec.
      (tramp-gvfs-maybe-open-connection): Test, whether mountpoint
      exists.  Raise an error, if not (due to a corresponding answer
      "no" in interactive questions, for example). Use
      `tramp-compat-funcall'.
      
      * net/tramp-imap.el (top): Autoload `epg-make-context'.
      (tramp-imap-handle-copy-file): Add PRESERVE-SELINUX-CONTEXT.
      (tramp-imap-do-copy-or-rename-file)
      (tramp-imap-handle-insert-file-contents)
      (tramp-imap-handle-file-local-copy): Use `with-progress-reporter'.
      (tramp-imap-handle-delete-file): Add TRASH arg.
      
      * net/tramp-smb.el (tramp-smb-handle-copy-file): Add
      PRESERVE-SELINUX-CONTEXT.
      (tramp-smb-handle-copy-file)
      (tramp-smb-handle-file-local-copy, tramp-smb-handle-rename-file)
      (tramp-smb-handle-write-region, tramp-smb-maybe-open-connection):
      Use `with-progress-reporter'.
      (tramp-smb-handle-delete-file): Add TRASH arg.
      
      * net/tramp.el (tramp-methods): Move hostname to the end in all
      ssh `tramp-login-args'.  Add `tramp-async-args' attribute where
      appropriate.
      (tramp-verbose): Describe verbose level 9.
      (tramp-completion-function-alist)
      (tramp-file-name-regexp, tramp-chunksize)
      (tramp-local-coding-commands, tramp-remote-coding-commands)
      (with-connection-property, tramp-completion-mode-p)
      (tramp-action-process-alive, tramp-action-out-of-band)
      (tramp-check-for-regexp, tramp-file-name-p, tramp-equal-remote)
      (tramp-exists-file-name-handler): Fix docstring.
      (tramp-remote-process-environment): Use `format' instead of
      `concat'.  Protect version string by apostroph.
      (tramp-shell-prompt-pattern): Do not use a shy group in case of
      XEmacs.
      (tramp-file-name-regexp-unified)
      (tramp-completion-file-name-regexp-unified): On W32 systems, do
      not regard the volume letter as remote filename.  (Bug#5447)
      (tramp-perl-file-attributes)
      (tramp-perl-directory-files-and-attributes): Don't pass "$3".
      (tramp-vc-registered-read-file-names): Read input as
      here-document, otherwise the command could exceed maximum length
      of command line.
      (tramp-file-name-handler-alist): Add `file-selinux-context' and
      `set-file-selinux-context'.
      (tramp-debug-message): Add `tramp-compat-funcall' to ignored
      backtrace functions.
      (tramp-error-with-buffer): Don't show the connection buffer when
      we are in completion mode.
      (tramp-progress-reporter-update, tramp-remote-selinux-p)
      (tramp-handle-file-selinux-context)
      (tramp-handle-set-file-selinux-context, tramp-process-sentinel)
      (tramp-connectable-p, tramp-open-shell, tramp-get-remote-trash):
      New defuns.
      (with-progress-reporter): New defmacro.
      (tramp-debug-outline-regexp): New defconst.
      (top, tramp-rfn-eshadow-setup-minibuffer)
      (tramp-rfn-eshadow-update-overlay, tramp-handle-set-file-times)
      (tramp-handle-dired-compress-file, tramp-handle-shell-command)
      (tramp-completion-mode-p, tramp-check-for-regexp)
      (tramp-open-connection-setup-interactive-shell)
      (tramp-compute-multi-hops, tramp-read-passwd, tramp-clear-passwd)
      (tramp-time-diff, tramp-coding-system-change-eol-conversion)
      (tramp-set-process-query-on-exit-flag, tramp-unload-tramp):
      Use `tramp-compat-funcall'.
      (tramp-handle-make-symbolic-link): Flush file properties.
      (tramp-handle-load, tramp-handle-file-local-copy)
      (tramp-handle-insert-file-contents, tramp-handle-write-region)
      (tramp-handle-vc-registered, tramp-maybe-send-script)
      (tramp-find-shell): Use `with-progress-reporter'.
      (tramp-do-file-attributes-with-stat): Add space in format string,
      in order to work around a bug in pdksh.  Reported by Gilles Pion
      <gpion@lfdj.com>.
      (tramp-handle-verify-visited-file-modtime): Do not send a command
      when the connection is not established.
      (tramp-handle-set-file-times): Simplify the check for utc.
      (tramp-handle-directory-files-and-attributes)
      (tramp-get-remote-path): Use `copy-tree'.
      (tramp-completion-handle-file-name-all-completions): Ensure, that
      non remote files are still checked.  Oops.
      (tramp-handle-copy-file, tramp-do-copy-or-rename-file): Handle
      PRESERVE-SELINUX-CONTEXT.
      (tramp-do-copy-or-rename-file): Add progress reporter.
      (tramp-do-copy-or-rename-file-directly): Do not use
      `tramp-handle-file-remote-p'.
      (tramp-do-copy-or-rename-file-out-of-band):
      Use `tramp-compat-delete-directory'.
      (tramp-do-copy-or-rename-file-out-of-band)
      (tramp-compute-multi-hops, tramp-maybe-open-connection):
      Use `format-spec-make'.
      (tramp-handle-delete-file): Add TRASH arg.
      (tramp-handle-dired-uncache): Flush directory cache, not only file
      cache.
      (tramp-handle-expand-file-name)
      (tramp-completion-handle-file-name-all-completions)
      (tramp-completion-handle-file-name-completion): Use
      `tramp-connectable-p'.
      (tramp-handle-start-file-process): Set connection property "vec".
      Use it, in order to invalidate file caches.  Check only for
      `remote-tty' process property.
      Implement tty setting.  (Bug#4604, Bug#6360)
      (tramp-file-name-for-operation): Add `call-process-region' and
      `set-file-selinux-context'.
      (tramp-find-foreign-file-name-handler)
      (tramp-advice-make-auto-save-file-name)
      (tramp-set-auto-save-file-modes): Remove superfluous check for
      `stringp'.  This is done inside `tramp-tramp-file-p'.
      (tramp-file-name-handler): Trace 'quit.  Catch the error for some
      operations when we are in completion mode.  This gives the user
      the chance to correct the file name in the minibuffer.
      (tramp-completion-mode-p): Use `non-essential'.
      (tramp-handle-file-name-all-completions): Backward/ XEmacs
      compatibility: Use `completion-ignore-case' if
      `read-file-name-completion-ignore-case' does not exist.
      (tramp-get-debug-buffer): Use `tramp-debug-outline-regexp'.
      (tramp-find-shell, tramp-open-connection-setup-interactive-shell):
      `tramp-open-shell'.
      (tramp-action-password): Hide password prompt before next run.
      (tramp-process-actions): Widen connection buffer for the trace.
      (tramp-open-connection-setup-interactive-shell): Set `remote-tty'
      process property.  Trace stty settings if `tramp-verbose' >= 9.
      Apply workaround for IRIX64 bug.  Move argument of last
      `tramp-send-command' where it belongs to.
      (tramp-maybe-open-connection): Use `async-args' and `gw-args' in
      front of `login-args'.
      (tramp-get-ls-command, tramp-get-ls-command-with-dired): Run tests
      on "/dev/null" instead of "/".
      (tramp-get-ls-command-with-dired): Make test for "--dired"
      stronger.
      (tramp-set-auto-save-file-modes): Adapt version check.
      (tramp-set-process-query-on-exit-flag): Fix wrong parentheses.
      (tramp-handle-process-file): Call the program in a subshell, in
      order to preserve working directory.
      (tramp-handle-shell-command): Don't use hard-wired "/bin/sh" but
      `tramp-remote-sh' from `tramp-methods'.
      (tramp-get-ls-command): Make test for "--color=never" stronger.
      (tramp-check-for-regexp): Use (forward-line 1).
      
      * net/trampver.el: Update release number.
      
      * net/tramp-gvfs.el (tramp-gvfs-handle-copy-file): Do not pass
      empty argument to gvfs-copy.
      
      * net/tramp-compat.el (tramp-compat-delete-file): Rewrite to
      handle new TRASH arg of `delete-file'.
      
      * net/tramp.el (tramp-handle-insert-directory): Don't use
      `forward-word', its default syntax could be changed.
      
      Implement compression for inline methods.
      
      * net/tramp.el (tramp-inline-compress-start-size): New defcustom.
      (tramp-copy-size-limit): Allow also nil.
      (tramp-inline-compress-commands): New defconst.
      (tramp-find-inline-compress, tramp-get-inline-compress)
      (tramp-get-inline-coding): New defuns.
      (tramp-get-remote-coding, tramp-get-local-coding): Remove,
      replaced by `tramp-get-inline-coding'.
      (tramp-handle-file-local-copy, tramp-handle-write-region)
      (tramp-method-out-of-band-p): Use `tramp-get-inline-coding'.
      
      Detect ssh 'ControlMaster' argument automatically in some cases.
      
      * net/tramp.el (tramp-detect-ssh-controlmaster): New defun.
      (tramp-default-method): Use it.
      
      * net/tramp.el (tramp-file-name-for-operation):
      Add file-selinux-context.
      20b8ac83
  39. 04 Jun, 2010 1 commit