1. 14 Jun, 2021 1 commit
    • Michael Albinus's avatar
      Handle sensitive auto-save or backup remote files (Bug#45245) · 6536112b
      Michael Albinus authored
      * doc/misc/tramp.texi (Auto-save and Backup):
      Describe tramp-allow-unsafe-temporary-files.
      (Ad-hoc multi-hops): Use proper format.
      
      * etc/NEWS: Mention confirmation for writing sensitive auto-save
      or backup remote files to the local temporary directory..
      
      * lisp/net/tramp-cache.el (tramp-dump-connection-properties):
      Strengthen test.
      
      * lisp/net/tramp.el (tramp-allow-unsafe-temporary-files): New defcustom.
      (tramp-handle-find-backup-file-name)
      (tramp-handle-make-auto-save-file-name): Don't expose sensible
      auto-save or backup files on local temporary directory.  (Bug#45245)
      
      * test/lisp/net/tramp-tests.el (tramp--test-always): New defalias.
      (tramp-test10-write-region, tramp-test21-file-links)
      (tramp--test--deftest-direct-async-process): Use it.
      (tramp-test37-make-auto-save-file-name)
      (tramp-test38-find-backup-file-name): Extend tests.
      6536112b
  2. 22 May, 2021 1 commit
    • Michael Albinus's avatar
      Fix bug#48476 · 4db69b32
      Michael Albinus authored
      * lisp/net/tramp-archive.el (tramp-archive-autoload-file-name-handler):
      Add implementation.
      
      * lisp/net/tramp-integration.el (tramp-rename-files)
      (tramp-rename-these-files): Declare them.
      
      * lisp/net/tramp.el (tramp-autoload-file-name-handler):
      Load tramp-archive.el if needed.  (Bug#48476)
      
      * test/lisp/net/tramp-archive-tests.el (tramp-archive-test45-auto-load):
      Extend test.
      
      Use #' syntax for function symbols.
      4db69b32
  3. 16 May, 2021 1 commit
  4. 07 May, 2021 2 commits
    • Michael Albinus's avatar
      Tramp: Fix file name quoting on MS Windows · 9457d4f2
      Michael Albinus authored
      * lisp/net/tramp-sh.el (tramp-make-copy-program-file-name):
      Use `tramp-unquote-shell-quote-argument'.
      
      * lisp/net/tramp.el (tramp-unquote-shell-quote-argument):
      Adapt for MS Windows.
      
      * test/lisp/net/tramp-tests.el (tramp--test-special-characters):
      Adapt for MS Windows.
      9457d4f2
    • Michael Albinus's avatar
      Fix some annoyances wrt file-name-non-special · f50577ea
      Michael Albinus authored
      * lisp/files.el (file-name-non-special): Do not expand `file-truename'.
      
      * lisp/net/tramp-sh.el (tramp-do-copy-or-rename-file-out-of-band):
      Use local `default-directory' for `start-process'.
      f50577ea
  5. 06 May, 2021 1 commit
    • Michael Albinus's avatar
      In Tramp, use scp "-T" argument if available · b6f5da32
      Michael Albinus authored
      * lisp/net/tramp-sh.el (tramp-scp-strict-file-name-checking): New defvar.
      (tramp-scp-strict-file-name-checking): New defun.
      (tramp-do-copy-or-rename-file-out-of-band): Use it.
      (tramp-methods) <scp, scpx>: Use "%x".
      (tramp-make-copy-program-file-name): Use local quoting.
      (tramp-sh-handle-make-process): Don't call
      `tramp-maybe-open-connection', this happens implicitly by
      `tramp-send-command'.
      
      * lisp/net/tramp.el (tramp-methods): Adapt docstring.
      
      * test/lisp/net/tramp-tests.el (tramp-test40-special-characters)
      (tramp-test40-special-characters-with-stat)
      (tramp-test40-special-characters-with-perl)
      (tramp-test40-special-characters-with-ls): Don't skip for
      `tramp--test-windows-nt-and-scp-p'.
      b6f5da32
  6. 29 Apr, 2021 1 commit
    • Michael Albinus's avatar
      Some Tramp corrections, Bug#48067 · a8aa217b
      Michael Albinus authored
      * doc/misc/tramp.texi (Frequently Asked Questions): Rephrase GNU
      ELPA warnings.
      
      * lisp/net/tramp-sh.el (tramp-sh-gio-monitor-process-filter):
      Improve handling of gio warning.  (Bug#48067)
      a8aa217b
  7. 28 Apr, 2021 1 commit
  8. 20 Apr, 2021 1 commit
  9. 17 Apr, 2021 1 commit
  10. 14 Apr, 2021 1 commit
    • Michael Albinus's avatar
      Rearrange argument handling in Tramp scp calls. · 8aaf13ea
      Michael Albinus authored
      * lisp/net/tramp-sh.el (tramp-do-copy-or-rename-file-out-of-band):
      Use `start-process' instead of `start-process-shell-command'.
      (tramp-make-copy-program-file-name): Do not quote `localname'.
      
      * test/lisp/net/tramp-tests.el (tramp-method-out-of-band-p): Declare.
      (tramp--test-windows-nt-and-batch-p)
      (tramp--test-windows-nt-and-pscp-psftp-p): Remove, and also all callees.
      (tramp--test-windows-nt-and-out-of-band-p)
      (tramp--test-windows-nt-and-scp-p): New defuns.
      (tramp-test17-dired-with-wildcards)
      (tramp-test40-special-characters)
      (tramp-test40-special-characters-with-stat)
      (tramp-test40-special-characters-with-perl)
      (tramp-test40-special-characters-with-ls, tramp-test41-utf8)
      (tramp-test41-utf8-with-stat, tramp-test41-utf8-with-perl)
      (tramp-test41-utf8-with-ls): Use them.
      8aaf13ea
  11. 10 Apr, 2021 1 commit
    • Michael Albinus's avatar
      Tramp: fix location of files on W32 · ca1ddef2
      Michael Albinus authored
      * lisp/net/tramp.el:
      * lisp/net/tramp-sh.el: Use (eq system-type 'windows-nt) where appropriate.
      (tramp-completion-function-alist-ssh): Fix location of files on W32.
      ca1ddef2
  12. 08 Apr, 2021 1 commit
    • Michael Albinus's avatar
      Revert use of powershell in Tramp, there are collateral damages · 9e8ac1f5
      Michael Albinus authored
      * lisp/net/tramp-sh.el (tramp-methods) <sshx, scpx>: Fix quoting
      for MS Windows.
      (tramp-connection-properties): Don't set "encoding-shell".
      (tramp-actions-before-shell): Remove `tramp-no-job-control-regexp'.
      (tramp-maybe-open-connection): Revert changes for "encoding-shell".
      
      * lisp/net/tramp.el (tramp-no-job-control-regexp): Remove.
      9e8ac1f5
  13. 06 Apr, 2021 1 commit
    • Michael Albinus's avatar
      Fix Bug#47601 in Tramp · 73826624
      Michael Albinus authored
      * lisp/net/tramp-sh.el (tramp-sh-file-name-handler-alist):
      Use `tramp-handle-file-newer-than-file-p'.  (Bug#47601)
      (tramp-sh-handle-file-newer-than-file-p, tramp-run-test2): Remove.
      73826624
  14. 05 Apr, 2021 1 commit
    • Michael Albinus's avatar
      Use powershell for Tramp on MS Windows · 14d29587
      Michael Albinus authored
      * lisp/net/tramp-sh.el (tramp-use-ssh-controlmaster-options):
      Nil on MS Windows.
      (tramp-connection-properties): Add "encoding-shell".
      (tramp-maybe-open-connection): Use it.  Change exit handling.
      (tramp-actions-before-shell): Add `tramp-no-job-control-regexp'.
      
      * lisp/net/tramp.el (tramp-methods): Adapt docstring.
      (tramp-no-job-control-regexp): New defcustom.
      (tramp-get-debug-buffer): Set coding system.
      14d29587
  15. 03 Apr, 2021 2 commits
  16. 31 Mar, 2021 3 commits
  17. 26 Mar, 2021 1 commit
    • Michael Albinus's avatar
      Improve remote file notifications · c2e72610
      Michael Albinus authored
      * lisp/net/tramp-sh.el (tramp-get-remote-gio-file-monitor): Remove it.
      (tramp-sh-handle-file-notify-add-watch): Do not call it.
      (tramp-sh-gio-monitor-process-filter): Read monitor name.
      
      * test/lisp/filenotify-tests.el (file-notify--test-read-event)
      (file-notify--test-timeout): Change timings.
      (file-notify--test-monitor): Read remote monitor name more reliably.
      (file-notify-test02-rm-watch): Retrieve remote monitor name in time.
      (file-notify--test-event-actions): New defun.
      (file-notify--test-with-actions-explainer): Use it.
      (file-notify--test-with-actions-check): Use it.  Dump traces in
      case of debug.
      (file-notify--test-with-actions): Don't stop while debugging.
      (file-notify-test03-events, file-notify-test04-autorevert)
      (file-notify-test05-file-validity)
      (file-notify-test07-many-events, file-notify-test08-backup)
      (file-notify-test09-watched-file-in-watched-dir): Adapt tests.
      c2e72610
  18. 25 Mar, 2021 1 commit
    • Michael Albinus's avatar
      Adapt Tramp file notification support · 52a74604
      Michael Albinus authored
      * lisp/net/tramp-integration.el (tramp-use-ssh-controlmaster-options):
      Declare it.
      
      * lisp/net/tramp-sh.el (tramp-sh-handle-file-notify-add-watch):
      Remove "gvfs-monitor-dir".
      (tramp-sh-gvfs-monitor-dir-process-filter)
      (tramp-get-remote-gvfs-monitor-dir): Remove.
      (tramp-get-remote-gio-file-monitor): Support also cygwin, and
      GFamDirectoryMonitor, GPollFileMonitor.
      52a74604
  19. 13 Mar, 2021 1 commit
    • Michael Albinus's avatar
      Remove ;;;###tramp-autoload cookie from Tramp defcustoms (Bug#47063) · 695f6792
      Michael Albinus authored
      * lisp/net/tramp-crypt.el (tramp-crypt-enabled-p): New defun.
      (tramp-crypt-add-directory, tramp-crypt-remove-directory):
      Add property `completion-predicate'.
      
      * lisp/net/tramp-sh.el (tramp-terminal-type, tramp-remote-path)
      (tramp-remote-process-environment): Remove.  Move them to ...
      
      * lisp/net/tramp.el: ... here.
      695f6792
  20. 11 Mar, 2021 1 commit
    • Michael Albinus's avatar
      Add remote processes to Tramp sshfs method · 65441a6f
      Michael Albinus authored
      * doc/misc/tramp.texi (FUSE setup): Method sshfs supports also
      remote processes.
      
      * lisp/net/tramp-cache.el (tramp-get-file-property)
      (tramp-set-file-property): Move setting of
      `tramp-cache-unload-hook' out of function.
      
      * lisp/net/tramp.el (tramp-expand-args): New defun.
      (tramp-handle-make-process):
      * lisp/net/tramp-sh.el (tramp-do-copy-or-rename-file-out-of-band)
      (tramp-maybe-open-connection):
      * lisp/net/tramp-sshfs.el (tramp-sshfs-maybe-open-connection):
      * lisp/net/tramp-sudoedit.el (tramp-sudoedit-send-command): Use it.
      
      * lisp/net/tramp-sshfs.el (tramp-methods) <sshfs>:
      Adapt `tramp-mount-args'.  Add `tramp-login-args',
      `tramp-direct-async', `tramp-remote-shell',
      `tramp-remote-shell-login' and `tramp-remote-shell-args'.
      (tramp-connection-properties): Set "direct-async-process" fir sshfs.
      (tramp-sshfs-file-name-handler-alist): Add `exec-path',
      `make-process', `process-file', `set-file-modes', `shell-command',
      `start-file-process', `tramp-get-remote-gid',
      `tramp-get-remote-uid' and `tramp-set-file-uid-gid'.
      (tramp-sshfs-handle-exec-path, tramp-sshfs-handle-process-file)
      (tramp-sshfs-handle-set-file-modes): New defuns.
      
      * test/lisp/net/tramp-tests.el (tramp-test20-file-modes)
      (tramp-test28-process-file, tramp-test29-start-file-process)
      (tramp-test30-make-process, tramp-test32-shell-command)
      (tramp-test32-shell-command-dont-erase-buffer)
      (tramp-test34-explicit-shell-file-name, tramp-test35-exec-path)
      (tramp-test43-asynchronous-requests): Run also for tramp-sshfs.
      (tramp--test-shell-file-name): New defun.
      (tramp-test28-process-file)
      (tramp-test34-explicit-shell-file-name)
      (tramp-test43-asynchronous-requests): Use it.
      (tramp-test40-special-characters-with-stat)
      (tramp-test40-special-characters-with-perl)
      (tramp-test40-special-characters-with-ls)
      (tramp-test41-utf8-with-stat, tramp-test41-utf8-with-perl)
      (tramp-test41-utf8-with-ls): Remove superfluous skip.
      65441a6f
  21. 08 Mar, 2021 2 commits
    • Stefan Monnier's avatar
      * lisp/net/*.el: Use lexical-binding · dc083ebc
      Stefan Monnier authored
      Also remove some redundant `:group` arguments.
      
      * lisp/net/eudc-export.el: Use lexical-binding.
      (eudc-create-bbdb-record): Use `cl-progv` and `apply` to avoid `eval`.
      
      * lisp/net/eudc-hotlist.el: Use lexical-binding.
      
      * lisp/net/eudc.el (eudc-print-attribute-value): Use `funcall` to avoid
      `eval`.
      
      * lisp/net/eudcb-bbdb.el: Use lexical-binding.
      (eudc-bbdb-filter-non-matching-record): Use `funcall` to avoid `eval`.
      Move `bbdb-val` binding to avoid `setq`.
      Use `seq-some` instead of `eval+or`.
      (eudc-bbdb-format-record-as-result): Use `dolist` and `pcase`.
      Use `funcall` to avoid `eval`.
      (eudc-bbdb-query-internal): Simplify a bit.
      
      * lisp/net/eudcb-ldap.el: Use lexical-binding.
      (eudc-ldap-get-host-parameter): Use `defalias` to avoid `eval-and-compile`.
      
      * lisp/net/telnet.el: Use lexical-binding.
      * lisp/net/quickurl.el: Use lexical-binding.
      * lisp/net/newst-ticker.el: Use lexical-binding.
      * lisp/net/newst-reader.el: Use lexical-binding.
      * lisp/net/goto-addr.el: Use lexical-binding.
      * lisp/net/gnutls.el: Use lexical-binding.
      * lisp/net/eudcb-macos-contacts.el: Use lexical-binding.
      * lisp/net/eudcb-mab.el: Use lexical-binding.
      
      * lisp/net/net-utils.el: Use lexical-binding.
      (finger): Remove unused var `found`.
      
      * lisp/net/network-stream.el (open-protocol-stream): Remove redundant
      `defalias`.
      
      * lisp/net/newst-plainview.el: Use lexical-binding.
      (newsticker-hide-entry, newsticker-show-entry): Remove unused var
      `is-invisible`.
      (w3m-fill-column, w3-maximum-line-length): Declare vars.
      
      * lisp/net/tramp.el (tramp-compute-multi-hops):
      * lisp/net/tramp-compat.el (tramp-compat-temporary-file-directory):
      * lisp/net/tramp-cmds.el (tramp-default-rename-file):
      * lisp/net/webjump.el (webjump): Don't forget lexical-binding for `eval`.
      dc083ebc
    • Michael Albinus's avatar
      Add Tramp sshfs method · 11d3af3c
      Michael Albinus authored
      * doc/misc/tramp.texi (Top, Configuration): Insert sections 'FUSE-based
      methods' and 'FUSE setup' in menu.
      (Quick Start Guide): Fix @anchors.  Add doas.  Extend section
      'Using @command{rclone}' to 'Using @acronym{FUSE}-based methods'.
      (External methods): Remove rclone paragraph.
      (FUSE-based methods, FUSE setup): New nodes.
      (Predefined connection information): Mention "mount-point".
      
      * etc/NEWS: Mention Tramp sshfs method.
      Fix typos and other oddities.
      
      * lisp/net/tramp-fuse.el: New file.
      
      * lisp/net/tramp-rclone.el (tramp-fuse): Require.
      (tramp-rclone-file-name-handler-alist): Replace `tramp-rclone-handle-*'
      by `tramp-fuse-handle-*' where appropriate.
      (tramp-rclone-handle-delete-directory)
      (tramp-rclone-handle-delete-file)
      (tramp-rclone-handle-directory-files)
      (tramp-rclone-handle-file-attributes)
      (tramp-rclone-handle-file-executable-p)
      (tramp-rclone-handle-file-name-all-completions)
      (tramp-rclone-handle-file-readable-p)
      (tramp-rclone-handle-insert-directory)
      (tramp-rclone-handle-insert-file-contents)
      (tramp-rclone-handle-make-directory, tramp-rclone-mount-point)
      (tramp-rclone-mounted-p, tramp-rclone-local-file-name):
      Remove.  Functionality moved to tramp-fuse.el.
      (tramp-rclone-remote-file-name)
      (tramp-rclone-maybe-open-connection): Use `tramp-fuse-*' functions.
      
      * lisp/net/tramp-sh.el (tramp-do-copy-or-rename-file-out-of-band):
      Simplify check.
      
      * lisp/net/tramp-sshfs.el: New file.
      
      * lisp/net/tramp.el: Remove TODO item.
      
      * test/lisp/net/tramp-tests.el (tramp--test-sshfs-p): New defun.
      (tramp-test14-delete-directory): Use it.
      11d3af3c
  22. 17 Feb, 2021 1 commit
    • Michael Albinus's avatar
      Further Tramp code cleanup · e5f50f32
      Michael Albinus authored
      * doc/misc/tramp.texi (Predefined connection information):
      Mention "about-args".
      
      * lisp/net/tramp-cmds.el (tramp-version): Adapt docstring.
      
      * lisp/net/tramp.el (tramp-handle-expand-file-name):
      * lisp/net/tramp-gvfs.el (tramp-gvfs-handle-expand-file-name):
      * lisp/net/tramp-sh.el (tramp-sh-handle-expand-file-name)
      * lisp/net/tramp-smb.el (tramp-smb-handle-expand-file-name):
      * lisp/net/tramp-sudoedit.el (tramp-sudoedit-handle-expand-file-name):
      Handle local "/..".
      
      * lisp/net/tramp-rclone.el (tramp-methods) <rclone>:
      Adapt `tramp-mount-args'.
      (tramp-rclone-flush-directory-cache): Remove.
      (tramp-rclone-do-copy-or-rename-file)
      (tramp-rclone-handle-delete-directory)
      (tramp-rclone-handle-delete-file)
      (tramp-rclone-handle-make-directory): Don't use that function.
      (tramp-rclone-maybe-open-connection): Fix use of `tramp-mount-args'.
      
      * lisp/net/trampver.el (tramp-inside-emacs): New defun.
      * lisp/net/tramp.el (tramp-handle-make-process):
      * lisp/net/tramp-sh.el (tramp-sh-handle-make-process)
      (tramp-sh-handle-process-file, tramp-open-shell): Use it.
      (tramp-get-env-with-u-option): Remove.
      
      * test/lisp/net/tramp-tests.el (tramp-test05-expand-file-name-top):
      New test.
      e5f50f32
  23. 03 Feb, 2021 1 commit
    • Michael Albinus's avatar
      Tramp code cleanup · b81516c7
      Michael Albinus authored
      * lisp/net/tramp.el (tramp-signal-hook-function)
      (tramp-handle-access-file, tramp-handle-copy-directory)
      (tramp-handle-directory-files, tramp-handle-file-local-copy)
      (tramp-handle-insert-file-contents, tramp-handle-load):
      * lisp/net/tramp-adb.el (tramp-adb-handle-directory-files-and-attributes)
      (tramp-adb-handle-make-directory)
      (tramp-adb-handle-file-local-copy, tramp-adb-handle-copy-file)
      (tramp-adb-handle-rename-file):
      * lisp/net/tramp-crypt.el (tramp-crypt-do-copy-or-rename-file)
      (tramp-crypt-handle-directory-files)
      (tramp-crypt-handle-make-directory):
      * lisp/net/tramp-gvfs.el (tramp-gvfs-dbus-event-error)
      (tramp-gvfs-do-copy-or-rename-file)
      (tramp-gvfs-handle-make-directory):
      * lisp/net/tramp-rclone.el (tramp-rclone-do-copy-or-rename-file)
      (tramp-rclone-handle-directory-files):
      * lisp/net/tramp-sh.el (tramp-sh-handle-make-symbolic-link)
      (tramp-sh-handle-directory-files-and-attributes)
      (tramp-sh-handle-file-name-all-completions)
      (tramp-sh-handle-copy-directory, tramp-do-copy-or-rename-file)
      (tramp-sh-handle-make-directory)
      (tramp-sh-handle-file-local-copy)
      (tramp-sh-inotifywait-process-filter):
      * lisp/net/tramp-smb.el (tramp-smb-handle-copy-directory)
      (tramp-smb-handle-copy-file, tramp-smb-handle-directory-files)
      (tramp-smb-handle-file-local-copy)
      (tramp-smb-handle-make-directory, tramp-smb-handle-rename-file):
      * lisp/net/tramp-sudoedit.el (tramp-sudoedit-do-copy-or-rename-file):
      Unify error report.
      
      * lisp/net/tramp-adb.el (tramp-adb-file-name-handler): Sync args
      with other `tramp-*-file-name-handler'.
      
      * lisp/net/tramp-compat.el (tramp-error): Declare.
      (tramp-compat-file-missing): New defsubst.
      
      * lisp/net/tramp-gvfs.el (tramp-gvfs-do-copy-or-rename-file):
      Handle volatile files.
      (tramp-gvfs-set-attribute): New defun.
      (tramp-gvfs-handle-set-file-modes)
      (tramp-gvfs-handle-set-file-times)
      (tramp-gvfs-handle-set-file-uid-gid): Use it.
      
      * lisp/net/tramp-sh.el (tramp-do-copy-or-rename-file):
      Use `msg-operation'.
      
      * lisp/net/tramp-smb.el (tramp-smb-handle-insert-directory):
      Remove superfluous `format:
      (tramp-smb-maybe-open-connection): Simplify loop.
      
      * lisp/net/tramp.el (tramp-handle-file-truename): Drop volume letter from
      symlinked files.
      
      * test/lisp/net/tramp-tests.el (tramp--test-gdrive-p): New defun.
      (tramp--test-nextcloud-p): Remove.
      (tramp-test40-special-characters-with-ls): Do not skip on MS Windows.
      (tramp-test41-utf8): Skip if needed.
      b81516c7
  24. 27 Jan, 2021 1 commit
    • Michael Albinus's avatar
      Some Tramp fixes · 12095de8
      Michael Albinus authored
      * doc/misc/tramp.texi (GVFS-based methods): Ban sftp RemoteCommand
      option.
      
      * lisp/net/tramp-adb.el (tramp-adb-handle-copy-file)
      (tramp-adb-handle-rename-file): Avoid calling jka-compr when
      writing the target file.
      
      * lisp/net/tramp-sh.el (tramp-sh-handle-file-ownership-preserved-p):
      Skip GROUP test on *BSD machines.
      
      * test/lisp/net/tramp-tests.el (tramp-test17-insert-directory-one-file):
      Skip for tamp-crypt.el.
      (tramp--test-sh-no-ls--dired-p): Ignore errors.
      12095de8
  25. 24 Jan, 2021 1 commit
    • Michael Albinus's avatar
      Make Tramp's insert-directory more robust · 3cefda09
      Michael Albinus authored
      * lisp/net/tramp-sh.el (tramp-sh-handle-insert-directory):
      Use `tramp-sh--quoting-style-options'.
      
      * test/lisp/net/tramp-tests.el (tramp--test-hpux-p, tramp--test-ksh-p):
      Remove superfluous nil.
      (tramp--test-sh-no-ls--dired-p): New defun.
      (tramp--test-special-characters): Use it.
      3cefda09
  26. 22 Jan, 2021 1 commit
    • Michael Albinus's avatar
      Use RemoteCommand option for Tramp's sshx and scpx methods · b2b26bd4
      Michael Albinus authored
      * doc/misc/tramp.texi (Inline methods) <sshx>:
      (External methods) <scpx>: Adapt call sequence.
      (Remote shell setup): Mention, that sshx and scpx overwrite
      RemoteCommand.
      (Remote processes): Restriction: direct asynchronous processes
      cannot be used when RemoteCommand is in use.
      `tramp-remote-process-environment' is not ignored any longer.
      
      * lisp/net/tramp-sh.el (tramp-methods) <sshx, scpx>: Handle login
      shell via RemoteCommand.  Remove `tramp-direct-async' parameter.
      (tramp-maybe-open-connection): Add "-i" to login.
      
      * lisp/net/tramp-smb.el (tramp-smb-errors):
      Add "NT_STATUS_NOT_SUPPORTED".
      (tramp-smb-handle-insert-directory): Fix point moving error.
      
      * test/lisp/net/tramp-tests.el (tramp-test34-explicit-shell-file-name):
      Use `get-buffer-process' where appropriate.
      b2b26bd4
  27. 19 Jan, 2021 1 commit
    • Michael Albinus's avatar
      Some Tramp fixes, resulting from test campaign · f3b9d5b3
      Michael Albinus authored
      * doc/misc/tramp.texi (Remote shell setup): Clarifications for
      `tramp-actions-before-shell' example.
      
      * lisp/net/tramp-sh.el (tramp-sh-handle-insert-directory): Do not expand
      FILENAME explicitely.
      (tramp-open-shell): Add "-i" for interactive shells.
      
      * test/lisp/net/tramp-tests.el (tramp-test07-file-exists-p)
      (tramp-test14-delete-directory)
      (tramp-test43-asynchronous-requests): Skip for MS windows.
      f3b9d5b3
  28. 15 Jan, 2021 1 commit
    • Michael Albinus's avatar
      Some Tramp adaptions, mainly direct async processes · 138486cd
      Michael Albinus authored
      * doc/misc/tramp.texi (Firewalls, Remote processes)
      (Frequently Asked Questions): Add @vindex.
      (Predefined connection information): Precise precondition or direct
      async processes.
      (Remote shell setup): Ban ssh RemoteCommand option.
      (Frequently Asked Questions): Adapt quoting.
      
      * doc/misc/trampver.texi:
      * lisp/net/trampver.el: Change version to "2.5.1-pre".
      
      * lisp/net/tramp-adb.el (tramp-methods) <adb>: Add `tramp-direct-async'
      parameter.
      (tramp-adb-handle-make-process): Adapt docstring.
      
      * lisp/net/tramp-sh.el (tramp-methods) <scp, scpx, rsync, ssh, sshx>:
      Add `tramp-direct-async' parameter.
      (tramp-sh-handle-insert-directory): Simplify merkers.
      (tramp-sh-handle-make-process): Adapt docstring.
      
      * lisp/net/tramp.el (tramp-methods): Adapt docstring.
      (tramp-debug-message): Suppress lockfiles.
      (tramp-test-message): New defun.
      (tramp-direct-async-process-p): Check also for `tramp-direct-async'.
      (tramp-handle-make-process): Do not check for `tramp-direct-async-args'.
      
      * test/lisp/net/tramp-tests.el (all): Replace `string-match' by
      `string-match-p'.
      (dired-copy-dereference): Declare.
      (tramp-test-temporary-file-directory):
      Remove `tramp-direct-async-args` for mock method.
      (tramp-test15-copy-directory, tramp-test40-special-characters)
      (tramp-test40-special-characters-with-stat)
      (tramp-test40-special-characters-with-perl)
      (tramp-test40-special-characters-with-ls, tramp-test41-utf8)
      (tramp-test41-utf8-with-stat, tramp-test41-utf8-with-perl)
      (tramp-test41-utf8-with-ls): Skip for tramp-rclone.el.
      (tramp--test--deftest-direct-async-process): Do not skip for mock
      method.
      (tramp-test32-shell-command): Adapt test for direct async processes.
      (tramp-test36-vc-registered, tramp--test-hpux-p, tramp--test-ksh-p):
      Use `tramp-test-vec'.
      138486cd
  29. 10 Jan, 2021 1 commit
  30. 04 Jan, 2021 1 commit
    • Michael Albinus's avatar
      Fix error in tramp-sh-handle-insert-directory · f5a1315f
      Michael Albinus authored
      * lisp/net/tramp-sh.el (tramp-sh-handle-insert-directory): Let buffer be
      unibyte when applying numbers returned with the ls --dired option.
      Reported by Justus Piater <Justus-dev@Piater.name>.
      
      * test/lisp/net/tramp-tests.el (tramp--test-check-files): Extend test.
      f5a1315f
  31. 01 Jan, 2021 3 commits
  32. 21 Dec, 2020 1 commit
  33. 19 Dec, 2020 1 commit
    • Stefan Kangas's avatar
      Shorten over-wide docstrings in defcustoms · 5ab5c389
      Stefan Kangas authored
      * lisp/calc/calc.el (calc-embedded-announce-formula-alist)
      (calc-embedded-open-formula, calc-embedded-close-formula)
      (calc-matrix-mode):
      * lisp/cedet/semantic/imenu.el (semantic-imenu-sort-bucket-function):
      * lisp/emacs-lisp/find-func.el (find-feature-regexp):
      * lisp/emulation/cua-base.el (cua-paste-pop-rotate-temporarily):
      * lisp/emulation/viper-init.el (viper-fast-keyseq-timeout)
      (viper-related-files-and-buffers-ring):
      * lisp/emulation/viper-keym.el (viper-want-ctl-h-help):
      * lisp/gnus/gnus-art.el (gnus-article-banner-alist):
      * lisp/gnus/gnus-group.el (gnus-keep-same-level):
      * lisp/gnus/gnus-score.el (gnus-adaptive-word-length-limit):
      * lisp/gnus/gnus-sum.el (gnus-inhibit-user-auto-expire):
      * lisp/gnus/gnus-uu.el (gnus-uu-ignore-files-by-type)
      (gnus-uu-do-not-unpack-archives)
      (gnus-uu-unmark-articles-not-decoded)
      (gnus-uu-correct-stripped-uucode, gnus-uu-save-in-digest)
      (gnus-uu-post-include-before-composing):
      * lisp/gnus/gnus.el (gnus-use-long-file-name)
      (gnus-install-group-spam-parameters):
      * lisp/gnus/message.el (message-cite-style):
      * lisp/gnus/nnmail.el
      (nnmail-split-fancy-with-parent-ignore-groups)
      (nnmail-cache-ignore-groups):
      * lisp/ido.el (ido-rewrite-file-prompt-functions):
      * lisp/mail/feedmail.el (feedmail-fiddle-plex-user-list)
      (feedmail-spray-address-fiddle-plex-list):
      * lisp/mh-e/mh-e.el (mh-annotate-msg-hook):
      * lisp/net/imap.el (imap-process-connection-type):
      * lisp/net/rcirc.el (rcirc-omit-threshold):
      * lisp/net/tramp-sh.el (tramp-copy-size-limit):
      * lisp/nxml/nxml-mode.el (nxml-default-buffer-file-coding-system):
      * lisp/obsolete/landmark.el (landmark-max-stall-time):
      * lisp/obsolete/tls.el (tls-checktrust):
      * lisp/org/org-indent.el
      (org-indent-mode-turns-off-org-adapt-indentation)
      (org-indent-mode-turns-on-hiding-stars):
      * lisp/org/org-protocol.el (org-protocol-project-alist):
      * lisp/progmodes/cc-vars.el (c-doc-comment-style):
      * lisp/progmodes/cperl-mode.el (cperl-indent-subs-specially):
      * lisp/progmodes/flymake-proc.el (flymake-proc-allowed-file-name-masks):
      * lisp/progmodes/hideif.el (hide-ifdef-expand-reinclusion-protection):
      * lisp/simple.el (minibuffer-history-case-insensitive-variables):
      * lisp/tab-bar.el (tab-bar-close-last-tab-choice):
      * lisp/textmodes/reftex-vars.el
      (reftex-special-environment-functions):
      * lisp/vc/ediff-init.el (ediff-startup-hook, ediff-cleanup-hook)
      (ediff-metachars):
      * lisp/vc/ediff-merg.el (ediff-show-clashes-only):
      * lisp/vc/ediff-mult.el (ediff-default-filtering-regexp): Shorten doc
      strings to not exceed 80-column limits.  (Bug#44858)
      5ab5c389