Most times when I start to edit a java file I get a 
backtrace buffer:

Debugger entered--Lisp error: (error "Cannot return from the debugger in 
an error")
  (jde-auto-parse-delay)
  (let ((rem ...)) (cond (... ... ...) (... ... ...)))
  (if (timerp jde-auto-parse-buffer-timer) (let (...) (cond ... ...)))
* (progn (if (timerp jde-auto-parse-buffer-timer) (let ... ...)) (or 
(timerp jde-auto-parse-buffer-timer) (setq jde-auto-parse-buffer-timer 
...)))
  (if (jde-parse-should-auto-parse-buffer-p) (progn (if ... ...) (or ... 
...)))
  (when (jde-parse-should-auto-parse-buffer-p) (if (timerp 
jde-auto-parse-buffer-timer) (let ... ...)) (or (timerp 
jde-auto-parse-buffer-timer) (setq jde-auto-parse-buffer-timer ...)))
  (progn (setq jde-parse-buffer-needs-reparse-p t) (when 
(jde-parse-should-auto-parse-buffer-p) (if ... ...) (or ... ...)))
  (if (eq major-mode (quote jde-mode)) (progn (setq 
jde-parse-buffer-needs-reparse-p t) (when ... ... ...)))
  (when (eq major-mode (quote jde-mode)) (setq 
jde-parse-buffer-needs-reparse-p t) (when 
(jde-parse-should-auto-parse-buffer-p) (if ... ...) (or ... ...)))
  jde-parse-buffer-changed-hook(507 508 0)
  run-hook-with-args(jde-parse-buffer-changed-hook 507 508 0)
  semantic-change-function(507 508 0)

---------------------------------------------------------

After I kill this buffer, it goes away for a while and pops up from time
to time. It doesn't do anything except annoy me, so I was wondering if
anybody else has come across this? I tried setting my jde auto parse max
buffer size to different values but I don't think I'm on the right track.

Thanks a lot in advance,
Marc


my setup:
redhat linux 7.2
emacs 21.1.1
jde 2.2.9 beta 7
speedbar 0.14beta2-1
semantic 1.4beta11-1
eieio-0.17-beta3


--------------------------------------------
messages buffer:
(/usr/local/bin/emacs)
Loading disp-table...done
Loading tooltip...done
Loading sams-lib...
Loading advice...done
Loading sams-lib... Done
Loading /usr/local/libexec/emacs/21.1/i686-pc-linux-gnu/fns-21.1.1.el 
(source)...done
Loading /home/mjeanson/emacslibs/xf.el (source)...done
Loading regexp-opt...done
Loading image...done
Loading cl-macs...done
Bootstrapping objects...done
Loading easy-mmode...done
Loading mule-util...done
jde-java-font-lock: building names cache...empty
ECB uses semantic 1.4beta11 and eieio 0.17beta3
Loading edmacro...done
Loading yic-buffer...done
Loading delsel...done
Loading recentf...done
Loading /home/mjeanson/.recentf...
Loading cl-seq...done
Loading /home/mjeanson/.recentf...done
Loading semantic-el...done
Evidence.java has auto save data; consider M-x recover-file
Setting JDE variables to startup values...
let: 
Loading debug...done
Entering debugger...
 [2 times]
-------------------------------------------

.emacs file:

;; 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.
(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/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"))
(add-to-list 'load-path (expand-file-name 
"/usr/share/emacs/site-lisp/ecb"))

;; set default frame settings
(setq default-frame-alist
      '((top . 47) (left . 250)
        (width . 185) (height . 83)
        (cursor-color . "Red")
        (foreground-color . "black")
        (background-color . "ivory")
        (font . 
"-B&H-LucidaTypewriter-Medium-R-Normal-Sans-10-100-75-75-M-60-ISO8859-1")))

