It's more common and less problematic to add your emacs lisp directies
to load-path (as you did) and then require them, i.e:
(require 'cedet)
When your load-path variable is set properly, the require works.
You're loading with `load' giving it the absolute path. However, this
still doesn't explain why it can't find the file. I suspect it could
be a misspelling given this is a very simple emacs related problem
(not JDEE). To check that you have correct paths, try something like:
(save-excursion
(set-buffer (get-buffer-create "*TMP*"))
(erase-buffer)
(insert (mapconcat '(lambda (arg)
(format "%s: %s"
arg (if (file-exists-p arg) "yeah" "NO")))
load-path
"\n"))
(display-buffer (current-buffer)))
and look for NOs
deva seetharam writes:
>
> hello,
> when i try to run jde on the system specified below, i am getting the
> following error messages:
>
> ====================MESSAGE LOG=================================
> Loading /usr/share/emacs/site-lisp/site-start.d/php-mode-init.el
> (source)...done
> Loading /usr/share/emacs/site-lisp/site-start.d/po-mode-init.el
> (source)...done
> Loading /usr/share/emacs/site-lisp/site-start.d/psgml-init.el (source)...done
> Loading /usr/share/emacs/site-lisp/site-start.d/python-mode-init.el
> (source)...done
> Loading /usr/share/emacs/site-lisp/site-start.d/rpm-spec-mode-init.el
> (source)...done
> Loading /usr/share/emacs/site-lisp/site-start.d/tramp-init.el (source)...done
>
>
> An error has occurred while loading `/home/dseetharam/.emacs':
>
> File error: "Cannot open load file",
> "/home/dseetharam/emacs/site/cedet/common/cedet.el"
>
> To ensure normal operation, you should investigate the cause
> of the error in your initialization file and remove it. Start
> Emacs with the `--debug-init' option to view a complete error
> backtrace
> Wrote /home/dseetharam/.emacs
> load-file: Cannot open load file:
> /home/dseetharam/emacs/site/cedet/common/cedet.el
> Wrote /home/dseetharam/.emacs
> load-file: Cannot open load file: /usr/share/emacs/site/cedet/common/cedet.el
> Wrote /home/dseetharam/.emacs
> Loading /usr/share/emacs/site-lisp/cedet/common/cedet.el (source)...
> Loading cl-macs...done
> Loading byte-opt...done
> Loading /usr/libexec/emacs/21.4/i686-redhat-linux-gnu/fns-21.4.1-x.el
> (source)...done
> Setting up CEDET packages...
> eval-buffer:
> Symbol's function definition is void: custom-autoload
> Loading derived...done
> Loading regexp-opt...done
> Loading mule-util...done
> Loading font-lock...done
> eval-buffer:
> Symbol's function definition is void: custom-autoload
> Loading image...done
> Loading cl-seq...done
> Loading ede-speedbar (source)...done
> eval-buffer:
> Symbol's function definition is void: custom-autoload
> Setting up CEDET packages...done
> Loading /usr/share/emacs/site-lisp/cedet/common/cedet.el (source)...done
> apply: Wrong number of arguments: #[(form val type) "Å#!ƒ1#Æ Ç#!\"#È
> \"É>„##Ê !ƒ #
> ‚/#Ë #Ì# DCÍ#
> #E))‡
> ‡" [type val res temp form cl-const-expr-p cl-make-type-test
> cl-const-expr-val cl-expr-contains (nil 1) ...] 6], 2
> Making completion list...
> Loading view...done
> Loading eieio-opt (source)...done
> call-interactively: Quit
> Making completion list... [2 times]
> ===================End of Message Log =====================================
>
>
> ==================.emacs contents =====================================
>
> host os - redhat linux enterprise linux version 5.3
> emacs version - 21.4.1
> jdee version - 2.3.5.1
> .emacs contents (it is the minimal .emacs file on jde page)
> ;; that you have installed the packages in the emacs/site
> ;; subdirectory of your home directory.
> (add-to-list 'load-path (expand-file-name
> "/usr/share/emacs/site-lisp/jde/lisp"))
> (add-to-list 'load-path (expand-file-name
> "/usr/share/emacs/site-lisp/cedet/common"))
> (add-to-list 'load-path (expand-file-name "/usr/share/emacs/site-lisp/elib"))
>
> ;; Initialize CEDET.
> (load-file (expand-file-name
> "/usr/share/emacs/site-lisp/cedet/common/cedet.el"))
>
>
> ;; If you want Emacs to defer loading the JDE until you open a
> ;; Java file, edit the following line
> (setq defer-loading-jde nil)
> ;; to read:
> ;;
> ;; (setq defer-loading-jde t)
> ;;
>
> (if defer-loading-jde
> (progn
> (autoload 'jde-mode "jde" "JDE mode." t)
> (setq auto-mode-alist
> (append
> '(("\\.java\\'" . jde-mode))
> auto-mode-alist)))
> (require 'jde))
>
>
> ;; Sets the basic indentation for Java source files
> ;; to two spaces.
> (defun my-jde-mode-hook ()
> (setq c-basic-offset 2))
>
> (add-hook 'jde-mode-hook 'my-jde-mode-hook)
>
> ;; Include the following only if you want to run
> ;; bash as your shell.
>
> ;; Setup Emacs to run bash as its primary shell.
> (setq shell-file-name "bash")
> (setq shell-command-switch "-c")
> (setq explicit-shell-file-name shell-file-name)
> (setenv "SHELL" shell-file-name)
> (setq explicit-sh-args '("-login" "-i"))
> (if (boundp 'w32-quote-process-args)
> (setq w32-quote-process-args ?\")) ;; Include only for MS Windows.
>
> =====================end of .emacs===================
>
>
>
>
>
> ------------------------------------------------------------------------------
> Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
> is a gathering of tech-side developers & brand creativity professionals. Meet
> the minds behind Google Creative Lab, Visual Complexity, Processing, &
> iPhoneDevCamp as they present alongside digital heavyweights like Barbarian
> Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com
> _______________________________________________
> jdee-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/jdee-users
--
Paul Landes
[email protected]
------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, &
iPhoneDevCamp as they present alongside digital heavyweights like Barbarian
Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com
_______________________________________________
jdee-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jdee-users