aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/net
diff options
context:
space:
mode:
authorMichael Albinus2013-07-24 15:29:15 +0200
committerMichael Albinus2013-07-24 15:29:15 +0200
commitd5d3c58aac3fa748bd6b81c79b0c435bbf1c4cbc (patch)
tree120baf49fd9b76e5564693756d95a3258bb54d28 /lisp/net
parent95e6e62b6445c92e725a44e3c725c93367722bf0 (diff)
downloademacs-d5d3c58aac3fa748bd6b81c79b0c435bbf1c4cbc.tar.gz
emacs-d5d3c58aac3fa748bd6b81c79b0c435bbf1c4cbc.zip
* filenotify.el (file-notify-supported-p):
* net/tramp-sh.el (tramp-sh-handle-file-notify-supported-p): Remove functions. * autorevert.el (auto-revert-use-notify): (auto-revert-notify-add-watch): * net/tramp.el (tramp-file-name-for-operation): * net/tramp-adb.el (tramp-adb-file-name-handler-alist): * net/tramp-gvfs.el (tramp-gvfs-file-name-handler-alist): * net/tramp-sh.el (tramp-sh-file-name-handler-alist): * net/tramp-smb.el (tramp-smb-file-name-handler-alist): Remove `file-notify-supported-p' entry.
Diffstat (limited to 'lisp/net')
-rw-r--r--lisp/net/tramp-adb.el1
-rw-r--r--lisp/net/tramp-gvfs.el1
-rw-r--r--lisp/net/tramp-sh.el10
-rw-r--r--lisp/net/tramp-smb.el1
-rw-r--r--lisp/net/tramp.el7
5 files changed, 5 insertions, 15 deletions
diff --git a/lisp/net/tramp-adb.el b/lisp/net/tramp-adb.el
index d2acea0b1b1..82b017fa230 100644
--- a/lisp/net/tramp-adb.el
+++ b/lisp/net/tramp-adb.el
@@ -110,7 +110,6 @@
110 (file-modes . tramp-handle-file-modes) 110 (file-modes . tramp-handle-file-modes)
111 (file-notify-add-watch . tramp-handle-file-notify-add-watch) 111 (file-notify-add-watch . tramp-handle-file-notify-add-watch)
112 (file-notify-rm-watch . ignore) 112 (file-notify-rm-watch . ignore)
113 (file-notify-supported-p . ignore)
114 (expand-file-name . tramp-adb-handle-expand-file-name) 113 (expand-file-name . tramp-adb-handle-expand-file-name)
115 (find-backup-file-name . tramp-handle-find-backup-file-name) 114 (find-backup-file-name . tramp-handle-find-backup-file-name)
116 (directory-files . tramp-handle-directory-files) 115 (directory-files . tramp-handle-directory-files)
diff --git a/lisp/net/tramp-gvfs.el b/lisp/net/tramp-gvfs.el
index c6c5a9543cb..e25c9bd4caf 100644
--- a/lisp/net/tramp-gvfs.el
+++ b/lisp/net/tramp-gvfs.el
@@ -437,7 +437,6 @@ Every entry is a list (NAME ADDRESS).")
437 (file-newer-than-file-p . tramp-handle-file-newer-than-file-p) 437 (file-newer-than-file-p . tramp-handle-file-newer-than-file-p)
438 (file-notify-add-watch . tramp-handle-file-notify-add-watch) 438 (file-notify-add-watch . tramp-handle-file-notify-add-watch)
439 (file-notify-rm-watch . ignore) 439 (file-notify-rm-watch . ignore)
440 (file-notify-supported-p . ignore)
441 (file-ownership-preserved-p . ignore) 440 (file-ownership-preserved-p . ignore)
442 (file-readable-p . tramp-gvfs-handle-file-readable-p) 441 (file-readable-p . tramp-gvfs-handle-file-readable-p)
443 (file-regular-p . tramp-handle-file-regular-p) 442 (file-regular-p . tramp-handle-file-regular-p)
diff --git a/lisp/net/tramp-sh.el b/lisp/net/tramp-sh.el
index d2fc1b9979e..c92eacd4473 100644
--- a/lisp/net/tramp-sh.el
+++ b/lisp/net/tramp-sh.el
@@ -867,8 +867,7 @@ of command line.")
867 (set-file-acl . tramp-sh-handle-set-file-acl) 867 (set-file-acl . tramp-sh-handle-set-file-acl)
868 (vc-registered . tramp-sh-handle-vc-registered) 868 (vc-registered . tramp-sh-handle-vc-registered)
869 (file-notify-add-watch . tramp-sh-handle-file-notify-add-watch) 869 (file-notify-add-watch . tramp-sh-handle-file-notify-add-watch)
870 (file-notify-rm-watch . tramp-sh-handle-file-notify-rm-watch) 870 (file-notify-rm-watch . tramp-sh-handle-file-notify-rm-watch))
871 (file-notify-supported-p . tramp-sh-handle-file-notify-supported-p))
872 "Alist of handler functions. 871 "Alist of handler functions.
873Operations not mentioned here will be handled by the normal Emacs functions.") 872Operations not mentioned here will be handled by the normal Emacs functions.")
874 873
@@ -3499,13 +3498,6 @@ Fall back to normal file name handler if no Tramp handler exists."
3499 (tramp-message proc 6 (format "Kill %S" proc)) 3498 (tramp-message proc 6 (format "Kill %S" proc))
3500 (kill-process proc)) 3499 (kill-process proc))
3501 3500
3502(defun tramp-sh-handle-file-notify-supported-p (file-name)
3503 "Like `file-notify-supported-p' for Tramp files."
3504 (with-parsed-tramp-file-name (expand-file-name file-name) nil
3505 (and (or (tramp-get-remote-gvfs-monitor-dir v)
3506 (tramp-get-remote-inotifywait v))
3507 t)))
3508
3509;;; Internal Functions: 3501;;; Internal Functions:
3510 3502
3511(defun tramp-maybe-send-script (vec script name) 3503(defun tramp-maybe-send-script (vec script name)
diff --git a/lisp/net/tramp-smb.el b/lisp/net/tramp-smb.el
index ad22ab98e43..fee34f856dd 100644
--- a/lisp/net/tramp-smb.el
+++ b/lisp/net/tramp-smb.el
@@ -211,7 +211,6 @@ See `tramp-actions-before-shell' for more info.")
211 (file-newer-than-file-p . tramp-handle-file-newer-than-file-p) 211 (file-newer-than-file-p . tramp-handle-file-newer-than-file-p)
212 (file-notify-add-watch . tramp-handle-file-notify-add-watch) 212 (file-notify-add-watch . tramp-handle-file-notify-add-watch)
213 (file-notify-rm-watch . ignore) 213 (file-notify-rm-watch . ignore)
214 (file-notify-supported-p . ignore)
215 (file-ownership-preserved-p . ignore) 214 (file-ownership-preserved-p . ignore)
216 (file-readable-p . tramp-handle-file-exists-p) 215 (file-readable-p . tramp-handle-file-exists-p)
217 (file-regular-p . tramp-handle-file-regular-p) 216 (file-regular-p . tramp-handle-file-regular-p)
diff --git a/lisp/net/tramp.el b/lisp/net/tramp.el
index 9c19a160a0b..db6a1e381a6 100644
--- a/lisp/net/tramp.el
+++ b/lisp/net/tramp.el
@@ -1980,7 +1980,7 @@ ARGS are the arguments OPERATION has been called with."
1980 ;; Emacs 22+ only. 1980 ;; Emacs 22+ only.
1981 'set-file-times 1981 'set-file-times
1982 ;; Emacs 24+ only. 1982 ;; Emacs 24+ only.
1983 'file-acl 'file-notify-add-watch 'file-notify-supported-p 1983 'file-acl 'file-notify-add-watch
1984 'file-selinux-context 'set-file-acl 'set-file-selinux-context 1984 'file-selinux-context 'set-file-acl 'set-file-selinux-context
1985 ;; XEmacs only. 1985 ;; XEmacs only.
1986 'abbreviate-file-name 'create-file-buffer 1986 'abbreviate-file-name 'create-file-buffer
@@ -2036,8 +2036,9 @@ ARGS are the arguments OPERATION has been called with."
2036 default-directory) 2036 default-directory)
2037 ;; PROC. 2037 ;; PROC.
2038 ((eq operation 'file-notify-rm-watch) 2038 ((eq operation 'file-notify-rm-watch)
2039 (with-current-buffer (process-buffer (nth 0 args)) 2039 (when (processp (nth 0 args))
2040 default-directory)) 2040 (with-current-buffer (process-buffer (nth 0 args))
2041 default-directory)))
2041 ;; Unknown file primitive. 2042 ;; Unknown file primitive.
2042 (t (error "unknown file I/O primitive: %s" operation)))) 2043 (t (error "unknown file I/O primitive: %s" operation))))
2043 2044