nedit patches

A.V.Kuznetsov kuzn at umps.mephi.ru
Mon Jul 31 16:48:35 CEST 2006


Dear TK Soh,

Thank you. Toolbar works fine.

> Currently the patch is really simple and the buttons are hardcoded, so
> no customization at runtime. You get the buttons for most of the
> regular function though - the fact fact I didn't have to add any more
> buttons for the past three years prabably speaks for it. :-)

Indeed, buttons content covers most of useful actions.

Sorry, I am not a programmer, so I am sure, following question
is very naive. Excuse me in advance.

As I understand, at the "top level" buttons are defined as

 {TOOL_BTN, doActionCB, "find_definition", "Find Definition (Tag)", 
    	    {pushtag_bits, pushtag_width, pushtag_height}},

where first field is a on/off switch.
Via "doActionCB" a button is bounded with some
"action" described somewhere in nedit code.
Next field is help content
and the last one is description of a button-image target.

Is it possible to modify patch to allow usage of user-defined macro
instead of predefined "action"?

I tried to substitute some "action" by tex_compile() macro and
reseived the message

No action proc named "tex_compile" is registered for widget "text"

Alexey



More information about the Discuss mailing list