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: Alex Kost
Subject: Re: [PATCH] emacs: Add completions for '--type' option of 'refresh' popup.
Date: Mon, 02 Nov 2015 16:01:18 +0300
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux)

Ludovic Courtès (2015-11-01 20:18 +0300) wrote:

> Alex Kost <address@hidden> skribis:
>
>> Ludovic Courtès (2015-10-29 23:14 +0300) wrote:
>
> [...]
>
>>> You could use #:autoload, but only for ‘%updaters’ because
>>> ‘upstream-updater-name’ is a macro so it needs to be available at
>>> expansion time.
>>
>> I looked at (info "(guile) Using Guile Modules") and it has the following:
>>
>>           An autoload is a good way to put off loading a big module
>>           until it’s really needed, for instance for faster startup or
>>           if it will only be needed in certain circumstances.
>>
>>           address@hidden can do a similar thing (see Using Guile Modules), 
>> but
>>           in that case an address@hidden form must be written every time a 
>> binding
>>           from the module is used.
>>
>> To me it sounds like address@hidden does the same thing as ‘#:autoload’, no?
>
> I guess I was confused.  A simple example confirms what the manual
> explains:
>
> $ guild compile t.scm
> wrote 
> `/home/ludo/.cache/guile/ccache/2.0-LE-8-2.0/home/ludo/src/guix/t.scm.go'
> $ guile t.scm
> $ cat t.scm
> (define (foo)
>   (@ (asdfasdfa) sdfsf))

Ah, good example, thank you!

>> Also #:autoload should be used inside (define-module ...), but
>> ‘guix-main.scm’ does not define a module.
>
> Oh, right, I had overlooked that.
>
> So yes, you can go ahead with your initial approach.

Great, thanks!

> Thanks, and sorry for the confusion!

No problem, pushed.

-- 
Alex



reply via email to

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