guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] emacs: Add completions for '--type' option of 'refresh' popu


From: Ludovic Courtès
Subject: Re: [PATCH] emacs: Add completions for '--type' option of 'refresh' popup.
Date: Thu, 29 Oct 2015 21:14:35 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux)

Alex Kost <address@hidden> skribis:

> This is for completions in "M-x guix r =t".
>
> In 'emacs/guix-main.scm' I used:
>
>   (map (@ (guix upstream) upstream-updater-name)
>        (@ (guix scripts refresh) %updaters)))
>
> instead of adding these modules to the top-level (use-modules ...) to
> avoid loading them on start.

That doesn’t avoid anything actually.

You could use #:autoload, but only for ‘%updaters’ because
‘upstream-updater-name’ is a macro so it needs to be available at
expansion time.

> From f2bd4c152ddd48a6c1cc13adfff0a616d1732bd3 Mon Sep 17 00:00:00 2001
> From: Alex Kost <address@hidden>
> Date: Wed, 28 Oct 2015 21:11:36 +0300
> Subject: [PATCH] emacs: Add completions for '--type' option of 'refresh'
>  popup.
>
> * guix/scripts/refresh.scm: Export '%updaters'.
> * emacs/guix-main.scm (refresh-updater-names): New procedure.
> * emacs/guix-base.el (guix-refresh-updater-names): New function.
> * emacs/guix-read.el (guix-read-refresh-updater-names,
>   guix-read-refresh-updater-names-string): New functions.
> * emacs/guix-command.el (guix-command-improve-refresh-argument): Use
>   'guix-read-refresh-updater-names-string'.

OK with guix-main.scm using appropriate #:autoload and #:use-module.

Thanks,
Ludo’.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]