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: Mon, 20 Jul 2015 18:25:20 -0400 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 1437431158 329 80.91.229.3 (20 Jul 2015 22:25:58 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 20 Jul 2015 22:25:58 +0000 (UTC) Cc: Artur Malabarba , emacs-devel To: Helmut Eller Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jul 21 00:25:50 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 1ZHJVN-0000tx-30 for ged-emacs-devel@m.gmane.org; Tue, 21 Jul 2015 00:25:49 +0200 Original-Received: from localhost ([::1]:57341 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZHJVM-0005JA-E5 for ged-emacs-devel@m.gmane.org; Mon, 20 Jul 2015 18:25:48 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56809) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZHJV0-0005J3-N9 for emacs-devel@gnu.org; Mon, 20 Jul 2015 18:25:27 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZHJUw-0001uX-VA for emacs-devel@gnu.org; Mon, 20 Jul 2015 18:25:26 -0400 Original-Received: from smtp-pri-01.vtxnet.net ([212.147.62.135]:50608) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZHJUw-0001uD-Os for emacs-devel@gnu.org; Mon, 20 Jul 2015 18:25:22 -0400 Original-Received: from localhost (unknown [127.0.0.1]) by smtp-pri-01.vtxnet.net (VTX Services SA) with ESMTP id 58647CFD52; Tue, 21 Jul 2015 00:25:22 +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 SGrHGF6ukCJo; Tue, 21 Jul 2015 00:25:21 +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 7252DCFD51; Tue, 21 Jul 2015 00:25:21 +0200 (CEST) Original-Received: by fmsmemgm.homelinux.net (Postfix, from userid 20848) id DACA7AE1CA; Mon, 20 Jul 2015 18:25:20 -0400 (EDT) In-Reply-To: (Helmut Eller's message of "Mon, 20 Jul 2015 18:33:08 +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:188023 Archived-At: >> 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= typically 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. I don't see a conflict there. Opening a file with the particular extension counts as an "explicit request". Stefan