]> git.eshelyaron.com Git - emacs.git/commitdiff
Determine `file-notify' handler in Tramp from `special-event-map'.
authorMichael Albinus <michael.albinus@gmx.de>
Thu, 18 Jul 2019 18:26:24 +0000 (20:26 +0200)
committerMichael Albinus <michael.albinus@gmx.de>
Thu, 18 Jul 2019 18:26:24 +0000 (20:26 +0200)
* 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'.

lisp/net/tramp-sh.el

index 9a0ead4755268b8490fe1dfd03d394e99d68b6f8..170993787b728f63c2b84ae2f5495ee4ad05ab9c 100644 (file)
@@ -3704,7 +3704,7 @@ Fall back to normal file name handler if no Tramp handler exists."
        ;; once.  Therefore, we apply the handler directly.
        (when (member (cl-caadr object) events)
          (tramp-compat-funcall
-          'file-notify-handle-event
+          (cdr (assq 'file-notify special-event-map))
           `(file-notify ,object file-notify-callback)))))
 
     ;; Save rest of the string.
@@ -3755,7 +3755,7 @@ file-notify events."
        ;; once.  Therefore, we apply the handler directly.
        (when (member (cl-caadr object) events)
          (tramp-compat-funcall
-          'file-notify-handle-event
+          (cdr (assq 'file-notify special-event-map))
           `(file-notify ,object file-notify-callback)))))
 
     ;; Save rest of the string.
@@ -3791,7 +3791,7 @@ file-notify events."
        ;; once.  Therefore, we apply the handler directly.
        (when (member (cl-caadr object) events)
          (tramp-compat-funcall
-          'file-notify-handle-event
+          (cdr (assq 'file-notify special-event-map))
           `(file-notify ,object file-notify-callback)))))))
 
 (defun tramp-sh-handle-file-system-info (filename)