]> git.eshelyaron.com Git - emacs.git/commitdiff
; Fix last commit in tramp-sh.el
authorMichael Albinus <michael.albinus@gmx.de>
Thu, 18 Jul 2019 18:46:25 +0000 (20:46 +0200)
committerMichael Albinus <michael.albinus@gmx.de>
Thu, 18 Jul 2019 18:46:25 +0000 (20:46 +0200)
lisp/net/tramp-sh.el

index 170993787b728f63c2b84ae2f5495ee4ad05ab9c..6a82fef4f70b81e8afadbb7247036d2be2de6389 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
-          (cdr (assq 'file-notify special-event-map))
+          (lookup-key special-event-map [file-notify])
           `(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
-          (cdr (assq 'file-notify special-event-map))
+          (lookup-key special-event-map [file-notify])
           `(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
-          (cdr (assq 'file-notify special-event-map))
+          (lookup-key special-event-map [file-notify])
           `(file-notify ,object file-notify-callback)))))))
 
 (defun tramp-sh-handle-file-system-info (filename)