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: Mon, 20 Jul 2015 18:33:08 +0200 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1437410011 2984 80.91.229.3 (20 Jul 2015 16:33:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 20 Jul 2015 16:33:31 +0000 (UTC) Cc: Artur Malabarba , emacs-devel To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jul 20 18:33:29 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 1ZHE0P-0004tr-5p for ged-emacs-devel@m.gmane.org; Mon, 20 Jul 2015 18:33:29 +0200 Original-Received: from localhost ([::1]:56236 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZHE0O-0007Hn-9e for ged-emacs-devel@m.gmane.org; Mon, 20 Jul 2015 12:33:28 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36523) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZHE0C-0007Hh-2p for emacs-devel@gnu.org; Mon, 20 Jul 2015 12:33:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZHE08-0005Ip-3O for emacs-devel@gnu.org; Mon, 20 Jul 2015 12:33:16 -0400 Original-Received: from mail-wi0-x22a.google.com ([2a00:1450:400c:c05::22a]:33728) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZHE07-0005IS-TI for emacs-devel@gnu.org; Mon, 20 Jul 2015 12:33:12 -0400 Original-Received: by wicmv11 with SMTP id mv11so19694900wic.0 for ; Mon, 20 Jul 2015 09:33:10 -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:content-transfer-encoding; bh=7EXf6JvwNAPshefSGxdQHpwyZeU7FZL8A1WOc4TPyxk=; b=TdLMq/38mGKfVxUoWFcGC5iio61opgKMBnTWkx9TTIl2iI4uw7h4NaWioHbvpZribd y96jX8NF5m9hKZ52Y35dNrY/+PBp65mlF6FELCkB2jQBOvhKnx2Q/WeZJlBbxv+WT8Ls 2FZGn765Pk6FL2pObUr3PFm1x+rvTSt0ll46XuMxXKRwiKqbssqV3Cdcx5thsYiLGJm3 YstZmP/YsUpUn40OJ+JdjL/BzuQqwz3LZJZa/S1elgs/RkU52zyfA5PK0vr41jNgIRo6 lgdvcX+HJ+9wNAYj7mOTY7JoJEOHWpl2132apitKyaSKjlSPNboXfuWuJ1QUTxjlsWkD yJkw== X-Received: by 10.194.83.196 with SMTP id s4mr58791950wjy.43.1437409990174; Mon, 20 Jul 2015 09:33:10 -0700 (PDT) Original-Received: from ix (dial-190046.pool.broadband44.net. [212.46.190.46]) by smtp.gmail.com with ESMTPSA id d17sm32745632wjs.32.2015.07.20.09.33.08 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 20 Jul 2015 09:33:09 -0700 (PDT) Original-Received: from helmut by ix with local (Exim 4.84) (envelope-from ) id 1ZHE04-0001Q0-QQ; Mon, 20 Jul 2015 18:33:08 +0200 In-Reply-To: (Stefan Monnier's message of "Sun, 19 Jul 2015 20:11:47 -0400") 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::22a 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:188014 Archived-At: On Sun, Jul 19 2015, Stefan Monnier wrote: > 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. SLIME is already a minor mode; I think if we can make it work if users call (add-hook 'lisp-mode-hook 'slime-mode) in their .emacs. > 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. I think that's quite an important guideline that should be stated a bit more prominently in manual. It also seems to me that there is a certain conflict between what you say and this from the manual: These autoload definitions are saved to a file named =E2=80=98NAME-autoloads.el=E2=80=99 in the content directory. They are t= ypically used to autoload the principal user commands defined in the package, but they can also perform other tasks, such as adding an element to =E2=80=98auto-mode-alist=E2=80=99. Helmut