Hi all - I just download 2.2.6 of the JDE and exploded it. When I open a
Java file, I get an error that says:
  File mode specification error: (wrong-type-argument vectorp nil)

I'm not sure what I've done. I had this working earlier. I've attached
my .emacs file.

Any thoughts?

Thanks,
  Marc
;;;===================================================
;;; Set the default font and frame size for all frames
;;;===================================================
(defconst my_background_color "white")
(defconst my_foreground_color "black")
(defconst my_cursor_color "red")
(defconst my_font "-*-Lucida Console-normal-r-*-*-12-90-96-96-c-*-iso8859-1") 
;; size 9 (defconst my_italic_font nil)
(defconst my_bold_font  nil)
 
;;; initial window position settings
;;; with the top left corner as 0 0
;;; and the bottom right as -1 -1
(defconst my_initial_top    0)
(defconst my_initial_left   0)
(defconst my_initial_width  95)
(defconst my_initial_height 52)
 
;;; default window position settings, for frames created after emacs 
;;; is running
(defconst my_default_top    25)
(defconst my_default_left  -75)
(defconst my_default_width  120)
(defconst my_default_height 65)
 
 
(set-frame-font my_font)
 
;;;====================================================================== 
;;; now use the values above to set the frame sizes and fonts for the 
;;; initial and subsequent frames
;;;====================================================================== 
;; set the default font (frame-font)
(set-frame-font my_font)
 
(if (not window-system)
    nil
  ;;; Set the font and frame size for the initial frame.
  (setq initial-frame-alist
  `((top . ,my_initial_top)
    (left . ,my_initial_left)
    (width . ,my_initial_width)
    (height . ,my_initial_height)
    (menu-bar-lines . 1)
    (cursor-type . box)
    (cursor-color . ,my_cursor_color)
    (font . ,my_font)
    (foreground-color . ,my_foreground_color)
    (background-color . ,my_background_color)))
 
  ;;; Set the default font and frame size
  (setq default-frame-alist
      `((top . ,my_default_top)
    (left . ,my_default_left)
    (width . ,my_default_width)
    (height . ,my_default_height)
    (menu-bar-lines . 1)
    (cursor-type . box)
    (cursor-color . ,my_cursor_color)
    (font . ,my_font)
    (foreground-color . ,my_foreground_color)
    (background-color . ,my_background_color)))
)

;;; Development settings below  
(setq load-path
      (nconc
       '(
         "c:/tools/emacs-20.7/site-lisp/jde-latest/lisp"
         "c:/tools/emacs-20.7/site-lisp/eieio-latest"
         "c:/tools/emacs-20.7/site-lisp/elib-latest"
         "c:/tools/emacs-20.7/site-lisp/semantic-latest"
         "c:/tools/emacs-20.7/site-lisp/speedbar-latest"
         )
       load-path))


(require 'cl)
;(defconst tipath-:load-path-function 'my-tipath-setup)

;(defun my-tipath-setup ()
;       "Set up paths"
;       (dolist (path
;                tipath-:load-path-root
;                (list "c:/tools/emacs-20.7/site-lisp" )
;                (concat tipath-:load-path-root "/mime/semi/link/")
;                )
;         (tipath-add-directories-below-root-dir "c:/tools/emacs-20.7/site-lisp")
;         )
;       )

; (require 'tinypath)

;; Tell Emacs to load the entire JDE package at startup (only once).
(require 'jde)
(require 'speedbar)
(require 'semantic)

; ;; Sets the basic indentation for Java source files
; ;; to two spaces.

(put 'downcase-region 'disabled nil)

(put 'upcase-region 'disabled nil)

;(desktop-load-default)
;(desktop-read)

;; To use resize-minibuffer-mode, uncomment this and include in your .emacs:
;;(resize-minibuffer-mode)

;; Additions to get different types of completion tied to Meta-ENT
(define-key global-map (read-kbd-macro "M-RET")  'hippie-expand)

(define-key global-map (read-kbd-macro "C-g") 'goto-line)


(put 'narrow-to-region 'disabled nil)

(put 'narrow-to-page 'disabled nil)

;; (load "c:/tools/emacs-20.7/site-lisp/gnuserv/gnuserv.el")

; (server-start)

;(autoload 'csharp-mode "cc-mode")

; (c-add-style "myC#Style"
;   '("C#"
;   (c-basic-offset . 2)
;   (c-comment-only-line-offset . (0 . 0))
;   (c-offsets-alist . (
;     (c                     . c-lineup-C-comments)
;     (inclass             . 0)
;     (namespace-open      . +)
;     (namespace-close     . +)
;     (innamespace         . 0)
;     (class-open                  . +)
;     (class-close         . 0)
;     (inclass             . 0)
;     (defun-open                  . +)
;     (defun-block-intro     . 0)
;     (inline-open         . ++)
;     (statement-block-intro . 0)
;     (brace-list-intro      . +)
;     ))
;   ))

; (defun my-csharp-mode-hook ()
;   (cond (window-system
;        (turn-on-font-lock)
;        (c-set-style "myC#Style")
;        )))

; (add-hook 'csharp-mode-hook 'my-csharp-mode-hook)
; (setq auto-mode-alist
;       (append '(
;               ("\\.cs$" . csharp-mode)
;               ) auto-mode-alist ))

; (setq compilation-error-regexp-alist
;       (append '(
; ;C# Compiler
; ;t.cs(6,18): error SC1006: Name of constructor must match name of class
; ;
; ("\\(\\([a-zA-Z]:\\)?[^:(\t\n]+\\)(\\([0-9]+\\)[,]\\([0-9]+\\)): 
\\(error\\|warning\\) CS[0-9]+:" 1 3 4)
;       )
;       compilation-error-regexp-alist))



; (custom-set-variables
;  '(tinypath-:verbose 10))
; (custom-set-faces)


Reply via email to