From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Stephen J. Turnbull" Newsgroups: gmane.emacs.devel Subject: Re: Package initialization Date: Tue, 21 Jul 2015 14:53:32 +0900 Message-ID: <21933.56924.106866.159473@uwakimon.sk.tsukuba.ac.jp> 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 1437458035 23914 80.91.229.3 (21 Jul 2015 05:53:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 21 Jul 2015 05:53:55 +0000 (UTC) Cc: Helmut Eller , Artur Malabarba , emacs-devel To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jul 21 07:53:46 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 1ZHQUr-0008H2-Va for ged-emacs-devel@m.gmane.org; Tue, 21 Jul 2015 07:53:46 +0200 Original-Received: from localhost ([::1]:58065 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZHQUq-0007LX-Vj for ged-emacs-devel@m.gmane.org; Tue, 21 Jul 2015 01:53:45 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36763) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZHQUl-0007HL-RG for emacs-devel@gnu.org; Tue, 21 Jul 2015 01:53:40 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZHQUi-0008C0-IE for emacs-devel@gnu.org; Tue, 21 Jul 2015 01:53:39 -0400 Original-Received: from shako.sk.tsukuba.ac.jp ([130.158.97.161]:48600) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZHQUi-0008BR-7r for emacs-devel@gnu.org; Tue, 21 Jul 2015 01:53:36 -0400 Original-Received: from uwakimon.sk.tsukuba.ac.jp (uwakimon.sk.tsukuba.ac.jp [130.158.99.156]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by shako.sk.tsukuba.ac.jp (Postfix) with ESMTPS id E51D51C38DD; Tue, 21 Jul 2015 14:53:32 +0900 (JST) Original-Received: by uwakimon.sk.tsukuba.ac.jp (Postfix, from userid 1000) id 3CB0111EF83; Tue, 21 Jul 2015 14:53:32 +0900 (JST) In-Reply-To: X-Mailer: VM undefined under 21.5 (beta34) "kale" ffb5abc8dc4e XEmacs Lucid (x86_64-unknown-linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 130.158.97.161 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:188025 Archived-At: Stefan Monnier writes: > >> The important aspect is that it should be possible to install a pac= kage > >> without using it, so the autoloads file should only set things up s= o > >> that they *can* be used, but not so that they're automatically used > >> without being explicitly requested. [...] > > It also seems to me that there is a certain conflict between what yo= u > > say and this from the manual: >=20 > > These autoload definitions are saved to a file named > > =E2=80=98NAME-autoloads.el=E2=80=99 in the content directory. The= y are typically used > > to autoload the principal user commands defined in the package, bu= t > > they can also perform other tasks, such as adding an element to > > =E2=80=98auto-mode-alist=E2=80=99. >=20 > I don't see a conflict there. Opening a file with the particular > extension counts as an "explicit request". For a major mode, usually[1], for a minor mode (as slime-mode is), rarely[2]. IMHO YMMV etc. Footnotes:=20 [1] Unfortunately overloaded extensions are hardly uncommon. [2] Of course, .gz invoking a decompressor is unlikely to bother very many people. Nevertheless, in XEmacs we decided it should not be enabled via autoloads. FWIW, of course.