Matti Katila
2005-05-23 04:43:07 UTC
Hi,
I needed a basic editor functionality for our java based software project
and thus I was interested in jemacs. Our need was not to use swing or swt
but our own widget library. Basicly I copied gnu.jemacs.lang.ELisp and
made some changes to start a different "toolkit" (or in my case a one
that was already running). I run into several problems:
- (minor) I couldn't call it anymore emacs, since in gnu.expr.Language had
a default line saying which class is started (gnu.jemacs.lang.ELisp) when
executed. Yeah, it was easy to fix with Language.registerLanguage(...);
- (Ugly) static things that called ELisp from different places. It
took me a while to find all these. If those called some static methods
from ELisp they did started to initialize stuff that produced
StackOverflowError. I fixed this by creating ELispUtil and moved
utility functions to there which seemed to fix the problem.
I will give the patches over here. GNU GPL applies for both.
-Matti
I needed a basic editor functionality for our java based software project
and thus I was interested in jemacs. Our need was not to use swing or swt
but our own widget library. Basicly I copied gnu.jemacs.lang.ELisp and
made some changes to start a different "toolkit" (or in my case a one
that was already running). I run into several problems:
- (minor) I couldn't call it anymore emacs, since in gnu.expr.Language had
a default line saying which class is started (gnu.jemacs.lang.ELisp) when
executed. Yeah, it was easy to fix with Language.registerLanguage(...);
- (Ugly) static things that called ELisp from different places. It
took me a while to find all these. If those called some static methods
from ELisp they did started to initialize stuff that produced
StackOverflowError. I fixed this by creating ELispUtil and moved
utility functions to there which seemed to fix the problem.
I will give the patches over here. GNU GPL applies for both.
-Matti