From mboxrd@z Thu Jan 1 00:00:00 1970 From: Catonano Subject: Re: Emacs autoloads Date: Fri, 3 Mar 2017 00:49:44 +0100 Message-ID: References: <874lzb9xim.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a114245066d7e950549c81534 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34112) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cjaTj-00048f-Ce for help-guix@gnu.org; Thu, 02 Mar 2017 18:49:50 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cjaTi-00081m-Lr for help-guix@gnu.org; Thu, 02 Mar 2017 18:49:47 -0500 Received: from mail-wm0-x22f.google.com ([2a00:1450:400c:c09::22f]:38041) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cjaTi-00081E-EK for help-guix@gnu.org; Thu, 02 Mar 2017 18:49:46 -0500 Received: by mail-wm0-x22f.google.com with SMTP id t193so3704430wmt.1 for ; Thu, 02 Mar 2017 15:49:46 -0800 (PST) In-Reply-To: <874lzb9xim.fsf@gmail.com> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: Alex Kost Cc: help-guix --001a114245066d7e950549c81534 Content-Type: text/plain; charset=UTF-8 2017-03-02 22:30 GMT+01:00 Alex Kost : > 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. > Thanks so much for clarifying, Alex --001a114245066d7e950549c81534 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
2017-03-02 22:30 GMT+01:00 Alex Kost <= ;alezost@gmail.com>:
Catonano (2017-03-02 12:51 +01= 00) wrote:

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

It does!=C2=A0 You probably think that all functions and variables a= re
autoloaded, but it's not the case.=C2=A0 Autoloads are generated only f= or
those symbols (usually interactive commands) that have ";;;###autoload= "
cookies.=C2=A0 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<= br> loaded.=C2=A0 Wrap such configurations of external Emacs packages inside 'with-eval-after-load' as Thomas suggested.<= font color=3D"#888888">

T= hanks so much for clarifying, Alex

--001a114245066d7e950549c81534--