aboutsummaryrefslogtreecommitdiffstats
path: root/test/lisp/net (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Revert "Repair serious breakage in the batch tests."Michael Albinus6 days5-50/+2
| | | | | | | | | | | | | | | | | | | | | | | 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.
* Repair serious breakage in the batch tests.Eric S. Raymond13 days5-2/+50
| | | | | | | | | | | | | | 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".
* Add SHA-3 support to secure-hashCollin Funk2026-02-231-1/+6
| | | | | | | | | | | | | | | | | | | | | | | * 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.
* Escape attribute values and string DOMs when inserting themVisuwesh2026-02-141-0/+15
| | | | | | | * 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).
* Tramp signals 'remote-file-error' consequentlyMichael Albinus2026-02-122-22/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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.
* ; * test/lisp/net/dbus-tests.el: Remove obsolete function declarations.Michael Albinus2026-02-111-4/+0
|
* ; * test/lisp/net/dbus-tests.el: no warnings for non-dbus configsMattias Engdegård2026-02-111-0/+3
|
* Support D-Bus file descriptor manipulationMichael Albinus2026-02-071-50/+117
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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.
* New Tramp testMichael Albinus2026-01-281-0/+36
| | | | | * test/lisp/net/tramp-tests.el (tramp-test45-force-remote-file-error): New test.
* ; Tramp code cleanupMichael Albinus2026-01-241-1/+1
| | | | | | | | | * 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.
* ; * test/lisp/net/dbus-tests.el: Fix typos.Michael Albinus2026-01-221-2/+2
|
* ; * test/lisp/net/dbus-tests.el: hush warnings on no-dbus platformsMattias Engdegård2026-01-211-0/+4
|
* Tag Tramp tests as :expensive-testMichael Albinus2026-01-201-0/+16
| | | | | | | | | | | | | | | | * 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)
* ; Minor Tramp cleanupMichael Albinus2026-01-191-3/+2
| | | | | | | | | | | | | | | | | * 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.
* New D-Bus functions to support systemd inhibitor locksMichael Albinus2026-01-171-0/+93
| | | | | | | | | | | | | | | | | | | | | | | | * 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.
* Call all registered D-Bus signal handlersMichael Albinus2026-01-141-6/+88
| | | | | | | | | | | | | | | | | | | | * 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.
* ; Add 2026 to copyright years.Sean Whitton2026-01-0124-24/+24
|
* December 2025 spelling fixesPaul Eggert2025-12-261-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Fix problem in tramp-adbMichael Albinus2025-12-261-3/+10
| | | | | | | * 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)
* ; Fix last change in tramp-tests.elMichael Albinus2025-12-171-2/+2
| | | | | * test/lisp/net/tramp-tests.el (tramp-test29-start-file-process) (tramp-test30-make-process): Adapt tests.
* Document and test process filters in tramp-smb.elMichael Albinus2025-12-161-23/+22
| | | | | | | | * 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.
* Finish process error buffer support in tramp-smb.elMichael Albinus2025-12-151-5/+10
| | | | | | | | | | | | | * 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.
* Implement process error buffer in tramp-smb.elMichael Albinus2025-12-141-7/+11
| | | | | | | * 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.
* Implement process STDERR file in tramp-smb.elMichael Albinus2025-12-131-7/+13
| | | | | | | | | * 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.
* Rework remote process support for Tramp's "smb" methodMichael Albinus2025-12-061-82/+144
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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.
* Sync with Tramp 2.8.0.5Michael Albinus2025-11-281-11/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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.
* Adapt `tramp-test49-external-backend-function'Michael Albinus2025-10-291-4/+16
| | | | | * test/lisp/net/tramp-tests.el (tramp-test49-external-backend-function): Extend test.
* Revert "* test/lisp/net/tramp-resources/foo.tar.gz: Remove."Michael Albinus2025-10-201-0/+0
| | | | This reverts commit e5cd797988a5b2fddaf1c850d797674a299bc574.
* * test/lisp/net/tramp-resources/foo.tar.gz: Remove.Michael Albinus2025-10-201-0/+0
|
* Tramp cleanupMichael Albinus2025-10-203-5/+7
| | | | | | | | | | | | | | | | | | | | | | | | | * 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.
* Make cascaded archives working in tramp-archive.el work, againMichael Albinus2025-10-112-11/+80
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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.
* Don't call dbus-launch in dbus-tests.elMichael Albinus2025-10-062-24/+90
| | | | | | | | | | | * 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>.
* Adapt tramp-tests.elMichael Albinus2025-09-251-8/+8
| | | | | * test/lisp/net/tramp-tests.el (tramp-test26-interactive-file-name-completion): Adapt test.
* Tramp code cleanupMichael Albinus2025-09-152-6/+5
| | | | | | | | | | | | | | | | | | | | * 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'.
* ; * test/lisp/net/tramp-tests.el: silence function-quoting warningMattias Engdegård2025-09-141-1/+1
|
* Minor edits in tramp-tests.elMichael Albinus2025-09-121-15/+18
| | | | | | | | * 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.
* Extend tramp-test26-interactive-file-name-completionMichael Albinus2025-09-021-54/+88
| | | | | | | | * 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.
* `Fix read-directory-name' for Tramp filesMichael Albinus2025-08-291-60/+133
| | | | | | | | | | | | | | | | | | | | | | | | | | * 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.
* Suppress Tramp session timeout if buffer is modifiedMichael Albinus2025-08-171-1/+31
| | | | | | | | | | | | | | * 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.
* Add set-file-times implementation for Tramp smb methodMichael Albinus2025-08-061-5/+7
| | | | | | | | | | * lisp/net/tramp-adb.el (tramp-adb-handle-set-file-times): Don't use UTC in all cases. * lisp/net/tramp-smb.el (tramp-smb-handle-set-file-times): New defun. (tramp-smb-file-name-handler-alist): Use it. * test/lisp/net/tramp-tests.el (tramp-test22-file-times): Adapt test.
* Tramp allows now external implementations for functionsMichael Albinus2025-08-052-9/+93
| | | | | | | | | | | | | | | | | | | | | | | | | | * doc/misc/tramp.texi (Frequently Asked Questions): Mention tramp-hlo. (New operations): New node. (Top, Files directories and localnames): Add it to @menu. * etc/NEWS: Mention Tramp's feature to add function implementations. Presentational fixes and improvements. * lisp/net/tramp.el (tramp-file-name-for-operation-external): New defvar. (tramp-file-name-for-operation): Use `memq'. Handle external operations. Raise `remote-file-error' error in case of. (tramp-add-external-operation, tramp-remove-external-operation): New defuns. * test/lisp/net/tramp-archive-tests.el (tramp-archive-test50-auto-load) (tramp-archive-test50-delay-load) (tramp-archive-test51-without-remote-files): Rename. * test/lisp/net/tramp-tests.el (tramp--test-operation) (tramp--handler-for-test-operation): New defuns. (tramp-test49-external-backend-function): New test. (tramp-test50-auto-load, tramp-test50-delay-load) (tramp-test50-recursive-load, tramp-test50-remote-load-path) (tramp-test51-without-remote-files, tramp-test52-unload): Rename.
* Fix problem in tramp-smb.elMichael Albinus2025-07-301-2/+11
| | | | | | | | * lisp/net/tramp-smb.el (tramp-smb-handle-file-attributes): Use `directory-file-name'. * test/lisp/net/tramp-tests.el (tramp-test18-file-attributes) (tramp-test19-directory-files-and-attributes): Extend tests.
* Rework filenotify-tests.elMichael Albinus2025-07-261-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/filenotify.el (file-notify--rm-descriptor): Use `insert-special-event'. * lisp/net/tramp-sh.el (tramp-bundle-read-file-names): Fix docstring. (tramp-sh-gio-monitor-process-filter): Extend error strings. * test/infra/Dockerfile.emba (emacs-base): Install python3. * test/lisp/filenotify-tests.el (auto-revert-buffer-list): Declare. (file-notify--test-rootdir): New defvar. Replace all uses of `temporary-file-directory' by it. (file-notify--test-cleanup): Set `auto-revert-buffer-list' to nil. (file-notify--test-monitor): Check also for `process-live-p'. Skip test, if the monitor cannot be determined. (file-notify--deftest-remote): Do not call `tramp-cleanup-connection', this is done in `file-notify--test-cleanup' already. (with-file-notify-test): New defmacro. Use it in (almost) all tests. (file-notify--test-make-temp-name): Do not create `file-notify--test-tmpdir'. (file-notify--test-event-handler): Use `directory-file-name '. (auto-revert-debug): Set it to nil. (file-notify-test<nn>-*): Rewrite, using `with-file-notify-test' and `ert-with-temp-file'. * test/lisp/net/tramp-tests.el (tramp-test46-file-notifications): Tag it :unstable.
* Use macro to reduce repetition in TLS testsRobert Pluim2025-07-241-339/+134
| | | | | | | | | | | | | | * test/lisp/net/network-stream-tests.el (with-tls-params): New macro, abstracts most of the boiler plate for TLS tests. (connect-to-tls-ipv4-wait, connect-to-tls-ipv4-nowait) (connect-to-tls-ipv6-nowait, open-network-stream-tls-wait) (open-network-stream-tls-nowait, open-network-stream-tls) (open-network-stream-tls-nocert) (open-gnutls-stream-new-api-default) (open-gnutls-stream-new-api-wait) open-gnutls-stream-old-api-wait) (open-gnutls-stream-new-api-nowait) (open-gnutls-stream-old-api-nowait): Use it.
* Disable track-changes while reloading pages in EWWJim Porter2025-07-201-0/+24
| | | | | | | | | | | This makes sure 'eww--track-changes' doesn't interfere with the initial rendering process. Previously, this caused problems like <textareas> consuming the rest of the page when reloading the document. * lisp/net/eww.el (eww--change-tracker-id): New variable. (eww-display-document): Temporarily unregister our change tracker. * test/lisp/net/eww-tests.el (eww-test/tag/textarea/reload): New test.
* Fix EWW <textarea> properties when it's on the same line as other textJim Porter2025-07-201-0/+23
| | | | | | | | * lisp/net/eww.el (eww-tag-textarea): Set 'start' after ensuring preceding newline. * test/lisp/net/eww-tests.el (eww-test/tag/textarea/starts-on-new-line): New test.
* Make sure we always set the ':readable' state when displaying EWW pageJim Porter2025-07-191-0/+17
| | | | | | * lisp/net/eww.el (eww-display-html): Always set ':readable'. * test/lisp/net/eww-tests.el (eww-test/readable/reload-resets-readable): New test.
* ; * test/lisp/net/shr-tests.el (shr-test/zoom-image): Fix <img> (bug#79041).Eli Zaretskii2025-07-171-2/+2
|
* Improve autorevert-testsMichael Albinus2025-07-151-18/+62
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * doc/misc/trampver.texi: * lisp/net/trampver.el: Change version to "2.8.1-pre". * lisp/autorevert.el (auto-revert-mode, auto-revert-tail-mode) (auto-revert-notify-handler, auto-revert--end-lockout): Use `auto-revert-buffer'. (auto-revert-notify-handler): Rearrange setting current buffer. (auto-revert-handler): Add debug message. Rearrange check. Cancel lockout timer if running. * lisp/net/tramp.el (tramp-barf-if-file-missing) (with-parsed-tramp-file-name, tramp-skeleton-file-truename): * lisp/net/tramp-archive.el (with-parsed-tramp-archive-file-name): * lisp/net/tramp-message.el (tramp-with-demoted-errors): Fix debug declatation. * lisp/net/tramp-sh.el (tramp-sh-gio-monitor-process-filter): Do not prepend remote prefix. * test/lisp/autorevert-tests.el: Unify file notification libraries "gio-monitor" and "gvfs-monitor-dir" to "gio". (top): Set some Tramp related variables. (auto-revert--timeout): Increase value. (auto-revert--test-enabled-remote) (auto-revert-test02-auto-revert-deleted-file): Do not check for EMACS_HYDRA_CI environment variable. (auto-revert--wait-for-revert): Fix regexp to search for. (auto-revert--deftest-remote): Fix debug declatation. Do not tag :unstable. (with-auto-revert-test): Fix debug declatation. Adapt revert intervals. (auto-revert-test*): Start with (file-notify-rm-all-watches). Use `buffer-string' and `string-match-p'. (auto-revert-test00-auto-revert-mode): Unlock initial lockout. (auto-revert-test01-auto-revert-several-files): Rearrange temporary directory and file settings. (auto-revert-test02-auto-revert-deleted-file): Adapt debug message. (auto-revert-test03-auto-revert-tail-mode): Use `with-auto-revert-test'. (auto-revert-test04-auto-revert-mode-dired): Use `ert-with-temp-directory'. Adapt prefix of tmpfile. (auto-revert-test04-auto-revert-mode-dired) (auto-revert-test05-global-notify, auto-revert-test06-write-file): Wait for proper file modification. (auto-revert-test--instrument-kill-buffer-hook): Fix debug message. (auto-revert-test07-auto-revert-several-buffers): Use `with-auto-revert-test. * test/lisp/filenotify-tests.el: Unify file notification libraries "gio-monitor" and "gvfs-monitor-dir" to "gio". (file-notify--deftest-remote): Fix debug declatation. Do not skip for "gio". (file-notify--test-with-actions): Fix debug declatation. * test/lisp/net/tramp-tests.el (filenotify): Require. (ert-remote-temporary-file-directory) (tramp-test41-special-characters, tramp-test42-utf8) (tramp-test45-asynchronous-requests): Do not check for EMACS_HYDRA_CI environment variable. (tramp-test46-file-notifications): New test.
* Fix browse-url-tests-delete-temp-fileMichael Albinus2025-07-101-1/+1
| | | | | * test/lisp/net/browse-url-tests.el (browse-url-tests-delete-temp-file): Fix test.