summaryrefslogtreecommitdiff
path: root/test/lisp/files-tests.el
Commit message (Collapse)AuthorAgeFilesLines
* Fix quoted files for 'verify-visited-file-modtime'Philipp Stephani2017-05-061-1/+63
| | | | | | | | | | | | Fixes Bug#25951. * lisp/files.el (file-name-non-special): Set the file name for the correct buffer. * test/lisp/files-tests.el (files-tests--file-name-non-special--buffers): Add unit test. (files-tests--with-advice, files-tests--with-temp-file): New helper macros.
* Make subprocess functions resolve the default directoryPhilipp Stephani2017-04-041-0/+8
| | | | | | | | | | | | | `call-process' doesn't respect file name handlers in `default-directory', so `file-name-non-special' has to resolve them for `process-file', `start-file-process', and `shell-command' (Bug#25949). * lisp/files.el (file-name-non-special): Also resolve default directory for 'process-file', 'start-file-process', and 'shell-command'. * test/lisp/files-tests.el (files-tests--file-name-non-special--subprocess): Add unit test.
* Merge from origin/emacs-25Paul Eggert2017-01-011-1/+1
| | | | | 2e2a806 Fix copyright years by hand 5badc81 Update copyright year to 2017
* files-test-read-file-in-: Delete temporary dir on exitTino Calancha2016-12-201-1/+1
| | | | | * test/lisp/files-tests.el (files-test-read-file-in-~): Create subdir inside dir.
* Quote filenames containing '~' in promptsNoam Postavsky2016-12-111-0/+23
| | | | | | | | | | | | When in a directory named '~', the default value given by `read-file-name' should be quoted by prepending '/:', in order to prevent it from being interpreted as referring to the $HOME directory (Bug#16984). * lisp/minibuffer.el (minibuffer-maybe-quote-filename): New function. (completion--sifn-requote, read-file-name-default): Use it instead of `minibuffer--double-dollars'. * test/lisp/files-tests.el (files-test-read-file-in-~): Test it.
* Make querying to kill processes customizablePhilipp Stephani2016-10-011-0/+23
| | | | | | | | | | | | | | | | | | | | Introduce a new customization option, `confirm-kill-processes', that users can set to nil if they don't want Emacs to nag them about killing processes. * lisp/files.el (confirm-kill-processes): New customization option. (save-buffers-kill-emacs): Use customization option. * test/lisp/files-tests.el (files-test--save-buffers-kill-emacs--confirm-kill-processes): Add test for new customization option. * doc/emacs/entering.texi (Exiting): Document new user option. * doc/lispref/processes.texi (Query Before Exit): Document new user option. * etc/NEWS: Document new user option.
* ; * test/lisp/files-tests.el: Minor copyedits.Eli Zaretskii2016-09-241-2/+3
|
* ; * test/lisp/files-tests.el: Moved from test/lisp/legacy/.Eli Zaretskii2016-09-241-0/+200