Devon,

I don't think I can take credit for your insight ... I say that mostly because I felt kinship with a remark about vim recently (I'm a frequent user of vim). The remark, modified to match my experience, "I used emacs for a couple of years because I couldn't figure out how to exit a session..."

Your issues with garbled expressions cause me amusement and pain on other fronts. As a Thunderbird user, when something like 2^3 appears in an expression, TBird "conveniently" renders it as a superscript expression (discarding the ^ completely). If readers of this thread know a way to prevent that, I would like to hear about it.

Even more annoying to me is when I have a ssh connection from terminal (or Putty in Windows) and forget that I MUST NOT enter ~ as the first character on an input line - at least if I want to continue my j session. The workaround is to simply add a space in front, but I can't count the number of times I've forgotten to do that and experienced the immediate broken connection.

I guess I feel like we're lucky that j works as well as it does across all the IDEs, consoles etc.

A book or FAQ page of such problems and fixes or workarounds to avoid them would be a nice thing to have.

- joey


On 2014/03/12, 15:14 , Devon McCormick wrote:
OK - great!  I got it to work though I invoke J through a batch file so I
can supply the arguments to run it with my usual defaults loaded.

Are you familiar with Zach Elliott's "j-mode.el" at
http://github.com/zellio/j-mode  ?

Also, are you familiar with this:

;* disable-substitution-on-recall.el: prevent unwanted interpretation of !:
in J.
(defun disable-substitution-on-recall()
     "Avoid unwanted interpretation of '!:' in J."
     (interactive)   ; Necessary to be able to run from interactive key
sequence?
     (setq comint-input-autoexpand nil)
     (setq comint-dynamic-complete-functions nil))
;EG NB. (disable-substitution-on-recall) [C-x C-e]

I think Joey Tuttle showed me this: it prevents emacs from garbling J
expressions like "6!:2" when they are recalled to a session via
"comint-previous-input".


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

Reply via email to