From: Nicholas Caruso <n.caruso@rc...> - 2003-05-15 19:23:00
I'm writing a mode for J based on the CommandInterpreter
class. I've been learning by trial and error starting with
jlisp.java as a template since it seems closest to what I want
to do. (Namely: write a BeanShell interaction mode.)
I've got a fair part of the way, but I'm currently stuck
trying to figure out why:
a) the enter key doesn't call my enter routine, even though
I've mapped it the same way (apparently) as LispShellMode.java
b) why the backspace key triggers a null pointer exception
when used in my new mode/buffer thingee.
I'm assuming I'm missing some important bit of code somewhere
For "b", part of the answer is that posEndOfOutput seems to
be null inside CommandInterpreter's backspace method. I
suspect further that this points to some other initialization
or setup that I missed.
Any hints or suggestions would be greatly appreciated.
From: Peter Graves <peter@ar...> - 2003-05-15 22:21:59
> a) the enter key doesn't call my enter routine, even though
> I've mapped it the same way (apparently) as LispShellMode.java
> does, and
> I'm assuming I'm missing some important bit of code somewhere
> for "a".
Did you add your command to the command table (in CommandTable.java)?