• Michael Albinus's avatar
    Improve remote file notifications · c2e72610
    Michael Albinus authored
    * 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.
    c2e72610
tramp-sh.el 230 KB