help-guix
[Top][All Lists]
Advanced

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

Re: Why Emacs is echoing message for each installed Emacs package while


From: Maxim Cournoyer
Subject: Re: Why Emacs is echoing message for each installed Emacs package while startup
Date: Sat, 21 May 2022 17:09:50 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (gnu/linux)

Hi,

Akib Azmain Turja <akib@disroot.org> writes:

> zimoun <zimon.toutoune@gmail.com> writes:
>
>> Hi,
>>
>> On Wed, 18 May 2022 at 22:29, Akib Azmain Turja <akib@disroot.org> wrote:
>>
>>> The timing maybe wrong, because it is more a year old (and I didn't
>>> measure).  I was new to Emacs Lisp (I used Doom before), and my init.el
>>> was messy.  So maybe the init file had something in it that was
>>> responsible for slow startup when the packages managed by Guix.
>>
>> Well, if you are able to time the two setups: the one using package.el
>> and ’leaf’ and the other one using Guix (and probably replacing the
>> lines «:ensure :package :feather :straight :el-get» to use instead the
>> Emacs packages installed by Guix).
>>
>> It could be informing about the potential gap.

There were timings made in the past when considering using the builtin
package.el to take care of some of the things we do, but it's much more
code than what we have and is unsurprisingly a bit slower.  If you look
at the guix-emacs.el file that takes care of autoloads discovery you'll
see there's really not much to it, if fits all under 100 lines of code.

> But, why is the message is shown?  Can someone remove it?  It would
> probably be better that I myself clone the repo, fix it and send the
> patch, but my hard disk space isn't allowing me to do that.  Is it
> possible disable that message by modifing any Guix configuration file?

Like Simon, I do not see why the autoloads-related messages are a
problem; they only occur when starting Emacs from scratch.  If you have
so many packages that the loading time or loading messages bothers you,
you may want to consider running Emacs as a server and connecting to it
via emacsclient; that way you load it once when you login to your
session for example and that's it.

For what it's worth, the messages are not printed by that custom Guix
Elisp code explicitly but by the Emacs function `load', on line 59 of
guix-emacs.el: (load f 'noerror).  If it really bothers you could change
it to:

(load f 'noerror 'nomessage)

Hope that helps,

Maxim



reply via email to

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