On Wed, May 12, 2010 at 1:49 PM, Devon McCormick <[email protected]> wrote:
> How can I assemble an emacs-lisp command in J and have the emacs - the
> session under which I'm running J in console mode - execute it? Is there a
> way for J to play back keystrokes into my console session as though I were
> typing them?
(Note: I do not use emacs.)
This is an emacs programming question and not a j programming question,
so I have responded in chat.
I believe you are going to want to define a function to filter J's output
and then execute an expression of the form
(add-hook 'comint-preoutput-filter-functions
'name-of-your-filter-function)
in your hook that sets up for J shell mode.
You should be able to dig out documentation on this hook
from inside emacs. (I could also, but I would need to install
emacs first, as I have not found a good online repository of
emacs documentation.)
FYI,
--
Raul
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm