From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Xah Newsgroups: gmane.emacs.help Subject: Re: add many subdirs to load-path Date: Mon, 14 Jul 2008 18:42:12 -0700 (PDT) Organization: http://groups.google.com Message-ID: References: <87skuc54lr.fsf@DEBLAP1.BeNet> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1216089647 12205 80.91.229.12 (15 Jul 2008 02:40:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 15 Jul 2008 02:40:47 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jul 15 04:41:35 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KIaTm-00013s-Kd for geh-help-gnu-emacs@m.gmane.org; Tue, 15 Jul 2008 04:41:26 +0200 Original-Received: from localhost ([127.0.0.1]:33206 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KIaSu-0000eB-H3 for geh-help-gnu-emacs@m.gmane.org; Mon, 14 Jul 2008 22:40:32 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!m44g2000hsc.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 39 Original-NNTP-Posting-Host: 24.6.97.120 Original-X-Trace: posting.google.com 1216086132 28813 127.0.0.1 (15 Jul 2008 01:42:12 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Tue, 15 Jul 2008 01:42:12 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: m44g2000hsc.googlegroups.com; posting-host=24.6.97.120; posting-account=bRPKjQoAAACxZsR8_VPXCX27T2YcsyMA User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10_4_11; en) AppleWebKit/525.18 (KHTML, like Gecko) Version/3.1.2 Safari/525.22, gzip(gfe), gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:160232 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:55585 Archived-At: On Jul 14, 6:16=C2=A0pm, Joe Bloggs wrote: > Does anyone know a quick way of adding/deleting/testing lots of subdirs i= n load-path? > I am trying to upgrade from emacs 21 to emacs 22. I have a lot of package= s > =C2=A0installed in subdirs of my site-lisp folder, not all of which are c= ompatible with > =C2=A0emacs 22. This means I have to tediously sorting through my load-pa= th which is very long. > Any helpful comments appreciated i looked at my load-path and was suprised it's also long, 60 dirs. However, vast majority came with Emacs install itself (its Carbon Emacs on the mac). I only have maybe added 5 paths in my =E2=80=9C.emacs=E2= =80=9D. not sure there's a optimal way... basically, emacs packages you installed for yourself shouldn't be in site-lisp. So that, when it comes to upgrade emacs, you really need to deal with a few you added in your =E2=80=9C.emacs=E2=80=9D. but maybe you are a sys admin and placed things in a special site-lisp for all users on a server. Still, there must be a file somewhere in which you did the add-to-list on load-path. Just edit that file then. Put each path in a line by itself, then comment out lines you want or don't want, and much trial and error with relaunch. You might also use unix =E2=80=9Cfind=E2=80=9D to see just what lisp files = on in what load path, so that can help decide which you want to keep. That's what i can think of. Best is probably better management of load- path in the first place. Xah =E2=88=91 http://xahlee.org/ =E2=98=84