"EXT-Syre, John" <[EMAIL PROTECTED]> writes:
> I had tried that too but had the same problem.
>
> Here is what was happening. The new version of emacs that I installed
> already included a version of speedbar which of course is not compatiable
> with the JDE environment. Remember the first one found is used. I needed the
> new one. At first, I used add-to-list but that will only add (actually
> prepends, why didn't they just name it prepend-to-list) the designated path
> to load-path but only if it does not find one of that name. Still, did not
> work because one did exist already so my new was ignored. What you have to
> do is something like the following (thanks to Eric for the clue) at the top
> of your .emacs or _emacs (windoze variation).
>
> (setq load-path (cons (expand-file-name "~/elisp/speedbar-0.11") load-path))
>
> Of course change the path spec to wherever you have the new version of
> speedbar.
There are a few misleading points here, so let me clarify them for other
readers.
The load-path is a set of directories, which tells Emacs where to look
for things. Emacs will search the load-path in order.
If you execute
(add-to-list 'load-path (expand-file-name "~/elisp/speedbar-0.11"))
That directory will be added at the head of your load-path, so it will
be searched before the standard Emacs directories.
The only case in which add-to-list does not add the directory is if that
directory is already in the load-path. That will not be the case here, unless
you have already got it set in your .emacs.
Emacs (at least FSF Emacs) comes with an old version of speedbar in the
lisp directory. If you use add-to-list as shown above, the newer version
will shadow the old, and there won't be a problem.
Again, there's no need to use the setq form above.
By the way, NTEmacs can use either .emacs or _emacs for the init file.
Most people use .emacs, for consistency with other versions.
-Jim