unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* tcl/expect in inferior-tcl buffer
@ 2005-12-09 19:16 gamename
  2005-12-09 23:54 ` Kevin Rodgers
       [not found] ` <mailman.18643.1134172702.20277.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 3+ messages in thread
From: gamename @ 2005-12-09 19:16 UTC (permalink / raw)


Hi,

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?  

TIA,
-Tennis

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: tcl/expect in inferior-tcl buffer
  2005-12-09 19:16 tcl/expect in inferior-tcl buffer gamename
@ 2005-12-09 23:54 ` Kevin Rodgers
       [not found] ` <mailman.18643.1134172702.20277.help-gnu-emacs@gnu.org>
  1 sibling, 0 replies; 3+ messages in thread
From: Kevin Rodgers @ 2005-12-09 23:54 UTC (permalink / raw)


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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: tcl/expect in inferior-tcl buffer
       [not found] ` <mailman.18643.1134172702.20277.help-gnu-emacs@gnu.org>
@ 2005-12-10  1:21   ` gamename
  0 siblings, 0 replies; 3+ messages in thread
From: gamename @ 2005-12-10  1:21 UTC (permalink / raw)



Thanks!  That makes sense.  Can you point me to any examples of that,
or something similar?

TIA,
-T

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-12-10  1:21 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-12-09 19:16 tcl/expect in inferior-tcl buffer gamename
2005-12-09 23:54 ` Kevin Rodgers
     [not found] ` <mailman.18643.1134172702.20277.help-gnu-emacs@gnu.org>
2005-12-10  1:21   ` gamename

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).