summaryrefslogtreecommitdiff
path: root/test/lisp/emacs-lisp/benchmark-tests.el
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2017-08-12 20:04:43 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2017-08-12 20:05:23 -0700
commitebf53ed4f6469d24c3a76835eab014d82aed551c (patch)
tree6a5f10abdc9c59f02910cde7e5f4e479d4835d1d /test/lisp/emacs-lisp/benchmark-tests.el
parenta6ad98ad66e1d0c0dac5f25ba91e11d0cf9da725 (diff)
downloademacs-ebf53ed4f6469d24c3a76835eab014d82aed551c.tar.gz
emacs-ebf53ed4f6469d24c3a76835eab014d82aed551c.tar.bz2
emacs-ebf53ed4f6469d24c3a76835eab014d82aed551c.zip
Fix make-temp-file bug with ""/"."/".." prefix
The bug with "." and ".." has been present for a while; I introduced the bug with "" earlier today in my patch for Bug#28023. * lisp/files.el (make-temp-file): Do not use expand-file-name if PREFIX is empty or "." or "..", as it does the wrong thing. Compute absolute-prefix here ... (files--make-magic-temp-file): ... instead of here ... * src/fileio.c (Fmake_temp_file_internal): ... or here. * lisp/files.el (make-temp-file): If the prefix is empty, append "/" to the absolute prefix so that the new files are children rather than siblings of temporary-file-directory. This fixes a bug introduced in the previous change. * test/lisp/files-tests.el (files-test-make-temp-file-empty-prefix): New test, for the bug.
Diffstat (limited to 'test/lisp/emacs-lisp/benchmark-tests.el')
0 files changed, 0 insertions, 0 deletions