Subject: Re: bug#74631: 30.0.92; [PATCH] autoload project-recompile and set default-directory

From: Juri Linkov <[email-masked]>
Date: Wed, 18 Dec 2024 19:12:12 +0200

>>> The comment is related to the previous thread (bug#68570), and it's still
>>> unresolved, but IIUC this doesn't make things worse, at least.
>> Isn't bug#68570 solved by bug#70136?
>
> Now that you mention it, the solution proposed in bug#70136 does seem like
> the right direction. So we can hope for having it resolved there.

Indeed, bug#70136 solves many problems.  Using dir-local variables
in non-file buffers will for example fix such cases that when
need to add the "-a" switch to ripgrep to find files that
accidentally contain a null byte, then I see no other way
than to do this on per-project basis by adding to .dir-locals.el:

((nil . ((xref-search-program-alist
          . ((ripgrep . "xargs -0 rg <C> -a --null -nH -e <R>"))))))

But currently it has no effect.