1. 05 Jan, 2018 1 commit
    • Michael Albinus's avatar
      Add new Tramp connection method "owncloud" · b74fdf44
      Michael Albinus authored
      * doc/misc/tramp.texi (all): Use @acronym{GNOME} thoroughly.
      (Using GNOME Online Accounts based methods): Rename from
      "Using Google Drive".  Add `owncloud'.
      (GVFS based methods): Add `owncloud'.
      
      * etc/NEWS: Add Tramp connection method "owncloud".
      
      * lisp/net/tramp-gvfs.el (tramp-gvfs-methods): Add "owncloud".
      Remove goa methods if not supported.
      (tramp-goa-methods, tramp-goa-service, tramp-goa-path)
      (tramp-goa-path-accounts, tramp-goa-interface-documents)
      (tramp-goa-interface-printers, tramp-goa-interface-files)
      (tramp-goa-interface-contacts, tramp-goa-interface-calendar)
      (tramp-goa-interface-oauth2based)
      (tramp-goa-interface-account, tramp-goa-identity-regexp)
      (tramp-goa-interface-mail, tramp-goa-interface-chat)
      (tramp-goa-interface-photos, tramp-goa-path-manager)
      (tramp-goa-interface-documents)
      (tramp-gvfs-owncloud-default-prefix)
      (tramp-gvfs-owncloud-default-prefix-regexp): New defconst.
      (tramp-goa-name): New defstruct.
      (tramp-gvfs-stringify-dbus-message): Handle all consp messages.
      (tramp-dbus-function, tramp-gvfs-get-remote-prefix)
      (tramp-get-goa-accounts): New defun.
      (with-tramp-dbus-call-method): Use it.
      (with-tramp-dbus-get-all-properties): New defmacro.
      (tramp-gvfs-url-file-name)
      (tramp-gvfs-handler-mounted-unmounted)
      (tramp-gvfs-connection-mounted-p, tramp-gvfs-mount-spec):
      Map between "owncloud" and "davs".
      (tramp-gvfs-maybe-open-connection): Set "vector" connection property.
      
      * test/lisp/net/tramp-tests.el (tramp-gvfs-handler-askquestion):
      Suppress run in tests.
      (tramp--test-owncloud-p): New defun.
      (tramp-test11-copy-file, tramp-test12-rename-file): Use it.
      b74fdf44
  2. 04 Jan, 2018 1 commit
    • Michael Albinus's avatar
      Write proper `write-region' message in Tramp backends · 13d38482
      Michael Albinus authored
      * lisp/net/tramp-adb.el (tramp-adb-handle-write-region):
      * lisp/net/tramp-gvfs.el (tramp-gvfs-handle-write-region):
      * lisp/net/tramp-sh.el (tramp-sh-handle-write-region):
      * lisp/net/tramp-smb.el (tramp-smb-handle-write-region):
      Write proper message.
      
      * lisp/net/tramp.el (tramp-message-show-message): Change default.
      
      * test/lisp/net/tramp-tests.el (ert-x): Require it.
      (tramp-test10-write-region): Extend test.
      13d38482
  3. 01 Jan, 2018 1 commit
  4. 17 Dec, 2017 1 commit
    • Michael Albinus's avatar
      Minor fixes in Tramp · b4486de0
      Michael Albinus authored
      * lisp/net/tramp-archive.el
      (tramp-archive-handle-temporary-file-directory): New defun.
      (tramp-archive-file-name-handler-alist): Use it.
      
      * test/lisp/net/tramp-archive-tests.el
      (tramp-archive-test99-libarchive-tests): Rename it.
      
      * test/lisp/net/tramp-tests.el (tramp-test34-vc-registered):
      Skip for older Emacsen.
      b4486de0
  5. 16 Dec, 2017 2 commits
    • Michael Albinus's avatar
      Improve fix for Bug#29712 · ac53084f
      Michael Albinus authored
      * test/lisp/net/tramp-tests.el
      (tramp-test32-environment-variables-and-port-numbers):
      Adapt check for systems which do not support "echo -n".  (Bug#29712)
      ac53084f
    • Michael Albinus's avatar
      Suppress timers in Tramp operations · f63d9f86
      Michael Albinus authored
      * lisp/net/tramp.el (tramp-accept-process-output):
      * lisp/net/tramp-adb.el (tramp-adb-handle-start-file-process):
      * lisp/net/tramp-sh.el (tramp-do-copy-or-rename-file-out-of-band)
      (tramp-sh-handle-start-file-process):
      * 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): Suppress timers.
      
      * test/lisp/net/tramp-tests.el (tramp-test41-asynchronous-requests):
      Use $REMOTE_PARALLEL_PROCESSES.  Flush cache prior file operations.
      Add instrumentation messages.
      f63d9f86
  6. 15 Dec, 2017 1 commit
  7. 09 Dec, 2017 3 commits
    • Michael Albinus's avatar
      Sync with Tramp 2.4.0-pre · 34bedf5d
      Michael Albinus authored
      * doc/misc/trampver.texi:
      * lisp/net/trampver.el: Change version to "2.4.0-pre".
      
      * lisp/net/tramp-adb.el (tramp-adb-file-name-handler-alist):
      Use `tramp-handle-file-directory-p'.
      (tramp-adb-parse-device-names)
      (tramp-adb-handle-expand-file-name)
      (tramp-adb-handle-file-truename, tramp-adb-handle-process-file):
      Adapt `tramp-make-tramp-file-name' call.
      (tramp-adb-handle-file-directory-p): Remove.
      (tramp-adb-maybe-open-connection): Do not set
      tramp-current-*.
      
      * lisp/net/tramp-cache.el (tramp-get-hash-table):
      Adapt `tramp-make-tramp-file-name' call.
      
      * lisp/net/tramp-cmds.el (tramp-cleanup-connection): Do not set
      tramp-current-*.
      
      * lisp/net/tramp-gvfs.el (tramp-gvfs-file-name-handler-alist):
      Use `tramp-handle-file-directory-p'.
      (tramp-gvfs-dbus-event-error): Trace with verbosity 6.
      (tramp-gvfs-do-copy-or-rename-file): Use `file-truename'.
      (tramp-gvfs-handle-file-directory-p): Remove.
      (tramp-gvfs-handler-askpassword): Do not set tramp-current-*.
      
      * lisp/net/tramp-sh.el (tramp-do-copy-or-rename-file-out-of-band)
      (tramp-sh-handle-start-file-process)
      (tramp-maybe-open-connection, tramp-get-remote-path): Do not
      set tramp-current-*.
      (tramp-maybe-open-connection): Set "password-vector" property.
      
      * lisp/net/tramp-smb.el (tramp-smb-file-name-handler-alist):
      Use `tramp-handle-file-accessible-directory-p' and
      `tramp-handle-file-directory-p'.
      (tramp-smb-handle-copy-directory, tramp-smb-handle-file-acl)
      (tramp-smb-handle-set-file-acl)
      (tramp-smb-maybe-open-connection): Do not set tramp-current-*.
      (tramp-smb-handle-file-directory-p): Remove.
      (tramp-smb-handle-make-symbolic-link):
      Use `tramp-get-connection-buffer' rather than `buffer-name'.
      
      * lisp/net/tramp.el (tramp-current-method, tramp-current-user)
      (tramp-current-domain, tramp-current-host)
      (tramp-current-port): Remove.
      (tramp-dissect-file-name): No special handling of localname anymore.
      (tramp-make-tramp-file-name): Reimplemnt with new signature.
      (tramp-completion-make-tramp-file-name): Fix docstring.
      (tramp-get-buffer, tramp-handle-file-name-as-directory)
      (tramp-handle-file-name-directory)
      (tramp-check-cached-permissions, tramp-local-host-p)
      (tramp-get-remote-tmpdir, tramp-clear-passwd):
      Adapt `tramp-make-tramp-file-name' call.
      (tramp-completion-handle-file-name-all-completions)
      (tramp-action-login, tramp-read-passwd): Do not set
      tramp-current-*.
      (tramp-handle-file-directory-p): New defun.
      (tramp-handle-verify-visited-file-modtime): Remove superfluous
      `with-parsed-tramp-file-name'.
      (tramp-process-actions, tramp-read-passwd):
      Use "password-vector" property.
      (tramp-call-process, tramp-call-process-region): No special
      setting of vec.
      (tramp-read-passwd): Handle "login-as" property.
      
      * test/lisp/net/tramp-tests.el (tramp-test21-file-links):
      Special code for "smb".
      34bedf5d
    • Michael Albinus's avatar
      Minor Tramp fixes · b067fa1f
      Michael Albinus authored
      * lisp/net/tramp-gvfs.el (tramp-gvfs-do-copy-or-rename-file):
      Fix a bug when renaming.
      
      * test/lisp/net/tramp-tests.el (tramp-test21-file-links): Extend test.
      (tramp-test42-delay-load, tramp-test42-remote-load-path):
      Skip unless Emacs >= 26.
      b067fa1f
    • Michael Albinus's avatar
      Fix Bug#29579 · 9d9cbafc
      Michael Albinus authored
      * lisp/files.el (file-name-non-special):
      Inhibit `file-name-handler-alist' only for some operations.
      Add missing operations.  (Bug#29579)
      
      * lisp/net/tramp-compat.el (tramp-compat-file-name-quote):
      Do not quote if it is quoted already.
      
      * lisp/net/tramp-smb.el (tramp-smb-handle-insert-directory):
      Use `copy-tree' but `copy-sequence'.
      
      * lisp/net/tramp.el (tramp-handle-file-truename): Handle several
      trailing slashes correctly.
      
      * test/lisp/net/tramp-tests.el (tramp-test11-copy-file)
      (tramp-test12-rename-file, tramp-test24-file-acl)
      (tramp-test25-file-selinux, tramp--test-check-files):
      Handle also quoted file names.
      (tramp-test21-file-links): Fix file name quoting test.
      (tramp-test24-file-acl): Be more robust for "smb" method.
      (tramp-test35-make-auto-save-file-name): Enable hidden test cases.
      9d9cbafc
  8. 08 Dec, 2017 1 commit
    • Michael Albinus's avatar
      Minor Tramp fixes · 7eea3144
      Michael Albinus authored
      * lisp/net/tramp-gvfs.el (tramp-gvfs-do-copy-or-rename-file):
      Fix a bug when renaming.
      
      * test/lisp/net/tramp-tests.el (tramp-test21-file-links): Extend test.
      (tramp-test42-delay-load, tramp-test42-remote-load-path):
      Skip unless Emacs >= 26.
      7eea3144
  9. 06 Dec, 2017 1 commit
    • Michael Albinus's avatar
      Fix Bug#29579 · a1bbc490
      Michael Albinus authored
      * lisp/files.el (file-name-non-special):
      Inhibit `file-name-handler-alist' only for some operations.
      Add missing operations.  (Bug#29579)
      
      * lisp/net/tramp-compat.el (tramp-compat-file-name-quote):
      Do not quote if it is quoted already.
      
      * lisp/net/tramp-smb.el (tramp-smb-handle-insert-directory):
      Use `copy-tree' but `copy-sequence'.
      
      * lisp/net/tramp.el (tramp-handle-file-truename): Handle several
      trailing slashes correctly.
      
      * test/lisp/net/tramp-tests.el (tramp-test11-copy-file)
      (tramp-test12-rename-file, tramp-test24-file-acl)
      (tramp-test25-file-selinux, tramp--test-check-files):
      Handle also quoted file names.
      (tramp-test21-file-links): Fix file name quoting test.
      (tramp-test24-file-acl): Be more robust for "smb" method.
      (tramp-test35-make-auto-save-file-name): Enable hidden test cases.
      a1bbc490
  10. 30 Nov, 2017 1 commit
  11. 29 Nov, 2017 1 commit
    • Michael Albinus's avatar
      Some minor Tramp corrections · 3dd25aee
      Michael Albinus authored
      * lisp/net/tramp.el (tramp-handle-directory-file-name):
      Handle several trailing slashes correctly.
      (tramp-handle-file-selinux-context): New defun.
      
      * lisp/net/tramp-adb.el (tramp-adb-file-name-handler-alist):
      * lisp/net/tramp-gvfs.el (tramp-gvfs-file-name-handler-alist):
      * lisp/net/tramp-smb.el (tramp-smb-file-name-handler-alist):
      Use `tramp-handle-file-selinux-context'.
      
      * test/lisp/net/tramp-tests.el (tramp-test06-directory-file-name):
      Extend test.
      (tramp-test17-insert-directory): Make check more robust.
      (tramp-test42-auto-load): Combine several let forms.
      (tramp-test42-delay-load, tramp-test42-recursive-load)
      (tramp-test42-remote-load-path, tramp-test43-unload): Rename.
      3dd25aee
  12. 27 Nov, 2017 1 commit
    • Michael Albinus's avatar
      Fix Bug#29163 · 06d05fec
      Michael Albinus authored
      * lisp/net/tramp.el (tramp-autoload-file-name-regexp):
      Do not use "\\'" in regexp.  (Bug#29163)
      (top) Do not run (tramp-register-autoload-file-name-handlers)
      when loading tramp.el.
      
      * test/lisp/net/tramp-tests.el (tramp--test-mock-p): New defun.
      (tramp-test32-environment-variables-and-port-numbers)
      (tramp-test41-asynchronous-requests): Use it.
      (tramp-test42-auto-load): New test.
      (tramp-test43-recursive-load, tramp-test44-remote-load-path)
      (tramp-test45-delay-load, tramp-test46-unload): Rename.
      06d05fec
  13. 25 Nov, 2017 1 commit
  14. 19 Nov, 2017 5 commits
  15. 18 Nov, 2017 1 commit
    • Michael Albinus's avatar
      Fix bug in tramp-handle-file-truename · c355529b
      Michael Albinus authored
      * lisp/net/tramp.el (tramp-handle-file-truename): Expand localname.
      
      * test/lisp/net/tramp-tests.el (tramp-test21-file-links): Check also
      relative symbolic links.
      c355529b
  16. 17 Nov, 2017 2 commits
  17. 16 Nov, 2017 1 commit
  18. 14 Nov, 2017 2 commits
    • Michael Albinus's avatar
      Fix Bug#29291 · a5ec644c
      Michael Albinus authored
      * test/lisp/net/tramp-tests.el (tramp-test24-file-acl):
      Preserve permissions when copying.  (Bug#29291)
      a5ec644c
    • Michael Albinus's avatar
      Fix Bug#2928 · 8b900e5b
      Michael Albinus authored
      * test/lisp/net/tramp-tests.el (tramp-test25-file-selinux):
      Enhance test.  (Bug#29287)
      (tramp-test44-delay-load): Fix for older Emacsen.
      8b900e5b
  19. 12 Nov, 2017 1 commit
    • Michael Albinus's avatar
      Fix Bug#29225 · 48ad0039
      Michael Albinus authored
      * src/fileio.c (Fset_file_acl): Report error only when
      acl_errno_valid returns true.  (Bug#29225)
      
      * test/lisp/net/tramp-tests.el (tramp-test24-file-acl)
      (tramp-test25-file-selinux): New tests.
      (tramp-test26-file-name-completion, tramp-test27-load)
      (tramp-test28-process-file, tramp-test29-start-file-process)
      (tramp-test30-interrupt-process, tramp-test31-shell-command)
      (tramp-test32-environment-variables)
      (tramp-test32-environment-variables-and-port-numbers)
      (tramp-test33-explicit-shell-file-name)
      (tramp-test34-vc-registered)
      (tramp-test35-make-auto-save-file-name)
      (tramp-test36-find-backup-file-name)
      (tramp-test37-make-nearby-temp-file)
      (tramp-test38-special-characters)
      (tramp-test38-special-characters-with-stat)
      (tramp-test38-special-characters-with-perl)
      (tramp-test38-special-characters-with-ls, tramp-test39-utf8)
      (tramp-test39-utf8-with-stat, tramp-test39-utf8-with-perl)
      (tramp-test39-utf8-with-ls, tramp-test40-file-system-info)
      (tramp-test41-asynchronous-requests)
      (tramp-test42-recursive-load, tramp-test43-remote-load-path)
      (tramp-test44-delay-load, tramp-test45-unload): Rename.
      48ad0039
  20. 06 Nov, 2017 1 commit
  21. 05 Nov, 2017 1 commit
    • Michael Albinus's avatar
      Do not load Tramp unless `tramp-mode' is non-nil · ca2d94ba
      Michael Albinus authored
      * lisp/net/tramp.el (tramp-autoload-file-name-handler): Load Tramp only if
      `tramp-mode' is non-nil.
      (tramp-unload-file-name-handlers): Unload also
      `tramp-autoload-file-name-handler'.
      
      * test/lisp/net/tramp-tests.el (tramp-test42-delay-load): Extend test.
      ca2d94ba
  22. 26 Oct, 2017 1 commit
    • Michael Albinus's avatar
      Fix Bug#28959 · 646e56e1
      Michael Albinus authored
      * lisp/net/tramp.el (tramp-handle-find-backup-file-name):
      Use `tramp-tramp-file-p' rather than `tramp-file-name-p'.  Add
      hop to backup file name.  (Bug#28959)
      
      * test/lisp/net/tramp-tests.el (tramp-test34-find-backup-file-name):
      New test.
      (tramp-test35-make-nearby-temp-file)
      (tramp-test36-special-characters)
      (tramp-test36-special-characters-with-stat)
      (tramp-test36-special-characters-with-perl)
      (tramp-test36-special-characters-with-ls, tramp-test37-utf8)
      (tramp-test37-utf8-with-stat, tramp-test37-utf8-with-perl)
      (tramp-test37-utf8-with-ls, tramp-test38-file-system-info)
      (tramp-test39-asynchronous-requests)
      (tramp-test40-recursive-load, tramp-test41-remote-load-path)
      (tramp-test42-delay-load, tramp-test43-unload): Rename.
      646e56e1
  23. 24 Oct, 2017 1 commit
  24. 23 Oct, 2017 1 commit
  25. 20 Oct, 2017 1 commit
    • Michael Albinus's avatar
      Fix Bug#28896 · b500e06f
      Michael Albinus authored
      * lisp/net/tramp-adb.el (tramp-adb-handle-rename-file):
      * lisp/net/tramp-gvfs.el (tramp-gvfs-do-copy-or-rename-file):
      * lisp/net/tramp-sh.el (tramp-do-copy-or-rename-file): Handle FILENAME
      being a directory.  (Bug#28896)
      
      * test/lisp/net/tramp-tests.el (tramp-test11-copy-file)
      (tramp-test12-rename-file): Test also FILENAME being a directory.
      b500e06f
  26. 19 Oct, 2017 1 commit
  27. 10 Oct, 2017 1 commit
  28. 08 Oct, 2017 1 commit
  29. 03 Oct, 2017 1 commit
    • Michael Albinus's avatar
      Add support for `file-system-info' in Tramp · a9ac20c1
      Michael Albinus authored
      * lisp/net/tramp.el (tramp-file-name-for-operation):
      Add `file-system-info'.
      
      * lisp/net/tramp-adb.el (tramp-adb-handle-file-system-info): New defun.
      (tramp-adb-file-name-handler-alist): Use it.
      
      * lisp/net/tramp-gvfs.el (tramp-gvfs-file-system-attributes)
      (tramp-gvfs-file-system-attributes-regexp): New defconst.
      (tramp-gvfs-handle-file-system-info): New defun.
      (tramp-gvfs-file-name-handler-alist): Use it.
      (tramp-gvfs-get-directory-attributes): Fix property name.
      (tramp-gvfs-get-root-attributes): Support also file system attributes.
      
      * lisp/net/tramp-sh.el (tramp-sh-handle-file-system-info): New defun.
      (tramp-sh-file-name-handler-alist): Use it.
      (tramp-sh-handle-insert-directory): Insert size information.
      (tramp-get-remote-df): New defun.
      
      * lisp/net/tramp-smb.el (tramp-smb-handle-file-system-info): New defun.
      (tramp-smb-file-name-handler-alist): Use it.
      (tramp-smb-handle-insert-directory): Insert size information.
      
      * test/lisp/net/tramp-tests.el (tramp-test37-file-system-info):
      New test.
      (tramp-test38-asynchronous-requests)
      (tramp-test39-recursive-load, tramp-test40-remote-load-path)
      (tramp-test41-unload): Rename.
      a9ac20c1
  30. 29 Sep, 2017 1 commit
  31. 25 Sep, 2017 1 commit