1. 01 Jan, 2015 2 commits
  2. 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
  3. 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
  4. 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
  5. 22 Jun, 2014 1 commit
  6. 15 Jun, 2014 1 commit
    • Michael Albinus's avatar
      Sync with Tramp 2.2.10. · 493ce45c
      Michael Albinus authored
      * lisp/net/tramp-adb.el (tramp-adb-handle-write-region): Improve messages.
      (tramp-adb-maybe-open-connection): Don't set
      `tramp-current-*' variables.
      
      * lisp/net/tramp-cache.el (tramp-flush-file-function): Do not flush
      file properties of temporary buffers.
      
      * lisp/net/tramp-ftp.el (top): Remove special handling for URL syntax.
      
      * lisp/net/tramp-gvfs.el (tramp-gvfs-methods) <sftp>: Add.
      (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): `user' and `localname' could be nil.
      (tramp-gvfs-send-command): Simplify traces.
      
      * lisp/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-do-copy-or-rename-file-out-of-band): 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-write-region): Tweak error message.
      (tramp-sh-handle-vc-registered): Remove backends when the remote
      binary does not exist.
      (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.
      
      * lisp/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.
      
      * lisp/net/tramp.el (tramp-methods): Tweak docstring.
      (tramp-handle-file-accessible-directory-p): Check for
      `file-readable-p' instead of `file-executable-p'.
      (tramp-check-cached-permissions): Use
      `tramp-compat-file-attributes'.
      (tramp-call-process): Add new argument VEC.  Adapt callees in all
      tramp*.el files.
      
      * lisp/net/trampver.el: Update release number.
      493ce45c
  7. 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
  8. 01 Jan, 2014 1 commit
  9. 11 Nov, 2013 1 commit
    • Michael Albinus's avatar
      * net/tramp-sh.el (tramp-do-copy-or-rename-file-via-buffer) · 7ce8fcc3
      Michael Albinus authored
      (tramp-sh-handle-file-local-copy): Don't write a message when
      saving temporary files.
      
      * net/tramp-smb.el (tramp-smb-handle-copy-directory): Fix bug when
      both directories are remote.
      (tramp-smb-handle-directory-files): Do not return double entries.
      Do not expand full file names.
      (tramp-smb-handle-insert-directory): Accept nil SWITCHES.
      (tramp-smb-handle-write-region): Implement APPEND.
      (tramp-smb-get-stat-capability): Fix a stupid bug.
      7ce8fcc3
  10. 28 Oct, 2013 1 commit
  11. 18 Oct, 2013 1 commit
  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. 16 Oct, 2013 1 commit
    • Michael Albinus's avatar
      * net/tramp-smb.el (tramp-smb-acl-program): New customer option. · f19da8ad
      Michael Albinus authored
      (tramp-smb-errors): Add error messages.
      (tramp-smb-actions-with-acl): New defconst.
      (tramp-smb-file-name-handler-alist) [set-file-acl]: Add handler.
      (tramp-smb-action-with-acl, tramp-smb-handle-set-file-acl): New defuns.
      (tramp-smb-handle-file-acl): Rewrite, using "smbcacls".
      (tramp-smb-handle-file-attributes): Simplify test for "stat" capability.
      (tramp-smb-get-stat-capability): Fix tests.
      f19da8ad
  14. 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
  15. 10 Sep, 2013 1 commit
    • Michael Albinus's avatar
      * net/tramp.el (tramp-cleanup): Remove. Functionality added to · 6480194c
      Michael Albinus authored
      `tramp-cleanup-connection'.
      
      * net/tramp-cmds.el (tramp-cleanup-connection): Add optional
      parameters KEEP-DEBUG and KEEP-PASSWORD.
      
      * net/tramp.el (tramp-file-name-handler):
      * net/tramp-adb.el (tramp-adb-maybe-open-connection):
      * net/tramp-sh.el (tramp-open-connection-setup-interactive-shell)
      (tramp-maybe-open-connection):
      * net/tramp-smb.el (tramp-smb-maybe-open-connection): Use
      `tramp-cleanup-connection'.
      
      * net/tramp-sh.el (tramp-maybe-open-connection): Catch
      'uname-changed inside the progress reporter.
      6480194c
  16. 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
  17. 03 Sep, 2013 1 commit
  18. 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
  19. 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
  20. 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
  21. 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
  22. 23 Jul, 2013 1 commit
  23. 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
  24. 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
  25. 02 Jan, 2013 1 commit
  26. 01 Jan, 2013 1 commit
  27. 30 Dec, 2012 1 commit
  28. 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
  29. 14 Dec, 2012 1 commit
  30. 23 Oct, 2012 1 commit
  31. 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
  32. 15 Aug, 2012 1 commit
  33. 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
  34. 09 Apr, 2012 1 commit
  35. 25 Feb, 2012 1 commit
  36. 11 Jan, 2012 1 commit
  37. 05 Jan, 2012 1 commit
  38. 31 Dec, 2011 1 commit