>
> Hi John,
>
> I've never used JSP and so don't know much about it. However, I downloaded a sample
> JSP page from the JDEE website and loaded it into JDEE 2.3.3 with cedet
> without any problems.
>
> Perhaps there is something particular about your pages that is giving the new Java
> parser or lexer in cedet problems. If you can send me a sample of a page that
> reproduces the problem, I'll investigate further.
>
Actually I probably can't because the pages are from work. However,
I'll try to whip up a test case.
> Just out of curiousity, why do you want to edit jsp pages in jde-mode?
>
Because _nothing_ really handles JSPs well, as they are a mix of several
languages at once but JDE was fairly good at it.
Actually, this is the question I ended up asking myself after much
wrestling with this issue. I have since stated using multi-mode.el with
nxml-mode, css-mode, javascript-mode, and, for the java, java-mode which
doesn't need to have semantic re-parse the file every time I pass into a
java portion of the page.
I finally got succeeded in writing a function which can decide whether
or not it should switch to javascript-mode or nxml-mode after a %>
(which can occur in both html context and javascript context.
So I think my problem is solved, although I'm still getting tons of
strange errors after moving to cedets. Among other things, now i can't
byte-compile my packages because I get a single error stating that
speedbar-version is not defined and then everything stops. I'm in the
process of systematically removing things from .emacs until the problem
goes away, but no luck yet.
Thanks for the help.
John
> Paul
>
>
> > Sincerely,
> > John
> >
> > First some info:
> > platform: Gentoo Linux on a Thinkpad A31p
> >
> > JDEE version: jde-2.3.3
> >
> > emacs version: FSF emacs-cvs ( I think cedet requires a function only
> > in cvs, custom-autoload)
> >
> > .emacs file: For simplicity, I reproduced the problem with only the
> > following in my .emacs file:
> > ;; beginning of .emacs file
> >
> > (add-to-list 'load-path "~/.emacs.d/packages/cedet-1.0beta1c/common")
> > (add-to-list 'load-path "~/.emacs.d/packages/jde-2.3.3/lisp")
> > (add-to-list 'load-path "~/.emacs.d/packages/elib-1.0")
> >
> > (load-library "cedet")
> > (setq auto-mode-alist
> > (append '(("\\.java\\'" . jde-mode)) auto-mode-alist))
> > (setq auto-mode-alist (cons '("\\.jsp" . jde-mode) auto-mode-alist))
> >
> > (require 'jde)
> >
> > ;; end of .emacs file
> >
> >
> > If I open emacs and find-file a jsp, the file does not open at all and
> > the message buffer contains this message:
> >
> > Note: file is write protected
> > Loading wisent-java-tags...done
> > Setting JDE variables to startup values...
> > Loading jit-lock...done [2 times]
> > wisent-java-tags-lexer: Unmatched Text during Lexical Analysis
> >
> > If I then immediately find-file the same file again, it opens with no
> > complaints of any kind.
> >
> > If I then close it and open it _again_ The file opens with the following
> > error:
> >
> > Note: file is write protected
> > Setting JDE variables to startup values... [2 times]
> > Wrong type argument: syntax-table-p, nil
> >
> > subsequent find-file of the file all return the syntax-table-p error.
> >
> >
> > Thanks a lot for the help.
> > --
> > If you're not part of the solution, you're part of the precipitate.
> >