[climacs-devel] Changing a syntax command table on the fly

Nicolas Sceaux nicolas.sceaux at free.fr
Sat Apr 19 14:08:17 UTC 2008


Le 19 avr. 08 à 15:20, Troels Henriksen a écrit :
> Nicolas Sceaux <nicolas.sceaux at free.fr> writes:
>
>> My question is: what is the way to change the command table
>> associated to a syntax on the fly?
>
> You cannot. I can't fully remember why, but I just don't think it
> sounds elegant. Instead, you could just define a method on the
> COMMAND-TABLE generic function for your syntax and return a different
> command table based on the value of some slot in your syntax. A more
> general (and complicated) approach is to define a syntax-command-table
> (a hack connecting a CLIM command table to a CLOS class), which is
> what I do to enable additional commands in Lisp syntax when running in
> Climacs.

Thanks for your quick answer.




More information about the climacs-devel mailing list