This didn't change anything.  However if I add both of the lines:


'(max-specpdl-size 10000)

(setq max-lisp-eval-depth 5000)

I get a new error:


File mode specification error: (error "Variable binding depth exceeds
max-specpdl-size")



-----Original Message-----
From: Jeff Rancier
To: Peter Staab
Sent: 3/8/2001 6:14 AM
Subject: RE: error "Lisp nesting exceeds max-lisp-eval-depth"

In your .emacs in the custom-set-variables section, add:

 '(max-specpdl-size 10000)

Jeff

-----Original Message-----
From: Peter Staab [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 07, 2001 8:58 PM
To: [EMAIL PROTECTED]
Subject: error "Lisp nesting exceeds max-lisp-eval-depth"


I am running NTemacs 20.7.1 on windows 98 with jde version 2.2.6.2.  I
get the following error on startup:
File mode specification error: (error "Lisp nesting exceeds
max-lisp-eval-depth")

ONLY if I load a java file from a network drive.  If I load a file from
a local drive, I get no errors.  I read on one of the news groups that
this is due to fact that on windows systems, there is no root of the
directory tree which JDE search through and hence the error.

I tried the updating cc-mode from the troubleshooting page on the JDE
homepage, however since it only occurs from network drives.

Does anyone have any idea how to work around this or is it a big
problem? I can't seem to notice what isn't loaded from JDE due to this
error.

I have include my .emacs below:

Thanks, Peter

;;beginning of _emacs

;; no emacs start-up message
;;(setq inhibit-startup-message t)

(setq load-path (cons "c:/emacs/site-lisp/cc-mode-5.27" load-path))

(put 'eval-expression 'disabled nil)
(setq text-mode-hook '(lambda() (auto-fill-mode 1)))

(require 'font-lock)


(pc-selection-mode)
(load "cua-mode")
(CUA-mode t)


;; default frame and color settings
;; invoke   M-x list-colors-display    to choose the colors
;; comment this if you want to see the default settings
(setq default-frame-alist
      '((top . 020) (left . 50)
 (width . 80) (height . 44)  (cursor-color . "red")
 (background-color . "cornsilk1")
 (vertical-scroll-bars . right)
 ;;fonts found on the mailing list, uncomment one at your convenience
 ;;(font . "-*-Courier-normal-r-*-*-13-97-*-*-c-*-*-ansi-")
 ;;(font . "-*-Terminal-normal-r-*-*-8-60-*-*-c-*-*-oem-")
 ;;(font . "-*-Terminal-normal-r-*-*-12-72-*-*-c-80-*-oem-")
 ;;(font . "-*-Terminal-normal-r-*-*-8-60-*-*-c-*-*-oem-")
 (font . "-*-Terminal-normal-r-*-*-19-142-*-*-c-*-*-oem-")
 ;;(font . "-+-Courier-New-normal-r-*-*-11-80-*-*-c-*-*-ansi-")

 )
      )



(setq printer-name "//PRTSRV1/MATH1")  ; network printer


(display-time)                                          ; Display the
time
(setq-default auto-fill-hook 'do-auto-fill)
(put 'eval-expression 'disabled 'nil)

;; Redefine some keys.
(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 [f9] 'font-lock-mode)

;; prevent echoing ^M in the shell (a hard one)
(add-hook 'comint-output-filter-functions 'shell-strip-ctrl-m nil t)

;; fontification font-lock.el much better than the default hilit19.el
;;***************************** (for coloring)
;;automatic Font Lock mode in TeX mode
(add-hook 'tex-mode-hook 'turn-on-font-lock)
;;if Font Lock necessary for other than .tex files, uncomment following
(global-font-lock-mode t)

;; load default lisp file (.el) for improved LaTeX mode
;; all settings are located in tex-site, hence
;;**************************************************************


;; sets up emacs to know that bash will be the default shell
;; Note: you must have the path to bash in PATH variable.


(setq binary-process-input t)
(setq w32-quote-process-args ?\")
(setq shell-file-name "bash")  ;; or sh if you rename your bash
     ;executable to sh.
(setenv "SHELL" shell-file-name)
(setq explicit-shell-file-name shell-file-name)
(setq explicit-sh-args '("-login" "-i"))



(load "~/site-lisp/tex-site")


;; Stuff for the ispell program

(add-to-list 'load-path (expand-file-name "~/site-lisp/ispell4"))


;; use ISPELL on PC (see http://cat.rpi.edu/~tibbetts/ispell_toc.html
;;  for the installation procedure)
;; you don't need to add     c:\ispell4\exe      to your PATH, and
;; you don't need to copy or move any file after unzipping
;; if you define ispell-command and ispell-look-command properly.
;; M-$ for ispell word under cursor,  M-x ispell-buffer for whole buffer

;; see also pull-down menu <Edit>, <Spell>, <Check ...>.

(cond ((file-exists-p
 (expand-file-name "~/site-lisp/ispell4/exe/ispell.exe"))
       (autoload 'ispell-word "ispell4"
         "Check spelling of word at or before point" t)
       (autoload 'ispell-complete-word "ispell4"
         "Complete word at or before point" t)
       (autoload 'ispell-region "ispell4"
         "Check spelling of every word in the region" t)
       (autoload 'ispell-buffer "ispell4"
         "Check spelling of every word in the buffer" t)
       (setq ispell-command
      (expand-file-name "~/site-lisp/ispell4/exe/ispell.exe")
      ispell-look-dictionary
      (expand-file-name "~/site-lisp/ispell4/ispell.words")
      ispell-look-command
      (expand-file-name "~/site-lisp/ispell4/exe/look.exe" )
      ispell-command-options
      (list "-d"
     (expand-file-name "~/site-lisp/ispell4/ispell.dict")))))
;still necessary
(setenv "TEMP" "c:/windows/temp")
(setenv "TMP" "c:/windows/temp")
; helpful
(setq text-mode-hook '(lambda ()
     (local-set-key "\M-\t" 'ispell-complete-word)))
(setq tex-mode-hook '(lambda ()
     (local-set-key "\M-\t" 'ispell-complete-word)))
(setq latex-mode-hook '(lambda ()
     (local-set-key "\M-\t" 'ispell-complete-word)))
; enable tex parser, also very helpful
(setq ispell-enable-tex-parser t)





;; Set's up the load-path variable so EMACS knows where the JDE files
;; are located.  The c:\emacs\packages may be different.

;; NOTE:  backslashes should not be used, they are escape characters
;; for emacs.

(add-to-list 'load-path (expand-file-name "~/site-lisp/jde/lisp"))
(add-to-list 'load-path (expand-file-name "~/site-lisp/semantic"))
(add-to-list 'load-path (expand-file-name "~/site-lisp/speedbar"))
(add-to-list 'load-path (expand-file-name "~/site-lisp/elib"))
(add-to-list 'load-path (expand-file-name "~/site-lisp/eieio"))

(require 'jde)


;
------------------------------------------------------------------------
--

(autoload 'html-helper-mode "html-helper-mode" "Yay HTML" t)

;;To invoke html-helper-mode automatically on .html files, do this:

(setq auto-mode-alist (cons '("\\.html$" . html-helper-mode)
auto-mode-alist))


Reply via email to