1. 01 Dec, 2020 1 commit
    • Michael Albinus's avatar
      Allow Tramp to mirror traces to a file · ba692b79
      Michael Albinus authored
      * doc/misc/tramp.texi (Traces and Profiles): Add `tramp-debug-to-file'.
      
      * lisp/net/tramp-adb.el (tramp-adb-parse-device-names)
      (tramp-adb-get-device):
      * lisp/net/tramp-cmds.el (tramp-rename-files):
      * lisp/net/tramp-gvfs.el (tramp-gvfs-monitor-process-filter)
      (tramp-gvfs-handler-volumeadded-volumeremoved)
      (tramp-get-media-devices):
      * lisp/net/tramp-sh.el (tramp-sh-handle-file-notify-add-watch)
      (tramp-sh-gio-monitor-process-filter)
      (tramp-sh-gvfs-monitor-dir-process-filter)
      (tramp-sh-inotifywait-process-filter, tramp-maybe-send-script)
      (tramp-find-inline-encoding):
      * lisp/net/tramp-smb.el (tramp-smb-handle-copy-directory)
      (tramp-smb-handle-file-acl, tramp-smb-handle-set-file-acl):
      Use `tramp-compat-string-replace'.
      
      * lisp/net/tramp-compat.el (tramp-compat-string-replace): New defalias.
      
      * lisp/net/tramp.el (tramp-debug-to-file): New defcustom.
      (tramp-get-debug-buffer): Simplify.
      (tramp-get-debug-file-name): New defun.
      (tramp-debug-message): Write debug file if indicated.
      ba692b79
  2. 30 Nov, 2020 1 commit
    • Michael Albinus's avatar
      Adapt Tramp versions · 84a4dd13
      Michael Albinus authored
      * doc/misc/tramp.texi (Obtaining @value{tramp}):
      (Remote shell setup, Remote processes, Archive file names):
      * lisp/net/trampver.el (customize-package-emacs-version-alist):
      Adapt Tramp versions.
      84a4dd13
  3. 23 Nov, 2020 1 commit
    • Mattias Engdegård's avatar
      Fix 'See @xref{...}' (bug#44811) · d645b6f9
      Mattias Engdegård authored
      Reported by 황병희.
      
      * doc/lispref/edebug.texi (Printing in Edebug):
      * doc/misc/ebrowse.texi (Marking Classes):
      * doc/misc/gnus.texi (Ma Gnus):
      * doc/misc/tramp.texi (Remote shell setup):
      Don't stutter (@xref expands to 'See ...').
      d645b6f9
  4. 01 Nov, 2020 1 commit
    • Michael Albinus's avatar
      Trash remote files to local trash (Bug#44216) · 06585bb9
      Michael Albinus authored
      * doc/misc/tramp.texi (Frequently Asked Questions): Add trashing.
      
      * lisp/net/tramp-adb.el (tramp-adb-handle-delete-directory)
      (tramp-adb-handle-delete-file):
      * lisp/net/tramp-gvfs.el (tramp-gvfs-handle-delete-directory)
      (tramp-gvfs-handle-delete-file):
      * lisp/net/tramp-sh.el (tramp-sh-handle-delete-directory)
      (tramp-sh-handle-delete-file):
      * lisp/net/tramp-smb.el (tramp-smb-handle-delete-directory)
      (tramp-smb-handle-delete-file):
      * lisp/net/tramp-sudoedit.el (tramp-sudoedit-handle-delete-directory)
      (tramp-sudoedit-handle-delete-file): Implement local trash.  (Bug#44216)
      
      * lisp/net/tramp-crypt.el (tramp-crypt-handle-delete-directory)
      (tramp-crypt-handle-delete-file): Do not trash.
      
      * lisp/net/tramp.el (tramp-skeleton-delete-directory): New defmacro.
      
      * test/lisp/net/tramp-tests.el (tramp-test07-file-exists-p)
      (tramp-test14-delete-directory): Add trashing.
      06585bb9
  5. 12 Oct, 2020 1 commit
    • Michael Albinus's avatar
      Make tramp-completion-reread-directory-timeout obsolete (Bug#43932) · 7d598e28
      Michael Albinus authored
      * doc/misc/tramp.texi (File name completion, Frequently Asked Questions):
      Remove `tramp-completion-reread-directory-timeout'.  (Bug#43932)
      
      * etc/NEWS: Mention tramp-completion-reread-directory-timeout as obsolete.
      
      * lisp/net/tramp.el (tramp-completion-reread-directory-timeout):
      Make it obsolete.
      7d598e28
  6. 07 Oct, 2020 2 commits
  7. 01 Oct, 2020 1 commit
  8. 24 Sep, 2020 1 commit
    • Michael Albinus's avatar
      Minor Tramp cleanup · de54cd6f
      Michael Albinus authored
      * doc/misc/tramp.texi: Some stylistic changes.
      (Frequently Asked Questions): Mention ProxyCommand and ProxyJump.
      
      * lisp/net/tramp-sh.el (tramp-use-ssh-controlmaster-options):
      Fix docstring.
      de54cd6f
  9. 21 Sep, 2020 1 commit
  10. 09 Sep, 2020 1 commit
    • Michael Albinus's avatar
      Adapt Tramp doc · 9de9976d
      Michael Albinus authored
      * doc/misc/tramp.texi (Remote shell setup):
      Mention password-word-equivalents.
      
      * lisp/net/tramp.el (tramp-password-prompt-regexp): Fix docstring.
      9de9976d
  11. 25 Aug, 2020 1 commit
    • Michael Albinus's avatar
      Sync with Tramp 2.4.5-pre · 4657f08b
      Michael Albinus authored
      * doc/misc/tramp.texi: Adapt Tramp and Emacs version numbers.
      (Remote processes): Describe `process-file-return-signal-string'
      and $INSIDE_EMACS.
      (Frequently Asked Questions): Mention Emacs 28.
      Describe `tramp-smb-options'.
      
      * doc/misc/trampver.texi: Change version to "2.4.5-pre".
      
      * lisp/net/tramp-adb.el (process-file-return-signal-string): Declare.
      (tramp-adb-handle-write-region): Flush the cache after the file
      has been written.
      (tramp-adb-handle-set-file-modes, tramp-adb-handle-set-file-times):
      Add optional _FLAG.
      (tramp-adb-handle-copy-file, tramp-adb-handle-rename-file)
      (tramp-adb-handle-process-file): Use `tramp-file-local-name'.
      (tramp-adb-get-signal-strings): New defun.
      (tramp-adb-handle-process-file): Use it.
      (tramp-adb-handle-make-process): Implement `stderr'.  Use
      `insert-file-contents-literally'.
      (tramp-adb-send-command-and-check): Add optional argument
      EXIT-STATUS.
      (tramp-adb-handle-process-file): Use it.
      
      * lisp/net/tramp-archive.el (tramp-archive-file-name-handler):
      Increase `max-specpdl-size' temporarily.
      
      * lisp/net/tramp-cache.el (top):
      Use `insert-file-contents-literally'.
      
      * lisp/net/tramp-cmds.el (tramp-rename-files):
      Use `tramp-file-local-name'.
      
      * lisp/net/tramp-gvfs.el (tramp-gvfs-enabled): Prevent crash for
      older Emacsen.
      (top): Adapt `tramp-gvfs-unload-hook'.
      (tramp-gvfs-handle-file-system-info): Fix error.
      (tramp-gvfs-handle-set-file-modes, tramp-gvfs-handle-set-file-times):
      Add optional _FLAG.
      
      * lisp/net/tramp-rclone.el (tramp-rclone-flush-directory-cache):
      Fix a problem with older Emacsen.
      
      * lisp/net/tramp-sh.el (process-file-return-signal-string): Declare.
      (tramp-sh-extra-args): Add "-noediting" as bash arg.
      (tramp-hexdump-encode, tramp-hexdump-awk-encode)
      (tramp-od-encode, tramp-od-awk-encode): New defconst.
      (tramp-awk-encode, tramp-awk-decode): Adapt.
      (tramp-awk-coding-test): Remove.
      (tramp-remote-coding-commands): Add hexdump/awk encoding.  (Bug#35639)
      (tramp-find-inline-encoding): Adapt handling of awk, hexdump and od.
      (tramp-get-remote-busybox, tramp-get-remote-awk)
      (tramp-get-remote-hexdump, tramp-get-remote-od): New defuns.
      (tramp-sh-handle-make-symbolic-link):
      (tramp-do-copy-or-rename-file-directly)
      (tramp-sh-handle-process-file, tramp-set-remote-path)
      (tramp-find-inline-encoding, tramp-get-remote-touch):
      Use `tramp-file-local-name'.
      (tramp-do-file-attributes-with-stat): Simplify shell command.
      Suppress errors (interpret as nil).
      (tramp-sh-handle-set-file-modes, tramp-sh-handle-set-file-times):
      Add optional _FLAG.
      (tramp-sh-handle-make-process): Do not visit with
      `insert-file-contents'.  Delete tmp file only if exists.  Support
      `stderr' as file name.  Delete temporary stderr file.  Flush
      connection properties in time.
      (tramp-sh-get-signal-strings): New defun.
      (tramp-sh-handle-process-file): Use it.
      (tramp-sh-handle-write-region): Copy to temp file only if FILENAME
      exists.  (Bug#40156)
      (tramp-set-remote-path): Send the command in several chunks if it
      is too large.  (Bug#42538)
      (tramp-open-connection-setup-interactive-shell): Move up "set +o
      vi +o emacs" command.   (Bug#39399)
      (tramp-send-command-and-read): Suppress `signal-hook-function'
      when reading expression.
      (tramp-send-command-and-check): Add optional argument EXIT-STATUS.
      (tramp-sh-handle-process-file): Use it.  (Bug#41099)
      
      * lisp/net/tramp-smb.el (tramp-smb-conf): Fix docstring.
      (tramp-smb-options): New defcustom.
      (tramp-smb-handle-copy-directory, tramp-smb-handle-file-acl)
      (tramp-smb-handle-set-file-acl, tramp-smb-maybe-open-connection):
      Use it.
      (tramp-smb-errors): Add "NT_STATUS_INVALID_PARAMETER".
      (tramp-smb-handle-make-symbolic-link)
      (tramp-smb-handle-process-file): Use `tramp-file-local-name'.
      
      * lisp/net/tramp-sudoedit.el (tramp-sudoedit-do-copy-or-rename-file):
      (tramp-sudoedit-handle-set-file-uid-gid):
      Use `tramp-unquote-file-local-name'.
      (tramp-sudoedit-handle-make-symbolic-link):
      Use `tramp-file-local-name'.
      (tramp-sudoedit-handle-file-system-info): Fix a scoping error.
      (tramp-sudoedit-handle-set-file-modes):
      (tramp-sudoedit-handle-set-file-times): Add optional _FLAG.
      
      * lisp/net/tramp.el: Bump version to 2.4.5-pre.
      (tramp-file-local-name, tramp-unquote-file-local-name): New defuns.
      (tramp-set-connection-local-variables-for-buffer)
      (tramp-equal-remote, tramp-handle-make-auto-save-file-name):
      Use `tramp-tramp-file-p'.
      (tramp-parse-file): Use `insert-file-contents-literally'.
      (tramp-handle-file-modes, tramp-handle-file-times):
      Add optional _FLAG.
      (tramp-handle-shell-command): Fix `window-start' in output buffer.
      (Bug#39171)
      Handle `shell-command-dont-erase-buffer'.  (Bug#39067)
      Reorganize error-buffer handling.  Set `default-directory'.
      (Bug#39253)
      (tramp-handle-shell-command, tramp-handle-start-file-process):
      Implement asynchronous `error-buffer'.
      (tramp-action-process-alive): Read pending output.
      (tramp-read-passwd): Use `tramp-compat-temporary-file-directory'.
      (Bug#39389, Bug#39489)
      (tramp-interrupt-process): Improve command.
      
      * lisp/net/trampver.el: Change version to "2.4.5-pre".
      (tramp-repository-branch, tramp-repository-version):
      Bind `debug-on-error' to nil.
      
      * test/lisp/net/tramp-tests.el (tramp-get-remote-gid)
      (process-file-return-signal-string)
      (shell-command-dont-erase-buffer): Declare.
      (tramp-test10-write-region, tramp-test28-process-file)
      (tramp-test29-start-file-process, tramp-test30-make-process)
      (tramp-test31-interrupt-process, tramp-test32-shell-command):
      Extend test.
      (tramp-test10-write-region, tramp-test21-file-links): Use function
      symbols.
      (tramp-test18-file-attributes): Check `file-ownership-preserved-p'
      only if possible.
      (tramp--test-async-shell-command): New defun.
      (tramp--test-shell-command-to-string-asynchronously): Use it.
      (tramp-test32-shell-command-dont-erase-buffer): New test.
      4657f08b
  12. 23 Aug, 2020 1 commit
    • Michael Albinus's avatar
      Rework direct async processes in Tramp · 4aff89ec
      Michael Albinus authored
      * doc/misc/tramp.texi (Remote processes): Precise restrictions for direct
      async processes.
      
      * lisp/net/tramp.el (tramp-methods): Adapt docstring.
      (tramp-direct-async-process-p): Make it more precise.
      (tramp-handle-make-process): Rewrite, based on `make-process'.
      
      * test/lisp/net/tramp-tests.el (tramp-test-temporary-file-directory):
      Add `tramp-direct-async-args` for mock method.
      (tramp-test29-start-file-process, tramp-test30-make-process):
      Use weaker regexp checking "foo".
      (tramp-test30-make-process): Do not check stderr for direct async processes.
      (tramp--test--deftest-direct-async-process): New defmacro.
      (tramp-test29-start-file-process-direct-async)
      (tramp-test30-make-process-direct-async): New tests.
      4aff89ec
  13. 12 Aug, 2020 1 commit
    • Michael Albinus's avatar
      Implement Tramp direct async processes fallback for multi-hops · 34c17cd8
      Michael Albinus authored
      * doc/misc/tramp.texi (Remote processes): Precise restrictions for direct
      async processes.
      
      * lisp/net/tramp-adb.el (tramp-adb-handle-make-process):
      * lisp/net/tramp-sh.el (tramp-sh-handle-make-process):
      Use `tramp-direct-async-process-p'.
      
      * lisp/net/tramp.el (tramp-direct-async-process-p): New defun.
      (tramp-handle-make-process): Adapt handling of :stderr.  Simplify.
      34c17cd8
  14. 09 Aug, 2020 2 commits
    • Eli Zaretskii's avatar
      Fix recently added documentation bits · ec323389
      Eli Zaretskii authored
      * lisp/simple.el (async-shell-command-buffer)
      (async-shell-command, shell-command, shell-command-on-region):
      * lisp/dired-aux.el (dired-do-async-shell-command)
      (dired-do-shell-command):
      * doc/misc/tramp.texi (Remote processes):
      * doc/emacs/misc.texi (Single Shell):
      * etc/NEWS: Fix wording and punctuation of recently added
      documentation.
      ec323389
    • Tino Calancha's avatar
      Add constants for shell command output buffer names · 2ed502d2
      Tino Calancha authored
      Buffers `*Shell Command Output*' and `*Async Shell Command*'
      have been around since a long time; used across several libraries,
      they are de facto output buffers for shell commands.
      
      * lisp/simple.el (shell-command-buffer-name)
      (shell-command-buffer-name-async): New variables.
      * lisp/dired-aux.el
      * lisp/gnus/gnus-sum.el
      * lisp/gnus/gnus-win.el
      * lisp/ibuf-ext.el
      * lisp/net/tramp.el: Use them.
      
      * etc/NEWS (Changes in Emacs 28.1): Announce this change.
      
      * doc/emacs/misc.texi (Single Shell)
      * doc/misc/tramp.texi (Remote processes):
      Update manual (bug#39138).
      2ed502d2
  15. 06 Aug, 2020 1 commit
    • Paul Eggert's avatar
      Simplify Solaris port · 155b2c8a
      Paul Eggert authored
      This should avoid some configuration confusion as exemplified
      by Jeffrey Walton’s recent bug report (Bug#42675).
      * configure.ac (opsys): Simplify Solaris configuration by
      not worrying about Solaris 9 and earlier, as they are no
      longer supported by the Solaris developers.  This should
      support Walton’s ‘./configure --build=x86_64-sun-solaris’.
      Instead of bothering with ‘opsys=sol2-6’ and ‘opsys=sol2-10’,
      just use ‘opsys=solaris’.  All uses changed.
      (emacs_check_sunpro_c): Remove unused var.
      * doc/misc/tramp.texi (Remote programs):
      * etc/MACHINES, etc/PROBLEMS:
      Modernize PATH for Oracle Developer Studio.
      * etc/PROBLEMS: Move Solaris-related problems to legacy area,
      except those that are still relevant.
      155b2c8a
  16. 04 Aug, 2020 1 commit
    • Michael Albinus's avatar
      Add Tramp support of direct asynchronous process invocation · 83b1db04
      Michael Albinus authored
      * doc/misc/tramp.texi (Predefined connection information):
      Add "direct-async-process".
      (Remote processes): New subsection "Improving performance of
      asynchronous remote processes".
      
      * lisp/net/tramp-adb.el (tramp-methods) <adb>: Add `tramp-login-program'
      and `tramp-login-args'.
      (tramp-adb-handle-make-process): Use `tramp-handle-make-process'.
      (tramp-adb-maybe-open-connection): Add "set +o vi +o emacs" command.
      
      * lisp/net/tramp-sh.el (tramp-sh-handle-make-process):
      Use `tramp-handle-make-process'.
      (tramp-sh-file-name-handler-p, tramp-multi-hop-p): New defuns.
      (tramp-compute-multi-hops): Use `tramp-multi-hop-p'.
      
      * lisp/net/tramp.el (tramp-dissect-file-name, tramp-dissect-hop-name):
      Use `tramp-multi-hop-p'.
      (tramp-handle-insert-file-contents, tramp-local-host-p):
      Use `tramp-sh-file-name-handler-p'.
      (tramp-handle-make-process): New defun.
      
      * test/README: Add another example how to use SELECTOR.
      
      * test/lisp/net/tramp-tests.el (tramp-test03-file-name-method-rules):
      Adapt test.
      (tramp--test-sh-p): Use `tramp-sh-file-name-handler-p'.
      83b1db04
  17. 29 Jul, 2020 1 commit
    • Michael Albinus's avatar
      Tramp doc edit · 4a07d3c7
      Michael Albinus authored
      * doc/misc/tramp.texi: Use it.
      
      * doc/misc/trampver.texi: Declare @trampurl.
      4a07d3c7
  18. 02 Jul, 2020 1 commit
  19. 16 Jun, 2020 1 commit
  20. 12 Jun, 2020 1 commit
    • Michael Albinus's avatar
      Further fixes while testing tramp-crypt · 459bd56f
      Michael Albinus authored
      * doc/misc/tramp.texi (External methods): Remove experimental note
      for rclone.
      (Keeping files encrypted): Mark file encryption as experimental.
      
      * lisp/net/tramp-adb.el (tramp-adb-file-name-handler-alist):
      Use `tramp-handle-file-truename'.
      (tramp-adb-handle-file-truename): Remove.
      
      * lisp/net/tramp-crypt.el (tramp-crypt-file-name-handler-alist):
      Add `file-writable-p'.
      (tramp-crypt-send-command): Return t if no error.
      (tramp-crypt-do-encrypt-or-decrypt-file-name)
      (tramp-crypt-do-encrypt-or-decrypt-file): Raise an error if it fails.
      (tramp-crypt-do-copy-or-rename-file): Flush file properties also
      when copying a directory.
      (tramp-crypt-handle-file-writable-p): New defun.
      (tramp-crypt-handle-insert-directory): Check for library
      `text-property-search'.
      
      * lisp/net/tramp-gvfs.el (tramp-gvfs-handle-set-file-uid-gid):
      Rename from `tramp-gvfs-set-file-uid-gid'.
      
      * lisp/net/tramp-sh.el (tramp-sh-handle-file-truename):
      Use `tramp-handle-file-truename' as fallback.
      
      * lisp/net/tramp.el (tramp-handle-file-truename):
      Let-bind `tramp-crypt-enabled' to nil.
      (tramp-handle-write-region): Set also file ownership.
      
      * test/lisp/net/tramp-tests.el (tramp-test17-insert-directory):
      Skip if needed.
      459bd56f
  21. 10 Jun, 2020 1 commit
    • Michael Albinus's avatar
      Futher tramp-crypt implementation and documentation · b19259c8
      Michael Albinus authored
      * doc/misc/tramp.texi (Top, Configuration): Insert section
      `Keeping files encrypted' in menu.
      (Keeping files encrypted): New node.
      
      * lisp/net/tramp-crypt.el (tramp-crypt-file-name-handler-alist):
      Add `tramp-set-file-uid-gid'.
      (tramp-crypt-maybe-open-connection): Simplify.
      (tramp-crypt-do-encrypt-or-decrypt-file): Use `binary' coding system.
      (tramp-crypt-handle-set-file-uid-gid): New defun.
      
      * test/lisp/net/tramp-tests.el (tramp-test09-insert-file-contents):
      Adapt test.
      b19259c8
  22. 16 May, 2020 1 commit
    • Michael Albinus's avatar
      Introduce process-file-return-signal-string · bbbab82a
      Michael Albinus authored
      * doc/lispref/processes.texi (Synchronous Processes):
      Describe `process-file-return-signal-string'.
      
      * doc/misc/tramp.texi: Adapt Tramp and Emacs version numbers.
      (Remote processes): Describe `process-file-return-signal-string'
      and $INSIDE_EMACS.
      
      * etc/NEWS: Describe `process-file-return-signal-string'.  Fix typos.
      
      * lisp/simple.el (process-file-return-signal-string): New user option.
      
      * lisp/net/tramp-adb.el (tramp-adb-handle-process-file):
      * lisp/net/tramp-sh.el (tramp-sh-handle-process-file): Use it.
      
      * lisp/net/tramp.el (tramp-get-signal-strings): New defun.
      
      * test/lisp/net/tramp-tests.el (tramp-test28-process-file): Adapt test.
      bbbab82a
  23. 22 Apr, 2020 1 commit
    • Michael Albinus's avatar
      Support old SMB1 protocol in Tramp · ab214143
      Michael Albinus authored
      * doc/misc/tramp.texi (Frequently Asked Questions):
      Describe `tramp-smb-options'.
      
      * lisp/net/tramp-smb.el (tramp-smb-conf): Fix docstring.
      (tramp-smb-options): New defcustom.
      (tramp-smb-handle-copy-directory, tramp-smb-handle-file-acl)
      (tramp-smb-handle-set-file-acl, tramp-smb-maybe-open-connection):
      Use it.
      ab214143
  24. 09 Apr, 2020 1 commit
  25. 25 Mar, 2020 1 commit
  26. 23 Jan, 2020 1 commit
    • Michael Albinus's avatar
      Implement "/media::" default host name in Tramp · 8fbc2fd4
      Michael Albinus authored
      * doc/misc/tramp.texi (GVFS-based methods): Describe default
      /media:: file name.
      
      * lisp/net/tramp-cache.el (tramp-get-file-property)
      (tramp-set-file-property): Check, whether
      `tramp-cache-{g,s}et-count-*' objects are numbers.
      
      * lisp/net/tramp-gvfs.el (top): Don't set global default for
      "media" in `tramp-default-host-alist'.
      (tramp-gvfs-handler-volumeadded-volumeremoved): New defun.
      (top): Register "org.gtk.Private.RemoteVolumeMonitor.VolumeAdded"
      and "org.gtk.Private.RemoteVolumeMonitor.VolumeRemoved" signals.
      (tramp-get-media-devices): Set defaults for "media" in
      `tramp-default-host-alist'.
      8fbc2fd4
  27. 22 Jan, 2020 2 commits
    • Michael Albinus's avatar
      Add new Tramp method "media" · 2d9d62bb
      Michael Albinus authored
      * doc/misc/tramp.texi (Quick Start Guide, GVFS-based methods):
      Add media devices.
      
      * etc/NEWS: Mention new Tramp method "media".
      
      * lisp/net/tramp-gvfs.el (tramp-gvfs-methods): Add "media" method.
      (tramp-goa-methods): Add tramp-autoload cookie.
      (tramp-media-methods): New defvar.
      (tramp-gvfs-service-volumemonitor): New defsubst.
      (top): Remove media methods if not supported.  Add defaults for
      `tramp-default-host-alist'.
      (tramp-goa-account): Rename from `tramp-goa-name'.  Adapt all callees.
      (tramp-gvfs-service-afc-volumemonitor)
      (tramp-gvfs-service-goa-volumemonitor)
      (tramp-gvfs-service-gphoto2-volumemonitor)
      (tramp-gvfs-service-mtp-volumemonitor)
      (tramp-gvfs-path-remotevolumemonitor)
      (tramp-gvfs-interface-remotevolumemonitor): New defconsts.
      (tramp-media-device): New defstruct.
      (tramp-gvfs-activation-uri): New defun.
      (tramp-gvfs-url-file-name): Use it.
      (tramp-gvfs-handler-mounted-unmounted)
      (tramp-gvfs-connection-mounted-p, tramp-gvfs-mount-spec):
      Handle "media" method.
      (tramp-get-goa-account): Rename from `tramp-make-goa-name'.  Adapt
      all callees.
      (tramp-get-goa-accounts): Adapt docstring.  Cache with nil key.
      (tramp-parse-goa-accounts, tramp-get-media-device)
      (tramp-get-media-devices)
      (tramp-parse-media-names): New defuns.
      (top): Rework completion function registration.
      
      * lisp/net/tramp.el (tramp-dns-sd-service-regexp): New defconst.
      (tramp-set-completion-function): Use it.
      2d9d62bb
    • Michael Albinus's avatar
  28. 19 Jan, 2020 1 commit
    • Michael Albinus's avatar
      Sync with Tramp 2.5.0-pre · 0ad895df
      Michael Albinus authored
      * doc/misc/tramp.texi:  Protext Tramp x.y and Emacs x.y by @w{}.
      (GVFS-based methods): Move "GNOME Online Accounts" index.
      (Customizing Methods, Android shell setup, File name completion)
      (Frequently Asked Questions): Fix typos.
      
      * doc/misc/trampver.texi: Change version to "2.5.0-pre".
      
      * lisp/net/trampver.el: Change version to "2.5.0-pre".
      (inhibit-message): Don't declare.
      
      * lisp/net/tramp.el: Bump version to 2.5.0-pre.  Require Emacs 25.1.
      (tramp-debug-message): Simplify.
      (tramp-message): Don't use `tramp-message-show-message'.
      (tramp-with-demoted-errors, with-parsed-tramp-file-name)
      (with-tramp-file-property, with-tramp-connection-property):
      Adapt `declare' form.
      (with-tramp-progress-reporter): Suppress progress reporter when
      noninteractive.
      (tramp-completion-mode, tramp-completion-mode-p): Remove.
      
      * lisp/net/tramp-compat.el (tramp-compat-process-running-p)
      (format-message): Remove compatibility code.
      (tramp-compat-directory-name-p)
      (tramp-compat-tramp-file-name-slots): Remove.
      
      * lisp/net/tramp.el (tramp-debug-message, tramp-message)
      (tramp-backtrace, tramp-error, tramp-error-with-buffer)
      (tramp-user-error, tramp-with-demoted-errors)
      (tramp-signal-hook-function):
      * lisp/net/tramp-compat.el (tramp-compat-funcall)
      * lisp/net/tramp-gvfs.el (tramp-dbus-function):
      Add `tramp-suppress-trace' property.
      
      * lisp/net/tramp.el (tramp-get-method-parameter)
      (tramp-dissect-file-name, tramp-error, tramp-error-with-buffer)
      (tramp-user-error, with-parsed-tramp-file-name)
      (with-tramp-progress-reporter, tramp-file-name-handler)
      (tramp-completion-file-name-handler, tramp-autoload-file-name-handler)
      (tramp-register-file-name-handlers, tramp-connectable-p)
      (tramp-handle-file-modes, tramp-handle-file-regular-p)
      (tramp-handle-file-truename, tramp-handle-insert-directory)
      (tramp-handle-load, tramp-set-file-uid-gid):
      * lisp/net/tramp-adb.el (tramp-adb-file-name-handler)
      (tramp-adb-handle-file-truename, tramp-adb-handle-copy-file)
      (tramp-adb-handle-rename-file):
      * lisp/net/tramp-archive.el (with-parsed-tramp-archive-file-name):
      * lisp/net/tramp-cache.el (tramp-get-file-property, tramp-cache-print):
      * lisp/net/tramp-compat.el (tramp-compat-process-running-p)
      (tramp-compat-exec-path):
      * lisp/net/tramp-gvfs.el (tramp-gvfs-file-name-handler)
      (tramp-gvfs-dbus-byte-array-to-string)
      (tramp-gvfs-do-copy-or-rename-file):
      * lisp/net/tramp-rclone.el (tramp-rclone-file-name-handler)
      (tramp-rclone-do-copy-or-rename-file):
      * lisp/net/tramp-sh.el (tramp-sh-handle-file-truename)
      (tramp-sh-handle-copy-directory, tramp-do-copy-or-rename-file)
      (tramp-sh-handle-insert-directory, tramp-sh-file-name-handler)
      (tramp-maybe-open-connection):
      * lisp/net/tramp-smb.el (tramp-smb-file-name-handler)
      (tramp-smb-handle-copy-file, tramp-smb-handle-copy-directory)
      (tramp-smb-handle-copy-file, tramp-smb-handle-insert-directory)
      (tramp-smb-handle-rename-file, tramp-smb-maybe-open-connection):
      * lisp/net/tramp-sudoedit.el (tramp-sudoedit-file-name-handler)
      (tramp-sudoedit-do-copy-or-rename-file)
      (tramp-sudoedit-handle-file-truename):
      Use `if-let', `when-let', `directory-name-p', `inhibit-message',
      `non-essential and `cl-struct-slot-info'.  Don't use `seconds-to-time'.
      
      * test/lisp/net/tramp-archive-tests.el (tramp-message-show-message):
      Don't set.
      
      * test/lisp/net/tramp-tests.el (inhibit-message): Don't declare.
      (tramp-message-show-message): Don't set.
      (tramp-test06-directory-file-name): Use `non-essential'.
      (tramp-test10-write-region): Use `inhibit-message'.
      (tramp-test36-vc-registered): No special handling for old Emacsen.
      (tramp--test-emacs25-p): Remove.
      (tramp-test45-unload): Special case of `tramp-completion-mode'.
      0ad895df
  29. 06 Jan, 2020 1 commit
    • Michael Albinus's avatar
      ; Sync with Tramp repository · 823ce3aa
      Michael Albinus authored
      * doc/misc/tramp.texi (Frequently Asked Questions): Mention Emacs 28.
      
      * doc/misc/trampver.texi:
      * lisp/net/trampver.el: Change version to "2.4.4-pre".
      
      * lisp/net/tramp-adb.el (tramp-adb-handle-copy-file)
      (tramp-adb-handle-rename-file, tramp-adb-handle-process-file):
      Use `tramp-file-local-name'.
      (tramp-adb-handle-exec-path): Expand `default-directory'.
      
      * lisp/net/tramp-cmds.el (tramp-rename-files):
      Use `tramp-file-local-name'.
      
      * lisp/net/tramp-sh.el (tramp-sh-handle-make-symbolic-link)
      (tramp-do-copy-or-rename-file-directly)
      (tramp-sh-handle-process-file, tramp-set-remote-path)
      (tramp-find-inline-encoding, tramp-get-remote-touch):
      Use `tramp-file-local-name'.
      (tramp-sh-handle-make-process): Support `stderr' as file name.
      Delete temporary stderr file.
      (tramp-sh-handle-exec-path): Expand `default-directory'.
      
      * lisp/net/tramp-smb.el (tramp-smb-handle-make-symbolic-link)
      (tramp-smb-handle-process-file): Use `tramp-file-local-name'.
      
      * lisp/net/tramp-sudoedit.el (tramp-sudoedit-do-copy-or-rename-file)
      (tramp-sudoedit-handle-set-file-uid-gid):
      Use `tramp-unquote-file-local-name'.
      (tramp-sudoedit-handle-make-symbolic-link):
      Use `tramp-file-local-name'.
      (tramp-sudoedit-handle-file-system-info): Fix a scoping error.
      
      * lisp/net/tramp.el: Bump version to 2.4.4-pre.
      (tramp-ignored-file-name-regexp, tramp-time-dont-know)
      (tramp-time-doesnt-exist): Fix typo.
      (tramp-file-local-name): Extend for non-remote file names.
      (tramp-unquote-file-local-name): New defun.
      (tramp-completion-make-tramp-file-name): Simplify.
      (tramp-set-connection-local-variables-for-buffer)
      (tramp-equal-remote, tramp-handle-make-auto-save-file-name):
      Use `tramp-tramp-file-p'.
      (tramp-handle-file-name-case-insensitive-p)
      (tramp-handle-file-truename, tramp-get-remote-tmpdir)
      (tramp-make-tramp-temp-file): Use `tramp-file-local-name'.
      (tramp-handle-shell-command, tramp-handle-start-file-process):
      Implement asynchronous `error-buffer'.
      823ce3aa
  30. 01 Jan, 2020 1 commit
  31. 22 Dec, 2019 1 commit
  32. 20 Nov, 2019 1 commit
    • Michael Albinus's avatar
      Add renaming of remote buffer file names to Tramp · 03593177
      Michael Albinus authored
      * doc/misc/tramp.texi (Default User): Fix typo.
      (Cleanup remote connections): Adapt arguments of
      `tramp-cleanup-connection'.
      (Renaming remote files): New node.
      (Frequently Asked Questions): New item "How to save files when a
      remote host isn't reachable anymore?".
      
      * etc/NEWS: Add `tramp-rename-files' and `tramp-rename-these-files'.
      
      * lisp/net/tramp-cmds.el (tramp-default-rename-alist)
      (tramp-confirm-rename-file-names): New defcustoms.
      (tramp-rename-read-file-name-dir)
      (tramp-rename-read-file-name-init): New defsubsts.
      (tramp-default-rename-file, tramp-rename-files)
      (tramp-rename-these-files): New defuns.
      
      * lisp/net/tramp-integration.el (ido, ivy): Integrate with them.
      03593177
  33. 25 Oct, 2019 1 commit
  34. 18 Oct, 2019 1 commit
    • Michael Albinus's avatar
      Support old Samba versions in Tramp · 7c58cca1
      Michael Albinus authored
      * doc/misc/tramp.texi (Relevant connection properties to override):
      New subsection.
      
      * lisp/net/tramp-smb.el (tramp-smb-get-cifs-capabilities): Check "posix"
      connection property.
      
      * lisp/net/tramp.el (with-tramp-progress-reporter): Fix docstring.
      7c58cca1
  35. 09 Oct, 2019 1 commit
  36. 20 Sep, 2019 2 commits
    • Michael Albinus's avatar
    • Michael Albinus's avatar
      Some Tramp methods allow to change the remote login shell · 82823300
      Michael Albinus authored
      * doc/misc/tramp.texi (Inline methods) <sshx, plink, plinkx>:
      (External methods) <scpx, pscp, psftp>: Mention, that the remote
      login shell could be changed.
      (Remote shell setup): Remove description of properties
      "remote-shell-login" and "remote-shell-args", they don't matter
      here.  Changing the default remote shell works only for some
      methods.
      (Frequently Asked Questions): Refer to alternative approach fixing
      zsh problems.
      
      * etc/NEWS: Some Tramp methods allow to change the remote login shell.
      
      * lisp/net/tramp-sh.el (tramp-default-remote-shell): New defconst.
      (tramp-methods): Use it.
      (tramp-get-sh-extra-args): New defun.
      (tramp-open-shell, tramp-maybe-open-connection): Use it.
      
      * lisp/net/tramp.el (tramp-methods): Adapt docstring.
      82823300