unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* add many subdirs to load-path
@ 2008-07-15  1:16 Joe Bloggs
  2008-07-15  1:42 ` Xah
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Joe Bloggs @ 2008-07-15  1:16 UTC (permalink / raw)
  To: help-gnu-emacs

Does anyone know a quick way of adding/deleting/testing lots of subdirs in load-path?
I am trying to upgrade from emacs 21 to emacs 22. I have a lot of packages
 installed in subdirs of my site-lisp folder, not all of which are compatible with
 emacs 22. This means I have to tediously sorting through my load-path which is very long.
Any helpful comments appreciated



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: add many subdirs to load-path
  2008-07-15  1:16 add many subdirs to load-path Joe Bloggs
@ 2008-07-15  1:42 ` Xah
  2008-07-15  3:42 ` Kevin Rodgers
       [not found] ` <mailman.14741.1216093508.18990.help-gnu-emacs@gnu.org>
  2 siblings, 0 replies; 6+ messages in thread
From: Xah @ 2008-07-15  1:42 UTC (permalink / raw)
  To: help-gnu-emacs

On Jul 14, 6:16 pm, Joe Bloggs <w...@cares.invalid> wrote:
> Does anyone know a quick way of adding/deleting/testing lots of subdirs in load-path?
> I am trying to upgrade from emacs 21 to emacs 22. I have a lot of packages
>  installed in subdirs of my site-lisp folder, not all of which are compatible with
>  emacs 22. This means I have to tediously sorting through my load-path 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 “.emacs”.

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 “.emacs”.

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 “find” 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
∑ http://xahlee.org/^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: add many subdirs to load-path
  2008-07-15  1:16 add many subdirs to load-path Joe Bloggs
  2008-07-15  1:42 ` Xah
@ 2008-07-15  3:42 ` Kevin Rodgers
       [not found] ` <mailman.14741.1216093508.18990.help-gnu-emacs@gnu.org>
  2 siblings, 0 replies; 6+ messages in thread
From: Kevin Rodgers @ 2008-07-15  3:42 UTC (permalink / raw)
  To: help-gnu-emacs

Joe Bloggs wrote:
> Does anyone know a quick way of adding/deleting/testing lots of subdirs in load-path?
> I am trying to upgrade from emacs 21 to emacs 22. I have a lot of packages
>  installed in subdirs of my site-lisp folder, not all of which are compatible with
>  emacs 22. This means I have to tediously sorting through my load-path which is very long.

If you create a subdirs.el file in the site-lisp directory with the
following contents, all the subdirectories will automatically be added
to load-path:

(normal-top-level-add-subdirs-to-load-path)


-- 
Kevin Rodgers
Denver, Colorado, USA





^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: add many subdirs to load-path
       [not found] ` <mailman.14741.1216093508.18990.help-gnu-emacs@gnu.org>
@ 2008-07-15  8:22   ` Jason Rumney
  2008-07-15 10:47   ` Johan Bockgård
  2008-07-16 13:34   ` Joe Bloggs
  2 siblings, 0 replies; 6+ messages in thread
From: Jason Rumney @ 2008-07-15  8:22 UTC (permalink / raw)
  To: help-gnu-emacs

On Jul 15, 4:42 am, Kevin Rodgers <kevin.d.rodg...@gmail.com> wrote:

> If you create a subdirs.el file in the site-lisp directory with the
> following contents, all the subdirectories will automatically be added
> to load-path:
>
> (normal-top-level-add-subdirs-to-load-path)

You can also use normal-top-level-add-to-load-path there to add
individual directories to load-path, which sounds more like what the
OP wanted.


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: add many subdirs to load-path
       [not found] ` <mailman.14741.1216093508.18990.help-gnu-emacs@gnu.org>
  2008-07-15  8:22   ` Jason Rumney
@ 2008-07-15 10:47   ` Johan Bockgård
  2008-07-16 13:34   ` Joe Bloggs
  2 siblings, 0 replies; 6+ messages in thread
From: Johan Bockgård @ 2008-07-15 10:47 UTC (permalink / raw)
  To: help-gnu-emacs

Kevin Rodgers <kevin.d.rodgers@gmail.com> writes:

> Joe Bloggs wrote:
>> Does anyone know a quick way of adding/deleting/testing lots of
>> subdirs in load-path? I am trying to upgrade from emacs 21 to emacs
>> 22. I have a lot of packages installed in subdirs of my site-lisp
>> folder, not all of which are compatible with emacs 22. This means I
>> have to tediously sorting through my load-path which is very long.
>
> If you create a subdirs.el file in the site-lisp directory with the
> following contents, all the subdirectories will automatically be added
> to load-path:
>
> (normal-top-level-add-subdirs-to-load-path)

And it will not search below a directory that contains a `.nosearch'
file.

Also, there are different site-lisp directories, like

   emacs/site-lisp/       which is used by all versions

and

  emacs/22.1/site-lisp/   which is used by one particular version

-- 
Johan Bockgård


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: add many subdirs to load-path
       [not found] ` <mailman.14741.1216093508.18990.help-gnu-emacs@gnu.org>
  2008-07-15  8:22   ` Jason Rumney
  2008-07-15 10:47   ` Johan Bockgård
@ 2008-07-16 13:34   ` Joe Bloggs
  2 siblings, 0 replies; 6+ messages in thread
From: Joe Bloggs @ 2008-07-16 13:34 UTC (permalink / raw)
  To: help-gnu-emacs

Kevin Rodgers <kevin.d.rodgers@gmail.com> writes:

> Joe Bloggs wrote:
>> Does anyone know a quick way of adding/deleting/testing lots of subdirs in load-path?
>> I am trying to upgrade from emacs 21 to emacs 22. I have a lot of packages
>>  installed in subdirs of my site-lisp folder, not all of which are compatible with
>>  emacs 22. This means I have to tediously sorting through my load-path which is very long.
>
> If you create a subdirs.el file in the site-lisp directory with the
> following contents, all the subdirectories will automatically be added
> to load-path:
>
> (normal-top-level-add-subdirs-to-load-path)
>
>
> -- 
> Kevin Rodgers
> Denver, Colorado, USA

I already have a subdirs.el file with that line, but it doesn't work.


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2008-07-16 13:34 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-15  1:16 add many subdirs to load-path Joe Bloggs
2008-07-15  1:42 ` Xah
2008-07-15  3:42 ` Kevin Rodgers
     [not found] ` <mailman.14741.1216093508.18990.help-gnu-emacs@gnu.org>
2008-07-15  8:22   ` Jason Rumney
2008-07-15 10:47   ` Johan Bockgård
2008-07-16 13:34   ` Joe Bloggs

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