Dan Bron wrote:
> Hello everyone,
>
> I have Cygwin and XEmacs set up now.  Can anyone give me a walkthrough of
> how to set it up to provide a J mode (highlighting, etc) and a connection
> to JConsole?
>
> I've seen this  http://j-mode.sourceforge.net/  and tried to set it up,
> but I did it wrong, and it doesn't highlight anything.  And I don't even
> know how begin with giving myself an interactive J window.

Dan:

I assume that you have j-mode installed and that XEmacs recognizes an ijs
file (it should have (J) in the mode line).  One annoyance is that you
have to give the Windows pathname for J to recognize it, e.g. if I am in
/home/john/simplex I can't just say

xemacs file.ijs &

I have to say

xemacs c:/cygwin/home/john/simplex/file.ijs &

If anyone has a way around this, I'd appreciate knowing it.  The short
line works exactly as expected on Linux.

To execute the file, say ^C^C : this will prompt you for unsaved buffers,
and execute the current buffer in a new one, which is a J console
interface. You can also execute regions and lines from the source file. 
You can use the console window with reasonably intuitive behavior: if you
hit return on a line, it moves it to the bottom, and hitting return again
will execute it.

Jconsole in a Cygwin xterm is less useful than in a Linux xterm for the
reason you mentioned: it may just be that my system is not configured
correctly.  However, once you have an emacs buffer running jconsole, you
are better off with that for interactive use.

To get sytax highlighting, you can do the following.  On an ijs buffer, go
through the menus Options->Syntax Highlighting->In This Buffer.  This is
one-shot, but at least lets you know if it is working.  To set it
permanently, you can go through the customization menus, or more directly
put

(custom-set-variables
 '(font-lock-mode t nil (font-lock))

in ~/.xemacs/custom.el

This should be enough to get you started.

Some remarks:

1. Depending on the font you use, you may or may not get box-drawing
characters.  I have

9!:7 '+++++++++|-'

at the start of all my files.

2.  In the J console window, you may wish to turn off
Options->Display->Wrap Long Lines: if not, some long boxed displays will
get garbaged.

3.  The signals on the jconsole buffer do not always work, particularly
with J601.  I use some combination of jbreak and occasionally kill in a
terminal window.

4.  You may get the ^M problem.  I have a potential workaround if necessary.

5. You don't get graphics with this.  You can apparently run jee for plot,
but I have never done this.

6. You can do everything without using the mouse!

Best wishes,

John



----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to