On Wed, Dec 17, 2003 at 03:21:36PM +0100, Andre' Poenitz wrote:
> On Wed, Dec 17, 2003 at 12:56:43PM +0000, Angus Leeming wrote:
> > > lfun-define  "citation-insert" "dialog-show-new-inset citation"
> > 
> > That's exactly what I envisage.
> 
> We'd just have to decide on some 'internal scripting language' and get
> all these features for free.
> 
> With Tcl this would be a 
> 
> 'proc citation-insert {} {dialog-show-new-inset citation}'
> 
> and I am sure it's as simple in Python or any other 'decent' scripting
> language.

If I think about it, one gets even your syntax right  (modulo _ vs -):

        proc lfun_define {name body} { proc $name {} [list $body] }

        lfun_define "citation_insert" "dialog_show_new_inset citation"

Andre'

Reply via email to