1. 18 Oct, 2015 1 commit
    • Michael Albinus's avatar
      Minor edits in Tramp · f8ff3937
      Michael Albinus authored
      * lisp/net/tramp-adb.el (directory-listing-before-filename-regexp):
      Declare it.
      
      * lisp/net/tramp-compat.el (directory-listing-before-filename-regexp):
      Remove declaration.
      f8ff3937
  2. 04 Oct, 2015 1 commit
    • Michael Albinus's avatar
      Improve XEmacs compatibility of Tramp · acfb5cd0
      Michael Albinus authored
      * lisp/net/tramp-compat.el (directory-listing-before-filename-regexp):
      Declare if it doesn't exist.
      (file-remote-p): Remove defalias, which was necessary for GNU Emacs 21.
      (redisplay): Make it an alias if it doesn't exist.
      
      * lisp/net/tramp.el (tramp-get-remote-tmpdir): Don't use
      `file-remote-p' (due to XEmacs compatibility).
      
      * lisp/net/trampver.el (locate-dominating-file)
      (tramp-compat-replace-regexp-in-string): Autoload.
      (tramp-repository-get-version): Do not dupe byte-compiler.
      acfb5cd0
  3. 26 Aug, 2015 2 commits
    • Michael Albinus's avatar
    • Paul Eggert's avatar
      Go back to grave quoting in Tramp · b12cfbfd
      Paul Eggert authored
      * lisp/net/tramp-adb.el:
      * lisp/net/tramp-cache.el:
      * lisp/net/tramp-compat.el:
      * lisp/net/tramp-gvfs.el:
      * lisp/net/tramp-gw.el:
      * lisp/net/tramp-sh.el:
      * lisp/net/tramp-smb.el:
      * lisp/net/tramp.el:
      Stick with grave quoting in diagnostics strings.  This is more
      portable to older Emacs, desirable for Tramp.
      * lisp/net/tramp-cache.el: Use ‘format-message’, not ‘format’,
      for diagnostic that needs requoting.
      * lisp/net/tramp-compat.el (format-message):
      Fall back on simple ‘format’, since that’s good enough now.
      b12cfbfd
  4. 25 Aug, 2015 1 commit
    • Paul Eggert's avatar
      Tramp diagnostics as per ‘text-quoting-style’ · 7b5290da
      Paul Eggert authored
      * lisp/net/tramp-adb.el (tramp-adb-handle-file-truename)
      (tramp-adb-get-ls-command, tramp-adb-handle-make-directory)
      (tramp-adb-handle-delete-directory)
      (tramp-adb-handle-delete-file)
      (tramp-adb-handle-file-local-copy)
      (tramp-adb-handle-write-region, tramp-adb-handle-copy-file)
      (tramp-adb-send-command-and-check, tramp-adb-wait-for-output)
      (tramp-adb-maybe-open-connection):
      * lisp/net/tramp-cache.el:
      * lisp/net/tramp-compat.el (tramp-compat-temporary-file-directory)
      (tramp-compat-octal-to-decimal)
      (tramp-compat-coding-system-change-eol-conversion):
      * lisp/net/tramp-gvfs.el (tramp-gvfs-file-name-handler)
      (tramp-gvfs-do-copy-or-rename-file)
      (tramp-gvfs-handle-delete-directory)
      (tramp-gvfs-handle-delete-file)
      (tramp-gvfs-handle-expand-file-name)
      (tramp-gvfs-handle-file-local-copy)
      (tramp-gvfs-handle-file-notify-add-watch)
      (tramp-gvfs-handle-make-directory)
      (tramp-gvfs-handle-write-region, tramp-gvfs-url-file-name):
      * lisp/net/tramp-gw.el (tramp-gw-gw-proc-sentinel)
      (tramp-gw-aux-proc-sentinel, tramp-gw-open-connection):
      * lisp/net/tramp-sh.el (tramp-sh-handle-file-truename)
      (tramp-sh-handle-set-visited-file-modtime)
      (tramp-sh-handle-set-file-modes)
      (tramp-sh-handle-file-name-all-completions)
      (tramp-sh-handle-add-name-to-file, tramp-do-copy-or-rename-file)
      (tramp-do-copy-or-rename-file-directly)
      (tramp-do-copy-or-rename-file-out-of-band)
      (tramp-sh-handle-make-directory)
      (tramp-sh-handle-delete-directory, tramp-sh-handle-delete-file)
      (tramp-sh-handle-insert-directory, tramp-process-sentinel)
      (tramp-sh-handle-start-file-process)
      (tramp-sh-handle-file-local-copy)
      (tramp-sh-handle-write-region, tramp-sh-handle-vc-registered)
      (tramp-sh-handle-file-notify-add-watch, tramp-maybe-send-script)
      (tramp-find-file-exists-command, tramp-open-shell)
      (tramp-find-shell)
      (tramp-open-connection-setup-interactive-shell)
      (tramp-find-inline-encoding, tramp-find-inline-compress)
      (tramp-compute-multi-hops, tramp-maybe-open-connection)
      (tramp-wait-for-output, tramp-send-command-and-check)
      (tramp-send-command-and-read, tramp-get-remote-path)
      (tramp-get-ls-command, tramp-get-ls-command-with-dired)
      (tramp-get-ls-command-with-quoting-style)
      (tramp-get-test-command, tramp-get-remote-ln)
      (tramp-get-remote-perl, tramp-get-remote-stat)
      (tramp-get-remote-readlink, tramp-get-remote-trash)
      (tramp-get-remote-touch, tramp-get-remote-gvfs-monitor-dir)
      (tramp-get-remote-inotifywait, tramp-get-remote-id)
      (tramp-get-remote-python):
      * lisp/net/tramp-smb.el (tramp-smb-errors)
      (tramp-smb-handle-add-name-to-file, tramp-smb-handle-copy-file)
      (tramp-smb-handle-delete-directory)
      (tramp-smb-handle-delete-file)
      (tramp-smb-handle-file-local-copy)
      (tramp-smb-handle-make-directory)
      (tramp-smb-handle-make-directory-internal)
      (tramp-smb-handle-make-symbolic-link)
      (tramp-smb-handle-rename-file, tramp-smb-handle-set-file-acl)
      (tramp-smb-handle-set-file-modes)
      (tramp-smb-handle-write-region, tramp-smb-get-file-entries):
      * lisp/net/tramp.el (tramp-debug-message, tramp-error)
      (tramp-process-actions):
      Generate diagnostics according to ‘text-quoting-style’, by
      using curved quotes in format strings and ‘format-message’
      when appropriate.
      * lisp/net/tramp-compat.el (format-message):
      Define a replacement, if it’s an older version of Emacs
      that doesn’t have it already.
      7b5290da
  5. 21 May, 2015 1 commit
  6. 01 Jan, 2015 2 commits
  7. 29 Dec, 2014 1 commit
    • Michael Albinus's avatar
      Sync with Tramp 2.2.11. · e792450d
      Michael Albinus authored
      * net/tramp-compat.el (top): Require cl-macs for Emacs 22.
      Make an alias for `default-toplevel-value' if it doesn't exist.
      
      * net/tramp-smb.el (tramp-smb-handle-copy-directory):
      Use `tramp-compat-delete-directory'.
      
      * net/trampver.el: Update release number.
      e792450d
  8. 20 Nov, 2014 1 commit
    • Michael Albinus's avatar
      Improve XEmacs compatibility. · 6ec5ee88
      Michael Albinus authored
      * net/tramp.el (tramp-autoload-file-name-handler):
      Wrap `temporary-file-directory' by `symbol-value', it doesn't exist in XEmacs.
      (tramp-read-passwd): Don't use `with-timeout-suspend' and
      `with-timeout-unsuspend' if they don't exist, like in XEmacs.
      (tramp-time-less-p, tramp-time-subtract): Remove functions.
      (tramp-handle-file-newer-than-file-p, tramp-time-diff):
      * net/ttramp-adb.el (tramp-adb-ls-output-time-less-p):
      * net/ttramp-cache.el (tramp-get-file-property):
      * net/ttramp-smb.el (tramp-smb-handle-insert-directory):
      Use `time-less-p' and `time-subtract, respectively.
      6ec5ee88
  9. 18 Apr, 2014 1 commit
    • Michael Albinus's avatar
      Avoid recursive load of tramp.el · ce8c5107
      Michael Albinus authored
      * net/tramp.el (tramp-run-real-handler, tramp-file-name-handler):
      Do not autoload.
      (tramp-file-name-handler, tramp-completion-file-name-handler):
      Revert patch from 2014-04-10, it isn't necessary anymore.
      (tramp-autoload-file-name-handler)
      (tramp-register-autoload-file-name-handlers): New defuns.
      (top): Autoload call of `tramp-register-autoload-file-name-handlers'.
      (tramp-register-file-name-handlers): Remove also
      `tramp-autoload-file-name-handler' from `file-name-handler-list'.
      Do not autoload its invocation, but eval it after loading of 'tramp.
      
      * net/tramp-adb.el (tramp-unload-hook): Unload `tramp-adb'.
      
      * net/tramp-compat.el (tramp-unload-hook): Unload `tramp-loaddefs'.
      ce8c5107
  10. 01 Jan, 2014 1 commit
  11. 05 Nov, 2013 1 commit
    • Michael Albinus's avatar
      Fix problems found while writing a test suite. · 15826261
      Michael Albinus authored
      * net/tramp-compat.el (tramp-compat-load): New defun.
      * net/tramp.el (tramp-handle-load): Use it.
      
      * net/tramp-sh.el (tramp-sh-handle-add-name-to-file): Handle the case
      "(numberp ok-if-already-exists)" correctly.
      15826261
  12. 17 Oct, 2013 1 commit
    • Michael Albinus's avatar
      Code cleanup. · 4c1f03ef
      Michael Albinus authored
      * net/tramp.el (tramp-debug-message): Do not check for connection
      buffer.
      (tramp-message): Use "vector" connection property.
      
      * net/tramp.el (tramp-rfn-eshadow-update-overlay)
      (tramp-equal-remote, tramp-eshell-directory-change)
      * net/tramp-adb.el (tramp-adb-handle-copy-file)
      (tramp-adb-handle-rename-file)
      * net/tramp-cmds.el (tramp-list-remote-buffers)
      (tramp-cleanup-connection, tramp-cleanup-this-connection)
      * net/tramp-compat.el (tramp-compat-process-running-p)
      * net/tramp-ftp.el (tramp-ftp-file-name-handler)
      * net/tramp-gvfs.el (tramp-gvfs-handle-copy-file)
      (tramp-gvfs-handle-rename-file)
      * net/tramp-sh.el (tramp-sh-handle-set-file-times)
      (tramp-set-file-uid-gid)
      * net/tramp-smb.el (tramp-smb-handle-copy-file)
      (tramp-smb-handle-rename-file): Use `tramp-tramp-file-p' instead
      of `file-remote-p'.
      
      * net/tramp.el (tramp-connectable-p, tramp-handle-file-remote-p)
      * net/tramp-gw.el (tramp-gw-gw-proc-sentinel)
      (tramp-gw-aux-proc-sentinel, tramp-gw-process-filter)
      (tramp-gw-open-network-stream): Suppress unrelated traces.
      
      * net/tramp-adb.el (tramp-adb-maybe-open-connection)
      * net/tramp-gvfs.el (tramp-gvfs-handle-file-notify-add-watch)
      * net/tramp-sh.el (tramp-do-copy-or-rename-file-out-of-band)
      * net/tramp-smb.el (tramp-smb-maybe-open-connection): Set "vector"
      connection property.
      
      * net/tramp-cache.el (top): Suppress traces when reading
      presistency file.
      
      * net/tramp-sh.el (tramp-sh-handle-file-notify-add-watch):
      Refactor common code.  Improve debug message.
      (tramp-maybe-open-connection)
      * net/tramp-smb.el (tramp-smb-call-winexe): Do not request
      connection buffer too early.
      
      * net/tramp-smb.el (tramp-smb-actions-get-acl): New defconst, renamed
      from `tramp-smb-actions-with-acl'.
      (tramp-smb-actions-set-acl): New defconst.
      (tramp-smb-handle-copy-directory)
      (tramp-smb-action-get-acl): New defun, renamed from
      `tramp-smb-action-with-acl'.
      (tramp-smb-action-set-acl): New defun.
      (tramp-smb-handle-set-file-acl): Rewrite.
      4c1f03ef
  13. 08 Sep, 2013 1 commit
    • Michael Albinus's avatar
      Improve compatibility with older Emacsen, and XEmacs. · af9ff9e8
      Michael Albinus authored
      * net/tramp.el (tramp-find-method, tramp-find-user): Call `propertize'
      only if it is bound.  It isn't for XEmacs.
      (with-tramp-progress-reporter): Do not let-bind `result'.  This
      yields to scoping errors in XEmacs.
      (tramp-handle-make-auto-save-file-name): New function, moved from
      tramp-sh.el.
      
      * net/tramp-adb.el (tramp-adb-file-name-handler-alist): Add handler
      for `make-auto-save-file-name'.
      (tramp-adb--gnu-switches-to-ash): Use
      `tramp-compat-replace-regexp-in-string'.
      
      * net/tramp-cache.el (tramp-cache-print): Call
      `substring-no-properties' only if it is bound.  It isn't for XEmacs.
      
      * net/tramp-cmds.el (tramp-bug): Call `propertize' only if it is
      bound.  It isn't for XEmacs.
      
      * net/tramp-compat.el (tramp-compat-copy-file): Catch
      `wrong-number-of-arguments' error.
      (tramp-compat-replace-regexp-in-string): New defun.
      
      * net/tramp-gvfs.el (tramp-gvfs-file-name-handler-alist): Add handler
      for `make-auto-save-file-name'.
      (tramp-gvfs-handle-copy-file): Use `tramp-compat-funcall' for
      `copy-file'.
      (tramp-gvfs-file-gvfs-monitor-file-process-filter)
      (tramp-gvfs-file-name): Use `tramp-compat-replace-regexp-in-string'.
      (tramp-synce-list-devices): Use `push' instead of `pushnew'.
      
      * net/tramp-gw.el (tramp-gw-open-network-stream): Use
      `tramp-compat-replace-regexp-in-string'.
      
      * net/tramp-sh.el (tramp-sh-file-name-handler-alist): Call
      `tramp-handle-make-auto-save-file-name'.
      (tramp-sh-handle-make-auto-save-file-name): Move to tramp.el.
      (tramp-sh-file-gvfs-monitor-dir-process-filter)
      (tramp-sh-file-inotifywait-process-filter): Use
      `tramp-compat-replace-regexp-in-string'.
      (tramp-compute-multi-hops): Use `push' instead of `pushnew'.
      
      * net/tramp-smb.el (tramp-smb-file-name-handler-alist): Add handler
      for `make-auto-save-file-name'.
      (tramp-smb-handle-copy-directory): Call
      `tramp-compat-replace-regexp-in-string'.
      (tramp-smb-get-file-entries): Use `push' instead of `pushnew'.
      (tramp-smb-handle-copy-file): Improve error message.
      (tramp-smb-handle-rename-file): Rename directly only in case
      `newname' does not exist yet.  This is a restriction of smbclient.
      (tramp-smb-maybe-open-connection): Rerun the function only when
      `auth-sources' is non-nil.
      af9ff9e8
  14. 03 Sep, 2013 1 commit
  15. 02 Sep, 2013 1 commit
    • Michael Albinus's avatar
      * net/tramp-compat.el (tramp-compat-user-error): Move it ... · 95beaef3
      Michael Albinus authored
      * net/tramp.el (tramp-user-error): ... here.
      (tramp-find-method, tramp-check-proper-host)
      (tramp-dissect-file-name, tramp-debug-message)
      (tramp-handle-shell-command):
      * net/tramp-adb.el (tramp-adb-handle-shell-command):
      * net/tramp-gvfs.el (tramp-gvfs-file-name-handler): Adapt callees.
      
      * net/tramp-cache.el (tramp-cache-print): Don't print text properties.
      95beaef3
  16. 26 Aug, 2013 1 commit
    • Michael Albinus's avatar
      * minibuffer.el: Revert change from 2013-08-20. · 78fc2530
      Michael Albinus authored
      * net/tramp.el (tramp-find-method, tramp-find-user): Mark result
      with text property `tramp-default', if appropriate.
      (tramp-check-proper-host): New defun.
      (tramp-dissect-file-name): Do not check hostname.  Revert change
      of 2013-03-18.
      (tramp-backtrace): Make VEC-OR-PROC optional.
      
      * net/tramp-adb.el (tramp-adb-maybe-open-connection):
      * net/tramp-gvfs.el (tramp-gvfs-maybe-open-connection):
      * net/tramp-sh.el (tramp-maybe-open-connection):
      * net/tramp-smb.el (tramp-smb-maybe-open-connection): Apply
      `tramp-check-proper-host'.
      78fc2530
  17. 15 Aug, 2013 2 commits
    • Michael Albinus's avatar
      Declare external variables. · b74f0d96
      Michael Albinus authored
      b74f0d96
    • Michael Albinus's avatar
      Remove byte compiler warnings, visible when compiling with · 5d89d9d2
      Michael Albinus authored
      `byte-compile-force-lexical-warnings' set to t.
      
      * net/tramp.el (tramp-debug-message, tramp-message, tramp-error)
      (tramp-error-with-buffer): Rename ARGS to ARGUMENTS and BUFFER to BUF.
      (tramp-handle-unhandled-file-name-directory)
      (tramp-handle-file-notify-add-watch, tramp-action-login)
      (tramp-action-succeed, tramp-action-permission-denied)
      (tramp-action-terminal, tramp-action-process-alive): Prefix unused
      arguments with "_".
      
      * net/tramp-adb.el (tramp-adb-parse-device-names)
      (tramp-adb-handle-insert-directory, tramp-adb-handle-delete-file)
      (tramp-adb-handle-copy-file): Prefix unused arguments with "_".
      (tramp-adb-handle-file-truename): Remove unused arguments.
      
      * net/tramp-cache.el (tramp-flush-directory-property)
      (tramp-flush-connection-property, tramp-list-connections)
      (tramp-parse-connection-properties): Prefix unused arguments with "_".
      
      * net/tramp-compat.el (tramp-compat-make-temp-file): Rename
      FILENAME to F.
      
      * net/tramp-gvfs.el (tramp-gvfs-handle-file-notify-add-watch)
      (tramp-gvfs-handle-write-region, tramp-bluez-parse-device-names)
      (tramp-zeroconf-parse-workstation-device-names)
      (tramp-zeroconf-parse-webdav-device-names)
      (tramp-synce-parse-device-names): Prefix unused arguments with "_".
      
      * net/tramp-gw.el (tramp-gw-gw-proc-sentinel)
      (tramp-gw-aux-proc-sentinel): Prefix unused arguments with "_".
      
      * net/tramp-sh.el (tramp-sh-handle-file-truename): Remove unused
      arguments.
      (tramp-sh-handle-copy-file, tramp-sh-handle-dired-compress-file)
      (tramp-sh-handle-insert-file-contents-literally)
      (tramp-sh-handle-file-notify-add-watch): Prefix unused arguments
      with "_".
      (tramp-do-copy-or-rename-file, tramp-barf-if-no-shell-prompt):
      Remove unused variables.
      
      * net/tramp-smb.el (tramp-smb-handle-copy-directory)
      (tramp-smb-handle-copy-file, tramp-smb-handle-delete-file)
      (tramp-smb-read-file-entry): Prefix unused arguments with "_".
      
      * net/tramp-uu.el (tramp-uu-b64-alphabet, tramp-uu-b64-char-to-byte):
      Make them a defconst.
      (tramp-uuencode-region): Remove unused variable.
      5d89d9d2
  18. 16 Jul, 2013 1 commit
  19. 22 Apr, 2013 1 commit
    • Michael Albinus's avatar
      * net/tramp-compat.el (tramp-compat-call-process): Move function ... · d0853629
      Michael Albinus authored
      * net/tramp.el (tramp-call-process): ... here
      (tramp-set-completion-function, tramp-parse-putty):
      * net/tramp-adb.el (tramp-adb-execute-adb-command):
      * net/tramp-gvfs.el (tramp-gvfs-send-command):
      * net/tramp-sh.el (tramp-sh-handle-set-file-times)
      (tramp-set-file-uid-gid, tramp-sh-handle-write-region)
      (tramp-call-local-coding-command): Use `tramp-call-process'
      instead of `tramp-compat-call-process'.
      
      * net/tramp-sh.el (tramp-perl-pack, tramp-perl-unpack): New defconst.
      (tramp-local-coding-commands, tramp-remote-coding-commands): Use them.
      (tramp-sh-handle-file-local-copy, tramp-sh-handle-write-region):
      (tramp-find-inline-compress):Improve traces.
      (tramp-maybe-send-script): Check for Perl binary.
      (tramp-get-inline-coding): Do not redirect STDOUT for local decoding.
      d0853629
  20. 18 Mar, 2013 1 commit
    • Michael Albinus's avatar
      * net/tramp-compat.el (tramp-compat-user-error): New defun. · 64ab82d1
      Michael Albinus authored
      * net/tramp-adb.el (tramp-adb-handle-shell-command):
      * net/tramp-gvfs.el (top):
      * net/tramp.el (tramp-find-method, tramp-dissect-file-name)
      (tramp-handle-shell-command): Use it.
      (tramp-dissect-file-name): Raise an error when hostname is a
      method name, and neither method nor user is specified.
      
      * net/trampver.el: Update release number.
      64ab82d1
  21. 05 Mar, 2013 1 commit
  22. 16 Feb, 2013 1 commit
  23. 12 Feb, 2013 1 commit
  24. 01 Jan, 2013 1 commit
  25. 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
  26. 06 Dec, 2012 1 commit
    • Michael Albinus's avatar
      * net/tramp.el (tramp-replace-environment-variables): Hide · 5504e2c7
      Michael Albinus authored
      compiler warning.
      (tramp-file-name-for-operation): Remove `executable-find',
      `start-process', `call-process' and `call-process-region'.
      
      * net/tramp-compat.el (top): Don't require 'tramp-util and 'tramp-vc.
      
      * net/tramp-gvfs.el (tramp-gvfs-dbus-event-error): Ensure backward
      compatibility.
      
      * net/tramp-sh.el (top): Remove `tramp-sh-handle-call-process-region'.
      5504e2c7
  27. 05 Jul, 2012 1 commit
    • Michael Albinus's avatar
      Sync with Tramp 2.2.6-pre. · 957b3189
      Michael Albinus authored
      * net/tramp.el (tramp-drop-volume-letter): Provide an XEmacs
      compatible declaration.
      
      * net/tramp-cmds.el (tramp-append-tramp-buffers): Protect
      `list-load-path-shadows' call.
      
      * net/tramp-compat.el (top): Require packages, which aren't
      autoloaded anymore for XEmacs.  Protect call of
      `tramp-file-name-handler' by `tramp-compat-funcall', pacifying the
      compiler.  Do not require tramp-util.el and tramp-vc.el anymore,
      it hurts at least for SXEmacs.
      (tramp-compat-temporary-file-directory): In XEmacs, there is no
      standard-value for `temporary-file-directory'.
      
      * net/tramp-sh.el (tramp-do-directory-files-and-attributes-with-stat):
      Redirect stderr to /dev/null.
      (tramp-sh-handle-write-region): uid and gid can be floats.
      Reported by Russell Sim <russell.sim@gmail.com>.
      (tramp-sh-handle-vc-registered): Hide errors.
      (tramp-vc-file-name-handler): Use dummy results for `process-file'
      and `start-file-process'.
      (tramp-maybe-open-connection): Check also whether `non-essential'
      is bound.
      957b3189
  28. 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
  29. 08 Jun, 2012 1 commit
  30. 06 Jun, 2012 1 commit
  31. 11 Jan, 2012 1 commit
  32. 05 Jan, 2012 1 commit
  33. 17 Nov, 2011 1 commit
  34. 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
  35. 14 Jul, 2011 1 commit
    • Chong Yidong's avatar
      Adapt 2011-07-05 switch-to-buffer changes to new switch-to-buffer · 8bdfa064
      Chong Yidong authored
      * lisp/bindings.el (mode-line-other-buffer):
      * lisp/bookmark.el (bookmark-bmenu-2-window):
      * lisp/bs.el (bs-cycle-next, bs-cycle-previous):
      * lisp/net/tramp-cmds.el (tramp-append-tramp-buffers): Revert to using
      switch-to-buffer.
      
      * lisp/net/tramp-compat.el (tramp-compat-pop-to-buffer-same-window):
      Deleted.
      8bdfa064
  36. 06 Jul, 2011 1 commit
  37. 12 Mar, 2011 1 commit
    • Michael Albinus's avatar
      * net/tramp.el (tramp-progress-reporter-update): Use · 6efb972c
      Michael Albinus authored
      `tramp-compat-funcall'.
      (tramp-handle-start-file-process): Use `tramp-compat-process-get'.
      (tramp-handle-insert-file-contents): Make `file-remote-p' call
      compatible.
      (tramp-open-connection-setup-interactive-shell): Use
      `tramp-compat-process-put'.
      
      * net/tramp-compat.el (tramp-compat-process-get)
      (tramp-compat-process-put): New defuns.
      
      * net/trampver.el: Update release number.
      
      Please do not merge with the trunk.
      6efb972c