Hello,

I just installed JDE (Linux 2.2.x). I'm not an emacs expert by any
means, so I don't know why I get this error when I click on the
menubar after loading in Java source:

Signaling: (wrong-type-argument listp #<extent [1, 8) font-lock
text-prop 0x8547404 in buffer Consumer.java>)
  semantic-find-nonterminal-by-overlay()
  semantic-current-nonterminal()
  jde-javadoc-nonterminal-at-line()
  jde-javadoc-enable-menu-p()

.. any ideas? My .emacs file is attached ( I cut and paste from an
archived email in this list to attempt to fix the problem).

Thanks in advance,

Dan Gunter
;; Are we running XEmacs or Emacs?
(defvar running-xemacs (string-match "XEmacs\\|Lucid" emacs-version))

;{{{ Initial Setting of the display
(setq default-frame-alist
'((top . 0) (left . 350)
(width . 80) (height . 40)
(cursor-color . "red")
(cursor-type . box)
(foreground-color . "black")
(background-color . "white")
(vertical-scroll-bars . right)))
;;}}}

;; This .emacs file illustrates the minimul setup
;; required to run the 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/share/emacs/site-lisp/jde-2.2.6/lisp"))
(add-to-list 'load-path (expand-file-name "/usr/share/emacs/site-lisp/semantic"))
(add-to-list 'load-path (expand-file-name "/usr/share/emacs/site-lisp/speedbar"))
(add-to-list 'load-path (expand-file-name "/usr/share/emacs/site-lisp/elib"))
(add-to-list 'load-path (expand-file-name "/usr/share/emacs/site-lisp/eieio"))

;;{{{(pc-selection-mode) 
;; (load "cua-mode")
;; (CUA-mode t) 
;;}}}

;;{{{ Display Time
;; I like to know what time it is. These lines show the clock in
;; the status bar. Comment out first line if you prefer to show
;; time in 12 hour format
(setq display-time-24hr-format t)
(setq display-time-day-and-date t)
(setq debug-on-error t) 
(display-time)
;;}}}

;; forces line numbers to be displayed on mode line as well 
(line-number-mode t)

;; Display column stuff
;; (require 'column) complaining about not able load column
;;(display-column-mode 1)

;; font lock for highlight
(cond ((fboundp 'global-font-lock-mode)

;; Turn on font-lock in all modes that support it
(global-font-lock-mode t)

;; Maximum colors
(setq font-lock-maximum-decoration t) ))

;; set default font
;;(set-default-font "-*-Courier-normal-r-*-*-13-*-*-*-c-*-*-iso8859-1")
;;(set-default-font "-*-Courier-normal-r-*-*-1-*-*-*-c-*-*-iso8859-1")
;;(set-default-font "-adobe-courier-medium-r-normal--*-90-*-*-m-*-iso8859-1")


;; 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 binary-process-input t) 
(setq shell-file-name "tcsh")
;; (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.


;;{{{ Show Absolute Path on the Title Frame
(setq frame-title-format "%f")
;;}}}

;;{{{ Match Parenthesis, vi style
; By an unknown contributor
(global-set-key "%" 'match-paren)
(defun match-paren (arg)
"Go to the matching parenthesis if on parenthesis otherwise insert %."
(interactive "p")
(cond ((looking-at "\\s\(") (forward-list 1) (backward-char 1))
((looking-at "\\s\)") (forward-char 1) (backward-list 1))
(t (self-insert-command (or arg 1) ))))

;; C-c g goto-line
(global-set-key "\C-xg" 'goto-line) 



(custom-set-variables
'(w3-package t)
'(jde-compile-option-command-line-args "-g")
'(browse-url-browser-function (quote browse-url-netscape))
;;'(jde-run-application-class "asntest.Test")
'(toolbar-visible-p nil)
;;'(jde-bug-jdk-directory "c:/jdk1.3/")
;;'(jde-compile-option-classpath (quote ("c:/users/sfcuti/asnLib/Lib")))
'(jde-db-source-directories (quote ("~/asnLib/src/" "~/asnLib/test/")))
;;'(jde-run-option-vm-args (quote ("-Xrunjdwp:transport=dt_shmem,server=y,suspend=n" 
"-Xdebug ")))
;;'(jde-db-debugger (quote ("JDEbug" "" . "Executable")))
'(paren-mode (quote paren) nil (paren))
;;'(jde-run-working-directory "~/asnLib/lib")
'(gnus-package t)
'(jde-bug-vm-includes-jpda-p t)
'(jde-run-classic-mode-vm t))
(custom-set-faces)
;;{{{ Font Lock
(defcustom font-lock-mode-string ""
"The string that will appear in the modeline when font-lock-mode is
on."
:type 'string
:group 'font-lock)
;;}}}

Reply via email to