[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: tcl/expect in inferior-tcl buffer
From: |
Kevin Rodgers |
Subject: |
Re: tcl/expect in inferior-tcl buffer |
Date: |
Fri, 09 Dec 2005 16:54:49 -0700 |
User-agent: |
Mozilla Thunderbird 0.9 (X11/20041105) |
gamename wrote:
> I use the "inferior-tcl" buffer quite a bit for interactively running
> code snippets. I set my tcl application variable in my .emacs to
> this:
>
> (tcl-application "/usr/bin/expect")
>
> and it will cause "expect" to run when I do:
>
> M-x inferior-tcl
>
> This starts the "inferior-tcl" buffer. From there, I simply copy/paste
> code fragments into the buffer for testing purposes. It comes in
> really handy for quick testing/prototyping.
>
> Unfortunately, some tcl errors will cause the process to exit, and I
> get the message:
>
> "Process inferior-tcl finished"
>
> Is there any way to automatically restart tcl/expect in the buffer so
> that I don't have to close and reopen it?
inferior-tcl runs tcl-application via comint, so perhaps you could
install a process sentinel in inferior-tcl-mode-hook that restarts it.
--
Kevin Rodgers