From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alex Kost Subject: Re: Emacs autoloads Date: Fri, 03 Mar 2017 00:30:57 +0300 Message-ID: <874lzb9xim.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:57840) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cjYJW-0000aB-Mh for help-guix@gnu.org; Thu, 02 Mar 2017 16:31:07 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cjYJT-0002UK-Hf for help-guix@gnu.org; Thu, 02 Mar 2017 16:31:06 -0500 Received: from mail-lf0-x241.google.com ([2a00:1450:4010:c07::241]:33111) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cjYJT-0002Sf-8H for help-guix@gnu.org; Thu, 02 Mar 2017 16:31:03 -0500 Received: by mail-lf0-x241.google.com with SMTP id r36so6686160lfi.0 for ; Thu, 02 Mar 2017 13:31:01 -0800 (PST) In-Reply-To: (catonano@gmail.com's message of "Thu, 2 Mar 2017 12:51:13 +0100") 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: Catonano Cc: help-guix 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. -- Alex