Re: macros for commands

2007-10-14 Thread Bernhard Roider
Jean-Marc Lasgouttes schrieb: Bernhard Roider <[EMAIL PROTECTED]> writes: - it is wrong to define that in binding files, since these definitions are available to menus and toolbars too. I propose to move the definitions to their own file. ok, then should we create another directory like "b

Re: macros for commands

2007-10-11 Thread Helge Hafting
Bernhard Roider wrote: That's true. What about abbreviation command definition (CmdDef) shortcut is also already used lyxmacro? edit(or) macro? Helge Hafting

Re: macros for commands

2007-10-11 Thread Jean-Marc Lasgouttes
Bernhard Roider <[EMAIL PROTECTED]> writes: >> - it is wrong to define that in binding files, since these definitions >> are available to menus and toolbars too. I propose to move the >> definitions to their own file. > > ok, then should we create another directory like "bind" or "ui"? Either

Re: macros for commands

2007-10-11 Thread Jean-Marc Lasgouttes
Bernhard Roider <[EMAIL PROTECTED]> writes: >> - the "macro" name is a bit confusing wrt mathed macros and latex >> macros (if we support them one day). Even if it is only in the code, >> it is better to avoid that. Unfortunately, I do not have plenty of >> good names. Procedure? > > That's

Re: macros for commands

2007-10-10 Thread Abdelrazak Younes
Bernhard Roider wrote: Abdelrazak Younes schrieb: +/// information for a macro +struct LyXAction::macro_info { macroInfo please. this one is similar to func_info in the same class I know and this is bad too. Feel free to correct that too ;-) +case LFUN_CALL: { +FuncRequest f

Re: macros for commands

2007-10-10 Thread Bernhard Roider
Abdelrazak Younes schrieb: Bernhard Roider wrote: Andre Poenitz schrieb: 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; cha

Re: macros for commands

2007-10-10 Thread Bernhard Roider
Jean-Marc Lasgouttes schrieb: I have two small reservations : - the "macro" name is a bit confusing wrt mathed macros and latex macros (if we support them one day). Even if it is only in the code, it is better to avoid that. Unfortunately, I do not have plenty of good names. Procedure?

Re: macros for commands

2007-10-09 Thread Bernhard Roider
ouch, that coding styles - i am mixing different styles from different projects... thanks abdel, i will rework it acordingly. bernhard Abdelrazak Younes schrieb: Bernhard Roider wrote: Andre Poenitz schrieb: On Fri, Oct 05, 2007 at 12:24:45AM +0200, Bernhard Roider wrote: hello all, the at

Re: macros for commands

2007-10-09 Thread Jean-Marc Lasgouttes
Bernhard Roider <[EMAIL PROTECTED]> writes: > so here it is, now tested as i managed to compile again (after hours > of investigation and no idea what the real problem was). > > if there are no objections i'll commit later this week I have two small reservations : - the "macro" name is a bit con

Re: macros for commands

2007-10-08 Thread Abdelrazak Younes
Bernhard Roider wrote: Andre Poenitz schrieb: 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

Re: macros for commands

2007-10-08 Thread Bernhard Roider
Andre Poenitz schrieb: 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; c

Re: macros for commands

2007-10-05 Thread Bernhard Roider
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:45A

Re: macros for commands

2007-10-04 Thread Abdelrazak Younes
Andre Poenitz wrote: 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; cha

Re: macros for commands

2007-10-04 Thread Andre Poenitz
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"