Handle quoted file names in filenotify.el
* lisp/filenotify.el (file-notify-add-watch): Do not save quoted file names in `file-notify-descriptors'. * test/lisp/files-tests.el (files-file-name-non-special-notify-handlers): Do not expect to fail.
This commit is contained in:
parent
e0870c3801
commit
08840f2f7b
1 changed files with 4 additions and 1 deletions
|
@ -307,7 +307,10 @@ FILE is the name of the file whose event is being reported."
|
|||
(unless (functionp callback)
|
||||
(signal 'wrong-type-argument `(,callback)))
|
||||
|
||||
(let* ((handler (find-file-name-handler file 'file-notify-add-watch))
|
||||
(let* ((quoted (file-name-quoted-p file))
|
||||
(file (file-name-unquote file))
|
||||
(file-name-handler-alist (if quoted nil file-name-handler-alist))
|
||||
(handler (find-file-name-handler file 'file-notify-add-watch))
|
||||
(dir (directory-file-name
|
||||
(if (file-directory-p file)
|
||||
file
|
||||
|
|
Loading…
Add table
Reference in a new issue