From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Jean-Christophe Helary Newsgroups: gmane.emacs.devel Subject: Re: "Emacs Lisp Packages" chapter in the Emacs manual Date: Wed, 13 May 2020 10:43:16 +0900 Message-ID: <76D54CCC-2074-4A1B-9E87-18BC311618D1@traduction-libre.org> 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> <920E43F8-B65B-4802-97D3-F64BEBF5E8B8@traduction-libre.org> <0DE280CA-A785-4623-98B6-7C2C5EA99A86@traduction-libre.org> <12cea798-27b1-4ae1-8b87-ffaff5c2d130@default> Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.80.23.2.2\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="84185"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Stefan Monnier , Emacs developers To: Drew Adams Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed May 13 03:47:30 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 1jYgUb-000LpC-Sa for ged-emacs-devel@m.gmane-mx.org; Wed, 13 May 2020 03:47:29 +0200 Original-Received: from localhost ([::1]:36764 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jYgUa-0002Lg-Ts for ged-emacs-devel@m.gmane-mx.org; Tue, 12 May 2020 21:47:28 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43916) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jYgU9-0001wl-FO for emacs-devel@gnu.org; Tue, 12 May 2020 21:47:01 -0400 Original-Received: from relay7-d.mail.gandi.net ([217.70.183.200]:51795) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jYgU7-0001fw-JV for emacs-devel@gnu.org; Tue, 12 May 2020 21:47:00 -0400 X-Originating-IP: 128.53.210.217 Original-Received: from [10.0.1.13] (pl6361.ag0304.nttpc.ne.jp [128.53.210.217]) (Authenticated sender: jean.christophe.helary@traduction-libre.org) by relay7-d.mail.gandi.net (Postfix) with ESMTPSA id C9CC420002; Wed, 13 May 2020 01:46:52 +0000 (UTC) X-Priority: 3 In-Reply-To: <12cea798-27b1-4ae1-8b87-ffaff5c2d130@default> X-Mailer: Apple Mail (2.3608.80.23.2.2) Received-SPF: pass client-ip=217.70.183.200; envelope-from=jean.christophe.helary@traduction-libre.org; helo=relay7-d.mail.gandi.net X-detected-operating-system: by eggs.gnu.org: First seen = 2020/05/12 21:46:54 X-ACL-Warn: Detected OS = Linux 3.11 and newer X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, 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:250062 Archived-At: > On May 13, 2020, at 0:46, Drew Adams wrote: >=20 > I don't quite understand this part of your diff: >=20 > +The traditional way to install Emacs Lisp code is to either install = it > +in the Emacs Lisp @dfn{load path} or to add the path to the code to > +the load path list. >=20 > What does it mean to "install" code in `load-path'? > And how does that differ from adding the directory or > file of the code to `load-path' (IOW, why the "or")? I'm just using the wording that's found in other parts of the manual. = Not trying to be fancy here :) Emacs manual: "If an Emacs Lisp file is installed in the Emacs Lisp load path (defined = below), you can load it by typing M-x load-library, instead of using M-x = load-file." My understanding is that "install in the load path" means put the file = in a path that Emacs already knows vs "add the path to load path" means = make Emacs know about that new path. > Keep in mind that loading a library/file need not be > something done systematically (e.g. by `require' in > a file that gets loaded), or something done only by > autoloading. `load-library' is a command, to let > you load a library interactively. Thank you. Reading the manual did not help much here. But that's ok for = now. I'm not interested in knowing all the subtelties of loading files. > Is there some clear definition of "installing" a > package in the doc? Probably, but I haven't checked. Not that I can tell. > (I don't think of "installing" as applying to a > library that you just load, but maybe I should. The Elisp Introduction seems to use "install" more as "be able to use = the library" hence "load". > Is "installing" a library, without using the package > system, defined anywhere in the doc?) Not that I can tell. That's the reason why I'm adding this line to the = manual. To make that explicit. > [BTW, for GNU Emacs, "path" means something different. > What you mean here is presumably the absolute file > name (of the directory or the file itself).] I'm pretty sure I don't know the difference. Jean-Christophe Helary ----------------------------------------------- http://mac4translators.blogspot.com @brandelune