[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Geiser-users] Using multiple REPLs from elisp
From: |
Michael Gauland |
Subject: |
Re: [Geiser-users] Using multiple REPLs from elisp |
Date: |
Thu, 13 Dec 2012 03:30:01 +0000 (UTC) |
User-agent: |
Loom/3.14 (http://gmane.org/) |
Jose A. Ortega Ruiz <address@hidden> writes:
> Geiser associates buffers to REPLs by setting a local variable in the
> scheme buffer, geiser-repl--repl, so in principle it shouldn't be
> necessary to maintain a separate table is that variable is set for the
> buffer at hand. When you do a switch-to-geiser from a scheme buffer,
> that variable is set automatically, possibly after creating the REPL.
>
> Afterwards, all evaluation commands defined in geiser-mode.el use that
> variable to choose to which REPL the code is sent. So, in principle, if
> you call commands defined in geiser-mode.el (in the section ;;Evaluation
> Commands) things should work out of the box without any additional
> book-keeping on your side.
Thanks--that gives me a good place to start.
This process may be complicated by the way babel works. Each block is evaluated
from its own temporary buffer, so the source buffer for which a REPL was
initially created may no longer exist when I go to use it again.
--Mik