aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Albinus2019-07-18 20:26:24 +0200
committerMichael Albinus2019-07-18 20:26:24 +0200
commit71ce14a83e424b7524325e85d9fffde732943754 (patch)
treee406dbdb20ab6f7073df8003dfcc6d5ac0bfd95c
parent8a2f763e5cc0ed5b5eecd6a315ac45310bc7a2dd (diff)
downloademacs-71ce14a83e424b7524325e85d9fffde732943754.tar.gz
emacs-71ce14a83e424b7524325e85d9fffde732943754.zip
Determine `file-notify' handler in Tramp from `special-event-map'.
* lisp/net/tramp-sh.el (tramp-sh-gio-monitor-process-filter) (tramp-sh-gvfs-monitor-dir-process-filter) (tramp-sh-inotifywait-process-filter): Determine `file-notify' handler from `special-event-map'.
-rw-r--r--lisp/net/tramp-sh.el6
1 files changed, 3 insertions, 3 deletions
diff --git a/lisp/net/tramp-sh.el b/lisp/net/tramp-sh.el
index 9a0ead47552..170993787b7 100644
--- a/lisp/net/tramp-sh.el
+++ b/lisp/net/tramp-sh.el
@@ -3704,7 +3704,7 @@ Fall back to normal file name handler if no Tramp handler exists."
3704 ;; once. Therefore, we apply the handler directly. 3704 ;; once. Therefore, we apply the handler directly.
3705 (when (member (cl-caadr object) events) 3705 (when (member (cl-caadr object) events)
3706 (tramp-compat-funcall 3706 (tramp-compat-funcall
3707 'file-notify-handle-event 3707 (cdr (assq 'file-notify special-event-map))
3708 `(file-notify ,object file-notify-callback))))) 3708 `(file-notify ,object file-notify-callback)))))
3709 3709
3710 ;; Save rest of the string. 3710 ;; Save rest of the string.
@@ -3755,7 +3755,7 @@ file-notify events."
3755 ;; once. Therefore, we apply the handler directly. 3755 ;; once. Therefore, we apply the handler directly.
3756 (when (member (cl-caadr object) events) 3756 (when (member (cl-caadr object) events)
3757 (tramp-compat-funcall 3757 (tramp-compat-funcall
3758 'file-notify-handle-event 3758 (cdr (assq 'file-notify special-event-map))
3759 `(file-notify ,object file-notify-callback))))) 3759 `(file-notify ,object file-notify-callback)))))
3760 3760
3761 ;; Save rest of the string. 3761 ;; Save rest of the string.
@@ -3791,7 +3791,7 @@ file-notify events."
3791 ;; once. Therefore, we apply the handler directly. 3791 ;; once. Therefore, we apply the handler directly.
3792 (when (member (cl-caadr object) events) 3792 (when (member (cl-caadr object) events)
3793 (tramp-compat-funcall 3793 (tramp-compat-funcall
3794 'file-notify-handle-event 3794 (cdr (assq 'file-notify special-event-map))
3795 `(file-notify ,object file-notify-callback))))))) 3795 `(file-notify ,object file-notify-callback)))))))
3796 3796
3797(defun tramp-sh-handle-file-system-info (filename) 3797(defun tramp-sh-handle-file-system-info (filename)