I am not near a windows machine, let alone a windows machine with emacs installed on it, to test this, but... http://jsoftware.com/pipermail/programming/2020-January/054762.html suggests that isatty is an issue, and on windows isatty being true would mean that jconsole is running inside a cmd window.
So, hypothetically speaking, prefixing the ./jconsole.cmd line with cmd /c would allow the current J release to issue the command prompt. (Unfortunately, I suspect that it would also open J in a new window, rather than in the comint buffer in emacs). So maybe the isatty value needs to be made visible to the engine and the test needs to be moved into the profile...? Until then, I guess stick with an older version of J for use in emacs. Thanks, -- Raul On Fri, Jan 10, 2020 at 3:46 PM Devon McCormick <[email protected]> wrote: > > Hi - no, I have an emacs macro that runs a .bat file that starts jconsole > as a process under a running emacs. > > So my macro - for J 9.01, based on my previous ones - looks like this: > > (defun start-J9-session () > "Open J 9.01 jconsole session." > (interactive) > (setq save-old explicit-shell-file-name) > (setq shell-file-name "J901_64") > (setq explicit-shell-file-name (concat base-disk "/utl/J64-901.bat")) > (shell) > (insert "qts''\n") > (insert "JVERSION\n") > (comint-send-input) > (setq explicit-shell-file-name save-old) > ) > > The "insert" statements followed by "(comint-send-input)" are inserted into > the J session after it starts and run so I have some relevant information > at the start of each session. The batch file " J64-901.bat" looks like this: > > Rem J64-901.bat: start 64-bit jconsole v9.01 of J (under emacs). > %BASEDSK% > cd "%BASEDSK%\Users\devon_mccormick\J901_64\bin" > Rem "-interactive" signals not a batch run > ../jconsole.cmd %BASEDSK%\amisc\JSys\J8\DHMConfig.ijs -interactive -js > "1!:44 '\amisc\work\neuralNets\'" > > So, pretty standard. > > On Fri, Jan 10, 2020 at 2:13 PM Raul Miller <[email protected]> wrote: > > > How are you running J in emacs? > > > > For example, are you using M-x shell and then running jconsole at that > > prompt? > > > > Thanks, > > > > -- > > Raul > > > > On Fri, Jan 10, 2020 at 12:44 PM Devon McCormick <[email protected]> > > wrote: > > > > > > I have been running jconsole under emacs for every version of J going > > back > > > about 20 years. I'm not sure what you mean by "J support" but there is > > an > > > emacs customization file for J - a couple, actually. This customizes > > > things like syntax highlighting and such. However, in general emacs is > > > blissfully ignorant of what goes on underneath it: it just knows that > > it's > > > working with some kind of shell or terminal from which it gets output and > > > to which it sends input. > > > > > > On Fri, Jan 10, 2020 at 11:29 AM Raul Miller <[email protected]> > > wrote: > > > > > > > Which implementation of J support do you have installed, in emacs? > > > > > > > > Or are you using something generic? > > > > > > > > Thanks, > > > > > > > > -- > > > > Raul > > > > > > > > On Fri, Jan 10, 2020 at 11:26 AM Devon McCormick <[email protected]> > > > > wrote: > > > > > > > > > > Hi - I just installed J 9.01 and am running the console version under > > > > emacs > > > > > as I've done for years now but I am not getting my three spaces > > prompt > > > > any > > > > > more. The system appears to work but the cursor remains on the left > > > > margin > > > > > so I don't have the visual clue that J is ready for input. > > > > > > > > > > Is there any known change that could be causing this in this version? > > > > > > > > > > Thanks, > > > > > > > > > > Devon > > > > > > > > > > -- > > > > > > > > > > Devon McCormick, CFA > > > > > > > > > > Quantitative Consultant > > > > > > > ---------------------------------------------------------------------- > > > > > For information about J forums see > > http://www.jsoftware.com/forums.htm > > > > ---------------------------------------------------------------------- > > > > For information about J forums see http://www.jsoftware.com/forums.htm > > > > > > > > > > > > > -- > > > > > > Devon McCormick, CFA > > > > > > Quantitative Consultant > > > ---------------------------------------------------------------------- > > > For information about J forums see http://www.jsoftware.com/forums.htm > > ---------------------------------------------------------------------- > > For information about J forums see http://www.jsoftware.com/forums.htm > > > > > -- > > Devon McCormick, CFA > > Quantitative Consultant > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
