From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Package initialization Date: Sun, 19 Jul 2015 20:11:47 -0400 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1437351128 7222 80.91.229.3 (20 Jul 2015 00:12:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 20 Jul 2015 00:12:08 +0000 (UTC) Cc: Artur Malabarba , emacs-devel To: Helmut Eller Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jul 20 02:11:59 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 1ZGygY-00006X-Uj for ged-emacs-devel@m.gmane.org; Mon, 20 Jul 2015 02:11:59 +0200 Original-Received: from localhost ([::1]:53210 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZGygY-0003Hb-0r for ged-emacs-devel@m.gmane.org; Sun, 19 Jul 2015 20:11:58 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52842) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZGygV-0003HW-2D for emacs-devel@gnu.org; Sun, 19 Jul 2015 20:11:55 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZGygQ-0001if-39 for emacs-devel@gnu.org; Sun, 19 Jul 2015 20:11:55 -0400 Original-Received: from smtp-pri-01.vtxnet.net ([212.147.62.135]:59159) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZGygP-0001iF-Sk for emacs-devel@gnu.org; Sun, 19 Jul 2015 20:11:50 -0400 Original-Received: from localhost (unknown [127.0.0.1]) by smtp-pri-01.vtxnet.net (VTX Services SA) with ESMTP id 63FA4CFD46; Mon, 20 Jul 2015 02:11:48 +0200 (CEST) Original-Received: from smtp-pri-01.vtxnet.net ([127.0.0.1]) by localhost (smtp-pri-01.vtxnet.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id AsRBCMOkmEM9; Mon, 20 Jul 2015 02:11:47 +0200 (CEST) Original-Received: from fmsmemgm.homelinux.net (dyn.83-228-180-068.dsl.vtx.ch [83.228.180.68]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp-pri-01.vtxnet.net (VTX Services SA) with ESMTP id 89D26CFD3C; Mon, 20 Jul 2015 02:11:47 +0200 (CEST) Original-Received: by fmsmemgm.homelinux.net (Postfix, from userid 20848) id 4CF06AE043; Sun, 19 Jul 2015 20:11:47 -0400 (EDT) In-Reply-To: (Helmut Eller's message of "Sun, 19 Jul 2015 01:29:00 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 212.147.62.135 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:188000 Archived-At: > 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. Since it's a configuration choice, it should not be imposed by the autoloads file. Instead, the way this is normally handled is by making a slime-minor-mode, which when enabled does something like (slime-setup), and when disabled, undoes it. The important aspect is that it should be possible to install a package without using it, so the autoloads file should only set things up so that they *can* be used, but not so that they're automatically used without being explicitly requested. Stefan