93ed67c...
by
Noam Postavsky <email address hidden>
; Fix kill-process race condition in test
* test/lisp/files-tests.el
(files-tests-file-name-non-special-start-file-process): Just disable
the query-on-exit-flag, rather than trying to get the process killed
before the end of test.
* test/lisp/files-tests.el
(files-file-name-non-special-notify-handlers): Test successful removal.
(files-file-name-non-special-handlers): Delete temp file.
0c3c28f...
by
Noam Postavsky <email address hidden>
Avoid test failures on w32 systems
* test/lisp/files-tests.el
(files-file-name-non-special-dired-compress-handler): New skipped
test, extracted from files-file-name-non-special-handlers.
* test/lisp/files-tests.el (files-file-name-non-special-handlers):
Don't pass nil SWITCHES to `insert-directory', the w32 implementation
doesn't handle it (this is likely a bug, but not the focus of this
test). Put "$FOO" in the string passed to substitute-in-file-name so
that we actually test "/:" quoting prevents substitution.
a1f600f...
by
Noam Postavsky <email address hidden>
Also test and fix file-newer-than-file-p with 2nd arg "/:" quoted
* test/lisp/files-tests.el (files-file-name-non-special-handlers):
Test "/:" quoted files in both positions of multi-file operations.
* lisp/files.el (file-name-non-special): Handle "/:" quoted file names
for both arguments of file-newer-than-file-p.
* test/lisp/files-tests.el (files-tests--with-temp-file)
(files-tests--with-temp-dir): Give them the `debug' property.
2e2dfd1...
by
Noam Postavsky <email address hidden>
Test and fix "/:" quoted file name handlers (Bug#30243)
* lisp/files.el (file-name-non-special): Strip the "/:" from
`default-directory' for `temporary-file-directory' operation; both
arguments to `file-name-completion', `file-name-all-completion', and
`file-equal-p' operations; `buffer-file-name' for
`make-auto-save-file-name' and 'set-visited-file-modtime' operations.
Don't touch any operands of `file-notify-rm-watch' and
`file-notify-valid-p' as they receive descriptors; not file
names (this is not sufficient to fix these operations for "/:" quoted
file names though).
* test/lisp/files-tests.el (files-tests--with-temp-dir): New macro.
(files-file-name-non-special-notify-handlers)
(files-file-name-non-special-handlers): New tests.