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] emacs: Add completions for '--type' option of 'refresh' popup.
Date: Thu, 29 Oct 2015 21:14:35 +0100	[thread overview]
Message-ID: <871tcda0us.fsf@gnu.org> (raw)
In-Reply-To: <87h9layg9i.fsf@gmail.com> (Alex Kost's message of "Wed, 28 Oct 2015 21:55:37 +0300")

Alex Kost <alezost@gmail.com> 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 <alezost@gmail.com>
> 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	other threads:[~2015-10-29 20:14 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-28 18:55 [PATCH] emacs: Add completions for '--type' option of 'refresh' popup Alex Kost
2015-10-29 20:14 ` Ludovic Courtès [this message]
2015-10-31 20:29   ` Alex Kost
2015-11-01 17:18     ` Ludovic Courtès
2015-11-02 13:01       ` Alex Kost

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=871tcda0us.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).