From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Bingham, Jay" Newsgroups: gmane.emacs.help Subject: RE: How to customize load-path in v21.2.1? Date: Tue, 29 Oct 2002 12:08:05 -0600 Sender: help-gnu-emacs-admin@gnu.org Message-ID: <72A87F7160C0994D8C5A36E2FDC227F503925D70@txnexc01.americas.cpqcorp.net> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: main.gmane.org 1035915432 27014 80.91.224.249 (29 Oct 2002 18:17:12 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 29 Oct 2002 18:17:12 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 186avM-000718-00 for ; Tue, 29 Oct 2002 19:17:08 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 186ao2-0006II-00; Tue, 29 Oct 2002 13:09:34 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 186amj-0005jy-00 for help-gnu-emacs@gnu.org; Tue, 29 Oct 2002 13:08:13 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 186amd-0005gH-00 for help-gnu-emacs@gnu.org; Tue, 29 Oct 2002 13:08:11 -0500 Original-Received: from zcamail03.zca.compaq.com ([161.114.32.103]) by monty-python.gnu.org with esmtp (Exim 4.10) id 186amc-0005fy-00 for help-gnu-emacs@gnu.org; Tue, 29 Oct 2002 13:08:06 -0500 Original-Received: from cacexg11.americas.cpqcorp.net (cacexg11.americas.cpqcorp.net [16.105.250.94]) by zcamail03.zca.compaq.com (Postfix) with ESMTP id E1C332DC2 for ; Tue, 29 Oct 2002 10:08:05 -0800 (PST) Original-Received: from txnexc01.americas.cpqcorp.net ([16.74.7.244]) by cacexg11.americas.cpqcorp.net with Microsoft SMTPSVC(5.0.2195.2966); Tue, 29 Oct 2002 10:08:05 -0800 X-MimeOLE: Produced By Microsoft Exchange V6.0.6249.0 content-class: urn:content-classes:message X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: How to customize load-path in v21.2.1? Thread-Index: AcJ/cjtebL3qPIh8RQ2VyBkD1IcfZwAAMIGg Original-To: X-OriginalArrivalTime: 29 Oct 2002 18:08:05.0767 (UTC) FILETIME=[2114B970:01C27F76] Errors-To: help-gnu-emacs-admin@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.help:3068 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:3068 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]=20 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 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 )) =20 --=20 Mike Slass _______________________________________________ Help-gnu-emacs mailing list Help-gnu-emacs@gnu.org http://mail.gnu.org/mailman/listinfo/help-gnu-emacs