Subject: Re: [bug#77574] [PATCH] .dir-locals.el: Add compile command.

From: Morgan Smith <[email-masked]>
Date: Mon, 07 Apr 2025 17:17:34 -0400

Gabriel Santos <[email-masked]> writes:

> Change-Id: I461082926c3d2370bcdead4c75ec8d6c5508c12e
> ---
>
> Simple compilation command that uses guix shell in case the user doesn't have
> all of the necessary dependencies installed.

I think this is mostly the correct command (see below) and would love to
see this change as I am manually inserting it all the time.  Thank you
for taking the time to do this!

>
>  .dir-locals.el | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/.dir-locals.el b/.dir-locals.el
> index 76c9e12992..296f09bb97 100644
> --- a/.dir-locals.el
> +++ b/.dir-locals.el
> @@ -4,6 +4,7 @@
>    . ((fill-column . 78)
>       (tab-width   .  8)
>       (sentence-end-double-space . t)
> +     (compile-command . "guix shell -D guix -CP -- make")

According to the info manual [[info:guix#Building from Git]] the command
should be "guix shell -D guix -CPW -- make" (notice the 'W' switch).

>
>       ;; For use with 'bug-reference-prog-mode'.  Extra bug-reference
>       ;; configuration should be done in your Emacs user configuration file;
>
> base-commit: 0e144a0da24a30f86c9fa33c3f3fcfd7ac6e21be