1. 07 Mar, 2015 1 commit
  2. 03 Feb, 2015 2 commits
  3. 02 Feb, 2015 1 commit
  4. 13 Jan, 2015 1 commit
    • Michael Albinus's avatar
      Handle watching of several files in the same directory for inotify. · b1ea1607
      Michael Albinus authored
      Fixes: debbugs:18880
      
      * filenotify.el (file-notify-descriptors, file-notify-handle-event):
      Adapt docstring.
      (file-notify--descriptor): New defun.
      (file-notify-callback, file-notify-add-watch, file-notify-rm-watch):
      Adapt docstring.  Handle multiple values for
      `file-notify-descriptors' entries.
      
      * net/tramp.el (tramp-handle-file-notify-rm-watch): Do not check
      `file-notify-descriptors', the implementation has been changed.
      b1ea1607
  5. 01 Jan, 2015 1 commit
  6. 26 Dec, 2014 1 commit
  7. 23 Dec, 2014 1 commit
  8. 21 Dec, 2014 2 commits
  9. 17 Dec, 2014 1 commit
    • Michael Albinus's avatar
      * net/tramp-gw.el (tramp-gw-open-connection): Suppress traces in · c773edcf
      Michael Albinus authored
      wrong debug buffer.
      (tramp-gw-open-connection): Set process coding system 'binary.
      (tramp-gw-open-network-stream): Handle HTTP error 403.
      
      * net/tramp-sh.el (tramp-compute-multi-hops): Suppress traces in
      wrong debug buffer.
      (tramp-maybe-open-connection): Set connection property "gateway".
      
      * net/tramp.el (tramp-error-with-buffer): Call `message' properly.
      (tramp-accept-process-output): Use nil as argument for
      `accept-process-output', when there is a gateway prepended.
      c773edcf
  10. 22 Nov, 2014 1 commit
    • Michael Albinus's avatar
      Fixes: debbugs:19047 · bd3625c4
      Michael Albinus authored
      * net/tramp.el (tramp-action-password): Clean password on subsequent
      attempts even if there was no wrong password indication.
      bd3625c4
  11. 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
  12. 07 Nov, 2014 1 commit
  13. 05 Nov, 2014 1 commit
    • Michael Albinus's avatar
      * net/tramp-adb.el (tramp-adb-handle-file-attributes): · bd02f3d4
      Michael Albinus authored
      * net/tramp-gvfs.el (tramp-gvfs-handle-file-attributes):
      * net/tramp-sh.el (tramp-sh-handle-file-attributes): Return nil in
      case of errors.
      
      * net/tramp.el (tramp-error-with-buffer): Show connection buffer
      only when message appeared in minibuffer.
      
      Fixes: debbugs:18891
      bd02f3d4
  14. 01 Nov, 2014 1 commit
    • Michael Albinus's avatar
      Backport Tramp changes from trunk. · ae5602c5
      Michael Albinus authored
      * net/tramp-adb.el (tramp-adb-sh-fix-ls-output): Use `bolp'.
      (tramp-adb-handle-write-region): Improve messages.
      (tramp-adb-maybe-open-connection): Don't set
      `tramp-current-*' variables.
      
      * net/tramp-cache.el (tramp-flush-file-function): Simplify check.
      Suppress debug messages.
      
      * net/tramp-ftp.el (top): Remove special handling for URL syntax.
      (tramp-ftp-file-name-handler):
      
      * net/tramp-gvfs.el (tramp-gvfs-methods) <sftp>: Add.
      (tramp-gvfs-methods-mounttracker)
      (tramp-gvfs-mountlocation-signature): Check `tramp-gvfs-enabled'
      during initialization. 
      (tramp-gvfs-handle-delete-file): Flush file properties, not
      directory properties.
      (tramp-gvfs-handle-file-attributes): Use `string-to-number' when
      reading "unix::mode".
      (tramp-gvfs-handle-file-name-all-completions):
      Use "-h" option for "gvfs-ls".
      (tramp-gvfs-url-file-name): Apply `cons' where appropriate.
      `user' and `localname' could be nil.
      (tramp-gvfs-send-command): Simplify traces.
      
      * net/tramp-sh.el (vc-handled-backends, vc-bzr-program)
      (vc-git-program, vc-hg-program): Declare.
      (tramp-methods) <sftp>: Remove.  It has never worked satisfactorily.
      (tramp-methods) <nc>: Add new method.
      (tramp-methods) <telnet>: Redirect stderr to "/dev/null".
      (tramp-methods) <plink, plinkx, pscp, psftp>: Improve
      `tramp-login-args'.
      (tramp-default-user-alist): Add "nc".
      (top): Remove completion function for "sftp".  Add completion
      functions for "nc" and "psftp".
      (tramp-sh-handle-set-visited-file-modtime):
      (tramp-sh-handle-verify-visited-file-modtime): Use `point-at-eol'.
      (tramp-do-copy-or-rename-file-out-of-band):
      Use cached "remote-copy-args" value, if available.  (Bug#18199)
      Tweak docstring.  Implement support for "nc" method.
      (tramp-sh-handle-expand-file-name, tramp-local-coding-commands)
      (tramp-remote-coding-commands, tramp-call-local-coding-command):
      Tweak docstring.
      (tramp-sh-handle-start-file-process): Expand `default-directory'.
      (tramp-sh-handle-write-region): Tweak error message.
      (tramp-sh-handle-vc-registered): Remove backends when the remote
      binary does not exist.
      (tramp-open-connection-setup-interactive-shell):
      Prefer utf-8 coding.  (Bug#17859)
      (tramp-find-inline-encoding): Do not raise an error.
      (tramp-make-copy-program-file-name): Tweak docstring.  Handle also
      the "nc" case.  Quote result also locally.
      (tramp-get-remote-id): Check also for "gid".
      (tramp-get-remote-python):
      
      * net/tramp-smb.el (tramp-smb-handle-copy-directory)
      (tramp-smb-handle-set-file-acl): Use `start-process'.
      (tramp-smb-handle-insert-directory): Use progress reporter.
      (tramp-smb-handle-rename-file): Flush also file properties of
      FILENAME.
      
      * net/tramp.el (tramp-methods): Tweak docstring.
      (tramp-file-name-handler): Apply `cons' where appropriate.
      (tramp-handle-file-accessible-directory-p): Check for
      `file-readable-p' instead of `file-executable-p'.
      (tramp-handle-shell-command): Use `display-buffer'.  (Bug#18326)
      (tramp-handle-unhandled-file-name-directory): Return "/".
      (tramp-check-cached-permissions):
      Use `tramp-compat-file-attributes'.
      (tramp-call-process): Add new argument VEC.  Adapt callees in all
      tramp*.el files.
      
      * net/trampver.el: Update release number.
      ae5602c5
  15. 03 Jun, 2014 1 commit
    • Michael Albinus's avatar
      Fix Bug#17653. · a336b2ea
      Michael Albinus authored
      * net/tramp.el (tramp-ssh-controlmaster-options): Improve search regexp.
      a336b2ea
  16. 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
  17. 10 Apr, 2014 1 commit
  18. 25 Mar, 2014 1 commit
  19. 23 Mar, 2014 1 commit
  20. 21 Mar, 2014 1 commit
  21. 17 Mar, 2014 1 commit
  22. 06 Mar, 2014 1 commit
  23. 27 Feb, 2014 1 commit
    • Michael Albinus's avatar
      Tramp adb fixes, found during test campaign. · c22c1614
      Michael Albinus authored
      * net/tramp.el (tramp-call-process): Improve trace message.
      (tramp-handle-insert-file-contents): Trace error case.
      
      * net/tramp-adb.el (tramp-adb-file-name-handler-alist)
      <insert-directory>: Use `tramp-handle-insert-directory'.
      (tramp-adb-handle-insert-directory): Remove function.
      (tramp-adb-send-command-and-check): New defun, replacing
      `tramp-adb-command-exit-status'.  Change all callees.
      (tramp-adb-handle-file-attributes)
      (tramp-adb-handle-directory-files-and-attributes): Use it.
      (tramp-adb-ls-output-name-less-p): Use
      `directory-listing-before-filename-regexp'.
      (tramp-adb-handle-delete-directory): Flush also file properties of
      the truename of directory.
      (tramp-adb-handle-file-name-all-completions): Add "./" and "../".
      (tramp-adb-handle-file-local-copy): Make the local copy readable.
      (tramp-adb-handle-write-region): Implement APPEND.
      (tramp-adb-handle-rename-file): Make it more robust.  Flush file
      properties correctly.
      (tramp-adb-maybe-open-connection): Set `tramp-current-*'
      variables.  Check for connected devices only when needed.
      c22c1614
  24. 21 Feb, 2014 1 commit
  25. 20 Feb, 2014 1 commit
    • Michael Albinus's avatar
      * net/tramp.el (ls-lisp-use-insert-directory-program): Declare. · f5bee33b
      Michael Albinus authored
      (tramp-handle-insert-directory): New defun, taken from tramp-gvfs.el.
      
      * net/tramp-gvfs.el (tramp-gvfs-file-name-handler-alist)
      [insert-directory]: Use `tramp-handle-insert-directory.
      (tramp-gvfs-handle-insert-directory): Remove function.
      
      * net/tramp-sh.el (tramp-sh-handle-insert-directory):
      Call `tramp-handle-insert-directory'.
      f5bee33b
  26. 19 Feb, 2014 1 commit
    • Michael Albinus's avatar
      Some Tramp minor fixes, found during test campaign. · 50bfdd5d
      Michael Albinus authored
      * net/tramp-adb.el (tramp-adb-file-name-handler-alist)
      [make-symbolic-link]: Use `tramp-handle-make-symbolic-link'.
      
      * net/tramp-gvfs.el (tramp-gvfs-file-name-handler-alist)
      [make-symbolic-link]: Use `tramp-handle-make-symbolic-link'.
      (tramp-gvfs-maybe-open-connection): Set always connection
      properties, even if target is mounted already.
      
      * net/tramp-sh.el (tramp-color-escape-sequence-regexp):
      Set tramp-autoload cookie.
      (tramp-get-remote-touch): New defun.
      (tramp-sh-handle-set-file-times): Use it.
      (tramp-sh-handle-directory-files-and-attributes):
      Use `tramp-handle-directory-files-and-attributes' if neither stat
      nor perl are available on the remote host.
      
      * net/tramp-smb.el (tramp-smb-handle-insert-directory): Mark trailing
      "/".  Write long listing only when "l" belongs to the switches.
      
      * net/tramp.el (tramp-handle-make-symbolic-link): New defun.
      (tramp-check-cached-permissions): Call `file-attributes' if the
      cache is empty.
      
      * net/trampver.el: Update release number.
      50bfdd5d
  27. 17 Jan, 2014 2 commits
  28. 01 Jan, 2014 1 commit
  29. 26 Nov, 2013 1 commit
  30. 13 Nov, 2013 1 commit
  31. 10 Nov, 2013 1 commit
  32. 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
  33. 04 Nov, 2013 1 commit
    • Michael Albinus's avatar
      Fix problems found while writing a test suite. · b27cc9fc
      Michael Albinus authored
      * net/tramp.el (tramp-file-name-regexp-unified): Simplify.
      (tramp-file-name-for-operation): Use `tramp-tramp-file-p'.
      (tramp-handle-substitute-in-file-name): Let-bind `process-environment'
      to nil when running original file name handler.  Otherwise,
      there are problems with constructs like "$$FOO".
      
      * net/tramp-sh.el (tramp-do-copy-or-rename-file): Use correct prefix
      for `localname'.
      b27cc9fc
  34. 29 Oct, 2013 1 commit
  35. 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
  36. 07 Oct, 2013 1 commit
    • Michael Albinus's avatar
      * net/tramp.el (tramp-handle-insert-file-contents): Improve handling · f8f91d5d
      Michael Albinus authored
      of BEG and END.
      
      * net/tramp-gvfs.el (tramp-gvfs-file-name-handler-alist): Use
      `tramp-handle-insert-file-contents'.
      (tramp-gvfs-handle-insert-file-contents): Remove function.
      
      * net/tramp-sh.el (tramp-sh-handle-insert-directory): Use
      `save-restriction' in order to keep markers.
      
      * net/trampver.el: Update release number.
      f8f91d5d
  37. 13 Sep, 2013 1 commit
    • Michael Albinus's avatar
      * net/tramp.el (tramp-check-proper-method-and-host): Rename it from · 35c3d36e
      Michael Albinus authored
      `tramp-check-proper-host'.  Check for a valid method name.
      
      * 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): Call it.
      
      * net/tramp-cache.el (tramp-cache-print): Don't print text properties
      also for hash values.
      35c3d36e