Function: tramp-handle-file-notify-add-watch
tramp-handle-file-notify-add-watch is a byte-compiled function defined
in tramp.el.gz.
Signature
(tramp-handle-file-notify-add-watch FILENAME FLAGS CALLBACK)
Documentation
Like file-notify-add-watch for Tramp files.
Source Code
;; Defined in /usr/src/emacs/lisp/net/tramp.el.gz
;; This is the default handler. tramp-gvfs.el and tramp-sh.el have
;; their own one.
(defun tramp-handle-file-notify-add-watch (filename _flags _callback)
"Like `file-notify-add-watch' for Tramp files."
(setq filename (expand-file-name filename))
(with-parsed-tramp-file-name filename nil
(tramp-error
v 'file-notify-error "File notification not supported for `%s'" filename)))