Arc Forumnew | comments | leaders | submitlogin
9 points by sjs 5900 days ago | link | parent

Me neither, but I gave it a shot. I use it and it works, there may be bugs though. Maybe an Emacs guru will be kind enough to point out the errors I may have introduced while adapting cmuscheme.el.

http://samhuri.net/inferior-arc.el

In my dot-emacs:

  (setq arc-program-name "~/src/anarki/arc.sh")
  (load "~/.emacs.d/inferior-arc.el")
Then go ahead and do run-arc, arc-send-definition{,-and-go} (C-c C-e, C-c M-e) arc-send-region{,-and-go} (C-c C-r, C-c M-r), etc.


5 points by nex3 5899 days ago | link

I've added this to Anarki. I'm working on making a few improvements.

-----

1 point by cooldude127 5899 days ago | link

i look forward to seeing what you come up with

-----

1 point by cooldude127 5899 days ago | link

it's a good start. the bugs i see immediately are it lets you erase the prompt and the prompt appears when results are printed too. i might see if there is a way to solve these problems.

-----

1 point by raymyers 5899 days ago | link

I think Slime lets you erase the prompt too. I wonder if there is a good reason for that...

-----

1 point by cooldude127 5899 days ago | link

just tried it. emacs says "text is read-only". which is what it should do. i haven't the slightest idea how it pulls this off, though.

-----

1 point by nex3 5899 days ago | link

Turns out it's just a simple option: comint-prompt-read-only. I've set it in Anarki.

-----

1 point by cooldude127 5899 days ago | link

that was far too easy. i wonder if it is possible to make it pretty print.

-----

1 point by nex3 5899 days ago | link

I think it just outputs whatever Arc sends its way. So this would really involve getting Arc to pretty-print its output.

-----

2 points by cooldude127 5899 days ago | link

that might not even be that difficult, but my main problem is arc's pretty printing (in "pprint.arc") is rather flawed.

-----

1 point by cooldude127 5899 days ago | link

the latest changes in anarki for the --no-rl option fix the problem with the repeated prompt. so now it's just that the prompt can be deleted, which is a really minor issue.

-----