Subject: Re: bug#55016: 28.1; xref-find-references finds no matches if project dir contains a space

From: Eli Zaretskii <[email-masked]>
Date: Tue, 19 Apr 2022 21:17:03 +0300

> From: Peter Povinec <[email-masked]>
> Date: Tue, 19 Apr 2022 10:57:29 -0700
> Cc: [email-masked]
> 
> On Tue, Apr 19, 2022 at 10:37 AM Eli Zaretskii <[email-masked]> wrote:
> >
> > Actually, one more idea: perhaps the quoting makes things first
> > because your file names begin with "~/"?  In that case, doing
> > something like this instead should do better:
> >
> >    (shell-quote-argument (expand-file-name rootdir))
> 
> That works! Both 'space dir' and 'nospace' dir cases work the same way now.

OK, thanks.  Now I understand what's going on, and can work on a real
fix for Emacs 29.

> BTW, the symlinks are not essential to my recipe. You can instead
> create two new
> directories and copy in xref.el in Step 1.

That has other complications, like the command asks me for a project
etc.