1. 23 Feb, 2014 1 commit
  2. 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
  3. 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
  4. 10 Feb, 2014 3 commits
  5. 08 Feb, 2014 1 commit
  6. 06 Feb, 2014 1 commit
  7. 05 Feb, 2014 1 commit
    • Michael Albinus's avatar
      Make heredocs more robust in Tramp. · 9a83b32b
      Michael Albinus authored
      * net/tramp-sh.el (tramp-end-of-heredoc): New defconst.
      (tramp-sh-handle-set-file-acl)
      (tramp-sh-handle-start-file-process)
      (tramp-sh-handle-write-region, tramp-sh-handle-vc-registered)
      (tramp-find-executable, tramp-send-command): Use it.
      9a83b32b
  8. 01 Jan, 2014 2 commits
  9. 06 Dec, 2013 1 commit
    • Michael Albinus's avatar
      Bug#16045 · 4803595d
      Michael Albinus authored
      * progmodes/compile.el (compilation-start):
      * progmodes/grep.el (rgrep): Revert change of 2012-12-20T11:15:38Z!michael.albinus@gmx.de.
      
      * net/tramp-sh.el (tramp-sh-handle-start-file-process):
      Handle long command lines, lasting from "sh -c ...".  (Bug#16045)
      4803595d
  10. 02 Dec, 2013 1 commit
  11. 26 Nov, 2013 1 commit
  12. 15 Nov, 2013 1 commit
  13. 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
  14. 10 Nov, 2013 1 commit
  15. 08 Nov, 2013 1 commit
  16. 07 Nov, 2013 1 commit
  17. 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
  18. 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
  19. 29 Oct, 2013 1 commit
  20. 28 Oct, 2013 1 commit
  21. 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
  22. 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
  23. 19 Sep, 2013 2 commits
    • Michael Albinus's avatar
      Fix previous patch. · e189e54e
      Michael Albinus authored
      e189e54e
    • Michael Albinus's avatar
      * net/tramp-sh.el (tramp-get-remote-id): Do not raise an error. · 85e05915
      Michael Albinus authored
      (tramp-get-remote-uid-with-id, tramp-get-remote-gid-with-id)
      (tramp-get-remote-python): New defuns.
      (tramp-get-remote-uid-with-perl)
      (tramp-get-remote-gid-with-perl): New defuns.  Perl code
      contributed by yary <not.com@gmail.com> (tiny change).
      (tramp-get-remote-uid-with-python)
      (tramp-get-remote-gid-with-python): New defuns.  Python code
      contributed by Andrey Tykhonov <atykhonov@gmail.com> (tiny change).
      (tramp-get-remote-uid, tramp-get-remote-gid): Use new defuns.
      85e05915
  24. 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
  25. 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
  26. 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
  27. 03 Sep, 2013 1 commit
  28. 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
  29. 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
  30. 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
  31. 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
  32. 29 Jul, 2013 1 commit
  33. 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
  34. 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