Mark Triggs <[EMAIL PROTECTED]> writes:

> Just a quick question.  There are quite a few places where
> (pop-to-buffer tla--last-process-buffer) is used.  I've just

At least, should be tla-switch-to-buffer tla--last-process-buffer !

> accidentally killed a process buffer, and now running commands gives:
>
>   Debugger entered--Lisp error: (error "Selecting deleted buffer")
>     pop-to-buffer(#<killed buffer>)

Hmm,  I suppose  you're  trying to  run  a command  which hasn't  been
migrated    to    the    new    process/buffer    management    system
(tla--run-tla-...), because with the new  one, a new process buffer is
created for each new process, so, you should get this error only once.
(In  the process  sentinel  of the  buffer  that was  running in  this
buffer).

Anyway:

> Could we change forms like the above into something like
> (tla--show-last-process-buffer) and have that function check whether the
> buffer is alive beforehand?

Yes

> I notice  we've got a `tla-show-process-buffer'  already... maybe it
> was intended for this sort of thing?

This is the  equivalent for the old process  managment system. It will
be removed when we'll have completed the migration.

-- 
Matthieu

Reply via email to