1. 03 Sep, 2013 1 commit
  2. 26 Aug, 2013 2 commits
    • 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
    • Michael Albinus's avatar
      * net/tramp-sh.el (tramp-sh-handle-verify-visited-file-modtime): · df54bcbd
      Michael Albinus authored
      BUF can be optional.  (Bug#15186)
      df54bcbd
  3. 17 Aug, 2013 1 commit
    • Michael Albinus's avatar
      * net/tramp.el: · f95527c8
      Michael Albinus authored
      * net/tramp-adb.el:
      * net/tramp-cmds.el:
      * net/tramp-ftp.el:
      * net/tramp-gvfs.el:
      * net/tramp-gw.el:
      * net/tramp-sh.el: Don't wrap external variable declarations by
      `eval-when-compile'.
      f95527c8
  4. 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
  5. 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
  6. 29 Jul, 2013 1 commit
  7. 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
  8. 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
  9. 14 Jul, 2013 1 commit
  10. 11 Jul, 2013 1 commit
    • Michael Albinus's avatar
      * net/tramp.el (tramp-methods): Extend docstring. · 88f6a933
      Michael Albinus authored
      (tramp-connection-timeout): New defcustom.
      (tramp-error-with-buffer): Reset timestamp only when appropriate.
      (with-tramp-progress-reporter): Simplify.
      (tramp-process-actions): Improve messages.
      
      * net/tramp-gvfs.el (tramp-gvfs-maybe-open-connection):
      * net/tramp-sh.el (tramp-maybe-open-connection):
      Use `tramp-connection-timeout'.
      (tramp-methods) [su, sudo, ksu]: Add method specific timeouts.  (Bug#14808)
      88f6a933
  11. 10 Jul, 2013 1 commit
    • Michael Albinus's avatar
      Improve error messages. (Bug#14808) · 525c5c77
      Michael Albinus authored
      * net/tramp.el (tramp-current-connection): New defvar, moved from
      tramp-sh.el.
      (tramp-message-show-progress-reporter-message): Removed, not
      needed anymore.
      (tramp-error-with-buffer): Show message in minibuffer.  Discard
      input before waiting.  Reset connection timestamp.
      (with-tramp-progress-reporter): Improve messages.
      (tramp-process-actions): Use progress reporter.  Delete process in
      case of error.  Improve messages.
      
      * net/tramp-sh.el (tramp-barf-if-no-shell-prompt): Use
      condition-case.  Call `tramp-error-with-buffer' with vector and buffer.
      (tramp-current-connection): Removed.
      (tramp-maybe-open-connection): The car of
      `tramp-current-connection' are the first 3 slots of the vector.
      525c5c77
  12. 06 Jul, 2013 1 commit
  13. 05 Jul, 2013 2 commits
  14. 04 Jul, 2013 1 commit
    • Michael Albinus's avatar
      * filenotify.el: New package. · 864c58ca
      Michael Albinus authored
      * autorevert.el (top): Require filenotify.el.
      (auto-revert-notify-enabled): Remove.  Use `file-notify-support'
      instead.
      (auto-revert-notify-rm-watch, auto-revert-notify-add-watch)
      (auto-revert-notify-handler): Use `file-notify-*' functions.
      
      * subr.el (file-notify-handle-event): Move function to filenotify.el.
      
      * net/tramp.el (tramp-file-name-for-operation): Handle
      `file-notify-add-watch' and `file-notify-rm-watch'.
      
      * net/tramp-sh.el (tramp-sh-file-name-handler-alist): Add handler
      for `file-notify-add-watch' and `file-notify-rm-watch'.
      (tramp-process-sentinel): Improve trace.
      (tramp-sh-handle-file-notify-add-watch)
      (tramp-sh-file-notify-process-filter)
      (tramp-sh-handle-file-notify-rm-watch)
      (tramp-get-remote-inotifywait): New defuns.
      864c58ca
  15. 19 Jun, 2013 1 commit
  16. 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
  17. 18 Apr, 2013 1 commit
  18. 13 Mar, 2013 2 commits
  19. 09 Mar, 2013 1 commit
    • Michael Albinus's avatar
      Major rewrite due to changed D-Bus interface of GVFS 1.14. · 3675b169
      Michael Albinus authored
      * net/tramp-gvfs.el (top): Extend check for gvfs availability.
      (tramp-gvfs-methods-mounttracker, tramp-gvfs-listmounts)
      (tramp-gvfs-mountlocation, tramp-gvfs-mountlocation-signature):
      New defconst.
      (tramp-gvfs-file-name-handler-alist) [directory-files]:
      [directory-files-and-attributes, file-exists-p, file-modes]: Use
      Tramp default handler.
      [file-acl, file-selinux-context, process-file, set-file-acl]:
      [set-file-modes, set-file-selinux-context, shell-command]:
      [start-file-process ]: Remove handler.
      [verify-visited-file-modtime]: New handler.
      (tramp-gvfs-dbus-string-to-byte-array)
      (tramp-gvfs-dbus-byte-array-to-string): New defuns.  Replace all
      calls of `dbus-string-to-byte-array' and
      `tramp-gvfs-dbus-byte-array-to-string'.
      (tramp-gvfs-handle-copy-file)
      (tramp-gvfs-handle-delete-directory)
      (tramp-gvfs-handle-delete-file, tramp-gvfs-handle-file-attributes)
      (tramp-gvfs-handle-file-directory-p)
      (tramp-gvfs-handle-file-executable-p)
      (tramp-gvfs-handle-file-name-all-completions)
      (tramp-gvfs-handle-file-readable-p)
      (tramp-gvfs-handle-file-writable-p)
      (tramp-gvfs-handle-insert-directory)
      (tramp-gvfs-handle-insert-file-contents)
      (tramp-gvfs-handle-make-directory, tramp-gvfs-handle-rename-file)
      (tramp-gvfs-handle-set-visited-file-modtime)
      (tramp-gvfs-handle-write-region): Rewrite.
      (tramp-gvfs-handle-file-acl)
      (tramp-gvfs-handle-file-selinux-context)
      (tramp-gvfs-handle-process-file, tramp-gvfs-handle-set-file-acl)
      (tramp-gvfs-handle-set-file-modes)
      (tramp-gvfs-handle-set-file-selinux-context)
      (tramp-gvfs-handle-shell-command)
      (tramp-gvfs-handle-start-file-process)
      (tramp-gvfs-handle-verify-visited-file-modtime): Remove defuns.
      (tramp-gvfs-url-file-name): Do not use `file-truename', we work
      over the symlinks.  Fix user handling.
      (top, tramp-gvfs-handler-mounted-unmounted): Handle different names
      of the D-Bus signals.
      (tramp-gvfs-connection-mounted-p): Handle different names of the
      D-Bus methods.
      (tramp-gvfs-mount-spec-entry): New defun.
      (tramp-gvfs-mount-spec): Use it.
      (tramp-gvfs-maybe-open-connection): Check, that in case of "smb"
      there is a share name.  Handle different names of the D-Bus
      signals and methods.
      (tramp-gvfs-maybe-open-connection): Set connection properties
      needed for `tramp-check-cached-permissions'.
      (tramp-gvfs-send-command): Apply `tramp-gvfs-maybe-open-connection'.
      Return t or nil.
      
      * net/tramp.el (tramp-backtrace): Move up.
      (tramp-error): Apply a backtrace into the debug buffer when
      `tramp-verbose > 9.
      (tramp-file-mode-type-map, tramp-file-mode-from-int)
      (tramp-file-mode-permissions, tramp-get-local-uid)
      (tramp-get-local-gid, tramp-check-cached-permissions): Move from
      tramp-sh.el.
      
      * net/tramp-sh.el (tramp-file-mode-type-map)
      (tramp-check-cached-permissions, tramp-file-mode-from-int)
      (tramp-file-mode-permissions, tramp-get-local-uid)
      (tramp-get-local-gid): Move to tramp.el.
      3675b169
  20. 01 Mar, 2013 1 commit
    • Michael Albinus's avatar
      * net/tramp.el (tramp-obsolete-methods): New defconst. · 36a8b68b
      Michael Albinus authored
      (tramp-warned-obsolete-methods): New defvar.
      (tramp-find-method): Check for obsolete methods.  Map them to a
      replacement method if appropriate.
      
      * net/tramp-sh.el (tramp-methods) [scp1, scp2, ssh1, ssh2, plink1]:
      Remove methods.
      (top): Remove completion functions for "scp1", "scp2", "ssh1",
      "ssh2" and "plink1".
      36a8b68b
  21. 26 Feb, 2013 1 commit
  22. 23 Feb, 2013 1 commit
    • Michael Albinus's avatar
      * net/tramp.el (tramp-methods): Fix docstring. · c57a0aff
      Michael Albinus authored
      (tramp-ssh-controlmaster-options): Rename it from
      `tramp-ssh-controlmaster-template'.  Return a string.
      (tramp-default-method): Adapt check for
      `tramp-ssh-controlmaster-options'.
      
      * net/tramp-sh.el (tramp-methods): Replace
      `tramp-ssh-controlmaster-template' by "%c".
      (tramp-do-copy-or-rename-file-out-of-band)
      (tramp-maybe-open-connection): Use it in format spec.  Ensure,
      that it is applied for the first hop only.
      c57a0aff
  23. 22 Feb, 2013 1 commit
  24. 21 Feb, 2013 1 commit
  25. 18 Feb, 2013 1 commit
    • Michael Albinus's avatar
      * eshell/em-unix.el (eshell/su): Require tramp. · c9bcc580
      Michael Albinus authored
      (eshell/sudo): Require tramp.  Remove now unnecessary check.
      
      * net/tramp-sh.el (tramp-sh-handle-start-file-process): Let-bind
      `tramp-current-connection' in order to avoid an error when several
      commands are invoked in a short time in eshell and friends.
      c9bcc580
  26. 16 Feb, 2013 1 commit
  27. 13 Feb, 2013 1 commit
    • Michael Albinus's avatar
      Use ControlMaster where applicable. (Bug#13677) · d7291032
      Michael Albinus authored
      * net/tramp.el (tramp-ssh-controlmaster-template): New defvar,
      replacing `tramp-detect-ssh-controlmaster'.
      (tramp-default-method): Use it.
      
      * net/tramp-sh.el (tramp-methods) [scp, scp1, scp2, scpx, sftp]:
      [rsync, ssh, ssh1, ssh2, sshx]: Add ControlPath and ControlMaster
      arguments.
      [scpc, rsyncc]: Remove methods.
      (top): Remove completion functions for "scpc", "rsyncc", "ssh1_old"
      and "ssh2_old".
      (tramp-do-copy-or-rename-file-out-of-band):  Change trace level.
      (tramp-maybe-open-connection): Reuse tmpfile for ControlPath.
      d7291032
  28. 12 Feb, 2013 1 commit
  29. 03 Feb, 2013 1 commit
  30. 31 Jan, 2013 1 commit
  31. 30 Jan, 2013 2 commits
  32. 29 Jan, 2013 3 commits
  33. 24 Jan, 2013 1 commit