diff options
author | Dmitry Gutov <dgutov@yandex.ru> | 2016-05-05 04:15:23 +0300 |
---|---|---|
committer | Dmitry Gutov <dgutov@yandex.ru> | 2016-05-05 04:15:23 +0300 |
commit | ab3ba912fc7b91b7b147ea36fabe461dc99a9fb8 (patch) | |
tree | 7618c1534a3b505e05e772da86372c52b7448b46 /lisp/progmodes/project.el | |
parent | 922c7a3e48e649ad67bd12b1f83343b730dd1bc4 (diff) | |
download | emacs-ab3ba912fc7b91b7b147ea36fabe461dc99a9fb8.tar.gz |
shell-quote-argument DIR when appropriate
* lisp/progmodes/project.el (project-file-completion-table):
`shell-quote-argument' DIR as well.
* lisp/progmodes/xref.el (xref--rgrep-command): Pass DIR through
`shell-quote-argument' (bug#23453). Thanks for Kaushal Modi for
pointing out the problem. Assert that DIR doesn't start with `~'.
Diffstat (limited to 'lisp/progmodes/project.el')
-rw-r--r-- | lisp/progmodes/project.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/progmodes/project.el b/lisp/progmodes/project.el index 9c8a88c80fc..a51c383b93b 100644 --- a/lisp/progmodes/project.el +++ b/lisp/progmodes/project.el @@ -172,7 +172,8 @@ to find the list of ignores for each directory." (let ((command (format "%s %s %s -type f -print0" find-program - dir + (shell-quote-argument + (expand-file-name dir)) (xref--find-ignores-arguments (project-ignores project dir) (expand-file-name dir))))) |