From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: "Emacs Lisp Packages" chapter in the Emacs manual Date: Mon, 11 May 2020 11:09:56 -0400 Message-ID: References: <11437E00-8970-4908-A900-0438A248428D@traduction-libre.org> <75254771-9303-4982-AB60-F92AF7AC6454@traduction-libre.org> <11AC1ECE-C120-4CBE-93C7-6FD82AF12299@traduction-libre.org> <18BA1545-091A-454E-B459-DEB96071D048@traduction-libre.org> <4f5da1c3-1311-44ca-80f7-942d9a0537b4@default> <0BBC80E8-7A74-4DB4-8C13-AF2AAFF04B4B@traduction-libre.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="93359"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: Drew Adams , Emacs developers To: Jean-Christophe Helary Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon May 11 17:11:16 2020 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jYA5L-000OAM-8c for ged-emacs-devel@m.gmane-mx.org; Mon, 11 May 2020 17:11:15 +0200 Original-Received: from localhost ([::1]:60198 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jYA5K-0003ol-3a for ged-emacs-devel@m.gmane-mx.org; Mon, 11 May 2020 11:11:14 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37204) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jYA4B-0002Jw-IC for emacs-devel@gnu.org; Mon, 11 May 2020 11:10:03 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:41106) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jYA49-0004HP-4C for emacs-devel@gnu.org; Mon, 11 May 2020 11:10:02 -0400 Original-Received: from pmg2.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id F0EC2810DC; Mon, 11 May 2020 11:09:59 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 41ACE80055; Mon, 11 May 2020 11:09:58 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1589209798; bh=vuIe+Xe51HhwE5qOSs2VFgiJnlNBj/NLs9alLv8xzEk=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=ZxSwDT/eiSnbb+VRcTG3XuTyiVISbNvqPejNiXPFZa8wpC3TLdYvJyNyiNKCcv4Vq d+MF0Hk8RHlYGRkWun9ryFzbiIRNU6Oab0v/SncZrghN9N70+us+oCRFyYxeq5Qyl7 ziBaFhqw77fTx34AdbAy9So+nK8mD6ZfIBE0hKfOlLwWg7ihg/SACbhOMasVWHjiZ6 3erRcUdjAKI8zQ6JdntI88bplpf8vf3Yde1wGvrO0c8jMfF+f6WFk1CRIN6E1/Fawz xLwoEBNC8nFoZ8Rku5zrU1vj7kD7Q6PAD75ttZGaPtsXmebhfvmYymADiiPajQieLr 5gbosY9eG+CBg== Original-Received: from alfajor (unknown [216.154.3.202]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id AA08712028A; Mon, 11 May 2020 11:09:57 -0400 (EDT) In-Reply-To: <0BBC80E8-7A74-4DB4-8C13-AF2AAFF04B4B@traduction-libre.org> (Jean-Christophe Helary's message of "Mon, 11 May 2020 15:57:02 +0900") Received-SPF: pass client-ip=132.204.25.50; envelope-from=monnier@iro.umontreal.ca; helo=mailscanner.iro.umontreal.ca X-detected-operating-system: by eggs.gnu.org: First seen = 2020/05/11 10:58:52 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] X-Spam_score_int: -42 X-Spam_score: -4.3 X-Spam_bar: ---- X-Spam_report: (-4.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:249796 Archived-At: > 1) Since people will search for "install" in the manual and the most > relevant section is Packages we need to add a line and a link to the section > about loading files and having them in the load path. > > I did that already. Good. > 2) Now, it seems that there is no consensus about what to put in the init > file to have that file load automatically when emacs starts, which is what > a user would like to do. [ The first step is of course to make sure the file is found from `load-path`. ] If the file is needed simply because the user decided to split their `.emacs` file into several separate files, then `load` (or `require`) is probably fine. That is the case where the file is a configuration file, i.e. loading it changes Emacs's behavior. If OTOH that other file is a package/library which provides a particular feature (in which case, loading the file *should not* change Emacs's behavior), then usually what should be done is add a few `autoload`s to load the file on-demand. Stefan