1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-03 02:31:03 -08:00
emacs/lisp/net
Michael Albinus f5bdcb3221 Improve file notifications, especially for Tramp
* doc/lispref/files.texi (Magic File Names):
Mention `file-notify-valid-p'.

* doc/lispref/os.texi (File Notifications):
Describe `file-notify-valid-p'.

* etc/NEWS: Add `file-notify-valid-p'.

* lisp/net/tramp-gvfs.el (tramp-gvfs-handle-file-notify-add-watch):
Improve implementation.
(tramp-gvfs-monitor-file-process-filter): Rename from
`tramp-gvfs-file-gvfs-monitor-file-process-filter'.  Delete
process if appropriate.

* lisp/net/tramp-sh.el (tramp-sh-handle-file-notify-add-watch):
Improve implementation.
(tramp-sh-gvfs-monitor-dir-process-filter): Rename from
`tramp-sh-file-gvfs-monitor-dir-process-filter'.  Delete process
if appropriate.
(tramp-sh-inotifywait-process-filter): Rename from
`tramp-sh-file-inotifywait-process-filter'.  Delete process if
appropriate.

* lisp/net/tramp.el (tramp-handle-file-notify-rm-watch):
Use `delete-process'
(tramp-handle-file-notify-valid-p): Check also, that file or
directory to be watched still exists.

* test/automated/file-notify-tests.el (file-notify--test-timeout):
New defun.  Use it at all places a timeout is needed.
(file-notify--test-cleanup): Delete directories recursively.
Cleanup also Tramp connections.
(file-notify-test02-events): Add tests for `attribute-change'.
(file-notify-test04-file-validity, file-notify-test05-dir-validity):
Add tests for `file-notify-rm-watch'.
2015-09-20 18:44:36 +02:00
..
ange-ftp.el Backslash cleanup in Elisp source files 2015-09-17 16:09:39 -07:00
browse-url.el Fix some more docstring etc. quoting problems 2015-09-03 15:32:54 -07:00
dbus.el Backslash cleanup in Elisp source files 2015-09-17 16:09:39 -07:00
dig.el
dns.el
eudc-bob.el
eudc-export.el
eudc-hotlist.el
eudc-vars.el
eudc.el
eudcb-bbdb.el
eudcb-ldap.el
eudcb-mab.el
eudcb-ph.el
eww.el Backslash cleanup in Elisp source files 2015-09-17 16:09:39 -07:00
gnutls.el Backslash cleanup in Elisp source files 2015-09-17 16:09:39 -07:00
goto-addr.el
hmac-def.el
hmac-md5.el
imap.el Go back to grave quoting in source-code docstrings etc. 2015-09-07 16:09:27 -07:00
ldap.el
mairix.el Go back to grave quoting in source-code docstrings etc. 2015-09-07 16:09:27 -07:00
net-utils.el Backslash cleanup in Elisp source files 2015-09-17 16:09:39 -07:00
netrc.el
network-stream.el
newst-backend.el Backslash cleanup in Elisp source files 2015-09-17 16:09:39 -07:00
newst-plainview.el Prefer directed to neutral quotes 2015-08-24 23:57:25 -07:00
newst-reader.el Backslash cleanup in Elisp source files 2015-09-17 16:09:39 -07:00
newst-ticker.el
newst-treeview.el Go back to grave quoting in source-code docstrings etc. 2015-09-07 16:09:27 -07:00
newsticker.el
nsm.el More-conservative ‘format’ quote restyling 2015-08-23 22:39:06 -07:00
ntlm.el Bump version of ntlm.el to 2.00 2015-09-06 22:53:56 -04:00
pinentry.el pinentry.el: Add debugging support 2015-08-19 11:40:44 +09:00
quickurl.el
rcirc.el Backslash cleanup in Elisp source files 2015-09-17 16:09:39 -07:00
rfc2104.el
rlogin.el Backslash cleanup in Elisp source files 2015-09-17 16:09:39 -07:00
sasl-cram.el
sasl-digest.el
sasl-ntlm.el
sasl-scram-rfc.el
sasl.el
secrets.el Backslash cleanup in Elisp source files 2015-09-17 16:09:39 -07:00
shr-color.el Fix several backslash typos in Elisp strings 2015-09-17 12:39:54 -07:00
shr.el
snmp-mode.el
soap-client.el Backslash cleanup in Elisp source files 2015-09-17 16:09:39 -07:00
soap-inspect.el
socks.el
telnet.el
tls.el Fix some more docstring etc. quoting problems 2015-09-03 15:32:54 -07:00
tramp-adb.el Backslash cleanup in Elisp source files 2015-09-17 16:09:39 -07:00
tramp-cache.el * lisp/net/tramp-cache.el (top): Use message' but format-message'. 2015-08-26 10:32:02 +02:00
tramp-cmds.el * lisp/net/tramp-cmds.el (tramp-reporter-dump-variable): 2015-08-18 14:24:16 +02:00
tramp-compat.el ; * tramp-compat.el: Remove superfluous comment; formatting 2015-08-26 10:33:11 +02:00
tramp-ftp.el
tramp-gvfs.el Improve file notifications, especially for Tramp 2015-09-20 18:44:36 +02:00
tramp-gw.el Go back to grave quoting in Tramp 2015-08-25 19:00:21 -07:00
tramp-sh.el Improve file notifications, especially for Tramp 2015-09-20 18:44:36 +02:00
tramp-smb.el Introduce `file-notify-valid-p' 2015-09-13 21:16:40 +02:00
tramp-uu.el
tramp.el Improve file notifications, especially for Tramp 2015-09-20 18:44:36 +02:00
trampver.el Improve Tramp's compatibility 2015-08-18 14:25:45 +02:00
webjump.el
zeroconf.el Backslash cleanup in Elisp source files 2015-09-17 16:09:39 -07:00