emacs mode available in wisecrack.el

6 views
Skip to first unread message

Jason E. Aten

unread,
Dec 16, 2012, 1:35:00 AM12/16/12
to crack-l...@googlegroups.com
I adapted an emacs mode I had cobbled together for other interactive languages to work with wisecrack.

It's in my github repo, on branch wc_on_back2, as wisecrack.el.

My favorite thing about this mode is that it let's you step through code in one buffer, playing
it line by line into a wisecrack interpreter in the lower window.

It is almost as if you are in a debugger.  But you can stop and look around, and execute
additional code if you wish.

Pressing ctrl-n steps a line at a time (configurable). You can flip to the interpreter at any point and type stuff,
copy code back tot he script you are working on, and so forth, using regular
emacs buffer manipulation commands.  This is one of my favorite ways to write code.

Setup/installation instructions are included at the top of the file.

Best,
Jason

Michael Muller

unread,
Dec 17, 2012, 9:20:39 AM12/17/12
to Jason E. Aten, crack-l...@googlegroups.com

Jason E. Aten wrote:
> I adapted an emacs mode I had cobbled together for other interactive
> languages to work with wisecrack.

Sounds cool! I'm not an emacs guy, maybe if any of the guys are they can try
it out.

This sounds a lot like some of what I've been thinking for a debugger.
Specifically the ability to inject code in the course of debug. If you're
interested in persuing this further, I have some ideas to throw at you :-)

>
> It's in my github repo, on branch wc_on_back2, as wisecrack.el.
>
> My favorite thing about this mode is that it let's you step through code in
> one buffer, playing
> it line by line into a wisecrack interpreter in the lower window.
>
> It is almost as if you are in a debugger. But you can stop and look
> around, and execute
> additional code if you wish.
>
> Pressing ctrl-n steps a line at a time (configurable). You can flip to the
> interpreter at any point and type stuff,
> copy code back tot he script you are working on, and so forth, using
> regular
> emacs buffer manipulation commands. This is one of my favorite ways to
> write code.
>
> Setup/installation instructions are included at the top of the file.
>
> Best,
> Jason
>


=============================================================================
michaelMuller = mmu...@enduden.com | http://www.mindhog.net/~mmuller
-----------------------------------------------------------------------------
"We are not safe," said Ariel Cohen, a counterterrorism expert with the
Heritage Foundation, a Washington think tank. "Our commuter transit systems do
not have metal detectors, bag searches, random body searches. Our level of
vigilance is nowhere near that of Israel, and Israeli buses have been hit
again and again." --> Good idea! Let's do what doesn't work for Israel!!
=============================================================================

Jason E. Aten

unread,
Dec 17, 2012, 1:03:52 PM12/17/12
to Michael Muller, crack-l...@googlegroups.com
Thanks! Glad to hear the ideas; I can't promise I'll be able to do them! :-)
Reply all
Reply to author
Forward
0 new messages