On Feb 26, 2008, at 11:23 PM, Charlie Garrison wrote:
On 26/2/08 at 10:54 PM -0600, Aaron Hsu <[EMAIL PROTECTED]> wrote:
As for how to have code changes take effect without reloading;
that will depend on the program that is running the code. Does it
support live code changes?
Live code changes come about as the result of re-evaluating code
passed to the environment, in the same way that you would type new
commands into the command line.
If you can do what you want from the command line, then you will be
able to do it from BBEdit. Unfortunately I don't know enough about
Scheme or your environment to suggest how to do it.
But first I'd look at a BBEdit worksheet. And then I'd look at
creating a Unix Filter.
Well, basically, think of it like this. Here is how a typical workflow
of mine goes right now:
1) Start the Scheme Interpreter by invoking it on a command-line:
$ scheme
…
>
2) Open BBEdit with a Scheme file that I am editing.
3) I then “set-up” my Scheme environment by selecting all my Scheme
code and dragging it into the Terminal window. This has the effect of
evaluating all the code from this file in that window.
4) I think run a few tests, and when I make a change to the file, say,
modify the definition of a procedure, then I just highlight the
procedure, and then copy and paste it into the terminal window. Doing
this has the effect of re-evaluating that code and I get the procedure
redefined.
My question is: how can I do this without having to do all the copy
and pasting. I'd like to have something like a command where I could
do “Send file to Scheme” or ”Send selection to Scheme.”
Any ideas? Worksheets are nice in that I can do everything from within
my editor, but…I still want a way that I can send my text to the
environment without having to copy and paste between windows. I am
unsure of how Unix Filters would help this case, but I would be
interested in seeing an example.
Thanks for your help,
Aaron Hsu
Email/AIM: [EMAIL PROTECTED]
XMPP: [EMAIL PROTECTED]
Web: http://www.sacrideo.us
--
------------------------------------------------------------------
Have a feature request? Not sure the software's working correctly?
If so, please send mail to <[EMAIL PROTECTED]>, not to the list.
List FAQ: <http://www.barebones.com/support/lists/bbedit_talk.shtml>
List archives: <http://www.listsearch.com/BBEditTalk.lasso>
To unsubscribe, send mail to: <[EMAIL PROTECTED]>