-------- Original-Nachricht --------
> Datum: Fri, 5 Oct 2007 00:29:32 +0200
> Von: Andre Poenitz <[EMAIL PROTECTED]>
> An: Bernhard Roider <[EMAIL PROTECTED]>
> CC: lyx-devel@lists.lyx.org
> Betreff: Re: macros for commands

> On Fri, Oct 05, 2007 at 12:24:45AM +0200, Bernhard Roider wrote:
> > hello all,
> > 
> > the attached patch adds
> > - the possibility to define macros in the bind file, like
> > 
> > \define "my macro" "command-sequence inset-insert ert 1; char-backward; 
> > self-insert some important latex code; char-forward"
> > 
> > - the lfun "call" to execute that macro. this call can be used in key 
> > bindings (\bind "X-y" "call my macro") menus and toolbar definitions
> (Item 
> > "My complex ert" "call my macro") as well as in the command buffer
> ("call 
> > my macro").
> > 
> > the benefits from that:
> > + customization is easier because the definition is done in one place
> and 
> > can be used as descriebed above
> > + it is possible to add complex commands (like the one above) to the 
> > toolbar with an image on the button, because the image name used equals
> the 
> > macro name ("my macro.png" in the above example)
> > 
> > oppinions?
> 
> Patch is too short.

but easy to understand then ;-)

i'll be back home tomorrow evening, then i will have another try.

bernhard

-- 
Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! 
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer

Reply via email to