(project-find-regexp): Fix the temporary value of DEFAULT-DIRECTORY
* lisp/progmodes/project.el (project-find-regexp): Make sure the assigned value of DEFAULT-DIRECTORY ends with a slash. read-directory-name returns the name without it in certain cases.
This commit is contained in:
parent
616a93d185
commit
4589f51c21
1 changed files with 1 additions and 1 deletions
|
@ -1001,7 +1001,7 @@ requires quoting, e.g. `\\[quoted-insert]<space>'."
|
|||
(project-files pr)
|
||||
(let* ((dir (read-directory-name "Base directory: "
|
||||
caller-dir nil t)))
|
||||
(setq default-directory dir)
|
||||
(setq default-directory (file-name-as-directory dir))
|
||||
(project--files-in-directory dir
|
||||
nil
|
||||
(grep-read-files regexp))))))
|
||||
|
|
Loading…
Add table
Reference in a new issue