unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: ludo@gnu.org (Ludovic Courtès)
To: Alex Kost <alezost@gmail.com>
Cc: guix-devel@gnu.org
Subject: Re: [PATCH] gnu: guix: Set 'guix-dot-program' emacs variable.
Date: Sat, 17 Oct 2015 15:34:29 +0200	[thread overview]
Message-ID: <87wpulk49m.fsf@gnu.org> (raw)
In-Reply-To: <87twpqy8qp.fsf@gmail.com> (Alex Kost's message of "Fri, 16 Oct 2015 21:21:50 +0300")

Alex Kost <alezost@gmail.com> skribis:

> From dd793147718cb18766268c8aad50d24b88ffe6b6 Mon Sep 17 00:00:00 2001
> From: Alex Kost <alezost@gmail.com>
> Date: Fri, 16 Oct 2015 20:34:32 +0300
> Subject: [PATCH 1/2] build: Set DOT_USER_PROGRAM for Emacs interface.
> MIME-Version: 1.0
> Content-Type: text/plain; charset=UTF-8
> Content-Transfer-Encoding: 8bit
>
> Suggested by Ludovic Courtès <ludo@gnu.org>.
>
> * configure.ac: Set DOT_USER_PROGRAM variable.
> * emacs/guix-config.el.in (guix-config-dot-program): New constant.
> * emacs/guix-external.el (guix-dot-program): Use it.

[...]

> +(defconst guix-config-dot-program "@DOT_USER_PROGRAM@"
> +  "Name of the 'dot' executable defined at the configure time.")

“at configure time”

The docstring should mention that it can be the empty string.
Alternately, ‘configure’ could set DOT_USER_PROGRAM to “dot” when it’s
not found, which I think is ever preferable.  WDYT?

> +(defcustom guix-dot-program
> +  (if (string= "" guix-config-dot-program)
> +      (executable-find "dot")
> +    guix-config-dot-program)

Thus here we’d be checking whether ‘guix-config-dot-program’ is an
absolute file name.

> From be9e01b3c2d6ca9f47c5bdac38effe7a7bb707dc Mon Sep 17 00:00:00 2001
> From: Alex Kost <alezost@gmail.com>
> Date: Fri, 16 Oct 2015 20:48:24 +0300
> Subject: [PATCH 2/2] emacs: config: Use "emacs-config-" prefix for constants.
>
> * emacs/guix-config.el.in (guix-emacs-interface-directory,
>   guix-state-directory): Rename to ...
>   (guix-config-emacs-interface-directory, guix-config-state-directory):
>   ...this.
>   (guix-config-guile-program): New constant.
>   (guix-guile-program): Move to ...
> * emacs/guix-external.el (guix-guile-program): ...here.  Make it a
>   'defcustom'.
> * emacs/guix-profiles.el (guix-default-profile): Use
>   'guix-config-state-directory'.
> * emacs/guix-backend.el (guix-load-path): Use
>   'guix-config-emacs-interface-directory'.

OK!

Thanks,
Ludo’.

  reply	other threads:[~2015-10-17 13:34 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-15 19:48 [PATCH] gnu: guix: Set 'guix-dot-program' emacs variable Alex Kost
2015-10-16  8:20 ` Ludovic Courtès
2015-10-16 18:21   ` Alex Kost
2015-10-17 13:34     ` Ludovic Courtès [this message]
2015-10-17 15:46       ` Alex Kost
2015-10-18 16:50         ` Ludovic Courtès
2015-10-19 14:49           ` Alex Kost
2015-10-19 15:41             ` Ludovic Courtès

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87wpulk49m.fsf@gnu.org \
    --to=ludo@gnu.org \
    --cc=alezost@gmail.com \
    --cc=guix-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).