summaryrefslogtreecommitdiff
path: root/test/lisp/net
AgeCommit message (Collapse)Author
2026-05-28dbus-call-method-asynchronously supports also an ERROR-HANDLERmasterMichael Albinus
* doc/misc/dbus.texi (Asynchronous Methods): HANDLER can also be (HANDLER . ERROR-HANDLER). * etc/NEWS: Mention ERROR-HANDLER of dbus-call-method-asynchronously. * lisp/net/dbus.el (dbus-call-method-asynchronously): Adapt docstring. (dbus-check-event, dbus-handle-event): HANDLER can also be (HANDLER . ERROR-HANDLER). * src/dbusbind.c (Fdbus_message_internal): HANDLER can also be (HANDLER . ERROR-HANDLER). (Bug#80952) * test/lisp/net/dbus-tests.el (dbus--test-method-another-handler) (dbus--test-method-error-handler): New defvars. (dbus--test-method-another-handler) (dbus--test-method-error-handler): New functions. (dbus-test04-call-method-error-handler): New test. (dbus-test10-keep-fd): Extend test.
2026-05-23; Minor Tramp changesMichael Albinus
* doc/misc/tramp.texi (Frequently Asked Questions): google-drive has been disabled in GNOME 50. * lisp/net/tramp-cmds.el (tramp-enable-method): Upcase prompt. * lisp/net/tramp-sh.el (tramp-sh-handle-make-process) (tramp-sh-handle-process-file): Improve setting of environment variables. * test/lisp/net/tramp-tests.el (tramp-methods) <mock>: Add `tramp-tmpdir'. Adapt `tramp-login-program'. (ert-remote-temporary-file-directory): Improve expansion. (tramp-test35-remote-path): Adapt test.
2026-05-14; Minor Tramp cleanupMichael Albinus
* lisp/net/tramp.el (tramp-unquote-shell-quote-argument): Do not expand remote file names w/o a localname. * test/lisp/net/tramp-tests.el (tramp--test-supports-environment-variables-p): New defun. (tramp-test33-environment-variables): Use it.
2026-05-13Propagate EMACSCLIENT_TRAMP to remote hosts with TrampMichael Albinus
* doc/misc/tramp.texi (Remote processes): Explain `tramp-propagate-emacsclient-tramp'. * lisp/net/tramp.el (tramp-remote-process-environment): Adapt docstring. (tramp-propagate-emacsclient-tramp): New defcustom. (tramp-handle-make-process): * lisp/net/tramp-sh.el (tramp-sh-handle-make-process) (tramp-sh-handle-process-file): Use it. * test/lisp/net/tramp-tests.el (tramp-test33-environment-variables): Adapt test.
2026-05-06Handle long environment variables in Tramp oricessesMichael Albinus
* lisp/net/tramp-sh.el (tramp-sh-handle-make-process): Handle loooong environment variables. (Bug#80783) * test/lisp/net/tramp-tests.el (tramp-test33-environment-variables): Adapt test.
2026-05-04Adaot tramp-tests.elMichael Albinus
* test/lisp/net/tramp-tests.el (ert-remote-temporary-file-directory): Ensure that it is expanded.
2026-04-25Some minor Tramp fixesMichael Albinus
* doc/misc/tramp.texi (Customizing Methods): Add comment. * lisp/net/tramp-sh.el (tramp-open-connection-setup-interactive-shell): Comment out setting `command-line-max-length', it doesn't work reliably. * test/lisp/net/tramp-tests.el (tramp-test03-file-error) (tramp-test26-file-name-completion-boundaries): Adapt tests.
2026-04-17Extend integration of external operations in TrampMichael Albinus
* doc/misc/tramp.texi (Extension packages): Use another format char in example. (New operations): Document different argument types. Extend example. * lisp/net/tramp.el: Use consequently `eq', `assq', `memq'. (tramp-file-name-for-operation-external): Extend docstring. (tramp-file-name-for-operation): Make more use of `tramp-file-name-for-operation-external'. (tramp-add-external-operation): New optional argument `arg-type'. * test/lisp/net/tramp-tests.el (tramp--handle-test-operation): Rename from `tramp--handler-for-test-operation'. (tramp--handle-process-id) (tramp--test-operation-file-name-for-operation): New defuns. (tramp-test49-external-backend-function): Extend test.
2026-04-06* test/lisp/net/tramp-tests.el (tramp-test21-file-links): Extend test.Michael Albinus
2026-03-28Fix file-name-all-completions for symlinked directories in TrampMichael Albinus
* lisp/net/tramp.el (tramp-skeleton-file-name-all-completions): * lisp/net/tramp-adb.el (tramp-adb-handle-file-name-all-completions): * lisp/net/tramp-crypt.el (tramp-crypt-handle-file-name-all-completions): * lisp/net/tramp-fuse.el (tramp-fuse-handle-file-name-all-completions): * lisp/net/tramp-gvfs.el (tramp-gvfs-handle-file-name-all-completions): * lisp/net/tramp-sh.el (tramp-sh-handle-file-name-all-completions): * lisp/net/tramp-smb.el (tramp-smb-handle-file-name-all-completions): * lisp/net/tramp-sudoedit.el (tramp-sudoedit-handle-file-name-all-completions): Simplify. * tramp-tests.el (tramp-test32-shell-command): Adapt test. * lisp/net/tramp-ftp.el (tramp-disable-ange-ftp): Use `seq-difference'. * lisp/net/tramp-gvfs.el (tramp-gvfs-monitor-process-filter): Use `thread-last'. * lisp/net/tramp-sh.el (tramp-sh-handle-insert-directory): Use `seq-difference'. (tramp-sh-gio-monitor-process-filter): Use `thread-last'. * lisp/net/tramp-smb.el (tramp-smb-get-file-entries): Do not add virtual entry ""; it isn't needed anymore. * lisp/net/tramp.el (tramp-make-tramp-hop-name): Use `thread-last'. (tramp-completion-handle-file-directory-p): Use `tramp-prefix-format'. (tramp-fnac-add-trailing-slash): New defvar. (tramp-skeleton-file-name-all-completions): Handle also symlinked directories. (tramp-skeleton-directory-files): Use `tramp-fnac-add-trailing-slash'. (tramp-handle-file-name-completion): Use `seq-difference'. (tramp-handle-make-process): Handle "%w" format specifier. * test/lisp/net/tramp-tests.el (tramp-test26-file-name-completion) (tramp-test32-shell-command, tramp-test36-vc-registered): Adapt tests.
2026-03-11Improve tramp-tests.elMichael Albinus
* test/lisp/net/tramp-tests.el (ert-temp-file-prefix) (ert-temp-file-suffix, ert--with-temp-file-generate-suffix) (ert-with-temp-file, ert-with-temp-directory): Add them if they don't exist. (tramp--test-make-temp-name, tramp--test-kubernetes-p) (tramp--test-supports-set-file-times-p): New defuns. (tramp--test-make-temp-name): Use `tramp--test-make-temp-prefix'. (tramp-test03-file-error, tramp-test20-file-modes) (tramp-test22-file-times, tramp-test26-file-name-completion): Adapt tests.
2026-03-04Revert "Repair serious breakage in the batch tests."Michael Albinus
This reverts commit feac53141577161c32a7a6dfe75399a5ae98a7c1. This patch has deactivated 253 test cases without a sufficient reasoning. Instead it speaks about a shotgun in its commite message. The patch is reverted because - It hasn't been discussed on emacs-devel. It should have, because it is a serious change in our infrastructure (new official tag :nobatch). Any documentation of this change, for example in test/README, is missing. - The proper way to deactivate such tests would have been (skip-when noninteractive) Even better to skip for the respective reasons. - There is no fault report. There is no information about how these tests have failed. Since it hasn't been a problem so far for us, nobody will work on a fix forever.
2026-02-25Repair serious breakage in the batch tests.Eric S. Raymond
There were a bunch of tests that were breaking make check and should never be run in batch mode, because they do things like assuming there is a controlling tty or assuming we can access network services when we can't (e/g. in a CI/CD environment). I have shotgunned this problem by tagging all the failing tests with :nobatch and then changing the default and expensive selectors so make check won't barf all over its shoes. As many of these :nobatch should be individually removed as possible, after upgrading the test harness to mock the environmental stuff they need. Investigate these failures with "make check-nobatch".
2026-02-23Add SHA-3 support to secure-hashCollin Funk
* admin/merge-gnulib (GNULIB_MODULES): Add crypto/sha3-buffer. * lib/sha3.c: New file, imported by running admin/merge-gnulib. * lib/sha3.h: Likewise. * m4/sha3.m4: Likewise. * lib/gnulib.mk.in: Updated by admin/merge-gnulib. * m4/gnulib-comp.m4: Likewise. * src/fns.c: Include sha3.h (Fsecure_hash_algorithms): Add Qsha3_224, Qsha3_256, Qsha3_384, and Qsha3_512. (secure_hash): Likewise. (Fsecure_hash): List the SHA-3 algorithms in the docstring. (syms_of_fns): Define Qsha3_224, Qsha3_256, Qsha3_384, and Qsha3_512. * test/lisp/net/gnutls-tests.el (gnutls-tests-internal-macs-upcased): Filter out the new SHA-3 algorithms since they are currently not implemented in gnutls. * test/src/fns-tests.el (test-secure-hash): Add test cases for the new algorithms. * doc/lispref/text.texi (Checksum/Hash): List the SHA-3 algorithms. Mention that they are considered secure. * etc/NEWS: Mention the new feature.
2026-02-14Escape attribute values and string DOMs when inserting themVisuwesh
* lisp/net/shr.el (shr-dom-print): Escape these strings, as done in `dom-print', to prevent producing an erroneous XML document. * test/lisp/net/shr-tests.el (dom-print-escape): Add new test (Bug#80383).
2026-02-12Tramp signals 'remote-file-error' consequentlyMichael Albinus
* doc/misc/tramp.texi (External packages): Mention also special events. Emphasise, that Tramp raises remote-file-error. * etc/NEWS: Tramp signals 'remote-file-error' consequently. Presentational fixes and improvements. * lisp/net/tramp.el (tramp-skeleton-process-file) (tramp-handle-make-symbolic-link, tramp-process-actions) (tramp-wait-for-regexp, tramp-send-string): * lisp/net/tramp-adb.el (tramp-adb-get-device) (tramp-adb-send-command-and-check, tramp-adb-barf-unless-okay) (tramp-adb-wait-for-output, tramp-adb-maybe-open-connection): * lisp/net/tramp-archive.el (tramp-archive-handle-not-implemented): * lisp/net/tramp-crypt.el (tramp-crypt-do-encrypt-or-decrypt-file-name) (tramp-crypt-do-encrypt-or-decrypt-file): * lisp/net/tramp-gvfs.el (tramp-gvfs-dbus-event-error) (tramp-gvfs-maybe-open-connection): * lisp/net/tramp-sh.el (tramp-do-directory-files-and-attributes-with-perl) (tramp-do-copy-or-rename-file-directly) (tramp-do-copy-or-rename-file-out-of-band) (tramp-sh-handle-file-local-copy, tramp-sh-handle-write-region) (tramp-bundle-read-file-names, tramp-maybe-send-script) (tramp-find-file-exists-command, tramp-barf-if-no-shell-prompt) (tramp-maybe-open-connection, tramp-wait-for-output) (tramp-send-command-and-check, tramp-barf-unless-okay) (tramp-send-command-and-read, tramp-get-ls-command): * lisp/net/tramp-smb.el (tramp-smb-handle-file-attributes) (tramp-smb-handle-make-symbolic-link) (tramp-smb-maybe-open-connection, tramp-smb-call-winexe): * lisp/net/tramp-sshfs.el (tramp-sshfs-maybe-open-connection): * lisp/net/tramp-sudoedit.el (tramp-sudoedit-send-command-and-read): Raise a `remote-file-error' in case of connection problems. * lisp/net/tramp-rclone.el (tramp-rclone-maybe-open-connection): Improve check for host. * lisp/net/tramp-smb.el (tramp-smb-get-localname): Improve error message. * lisp/net/tramp-sudoedit.el (tramp-default-host-alist): Set a default for "sudoedit" method. (tramp-sudoedit-maybe-open-connection): Check for proper host name. (tramp-sudoedit-send-command): Do not expand ?h. * lisp/net/tramp.el (tramp-compute-multi-hops): Check for cycle proxy definition. * test/lisp/net/tramp-archive-tests.el (tramp-archive-test20-file-modes) (tramp-archive-test21-file-links): Check for `rmote-file-error'. * test/lisp/net/tramp-tests.el (tramp-file-name-with-sudo): Declare. (tramp--test-ignore-make-symbolic-link-error): Check for `rmote-file-error'. (tramp-test03-file-name-method-rules): Delete. (tramp-test03-file-error): New test. (tramp--test-supports-processes-p): Make it more rebust.
2026-02-11; * test/lisp/net/dbus-tests.el: Remove obsolete function declarations.Michael Albinus
2026-02-11; * test/lisp/net/dbus-tests.el: no warnings for non-dbus configsMattias Engdegård
2026-02-07Support D-Bus file descriptor manipulationMichael Albinus
* doc/misc/dbus.texi (Synchronous Methods): Adapt `dbus-call-method'. (Asynchronous Methods): Adapt `dbus-call-method-asynchronously'. (File Descriptors): New chapter, replaces Inhibitor Locks. * etc/NEWS: Replace "New D-Bus functions to support systemd inhibitor locks" by "Support D-Bus file descriptor manipulation". Presentational fixes and improvements. * lisp/net/dbus.el (dbus-call-method) (dbus-call-method-asynchronously): Adapt docstring. (dbus-list-hash-table): Return (nreverse result). (dbus-monitor-goto-serial): Declare `completion'. * src/dbusbind.c (Fdbus_message_internal, xd_read_message_1): Handle `:keep-fd'. (xd_registered_inhibitor_locks, Fdbus_make_inhibitor_lock) (Fdbus_close_inhibitor_lock, Fdbus_registered_inhibitor_locks): Delete. (xd_registered_fds): New variable. (Fdbus__fd_open, Fdbus__fd_close, Fdbus__registered_fds): New DEFUNs. (Bug#79963) (syms_of_dbusbind_for_pdumper): Initialize `xd_registered_fds'. (syms_of_dbusbind): Remove subroutines `Sdbus_make_inhibitor_lock', `Sdbus_close_inhibitor_lock' and `Sdbus_registered_inhibitor_locks'. Remove symbol `Qdbus_call_method'. Declare subroutines `Sdbus__fd_open', `Sdbus__fd_close' and `Sdbus__registered_fds'. Declare symbol `QCkeep_fd'. staticpro `xd_registered_fds'. * test/lisp/net/dbus-tests.el (dbus-test10-inhibitor-locks): Delete. (dbus-test10-keep-fd, dbus-test10-open-close-fd): New tests.
2026-01-28New Tramp testMichael Albinus
* test/lisp/net/tramp-tests.el (tramp-test45-force-remote-file-error): New test.
2026-01-24; Tramp code cleanupMichael Albinus
* lisp/net/tramp-cache.el (tramp-cache-unload-hook): * lisp/net/tramp-cmds.el (tramp-enable-method, tramp-bug): * lisp/net/tramp-compat.el: * test/lisp/net/tramp-tests.el (tramp-test26-interactive-file-name-completion): Simplify retrieving proper function symbols.
2026-01-22; * test/lisp/net/dbus-tests.el: Fix typos.Michael Albinus
2026-01-21; * test/lisp/net/dbus-tests.el: hush warnings on no-dbus platformsMattias Engdegård
2026-01-20Tag Tramp tests as :expensive-testMichael Albinus
* test/lisp/net/tramp-tests.el (tramp-test03-file-name-defaults) (tramp-test10-write-region-file-precious-flag) (tramp-test10-write-region-other-file-name-handler) (tramp-test16-file-expand-wildcards) (tramp-test17-dired-with-wildcards) (tramp-test17-insert-directory-one-file) (tramp-test33-environment-variables-and-port-numbers) (tramp-test35-remote-path, tramp-test39-make-lock-file-name) (tramp-test39-detect-external-change, tramp-test42-utf8) (tramp-test43-file-system-info) (tramp-test44-file-user-group-ids, tramp-test48-session-timeout) (tramp-test49-external-backend-function) (tramp-test50-recursive-load): Tag them as :expensive-test. (Bug#80164)
2026-01-19; Minor Tramp cleanupMichael Albinus
* lisp/net/tramp-adb.el: * lisp/net/tramp-androidsu.el: * lisp/net/tramp-integration.el: * lisp/net/tramp-smb.el: Do not delay `connection-local-set-profiles' until after loading `shell'. * lisp/net/tramp-integration.el: Add the local profile for all hosts listed in `tramp-local-host-names'. * lisp/net/tramp.el (tramp-local-host-names): New defvar. (tramp-local-host-regexp): Use it. * test/lisp/net/tramp-tests.el (tramp-test03-file-name-defaults): Adapt test.
2026-01-17New D-Bus functions to support systemd inhibitor locksMichael Albinus
* doc/misc/dbus.texi (Top): Add "Inhibitor Locks" submenu. Remove trailing period from chapter and section titles. (Inhibitor Locks): New node. * etc/NEWS: New D-Bus functions to support systemd inhibitor locks. Presentational fixes and improvements. * src/dbusbind.c (xd_registered_inhibitor_locks): New variable. (Fdbus_make_inhibitor_lock, Fdbus_close_inhibitor_lock) (Fdbus_registered_inhibitor_locks): New DEFUNs. (Bug#79963) (syms_of_dbusbind_for_pdumper): Initialize `xd_registered_inhibitor_locks'. (syms_of_dbusbind): Declare subroutines `Sdbus_make_inhibitor_lock', `Sdbus_close_inhibitor_lock' and `Sdbus_registered_inhibitor_locks'. Declare symbol `Qdbus_call_method'. staticpro `xd_registered_inhibitor_locks'. * test/lisp/net/dbus-tests.el (dbus--test-systemd-service) (dbus--test-systemd-path, dbus--test-systemd-manager-interface): New defconsts. (dbus-test10-inhibitor-locks): New test.
2026-01-14Call all registered D-Bus signal handlersMichael Albinus
* doc/misc/dbus.texi (Signals): All registered signal handlers are called. (Synchronous Methods, Signals, Monitoring Messages): Add function result in examples. * src/dbusbind.c (xd_store_event): New function. (xd_read_message_1): Use it. Call all registered handlers per signal. (Bug#80168) * test/lisp/net/dbus-tests.el (dbus--test-signal-handler): Adapt defun. (dbus--test-signal-handler1, dbus--test-signal-handler2): New defuns. (dbus-test05-register-signal-several-handlers): New test. (dbus-test04-register-method) (dbus-test04-call-method-authorizable) (dbus-test05-register-signal) (dbus-test05-register-signal-with-nils) (dbus-test06-register-property-emits-signal): Adapt tests.
2026-01-01; Add 2026 to copyright years.Sean Whitton
2025-12-26December 2025 spelling fixesPaul Eggert
Some of the fixes are to continue to use American rather than British spelling. * doc/misc/modus-themes.org (my-modus-themes-engraved-faces): Fix misspelled ‘:foreground’s. * etc/themes/modus-themes.el (modus-themes-faces): Fix misspelled ‘modus-themes-bold’. * lisp/emacs-lisp/rx.el (rx--normalize-char-pattern): Rename from rx--normalise-char-pattern. (rx--optimize-or-args): Rename from rx--optimise-or-args. * lisp/frame.el (frame--special-parameters): Fix misspelled "right-divider-width". * lisp/net/tramp.el (tramp-fingerprint-prompt-regexp): Use American spelling “centered”, to match current libfprintf. * lisp/org/org-fold-core.el (org-fold-core--optimize-for-huge-buffers): Rename from org-fold-core--optimise-for-huge-buffers. (org-fold-core-update-optimization): Rename from org-fold-core-update-optimisation, leaving an alias behind. (org-fold-core-remove-optimization): Rename from org-fold-core-remove-optimisation, leaving an alias behind. * lisp/org/org.el (org-advertized-archive-subtree): This alias is now obsolete. * lisp/play/zone.el (zone-ignored-buffers): Fix misspelling of ‘zone--buffer-encrypted-p’. * lisp/progmodes/csharp-mode.el (csharp-ts-mode-faces): Fix misspelling of ‘csharp’ group. * lisp/vc/vc.el (vc-clonable-backends-custom-type): Rename from vc-cloneable-backends-custom-type, leaving an alias behind. * test/lisp/emacs-lisp/bytecomp-tests.el: (bytecomp-tests--warn-arity-non-compiled-callee): Rename from bytecomp-tests--warn-arity-noncompiled-callee. (bytecomp-test-defface-spec): Reword a deliberate misspelling of “default” that is so common I don’t want it to pollute the spelling dictionary. * test/lisp/emacs-lisp/package-vc-tests.el: (package-vc-tests-preserve-artifacts): Rename from package-vc-tests-preserve-artifacts. * test/lisp/eshell/em-prompt-tests.el: (em-prompt-test/forward-backward-paragraph-1): Reword a deliberate misspelling of “goodbye” that is so common I don’t want it to pollute the spelling dictionary.
2025-12-26Fix problem in tramp-adbMichael Albinus
* lisp/net/tramp-adb.el (tramp-adb-do-ls): New function. (tramp-adb-handle-file-attributes) (tramp-adb-handle-directory-files-and-attributes) (tramp-adb-handle-file-name-all-completions): Use it. (Bug#80054)
2025-12-17; Fix last change in tramp-tests.elMichael Albinus
* test/lisp/net/tramp-tests.el (tramp-test29-start-file-process) (tramp-test30-make-process): Adapt tests.
2025-12-16Document and test process filters in tramp-smb.elMichael Albinus
* doc/misc/tramp.texi (Remote processes): Provide more details in "Running remote processes on MS Windows hosts". * test/lisp/net/tramp-tests.el (tramp-test29-start-file-process) (tramp-test30-make-process): Adapt tests.
2025-12-15Finish process error buffer support in tramp-smb.elMichael Albinus
* doc/misc/tramp.texi (Remote processes): Provide more details in "Running remote processes on MS Windows hosts". * lisp/net/tramp-smb.el (tramp-smb-handle-make-process): Suppress lock files. * test/lisp/net/tramp-tests.el (auto-revert-notify-watch-descriptor) (auto-revert-remote-files, auto-revert-use-notify): Declare. Set proper values. (tramp-test30-make-process): Adapt test.
2025-12-14Implement process error buffer in tramp-smb.elMichael Albinus
* lisp/net/tramp-smb.el (tramp-smb-handle-make-process): Handle error buffer. * test/lisp/net/tramp-tests.el (tramp-test30-make-process): Adapt test.
2025-12-13Implement process STDERR file in tramp-smb.elMichael Albinus
* lisp/net/tramp-smb.el (tramp-smb-handle-make-process) (tramp-smb-handle-process-file): Handle STDERR file. (tramp-smb-call-winexe): Regroup sent commands. * test/lisp/net/tramp-tests.el (tramp-test28-process-file) (tramp-test30-make-process): Adapt tests.
2025-12-06Rework remote process support for Tramp's "smb" methodMichael Albinus
* doc/misc/tramp.texi (Remote processes): Rewrite subsection "Running remote processes on MS Windows hosts". * etc/NEWS: Mention remote process support for Tramp's "smb" method. Presentational fixes and improvements. * lisp/net/tramp-smb.el (tramp-smb-file-name-handler-alist): Use `tramp-smb-handle-make-process', `tramp-smb-handle-shell-command' and `tramp-handle-start-file-process'. (tramp-smb-matching-line): New defvar. (tramp-smb-handle-make-process, tramp-smb-handle-shell-command) (tramp-smb-shell-prompt): New defuns. (tramp-smb-handle-process-file): Rewrite. (tramp-smb-handle-start-file-process): Remove. (tramp-smb-get-localname, tramp-smb-shell-quote-localname): New optional argument SHARE. (tramp-smb-send-command): Remove echoed command string. (tramp-smb-maybe-open-connection): Initialize variables. (tramp-smb-wait-for-output): Wait more robust. (tramp-smb-call-winexe): Check for share. Goto current directory. (tramp-smb-connection-local-powershell-variables): New defconst. Set it as connection local variables. * test/lisp/net/tramp-tests.el (tramp-test28-process-file) (tramp-test29-start-file-process, tramp-test30-make-process) (tramp-test32-shell-command, tramp--test-async-shell-command) (tramp--test-supports-processes-p): Adapt for "smb" method. (tramp-test34-explicit-shell-file-name) (tramp-test45-asynchronous-requests): Skip for "smb" method. (tramp--test-check-files): Skip shell test for some special characters in the "smb" case. (tramp-test52-unload): Disable further tests.
2025-11-28Sync with Tramp 2.8.0.5Michael Albinus
* doc/misc/tramp.texi (Remote processes): Improve description where direct asyn processes won't work. * lisp/net/tramp-cache.el (with-tramp-saved-connection-properties): Adapt `tramp-verbose' less aggressive. * lisp/net/tramp-container.el (tramp-kubernetes--context-namespace): Use `string-join'. * lisp/net/tramp-message.el (tramp-get-debug-file-name): Modify debug file name. (tramp-debug-message): Simplify. * lisp/net/tramp-sh.el (tramp-actions-before-shell) (tramp-actions-copy-out-of-band): Add `tramp-keyboard-interactive-authentication-prompt-regexp'. * lisp/net/tramp.el (tramp-encoding-shell): Fix docstring. (tramp-keyboard-interactive-authentication-prompt-regexp): New defcustom. (tramp-action-ignore-message): New defun. * test/lisp/net/tramp-tests.el (tramp-test10-write-region) (tramp-test10-write-region-file-precious-flag) (tramp-test10-write-region-other-file-name-handler) (tramp-test27-load, tramp-test32-shell-command) (tramp-test32-shell-command-dont-erase-buffer) (tramp-test34-connection-local-variables) (tramp-test36-vc-registered, tramp-test39-make-lock-file-name) (tramp-test39-detect-external-change) (tramp-test45-asynchronous-requests): Adapt tests.
2025-10-29Adapt `tramp-test49-external-backend-function'Michael Albinus
* test/lisp/net/tramp-tests.el (tramp-test49-external-backend-function): Extend test.
2025-10-20Revert "* test/lisp/net/tramp-resources/foo.tar.gz: Remove."Michael Albinus
This reverts commit e5cd797988a5b2fddaf1c850d797674a299bc574.
2025-10-20* test/lisp/net/tramp-resources/foo.tar.gz: Remove.Michael Albinus
2025-10-20Tramp cleanupMichael Albinus
* doc/misc/tramp.texi (Configuration): Extend example. * lisp/net/tramp.el (tramp-skeleton-write-region): * lisp/net/tramp-cache.el (tramp-flush-file-upper-properties): * lisp/net/tramp-sh.el (tramp-sh-handle-insert-directory): Use `when-let*' consequently. * lisp/net/tramp-cmds.el (tramp-file-name-with-method): Add :initialize and :set functions. (tramp-set-file-name-with-method): New defun. (with-tramp-file-name-with-method): Filter out enabled methods. * lisp/net/tramp-compat.el: Add TODO. * test/lisp/net/tramp-archive-tests.el (tramp-archive-test-cascaded-file-archive): Use "foo.zip". * test/lisp/net/tramp-tests.el (tramp--test-instrument-test-case-p): Extend check. (tramp-test48-session-timeout): Adapt test. * test/lisp/net/tramp-archive-resources/foo.zip: Renamed from outer.zip.
2025-10-11Make cascaded archives working in tramp-archive.el work, againMichael Albinus
* lisp/net/tramp-archive.el (tramp-archive-file-name-handler): Move bindings of `tramp-methods' and `tramp-gvfs-methods' up. (tramp-archive-file-name-handler): Do not use `tramp-archive-run-real-handler' for testing existence of `archive'. (Bug#79582) * test/lisp/net/tramp-archive-tests.el (tramp-archive-test-file-archive-hexlified): Move down. (tramp-archive-test-cascaded-file-archive) (tramp-archive-test-cascaded-archive, tramp-archive-test-cascaded): New defvars. (tramp-archive--test-deftest-cascaded): New defmacro. (tramp-archive-test01-file-name-syntax) (tramp-archive-test05-expand-file-name): Adapt tests. (tramp-archive-test01-file-name-syntax-cascaded) (tramp-archive-test05-expand-file-name-cascaded) (tramp-archive-test06-directory-file-name-cascaded) (tramp-archive-test07-file-exists-p-cascaded) (tramp-archive-test08-file-local-copy-cascaded) (tramp-archive-test09-insert-file-contents-cascaded) (tramp-archive-test11-copy-file-cascaded) (tramp-archive-test15-copy-directory-cascaded) (tramp-archive-test16-directory-files-cascaded) (tramp-archive-test17-insert-directory-cascaded) (tramp-archive-test18-file-attributes-cascaded) (tramp-archive-test19-directory-files-and-attributes-cascaded) (tramp-archive-test20-file-modes-cascaded) (tramp-archive-test21-file-links-cascaded) (tramp-archive-test26-file-name-completion-cascaded) (tramp-archive-test40-make-nearby-temp-file-cascaded) (tramp-archive-test43-file-system-info-cascaded) (tramp-archive-test44-user-group-ids-cascaded): New tests. * test/lisp/net/tramp-archive-resources/outer.zip: New test file.
2025-10-06Don't call dbus-launch in dbus-tests.elMichael Albinus
* test/lisp/net/dbus-tests.el (dbus-test02-register-service-own-bus): Adapt test. Don't use dbus-launch, call dbus-daemon directly. See <1117059@bugs.debian.org>. See <https://lists.debian.org/debian-devel/2016/08/msg00554.html>. * test/lisp/net/dbus-resources/session.conf.in: New file. It is copied from <https://salsa.debian.org/debian/flatpak/-/blob/debian/ trixie/tests/session.conf.in>.
2025-09-25Adapt tramp-tests.elMichael Albinus
* test/lisp/net/tramp-tests.el (tramp-test26-interactive-file-name-completion): Adapt test.
2025-09-15Tramp code cleanupMichael Albinus
* lisp/net/tramp.el (tramp-use-absolute-autoload-file-names) (tramp-skeleton-file-name-all-completions) (tramp-parse-auth-sources, tramp-parse-file, tramp-parse-netrc): * lisp/net/tramp-cache.el (tramp-parse-connection-properties): * lisp/net/tramp-gvfs.el (tramp-gvfs-parse-device-names): * lisp/net/tramp-sh.el (tramp-sh-handle-insert-directory): Use `seq-uniq'. * lisp/net/tramp.el (tramp-register-foreign-file-name-handler): * lisp/net/tramp-fuse.el (tramp-fuse-handle-directory-files): Use `seq-union'. * test/lisp/net/tramp-archive-tests.el (tramp-archive-test17-insert-directory): * test/lisp/net/tramp-tests.el (tramp-test17-insert-directory): Use `seq-union'. (tramp-test42-utf8): Use `seq-uniq' and `tramp-compat-seq-keep'.
2025-09-14; * test/lisp/net/tramp-tests.el: silence function-quoting warningMattias Engdegård
2025-09-12Minor edits in tramp-tests.elMichael Albinus
* test/lisp/net/tramp-tests.el (tramp-test16-file-expand-wildcards) (tramp-test26-interactive-file-name-completion): Prefer #'string-lessp over 'string<. (tramp--test-ange-ftp-p, tramp-test47-read-password) (tramp-test47-read-otp-password): Use function read syntax.
2025-09-02Extend tramp-test26-interactive-file-name-completionMichael Albinus
* lisp/net/tramp.el (tramp-get-completion-methods): Use `tramp-compat-seq-keep'. * test/lisp/net/tramp-tests.el (completions-max-height): Declare. (tramp-test26-interactive-file-name-completion): Extend test.
2025-08-29`Fix read-directory-name' for Tramp filesMichael Albinus
* lisp/minibuffer.el (completion-file-name-table): Improve bypass for directory checking. (Bug#79236) * lisp/net/tramp.el (tramp-user-regexp): Exclude "[" and "]". (tramp-completion-make-tramp-file-name): Handle port for IPv6 hosts. (tramp-completion-handle-file-directory-p) (tramp-completion-handle-file-exists-p): Simplify. (tramp-completion-handle-file-name-completion): Ignore PREDICATE. (tramp-completion-dissect-file-name): Handle ports. (tramp-parse-default-user-host): Suppress '(nil nil) result. (tramp-parse-file): Delete duplicates. (tramp-parse-shosts-group): Accept also IPv6 addresses. (tramp-handle-file-directory-p): Return t for filenames "/method:foo:". (tramp-parse-auth-sources, tramp-parse-netrc): * lisp/net/tramp-cache.el (tramp-parse-connection-properties): * lisp/net/tramp-gvfs.el (tramp-gvfs-parse-device-names): Use `tramp-compat-seq-keep'. * test/lisp/net/tramp-tests.el (edebug-mode): Declare. (tramp--test-message): Write also trace value. (tramp-test26-file-name-completion): (tramp-test26-interactive-file-name-completion): Extend tests.
2025-08-17Suppress Tramp session timeout if buffer is modifiedMichael Albinus
* doc/misc/tramp.texi (Predefined connection information): A session timeout is suppressed if there is a modified buffer, or a buffer under auto-revert. (Traces and Profiles): Tramp messages are written to the *Messages* buffer when level is less than or equal to 3. * lisp/net/tramp-sh.el (tramp-timeout-session): Do not timeout when buffer is modified, or in auto-revert mode. * test/lisp/net/tramp-tests.el (tramp-test48-session-timeout): Extend test.