emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master 71ce14a: Determine `file-notify' handler in Tramp f


From: Michael Albinus
Subject: [Emacs-diffs] master 71ce14a: Determine `file-notify' handler in Tramp from `special-event-map'.
Date: Thu, 18 Jul 2019 14:26:32 -0400 (EDT)

branch: master
commit 71ce14a83e424b7524325e85d9fffde732943754
Author: Michael Albinus <address@hidden>
Commit: Michael Albinus <address@hidden>

    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'.
---
 lisp/net/tramp-sh.el | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/lisp/net/tramp-sh.el b/lisp/net/tramp-sh.el
index 9a0ead4..1709937 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."
        ;; 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)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]