]> git.eshelyaron.com Git - emacs.git/commit
Test and fix "/:" quoted file name handlers (Bug#30243)
authorNoam Postavsky <npostavs@gmail.com>
Thu, 25 Jan 2018 05:37:50 +0000 (00:37 -0500)
committerNoam Postavsky <npostavs@gmail.com>
Thu, 25 Jan 2018 13:54:48 +0000 (08:54 -0500)
commit2e2dfd181fd00ffc9ade9362b5c0012fca5f0f14
tree9d4d14bad503b7cc808a58860f6a356208ce7cf8
parent6cd4e8dcc50b2072e4eccba111dbb188eb61ebb7
Test and fix "/:" quoted file name handlers (Bug#30243)

* lisp/files.el (file-name-non-special): Strip the "/:" from
`default-directory' for `temporary-file-directory' operation; both
arguments to `file-name-completion', `file-name-all-completion', and
`file-equal-p' operations; `buffer-file-name' for
`make-auto-save-file-name' and 'set-visited-file-modtime' operations.
Don't touch any operands of `file-notify-rm-watch' and
`file-notify-valid-p' as they receive descriptors; not file
names (this is not sufficient to fix these operations for "/:" quoted
file names though).
* test/lisp/files-tests.el (files-tests--with-temp-dir): New macro.
(files-file-name-non-special-notify-handlers)
(files-file-name-non-special-handlers): New tests.
lisp/files.el
test/lisp/files-tests.el