1. 07 Aug, 2019 2 commits
  2. 06 Aug, 2019 1 commit
    • Michael Albinus's avatar
      Fix Bug#36940 · 998f3612
      Michael Albinus authored
      * test/lisp/net/tramp-tests.el (tramp--test-file-attributes-equal-p):
      Make the check more precise.  (Bug#36940)
      (tramp-test19-directory-files-and-attributes): Move some checks to
      `tramp--test-file-attributes-equal-p'.
      998f3612
  3. 05 Aug, 2019 1 commit
    • Michael Albinus's avatar
      Improve Tramp's caching · 6c1d0d53
      Michael Albinus authored
      * lisp/net/tramp.el (tramp-handle-add-name-to-file)
      (tramp-handle-write-region):
      * lisp/net/tramp-adb.el (tramp-adb-handle-make-directory)
      (tramp-adb-handle-delete-directory)
      (tramp-adb-handle-delete-file, tramp-adb-handle-write-region)
      (tramp-adb-handle-set-file-modes)
      (tramp-adb-handle-set-file-times, tramp-adb-handle-copy-file)
      (tramp-adb-handle-rename-file):
      * lisp/net/tramp-gvfs.el (tramp-gvfs-do-copy-or-rename-file)
      (tramp-gvfs-handle-delete-directory)
      (tramp-gvfs-handle-delete-file)
      (tramp-gvfs-handle-make-directory)
      (tramp-gvfs-handle-set-file-modes)
      (tramp-gvfs-handle-set-file-times, tramp-gvfs-set-file-uid-gid):
      * lisp/net/tramp-rclone.el (tramp-rclone-do-copy-or-rename-file)
      (tramp-rclone-handle-delete-directory)
      (tramp-rclone-handle-delete-file):
      * lisp/net/tramp-sh.el (tramp-sh-handle-make-symbolic-link)
      (tramp-sh-handle-set-file-modes, tramp-sh-handle-set-file-times)
      (tramp-sh-handle-add-name-to-file)
      (tramp-sh-handle-copy-directory, tramp-do-copy-or-rename-file)
      (tramp-sh-handle-delete-directory, tramp-sh-handle-delete-file)
      (tramp-sh-handle-write-region):
      * lisp/net/tramp-smb.el (tramp-smb-handle-add-name-to-file)
      (tramp-smb-handle-copy-directory, tramp-smb-handle-copy-file)
      (tramp-smb-handle-delete-directory)
      (tramp-smb-handle-delete-file)
      (tramp-smb-handle-make-directory-internal)
      (tramp-smb-handle-make-symbolic-link)
      (tramp-smb-handle-rename-file, tramp-smb-handle-write-region):
      * lisp/net/tramp-sudoedit.el (tramp-sudoedit-handle-add-name-to-file)
      (tramp-sudoedit-do-copy-or-rename-file)
      (tramp-sudoedit-handle-delete-directory)
      (tramp-sudoedit-handle-delete-file)
      (tramp-sudoedit-handle-set-file-modes)
      (tramp-sudoedit-handle-set-file-times)
      (tramp-sudoedit-handle-make-symbolic-link): Do not flush all file
      properties of upper directory.
      
      * lisp/net/tramp-cache.el (tramp-flush-file-upper-properties):
      New defun.
      (tramp-flush-file-properties, tramp-flush-directory-properties):
      Use it.
      
      * test/lisp/net/tramp-tests.el (tramp-time-diff): Declare.
      (tramp--test-file-attributes-equal-p): Handle also modification
      and status change time.
      6c1d0d53
  4. 04 Aug, 2019 1 commit
    • Michael Albinus's avatar
      Implement set-file-* functions for tramp-gvfs.el · 2abcca23
      Michael Albinus authored
      * lisp/net/tramp-gvfs.el (tramp-gvfs-gio-mapping):
      Add "gvfs-set-attribute".
      (tramp-gvfs-file-name-handler-alist):
      Add `tramp-gvfs-handle-set-file-modes',
      `tramp-gvfs-handle-set-file-times' and
      `tramp-gvfs-handle-set-file-uid-gid'.
      (tramp-gvfs-handle-set-file-modes)
      (tramp-gvfs-handle-set-file-times)
      (tramp-sh-handle-set-file-uid-gid): New defuns.
      
      * lisp/net/tramp.el (tramp-handle-write-region): Set file modes.
      
      * test/lisp/net/tramp-tests.el (tramp-test20-file-modes)
      (tramp-test22-file-times): Do not skip for tramp-gvfs.el.
      2abcca23
  5. 22 Jul, 2019 1 commit
  6. 18 Jul, 2019 1 commit
  7. 12 Jul, 2019 1 commit
    • Michael Albinus's avatar
      Check directory in Tramp's {copy,rename}-file · 955db220
      Michael Albinus authored
      * lisp/net/tramp-adb.el (tramp-adb-handle-copy-file)
      (tramp-adb-handle-rename-file):
      * lisp/net/tramp-gvfs.el (tramp-gvfs-do-copy-or-rename-file):
      * lisp/net/tramp-rclone.el (tramp-rclone-do-copy-or-rename-file):
      * lisp/net/tramp-sh.el (tramp-do-copy-or-rename-file):
      * lisp/net/tramp-smb.el (tramp-smb-handle-copy-file)
      (tramp-smb-handle-rename-file):
      * lisp/net/tramp-sudoedit.el (tramp-sudoedit-do-copy-or-rename-file):
      Check, that NEWNAME is not a directory given as file name.
      
      * test/lisp/net/tramp-tests.el (tramp-test11-copy-file)
      (tramp-test12-rename-file): Extend tests.
      955db220
  8. 30 Jun, 2019 1 commit
    • Michael Albinus's avatar
      Release Tramp 2.4.2 · 10af8c58
      Michael Albinus authored
      * lisp/net/tramp.el: Bump version.
      
      * test/lisp/net/tramp-tests.el (tramp--test-instrument-test-case):
      Add `add-name-to-file' error message.
      (tramp--test-ignore-add-name-to-file-error): Make error handler
      more explicit about the error.
      10af8c58
  9. 28 Jun, 2019 1 commit
    • Michael Albinus's avatar
      Tramp requires Emacs 24.4 · aae5bf44
      Michael Albinus authored
      * doc/misc/tramp.texi (Frequently Asked Questions):
      Use `with-eval-after-load'. in example.
      
      * doc/misc/trampver.texi: Set variable emacsver.
      
      * lisp/net/tramp.el (tramp-send-string, tramp-call-process)
      (tramp-call-process-region, tramp-process-lines):
      * lisp/net/tramp-adb.el (tramp-adb-handle-file-truename)
      (tramp-adb-sh-fix-ls-output, tramp-adb-maybe-open-connection):
      * lisp/net/tramp-gvfs.el (tramp-gvfs-get-directory-attributes)
      (tramp-gvfs-handle-file-notify-add-watch)
      * lisp/net/tramp-sh.el (tramp-sh-handle-file-truename)
      (tramp-do-copy-or-rename-file-out-of-band)
      (tramp-sh-handle-file-notify-add-watch, tramp-find-executable)
      (tramp-set-remote-path)
      (tramp-open-connection-setup-interactive-shell)
      (tramp-maybe-open-connection, tramp-send-command):
      * lisp/net/tramp-smb.el (tramp-smb-handle-copy-directory)
      (tramp-smb-handle-file-acl, tramp-smb-handle-process-file)
      (tramp-smb-handle-set-file-acl)
      (tramp-smb-handle-start-file-process)
      (tramp-smb-maybe-open-connection):
      * lisp/net/tramp-sudoedit.el (tramp-sudoedit-handle-set-file-acl):
      (tramp-sudoedit-send-command): Use `string-join' and `string-empty-p'.
      
      * lisp/net/tramp-adb.el:
      * lisp/net/tramp-archive.el:
      * lisp/net/tramp-integration.el:
      * lisp/net/tramp-ftp.el: Use `with-eval-after-load'.
      
      * lisp/net/tramp-cmds.el (tramp-cleanup-connection)
      (tramp-cleanup-all-connections): Cancel timer.
      
      * lisp/net/tramp-compat.el (subr-x): Require.
      (default-toplevel-value): Don't make it a defalias.
      
      * lisp/net/tramp-gvfs.el: Use `dbus-event-error-functions'.  Do
      not special handle `split-string'.
      
      * lisp/net/tramp.el: Require Emacs 24.4.
      (tramp-password-prompt-regexp): Use `password-word-equivalents'.
      (tramp-user-error): Use `user-error'.
      (tramp-replace-environment-variables): Use `substitute-env-vars'.
      (tramp-wait-for-regexp): Rearrange `with-current-buffer' call.
      (tramp-get-local-gid): Use `group-gid'.
      
      * lisp/net/trampver.el: Check for Emacs 24.4.
      
      * test/lisp/net/tramp-tests.el (tramp-test02-file-name-dissect)
      (tramp-test02-file-name-dissect-simplified)
      (tramp-test02-file-name-dissect-separate)
      (tramp-test03-file-name-host-rules)
      (tramp-test03-file-name-method-rules): Don't check for `user-error'.
      aae5bf44
  10. 26 Jun, 2019 2 commits
  11. 24 Jun, 2019 1 commit
    • Michael Albinus's avatar
      Improve error handling in Tramp · 18a7e541
      Michael Albinus authored
      * lisp/net/tramp-compat.el (ls-lisp): Require.
      
      * lisp/net/tramp.el (ls-lisp-use-insert-directory-program):
      Don't declare.
      (tramp-current-connection): Adapt docstring.
      (tramp-debug-message): Adapt function names.
      (tramp-error, tramp-run-real-handler): Let-bind `signal-hook-function'.
      (tramp-signal-hook-function): New defun.
      (tramp-debug-on-error, tramp-condition-case-unless-debug): Remove.
      (tramp-file-name-handler): Handle `tramp-current-connection'.
      Let-bind `signal-hook-function'.  Use `unwind-protect' instead of
      `tramp-condition-case-unless-debug'.
      (tramp-handle-insert-directory): Don't require ls-lisp.
      (tramp-process-actions): Check, that
      `tramp-password-save-function' is non-nil.
      (tramp-equal-remote): Handle the case both files are local.
      
      * test/lisp/net/tramp-tests.el (tramp--test-instrument-test-case):
      Do not bind `tramp-debug-on-error'.
      (tramp--test-ignore-make-symbolic-link-error): Make error handler
      more explicit about the error.
      18a7e541
  12. 15 Jun, 2019 3 commits
  13. 14 Jun, 2019 1 commit
  14. 11 Jun, 2019 1 commit
  15. 10 Jun, 2019 1 commit
    • Michael Albinus's avatar
      Make tramp-test43-asynchronous-requests working, again · 03b66d23
      Michael Albinus authored
      * test/lisp/net/tramp-tests.el (tramp-list-tramp-buffers):
      Declare `tramp-list-tramp-buffers'.
      (tramp--test-ignore-make-symbolic-link-error)
      (tramp--test-ignore-add-name-to-file-error): Improve declaration.
      (tramp--test-with-proper-process-name-and-buffer): New macro.
      (tramp-test43-asynchronous-requests): Use the macro for timer,
      process filter and process sentinel.  Comment the remote file
      operation in the timer.  Remove further async events.  Accept
      output from all processes.
      03b66d23
  16. 04 Jun, 2019 1 commit
    • Michael Albinus's avatar
      Stronger check for Tramp method · 7aaf5007
      Michael Albinus authored
      * lisp/net/tramp-gvfs.el (tramp-gvfs-maybe-open-connection):
      * lisp/net/tramp-rclone.el (tramp-rclone-maybe-open-connection):
      * lisp/net/tramp-sudoedit.el (tramp-sudoedit-maybe-open-connection):
      Use `tramp-get-connection-name'.
      
      * lisp/net/tramp-sh.el (tramp-sh-handle-make-symbolic-link):
      * lisp/net/tramp-smb.el (tramp-smb-handle-make-symbolic-link):
      * lisp/net/tramp-sudoedit.el (tramp-sudoedit-handle-make-symbolic-link):
      Don't check remote TARGET.
      
      * lisp/net/tramp.el (tramp-dissect-file-name): Check for proper method.
      (tramp-file-name-for-operation): Take only 2nd argument into
      account for file name handler.
      (tramp-file-name-handler): Suppress checks for `file-remote-p'.
      
      * test/lisp/net/tramp-archive-tests.el
      (tramp-archive-test02-file-name-dissect): Suppress check for wrong
      method.
      
      * test/lisp/net/tramp-tests.el (tramp--test-instrument-test-case):
      Dump *all* Tramp buffers.
      (tramp-test02-file-name-dissect)
      (tramp-test02-file-name-dissect-simplified)
      (tramp-test02-file-name-dissect-separate): Check also wrong method.
      (tramp-test03-file-name-defaults): Check, that the respective
      Tramp package is loaded.
      (tramp-test04-substitute-in-file-name)
      (tramp-test05-expand-file-name)
      (tramp-test06-directory-file-name, tramp-test44-auto-load):
      Suppress check for wrong method.
      (tramp-test30-make-process): Remove instrumentation code.
      (tramp-test31-interrupt-process, tramp-test36-vc-registered):
      Guarantee that connection is established prior starting process.
      7aaf5007
  17. 18 May, 2019 1 commit
  18. 09 May, 2019 1 commit
  19. 08 May, 2019 2 commits
  20. 05 May, 2019 1 commit
    • Juri Linkov's avatar
      Rename shell-command-width to async-shell-command-width (bug#35055) · df9b56ec
      Juri Linkov authored
      * lisp/simple.el (async-shell-command-width):
      * lisp/net/tramp.el (tramp-handle-shell-command):
      * test/lisp/net/tramp-tests.el (tramp-test32-shell-command):
      * doc/misc/tramp.texi (Remote processes): Rename this variable.
      
      * doc/emacs/misc.texi (Single Shell): Add async-shell-command-width.
      df9b56ec
  21. 29 Apr, 2019 1 commit
  22. 22 Apr, 2019 1 commit
    • Michael Albinus's avatar
      Some changes in tramp-tests · 02894982
      Michael Albinus authored
      * test/lisp/net/tramp-tests.el (tramp-test32-shell-command):
      Check for backward compatibility.
      (tramp-test33-environment-variables): Apply a better check for
      unset variable.
      02894982
  23. 19 Apr, 2019 2 commits
  24. 18 Apr, 2019 1 commit
  25. 17 Apr, 2019 4 commits
  26. 13 Apr, 2019 1 commit
    • Michael Albinus's avatar
      Replace (skip-unless nil) by tag :unstable in test packages · ae21fb3d
      Michael Albinus authored
      * test/lisp/filenotify-tests.el (file-notify--deftest-remote):
      Use tag :unstable if SKIP is non-nil.
      
      * test/lisp/net/tramp-tests.el (tramp-test36-vc-registered):
      Use ert-skip instead of (skip-unless nil).
      
      * test/lisp/progmodes/python-tests.el
      (python-tests--python-nav-end-of-statement--infloop): Use tag
      :unstable instead of (skip-unless nil).
      ae21fb3d
  27. 05 Apr, 2019 1 commit
    • Michael Albinus's avatar
      Adapt tramp-tests.el · f2d22273
      Michael Albinus authored
      * test/lisp/net/tramp-tests.el (tramp-test30-make-process):
      Instrument test.  Adapt check string.
      (tramp-test34-explicit-shell-file-name)
      (tramp-test43-asynchronous-requests): Skip tests for tramp-adb
      with older Emacsen.
      f2d22273
  28. 04 Apr, 2019 1 commit
  29. 03 Apr, 2019 1 commit
    • Michael Albinus's avatar
      Work on asynchronous processes for tramp-adb.el · 8147d3c2
      Michael Albinus authored
      * lisp/net/tramp-adb.el (tramp-adb-handle-make-process):
      Simplify.  Remove echoed first line.
      (tramp-adb-send-command): Add NEVEROPEN and NOOUTPUT.
      
      * lisp/net/tramp-sh.el (tramp-process-sentinel): Remove.
      (tramp-sh-handle-make-process): Simplify.
      
      * lisp/net/tramp.el (tramp-process-sentinel): New defun, taken from
      tramp-sh.el.  Delete trailing shell prompt.
      
      * test/lisp/net/tramp-tests.el (tramp-test29-start-file-process)
      (tramp-test30-make-process): Run also for tramp-adb.
      (tramp-test32-shell-command): Remove tramp-adb restrictions.
      (tramp-test34-explicit-shell-file-name): Rework.  Remove :unstable tag.
      8147d3c2
  30. 29 Mar, 2019 1 commit
  31. 23 Mar, 2019 1 commit
    • Michael Albinus's avatar
      Fix Bug#34943 · a3194e7b
      Michael Albinus authored
      * lisp/files-x.el (cl-lib): Require when compiling.
      (hack-connection-local-variables): Regard connection-local
      variables as safe.  (Bug#34943)
      
      * lisp/shell.el (shell): Use `with-connection-local-variables' for
      the whole code block.  (Bug#34943)
      
      * lisp/net/tramp-adb.el (tramp-connection-local-safe-shell-file-names):
      Do not set values.
      
      * lisp/net/tramp-integration.el
      (tramp-connection-local-safe-shell-file-names): Remove.
      (shell-file-name, shell-command-switch): Do not add safe-local-variable
      property.
      
      * lisp/net/tramp.el (tramp-handle-shell-command): Use proper
      buffer name.
      
      * test/lisp/net/tramp-tests.el (tramp-test34-explicit-shell-file-name):
      Tag it :unstable.
      a3194e7b