Hi,

I just installed the jde-2.2.5 package successfully with emacs. Works
great. But I am having problems with Xemacs. I followed the instructions
carefully and also installed semantic-1.2.1 and speedbar-0.12. (The
ReleaseNotes said not to use the newer versions.) I am using GNU Emacs
20.5.1 and XEmacs 21.1 (patch 8). I compiled JDE's Lisp files. 

Any help appreciated.  The error message upon startup of xemacs is as
follows:

(initialization/error) An error has occurred while loading ~/.emacs:
Symbol's value as variable is void: speedbar-dynamic-tags-function-list
To ensure normal operation, you should investigate the cause of the error
in your initialization file and remove it.  Use the `-debug-init' option
to XEmacs to view a complete error backtrace.

with -debug-init:

Signaling: (void-variable speedbar-dynamic-tags-function-list)
  add-to-list(speedbar-dynamic-tags-function-list (semantic-fetch-dynamic-bovine . 
semantic-insert-bovine-list))
  byte-code("..." [add-to-list speedbar-dynamic-tags-function-list 
(semantic-fetch-dynamic-bovine
. semantic-insert-bovine-list) provide semantic-sb] 3)
  load-internal("semantic-sb" nil t nil nil nil)
  load("semantic-sb" nil t nil)
  require(semantic-sb)
  byte-code("..." [require semantic semantic-sb semantic-bnf avltree eieio] 2)
  load-internal("jde-parse" nil t nil nil nil)
  load("jde-parse" nil t nil)
  require(jde-parse)
  byte-code("..." [require gud jde-parse makunbound jde-db-debugger] 2)
  load-internal("jde-db" nil t nil nil nil)
  load("jde-db" nil t nil)
  require(jde-db)
  byte-code("..." [jde-xemacsp emacs-major-version jde-xemacs20p current-load-list 
:group :prefix 20 require
easymenu cl font-lock cc-mode cus-edit jde-compile jde-db jde-run jde-make jde-gen 
compile imenu speedbar
browse-url beanshell jde-wiz jde-parse jde-help jde-bug jde-complete jde-javadoc 
jde-stat jde-which-method
jde-java-font-lock nil (byte-code "��!�" [require custom] 2) ((error)) featurep custom 
fboundp
custom-declare-variable defgroup (macro . #<compiled-function ... "...(2)" ... 1>) 
defface (macro
. #<compiled-function ... "...(12)" ... 5>) defcustom (macro . #<compiled-function
... "...(6)" ... 4>) custom-declare-group jde "Java Development Environment" tools 
"jde-" ...] 8)
  load-internal("jde" nil t nil nil nil)
  load("jde" nil t nil)
  require(jde)
  (if defer-loading-jde (progn (autoload ... "jde" "JDE mode." t) (setq 
auto-mode-alist ...)) (require (quote
jde)))
)
  load-internal("~/.emacs" t t t nil nil)
  load("~/.emacs" t t t)
  load-user-init-file("")
  load-init-file()
  command-line()
  normal-top-level()

My .emacs startup file is pretty much a ripoff of the example on the jde
web site:

(setq mail-archive-file-name "mail/myemacsmailcopies")
(setq mail-default-reply-to "[EMAIL PROTECTED]")
(setq default-major-mode 'text-mode)
(add-hook 'test-mode-hook 'turn-on-auto-fill)
(add-hook 'emacs-lisp-mode-hook 'turn-on-font-lock)
(add-hook 'c-mode-hook 'turn-on-font-lock)
(setq-default transient-mark-mode t)
; (setq pop-up-frames t)
; (menu-bar-mode nil)
; (diary)


;; This .emacs file illustrates the minimul setup
;; required to run the JDE.
;; http://sunsite.dk/jde/_emacs_jde

;; Set the debug option to enable a backtrace when a
;; problem occurs.
(setq debug-on-error t)

;; Update the Emacs load-path to include the path to
;; the JDE and its require packages. This code assumes
;; that you have installed the packages in the emacs/site
;; subdirectory of your home directory.
(add-to-list 'load-path (expand-file-name "/usr/lib/emacs/jde-2.2.5/lisp"))
(add-to-list 'load-path (expand-file-name 
"/usr/lib/xemacs/xemacs-packages/lisp/semantic-1.2.1/"))
(add-to-list 'load-path (expand-file-name 
"/usr/lib/xemacs/xemacs-packages/lisp/speedbar-0.12/"))
(add-to-list 'load-path (expand-file-name 
"/usr/lib/xemacs/xemacs-packages/lisp/elib/"))


;; 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"))

-- 
Gary Nielson
[EMAIL PROTECTED]




Reply via email to