(set-face-background 'modeline "SlateGrey")
(set-face-foreground 'modeline "ivory")

(add-hook 'speedbar-load-hook
 (lambda () (add-to-list 'speedbar-frame-parameters
                         '(background-color . "ivory"))))

;; Set up the keyboard so the delete key on both the regular keyboard
;; and the keypad delete the character under the cursor and to the right
;; under X, instead of the default, backspace behavior.
(global-set-key [delete] 'delete-char)
(global-set-key [kp-delete] 'delete-char)


;;; Sets the size and position of the emacs window
;;; (should be done after setting the font)
;;; emacs on the left, with
;;; room for a button bar at the top, and some minimized icons at the 
bottom)
;;(set-frame-height (selected-frame) 83)                ;number of lines 
high
;;(set-frame-width (selected-frame) 185)                 ;number of 
characters wide
;;(set-frame-position (selected-frame) 252 47)            ;pixels from 
upper left, H V

;; setup emacs directory to load additional packages
(setq load-path (cons "/home/mjeanson/emacslibs" load-path))

;; load sams library
(require 'sams-lib)
;; load backup package to allow all backups to single directory
(require 'backup-dir)
(setq bkup-backup-directory-info '((t "/home/mjeanson/emacsbackups" 
ok-create full-path)))

;; get the fonts from the X server
(load-file "/home/mjeanson/emacslibs/xf.el")
(xf-load-fonts)

;; meta and arrows match braces
(global-set-key [(meta left)] 'backward-sexp)
(global-set-key [(meta right)] 'forward-sexp)

;; make HOME and END work like God intended
(global-set-key [home] 'beginning-of-line)
(global-set-key [end] 'end-of-line)
(global-set-key [C-home] 'beginning-of-buffer)
(global-set-key [C-end] 'end-of-buffer)
(global-set-key "\C-a" 'beginning-of-line)
(global-set-key "\C-e" 'end-of-line)

;; M-g goto line number
(global-set-key [(meta g)] 'goto-line)

;; region to be highlighted when a mark is active
(transient-mark-mode t)

(custom-set-variables
  ;; custom-set-variables was added by Custom -- don't edit or cut/paste 
it!
  ;; Your init file should contain only one such instance.
 '(backup-directory-alist (quote (("\".\"" . 
"/home/mjeanson/emacsbackups"))))
 '(browse-url-netscape-program "galeon")
 '(bsh-eval-timeout 100)
 '(bsh-startup-timeout 50)
 '(buffer-offer-save nil)
 '(case-fold-search t)
 '(comment-column 60 t)
 '(current-language-environment "Latin-1")
 '(debug-on-error t)
 '(default-input-method "latin-1-prefix")
 '(frame-background-mode nil)
 '(global-font-lock-mode t nil (font-lock))
 '(global-hl-line-mode t nil (hl-line))
 '(jde-auto-parse-enable t)
 '(jde-auto-parse-max-buffer-size 0)
 '(jde-compiler (quote ("jikes" "/usr/bin/jikes")))
 '(jde-javadoc-author-tag-template "\"* @author user-full-name\"")
 '(jde-run-java-vm "java")
 '(make-backup-files nil)
 '(mouse-wheel-mode t nil (mwheel))
 '(scroll-bar-mode (quote right))
 '(speedbar-frame-parameters (quote ((background-color . "ivory") (top . 
47) (top . 147) (left . 0) (top . 0) (minibuffer) (width . 34) 
(border-width . 0) (menu-bar-lines . 0) (tool-bar-lines . 0) (unsplittable 
. t))))
 '(speedbar-supported-extension-expressions (quote 
(".[ch]\\(\\+\\+\\|pp\\|c\\|h\\|xx\\)?" ".tex\\(i\\(nfo\\)?\\)?" ".el" 
".emacs" ".l" ".lsp" ".p" ".java" ".f\\(90\\|77\\|or\\)?" ".ada" ".pl" 
".tcl" ".m" ".scm" ".pm" ".py" ".s?html" "Makefile\\(\\.in\\)?" ".lib" 
".sql")))
 '(text-mode-hook (quote (turn-on-auto-fill text-mode-hook-identify))))
(custom-set-faces
  ;; custom-set-faces was added by Custom -- don't edit or cut/paste it!
  ;; Your init file should contain only one such instance.
 '(fringe ((((class color) (background light)) (:background "ivory")))))

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


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

;; Ensure that the JDE is loaded at Emacs startup. 
(require 'jde)

;; Load the ECB (emacs code browser)
(require 'ecb)

;; something needed by JDE to work
(setq recursive-load-depth-limit nil)

;; use spaces instead of tabs
(setq-default indent-tabs-mode nil)

;; set tab size to 2 instead of 8
(setq-default tab-width 2)

;; parenthesis lib
(require 'paren) 

;; lib to travel through buffers without naming files
(load-library "yic-buffer")

;; removes extra buffer that is created when tab completing buffers
(require 'iswitchb)
(iswitchb-default-keybindings)

;; save my desktop when closing
;;(load "desktop")
;;(desktop-load-default)
;;(desktop-read)

;; Make F1 invoke help
(global-set-key [f1] 'help-command)
;; Make F2 move to other window like in split mode
(global-set-key [f2] 'other-window)
;; Make F3 move backwards to other window
(global-set-key [f3] 'sams-other-window-backwards)
;; Make F4 be `find-file'
;; Note: it does not currently work to say
;;   (global-set-key 'f4 "\C-x\C-f")
(global-set-key [f4] 'find-file)
;;set F5 to save buffer
(global-set-key [f5] 'save-buffer)
;;set F6 to compile command
(global-set-key [f6] 'compile)
;;set F7 to jump to next error
(global-set-key [f7] 'next-error)

;; load the redo package and bind undo and redo to F5 and shift F5
(require 'redo)
(global-set-key [(f12)] 'undo)
(global-set-key [(shift f12)] 'redo)

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

;; start emacs with speedbar open
(require 'speedbar)
(speedbar 1)
(set-frame-height (selected-frame) 83)

;; allow highlighting of matching pairs of parentheses
(show-paren-mode 1)

;;enable my mouse wheel
(mouse-wheel-mode 1)

;; make the compilation windows scroll when it gets filled up
(setq compilation-scroll-output t)

;; use % to match parenthesis
(global-set-key "%" 'match-paren)
(defun match-paren (arg)
  "Go to the matching paren if on a paren; 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)))))

;; scroll only 1 line when moving past the bottom of the screen
(setq scroll-step 1)

;; replace highlighted text with what I type
(delete-selection-mode t)

;; make a function to mark the current line
(defun my-mark-line ()
    (interactive)
    (beginning-of-line)
    (set-mark-command nil)
    (end-of-line))
(global-set-key (kbd "C-c l") 'my-mark-line)

;; make Ctrl-. repeat last command, like vi's . command
(global-set-key (kbd "C-.") 'repeat)

;; load the recent open file list
(recentf-mode 1)

;; startup abbrev mode and read my abbrevs file
(setq default-abbrev-mode t)
(quietly-read-abbrev-file)


Reply via email to