Troy Noble <[EMAIL PROTECTED]> writes:
> On Thu, Aug 03, 2000 at 11:35:28PM -0700, Aaron Brashears wrote:
>
> > Hi there. I know this question is covered in the FAQ, and I've tried
> > everything I can think of to fix the problem. When I start emacs or
> > xemacs I get the error:
> > (1) (initialization/error) An error has occurred while loading ~/.emacs:
> > Symbol's value as variable is void: semantic
............
> > And the contents of my .emacs file:
.......
> > (add-to-list 'load-path
> > (expand-file-name "/usr/share/emacs/site-lisp/semantic-1.2.1"))
> > (add-to-list 'load-path
> > (expand-file-name "/usr/share/emacs/site-lisp/speedbar-0.12"))
> > (add-to-list 'load-path
> > (expand-file-name "/usr/share/emacs/site-lisp/jde-2.2.0/lisp"))
> > (require 'jde)
>
> The quick fix should be to put the newest semantic, speedbar, and
> jde EARLIER in your load-path than the stuff that's already there.
> This is not hard, just slightly different from how you've got it
> now. From my .emacs:
>
> ;; Modify lisp load path, put jde-required stuff first!
> (setq load-path
> (nconc
> '("/usr/share/emacs/site-lisp/jde-latest/lisp"
> "/usr/share/emacs/site-lisp/semantic-latest"
> "/usr/share/emacs/site-lisp/speedbar-latest")
> load-path))
Um... His code already does that.
add-to-list (which is a cleaner function than nconc) puts its argument
at the front of the list; that's the desired behavior.
To the original poster: Is semantic really installed in the directory
/usr/share/emacs/site-lisp/semantic-1.2.1 ?
Could you try
M-x locate-library
semantic
and see what that returns.
Also, the calls to expand-file-name appear to be redundant, since your
filenames are already fully expanded. They shouldn't hurt, but they don't
help either.
--
Jim Davidson
jdavidson @ acm.org