diff options
author | Noam Postavsky <npostavs@gmail.com> | 2016-10-27 22:17:11 -0400 |
---|---|---|
committer | Noam Postavsky <npostavs@gmail.com> | 2016-12-11 21:36:08 -0500 |
commit | a92a027d58cb4df5bb6c7e3c546a72183a192f45 (patch) | |
tree | 6de406718d319b0a8d514548852a48c7583bcd96 /lisp/emacs-lisp | |
parent | 2783e0e3899cf92910e97dc8bfda3e47b3df1478 (diff) | |
download | emacs-a92a027d58cb4df5bb6c7e3c546a72183a192f45.tar.gz emacs-a92a027d58cb4df5bb6c7e3c546a72183a192f45.tar.bz2 emacs-a92a027d58cb4df5bb6c7e3c546a72183a192f45.zip |
Quote filenames containing '~' in prompts
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.
Diffstat (limited to 'lisp/emacs-lisp')
0 files changed, 0 insertions, 0 deletions