GNU bug report logs - #77574
[PATCH] .dir-locals.el: Add compile command.

Previous Next

Package: guix-patches;

Reported by: Gabriel Santos <gabriel.santos.smtp <at> gmail.com>

Date: Sun, 6 Apr 2025 11:59:02 UTC

Severity: normal

Tags: patch

Full log


View this message in rfc822 format

From: Morgan Smith <Morgan.J.Smith <at> outlook.com>
To: Gabriel Santos <gabriel.santos.smtp <at> gmail.com>
Cc: 77574 <at> debbugs.gnu.org, Gabriel Santos <gabrielsantosdesouza <at> disroot.org>
Subject: [bug#77574] [PATCH] .dir-locals.el: Add compile command.
Date: Mon, 07 Apr 2025 17:17:34 -0400
Gabriel Santos <gabriel.santos.smtp <at> gmail.com> 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




This bug report was last modified 71 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.