unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Drew Adams <drew.adams@oracle.com>
To: Jean-Christophe Helary <jean.christophe.helary@traduction-libre.org>
Cc: Stefan Monnier <monnier@iro.umontreal.ca>,
	Emacs developers <emacs-devel@gnu.org>
Subject: RE: "Emacs Lisp Packages" chapter in the Emacs manual
Date: Tue, 12 May 2020 19:05:23 -0700 (PDT)	[thread overview]
Message-ID: <928a354d-e458-4221-b00b-419d52dce2f8@default> (raw)
In-Reply-To: <76D54CCC-2074-4A1B-9E87-18BC311618D1@traduction-libre.org>

> > I don't quite understand this part of your diff:
> >
> > +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.
> >
> > 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."

OK, so my question is for whomever wrote that, I guess.

> 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.

Maybe.  Not for me to say.  But if that's it then I
think your text doesn't really say that, I think.
I don't see anything in your text that suggests a
path that Emacs already knows.

> > 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 didn't see one either.  But I see that the manual
has more or less that same text you cited at least
as far back as Emacs 20.  So my bad.  (I don't think
of that as really "installing", but that's me.)

> > [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.

For Emacs (and GNU, I think), a "path" is the kind of
thing you have as the value of your environment
variable PATH: a list of directories.



  reply	other threads:[~2020-05-13  2:05 UTC|newest]

Thread overview: 37+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-09 15:02 "Emacs Lisp Packages" chapter in the Emacs manual Jean-Christophe Helary
2020-05-09 15:19 ` Stefan Kangas
2020-05-09 16:47   ` Jean-Christophe Helary
2020-05-10  2:19     ` Jean-Christophe Helary
2020-05-10 14:17       ` Stefan Monnier
2020-05-10 15:05         ` Jean-Christophe Helary
2020-05-10 16:49           ` Stefan Monnier
2020-05-10 17:13             ` Jean-Christophe Helary
2020-05-10 19:28               ` Drew Adams
2020-05-11  1:02                 ` Jean-Christophe Helary
2020-05-10 19:35               ` Stefan Monnier
2020-05-11  1:08                 ` Jean-Christophe Helary
2020-05-11  1:51                   ` Drew Adams
2020-05-11  3:26                     ` Stefan Monnier
2020-05-11  4:23                       ` Drew Adams
2020-05-11  4:40                         ` Stefan Monnier
2020-05-11  6:57                           ` Jean-Christophe Helary
2020-05-11 15:09                             ` Stefan Monnier
2020-05-11 15:23                               ` Drew Adams
2020-05-12  0:59                               ` Jean-Christophe Helary
2020-05-12  3:21                                 ` Stefan Monnier
2020-05-12  3:50                                   ` Jean-Christophe Helary
2020-05-12 15:46                                     ` Drew Adams
2020-05-13  1:43                                       ` Jean-Christophe Helary
2020-05-13  2:05                                         ` Drew Adams [this message]
2020-05-13  2:27                                           ` Jean-Christophe Helary
2020-05-13  2:33                                             ` Drew Adams
2020-05-13  2:46                                         ` Stefan Monnier
2020-05-13  3:02                                           ` Jean-Christophe Helary
2020-05-16 10:23                                             ` Eli Zaretskii
2020-05-16 12:39                                               ` Jean-Christophe Helary
2020-05-16 14:38                                                 ` Eli Zaretskii
2020-05-16 15:20                                                   ` Jean-Christophe Helary
2020-05-12 15:46                                 ` Drew Adams
2020-05-11 15:13                             ` Drew Adams
2020-05-12  3:18                               ` Richard Stallman
2020-05-11  3:23                   ` Stefan Monnier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=928a354d-e458-4221-b00b-419d52dce2f8@default \
    --to=drew.adams@oracle.com \
    --cc=emacs-devel@gnu.org \
    --cc=jean.christophe.helary@traduction-libre.org \
    --cc=monnier@iro.umontreal.ca \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).