unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: "Bingham, Jay" <Jay.Bingham@hp.com>
Subject: RE: How to customize load-path in v21.2.1?
Date: Tue, 29 Oct 2002 12:08:05 -0600	[thread overview]
Message-ID: <72A87F7160C0994D8C5A36E2FDC227F503925D70@txnexc01.americas.cpqcorp.net> (raw)

I don't know what the variable documentation in your version 21.2 says, but I would hope that it says the same thing that mine does in both 21.2 and 20.4, which is:

*List of directories to search for files to load.
Each element is a string (directory name) or nil (try default directory).
Initialized based on EMACSLOADPATH environment variable, if any,
otherwise to default specified by file `epaths.h' when Emacs was built.

I don't see anything in there that I would interpret as an indication that it is not customizable.  What it says is that if you do not have a environment variable EMACSLOADPATH then it will contain what was specified in the file 'epaths.h' when the version of emacs that you are using was built.  If that is a Unix system, then that is likely the system where you are running it.  The value can be very specific to the system (and you probably do not want to remove any of it).  Also implied is that if you set the variable EMACSLOADPATH it will replace what emacs was built with.  Sounds customizable to me.

Of course you may not want to replicate everything that emacs was built with to in order to add a couple of directories to the front or end of the load path.  In which case the method that is shown here or some other method of adding to the list is the preferred method.

-_
J_)
C_)ingham
.    HP - NonStop Austin Software & Services - Software Quality Assurance
.    Austin, TX
. Language is the apparel in which your thoughts parade in public.
. Never clothe them in vulgar and shoddy attire.          -Dr. George W. Crane-

 -----Original Message-----
From: 	Michael Slass [mailto:miknrene@drizzle.com] 
Sent:	Tuesday, October 29, 2002 11:33 AM
To:	help-gnu-emacs@gnu.org
Subject:	Re: How to customize load-path in v21.2.1?

Da Witch <heather710101@yahoo.com> writes:

>The transition from 20.7.2 to 21.2.1 is turning out to be painful...
>
>How do I customize load-path in 21.2.1?  describe-variable suggests
>that it is no longer customizable...
>
>hk
>

I'm not sure why it's not customizeable any more, but here's one way
to do it programmatically.

(mapcar
 (lambda (dir)
   (add-to-list 'load-path dir))
 ;; these directories get added to the front of the load-path
 '("/path/to/dir"
   "/path/to/another/dir"
   ;; add more load-path directories here
   ))



(mapcar
 (lambda (dir)
   (add-to-list 'load-path dir t))
 ;; these directories get added to the end of the load-path
 '("/path/to/yet/another/dir"
   "/path/to/still/another/dir"
   ;; add more load-path directories here
   ))

  


-- 
Mike Slass
_______________________________________________
Help-gnu-emacs mailing list
Help-gnu-emacs@gnu.org
http://mail.gnu.org/mailman/listinfo/help-gnu-emacs

             reply	other threads:[~2002-10-29 18:08 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-10-29 18:08 Bingham, Jay [this message]
  -- strict thread matches above, loose matches on Subject: below --
2002-10-29 20:13 How to customize load-path in v21.2.1? Bingham, Jay
     [not found] <mailman.1035914973.24180.help-gnu-emacs@gnu.org>
2002-10-29 18:21 ` Da Witch
2002-10-29 19:06   ` Stefan Monnier <foo@acm.com>
2002-10-29 21:22     ` Michael Slass
2002-10-29 17:11 Da Witch
2002-10-29 17:32 ` Michael Slass

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=72A87F7160C0994D8C5A36E2FDC227F503925D70@txnexc01.americas.cpqcorp.net \
    --to=jay.bingham@hp.com \
    /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.
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).