1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-03 02:31:03 -08:00
emacs/test/lisp/net
Michael Albinus ce0da8a427 Rework time-* functions in Tramp
* doc/misc/emacs-mime.texi (time-date): Add time-equal-p.

* lisp/net/tramp-compat.el (tramp-compat-time-equal-p): New defsubst.

* lisp/net/tramp.el (tramp-file-name-handler): Remove `debug'
error handler.
(tramp-half-a-year): Remove.
(tramp-time-dont-know, tramp-time-doesnt-exist): New defconst.
(tramp-time-diff): Remove compat code.
(tramp-handle-set-visited-file-modtime)
(tramp-handle-verify-visited-file-modtime):
* lisp/net/tramp-adb.el (tramp-do-parse-file-attributes-with-ls)
(tramp-adb-handle-set-file-times):
* lisp/net/tramp-sh.el (tramp-do-file-attributes-with-ls)
(tramp-sh-handle-set-visited-file-modtime)
(tramp-sh-handle-verify-visited-file-modtime)
(tramp-sh-handle-set-file-times)
(tramp-sh-handle-file-newer-than-file-p):
Use `tramp-time-dont-know', `tramp-time-doesnt-exist' and
`tramp-compat-time-equal-p'.
(tramp-sh-handle-verify-visited-file-modtime): Simplify check.

* lisp/net/tramp-smb.el (tramp-smb-handle-file-attributes)
(tramp-smb-read-file-entry): Use `tramp-time-dont-know'.
(tramp-smb-handle-insert-directory): Adapt half-a-year check.

* src/editfns.c (Ftime_equal_p): Adapt docstring.

* test/lisp/net/tramp-tests.el
(tramp-test19-directory-files-and-attributes)
(tramp-test22-file-times): Use `tramp-compat-time-equal-p' and
`tramp-time-dont-know'.
(tramp-test23-visited-file-modtime): Extend test.
2018-09-29 15:33:48 +02:00
..
tramp-archive-resources Fix Bug#30293 2018-01-31 15:02:46 +01:00
dbus-tests.el Remove test code from last commit 2018-07-08 13:08:05 +02:00
gnutls-tests.el Merge from origin/emacs-26 2018-01-01 01:13:04 -08:00
mailcap-tests.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
network-stream-tests.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
newsticker-tests.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
puny-tests.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
sasl-scram-rfc-tests.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
secrets-tests.el Fix Bug#32147 2018-07-15 09:47:08 +02:00
shr-tests.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
tramp-archive-tests.el Tag expensive tests in tramp-archive.el (Bug#30807) 2018-08-08 14:59:56 +02:00
tramp-tests.el Rework time-* functions in Tramp 2018-09-29 15:33:48 +02:00