From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Helmut Eller Newsgroups: gmane.emacs.devel Subject: Re: Package initialization Date: Sun, 19 Jul 2015 01:29:00 +0200 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1437262163 9615 80.91.229.3 (18 Jul 2015 23:29:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 18 Jul 2015 23:29:23 +0000 (UTC) Cc: emacs-devel To: Artur Malabarba Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jul 19 01:29:19 2015 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZGbXi-0000Pm-SC for ged-emacs-devel@m.gmane.org; Sun, 19 Jul 2015 01:29:19 +0200 Original-Received: from localhost ([::1]:50081 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZGbXi-0004Kp-2z for ged-emacs-devel@m.gmane.org; Sat, 18 Jul 2015 19:29:18 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45498) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZGbXU-0004Kg-W6 for emacs-devel@gnu.org; Sat, 18 Jul 2015 19:29:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZGbXR-0002Ub-QV for emacs-devel@gnu.org; Sat, 18 Jul 2015 19:29:04 -0400 Original-Received: from mail-wi0-x22c.google.com ([2a00:1450:400c:c05::22c]:32770) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZGbXR-0002UU-JW for emacs-devel@gnu.org; Sat, 18 Jul 2015 19:29:01 -0400 Original-Received: by widic2 with SMTP id ic2so62660309wid.0 for ; Sat, 18 Jul 2015 16:29:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=yLqG3ET6Rx3n+dhQTpIHwTGuZGEpdXGkstt6kBeprL4=; b=TH2xfV9czfElH3mKFGnsOQY7FiJvKc61zqEiRqHA5UKoO1VnOf/gv95c/wGRi+Xzfz KX3tzuCU2SJ7GhUbPzR4LS5Y1jUOYsEgBVbZQ1iJV9l+BpyyR9pE4IoLdASfDlSJpEEj TNkATXYQY8ujfsC4j83QKs4c662sKyC+diL+QgtKyu6rA/cyNPL4sEYZR2GfmCq8vYMM yRzxQ2wHvR7imKI9HoOPH4Q2lt1X1tcSpLmvzb9fZ6JMWbfX+BgXv0iQ7+7uVU4klygm Xt36h/a+Qt6rYg43RmZu97AAXK4dbd7VqzitBXj0YK44+0jl5EV/6Or8JQYxAYVhNm8o ULsQ== X-Received: by 10.194.6.229 with SMTP id e5mr43970304wja.158.1437262140970; Sat, 18 Jul 2015 16:29:00 -0700 (PDT) Original-Received: from ix ([212.46.170.156]) by smtp.gmail.com with ESMTPSA id js3sm24834875wjc.5.2015.07.18.16.28.59 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 18 Jul 2015 16:29:00 -0700 (PDT) Original-Received: from helmut by ix with local (Exim 4.84) (envelope-from ) id 1ZGbXQ-0002tl-B5; Sun, 19 Jul 2015 01:29:00 +0200 In-Reply-To: (Artur Malabarba's message of "Sun, 19 Jul 2015 00:07:56 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:400c:c05::22c X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:187966 Archived-At: On Sun, Jul 19 2015, Artur Malabarba wrote: >> But if everything >> is in the autoload file there's no way to get the autoload definitions >> without changing global variables. > > I don't understand what you mean by this, could you clarify with an example > scenario? Well, SLIME has a function slime-setup that adds a hook to lisp-mode-hook, which among other things changes lisp-indent-function for that buffer. Before the package stuff everybody had this in .emacs: (require 'slime-autoloads) (slime-setup) Now with the package stuff the (require 'slime-autoloads) line is unnecessary. But additionally somebody claimed that it's idiomatic to call slime-setup automatically in slime-autoloads. I quite like to see the explicit call to slime-setup in my .emacs, but others might not. Helmut