bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#48247: [PATCH] `project--files-in-directory' fails when directory co


From: Jim Porter
Subject: bug#48247: [PATCH] `project--files-in-directory' fails when directory contains spaces
Date: Wed, 5 May 2021 16:10:03 -0700

The following happens on Emacs 28.0.50 (or when project.el 0.6.0 has
been installed via GNU ELPA).

Steps to reproduce:

  mkdir "some project"
  cd "some project"
  echo "foobar" > file.txt
  emacs -Q
  C-u C-x p g foo RET RET RET RET

Result:

  project--files-in-directory: File listing failed: find:
‘/home/jim/some’: No such file or directory
  find: ‘project/’: No such file or directory

I think the directory passed to `find' should be shell-quoted. See the
attached patch.

Attachment: 0001-Shell-quote-the-directory-when-finding-a-project-s-f.patch
Description: Binary data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]