Bill, :-)
Thanks for trying! Bill On Sun, Dec 3, 2017 at 4:16 PM, bill lam <[email protected]> wrote: > Bill, > > Sorry, I belong to cult of vi and don't know emacs. > > > On Dec 4, 2017 8:05 AM, "Bill Harris" <[email protected]> > wrote: > > > Bill, > > > > I did install j from the .deb file, I've updated org mode from elpa, I > > installed j-mode from melpa stable, I customized j-console-cmd to > ijconsole > > to get REPL access to J, but org mode still doesn't work. What do I need > > to install from a deb file? > > > > Thanks, > > > > Bill > > > > On Sun, Dec 3, 2017 at 3:44 PM, bill lam <[email protected]> wrote: > > > > > If you had installed using deb, the name of executable is ijconsole, > not > > > jconsole. HTH > > > > > > On Dec 4, 2017 6:46 AM, "Bill Harris" <bill_harris@ > > facilitatedsystems.com> > > > wrote: > > > > > > > I got j-mode working easily after customizing j-console-cmd. (I > > haven't > > > > got font-lock mode working for J yet, but that's low on my priority > > > list.) > > > > > > > > Now I'd like to get J working inside org-mode. I think I followed > the > > > > instructions on > > > > http://orgmode.org/worg/org-contrib/babel/languages/ob-doc-J.html, > > > > starting > > > > by loading j-mode from stable melpa, but I get an org-babel error > > output > > > > when I try to execute a J source code block: "/bin/bash: jconsole: > > > command > > > > not found". > > > > > > > > That makes it sound as if orgmode requires something besides setting > > > > j-console-cmd. > > > > > > > > Looking at ob-J.el, I see > > > > > > > > (defcustom org-babel-J-command "jconsole" > > > > "Command to call J." > > > > :group 'org-babel > > > > :version "26.1" > > > > :package-version '(Org . "9.0") > > > > :type 'string) > > > > > > > > which looks suspicious to me, but, later, I see > > > > > > > > (defun org-babel-J-eval-string (str) > > > > "Sends STR to the `j-console-cmd' session and executes it." > > > > (let ((session (j-console-ensure-session))) > > > > (with-current-buffer (process-buffer session) > > > > (goto-char (point-max)) > > > > (insert (format "\n%s\n" str)) > > > > (let ((beg (point))) > > > > (comint-send-input) > > > > (sit-for .1) > > > > (buffer-substring-no-properties > > > > beg (point-max)))))) > > > > > > > > which looks like it's trying to do the right thing. > > > > > > > > Does that help? Tips? > > > > > > > > Thanks, > > > > > > > > Bill > > > > > > > > PS: I'm running Emacs v25.1.1 and org mode 9.1.3. > > > > ------------------------------------------------------------ > ---------- > > > > For information about J forums see http://www.jsoftware.com/ > forums.htm > > > ---------------------------------------------------------------------- > > > For information about J forums see http://www.jsoftware.com/forums.htm > > ---------------------------------------------------------------------- > > For information about J forums see http://www.jsoftware.com/forums.htm > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm > ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
