]> git.eshelyaron.com Git - emacs.git/commit
Improve remote file notifications
authorMichael Albinus <michael.albinus@gmx.de>
Fri, 26 Mar 2021 18:30:05 +0000 (19:30 +0100)
committerMichael Albinus <michael.albinus@gmx.de>
Fri, 26 Mar 2021 18:30:05 +0000 (19:30 +0100)
commitc2e72610d217f52d868c62102ff25e3279510e47
tree072c4ff5e79a1122dea227a01c50f0ef565d3f24
parent331ddd803a72056d0f0c70e5a677e0d4a6300584
Improve remote file notifications

* 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.
lisp/net/tramp-sh.el
test/lisp/filenotify-tests.el