[Top][All Lists]

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

Re: Emacs autoloads

From: Alex Kost
Subject: Re: Emacs autoloads
Date: Fri, 03 Mar 2017 00:30:57 +0300
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux)

Catonano (2017-03-02 12:51 +0100) wrote:

> I installed emacs-debbugs
> But it doesn't get autoloaded

It does!  You probably think that all functions and variables are
autoloaded, but it's not the case.  Autoloads are generated only for
those symbols (usually interactive commands) that have ";;;###autoload"
cookies.  For example, look at "M-x find-library debbugs-gnu" and search
for ";;;###autoload" there.

> so I had to comment out this line in
> my .emacs file
> (add-to-list 'debbugs-gnu-all-packages "guix-patches")
> because otherwise when launching emacs it claims that
> "debbugs-gnu-all-packages" value is void

Yes, because this variable is void indeed when your emacs config is
loaded.  Wrap such configurations of external Emacs packages inside
'with-eval-after-load' as Thomas suggested.


reply via email to

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