[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Texmacs-dev] Re: extern-exec and "further customization"
From: |
Lionel Elie Mamane |
Subject: |
[Texmacs-dev] Re: extern-exec and "further customization" |
Date: |
Wed, 8 Feb 2006 12:07:06 +0100 |
User-agent: |
Mutt/1.5.11+cvs20060126 |
On Mon, Feb 06, 2006 at 06:20:38PM +0100, Joris van der Hoeven wrote:
> On Mon, Feb 06, 2006 at 04:59:30PM +0100, Lionel Elie Mamane wrote:
>> What about adding a level of indirection in the communication between
>> "session" and the plug-in? What I mean is:
>> - When the user types a command for the plug-in in a session, instead
>> of sending what he typed, call a scheme procedure with arguments:
>> * the string the user typed
>> * the port used to talk to the child process
> It is already possible to associate a rewriting function to each
> type of plug-in, which is probably close to what you want.
Yes, but I can't seem to be able to use it. The code in
/usr/share/texmacs/TeXmacs/progs/utils/plugins/ makes me believe that
the default for the :serialize option is verbatim-serialize. But if I
do "(:serializer verbatim-serialize)", then I get as error:
/usr/share/texmacs/TeXmacs/progs/utils/plugins/plugin-cmd.scm:143:9: In
expression (fun lan t):
/usr/share/texmacs/TeXmacs/progs/utils/plugins/plugin-cmd.scm:143:9: Wrong
type to apply: verbatim-serialize
While the code in question is:
(if fun
(fun lan t)
(verbatim-serialize lan t))
So, it would fallback to verbatim-serialize if I hadn't given
anything? There must be something I'm missing.
--
Lionel