On Wed, Aug 27, 2003 at 10:56:18AM +0200, Christian Ridderström wrote: > On Wed, 27 Aug 2003, John Levon wrote: > > > John, how do I create a patch? > > > > We should give you a CVS account so you can do a proper patch by "cvs > > add"ing the new files. Then from the top lyx directory, you do > > > > cvs diff -Nup >mypatch.diff > > Who should I contact about the CVS account?
Lars. > In case anyone wants to look at it, I've attached a patch file (as per > above), and I also attached an archive with the the new files that need > to added. > Index: src/LyXAction.C > =================================================================== > RCS file: /cvs/lyx/lyx-devel/src/LyXAction.C,v > retrieving revision 1.144 > diff -u -p -r1.144 LyXAction.C > --- src/LyXAction.C 2003/01/06 14:02:20 1.144 > +++ src/LyXAction.C 2003/08/27 08:09:09 > @@ -406,8 +406,10 @@ void LyXAction::init() > { LFUN_ESCAPE, "escape", "", Noop }, > { LFUN_HELP_ABOUTLYX, "help-aboutlyx", > N_("Display information about LyX"), NoBuffer }, > - { LFUN_HELP_TEXINFO, "help-Texinfo", > + { LFUN_HELP_TEXINFO, "help-Texinfo", > N_("Display information about the TeX installation"), NoBuffer }, > + { LFUN_INSERT_LISTING, "listing-insert", > + N_("Inserts formatted sourcecode"), Noop }, Stick to the indentation/spacing already used. > { LFUN_FORKS_SHOW, "show-forks", > N_("Show the processes forked by LyX"), NoBuffer }, > { LFUN_FORKS_KILL, "kill-forks", > Index: src/buffer.C > =================================================================== > RCS file: /cvs/lyx/lyx-devel/src/buffer.C,v > retrieving revision 1.399.2.4 > diff -u -p -r1.399.2.4 buffer.C > --- src/buffer.C 2003/06/06 19:17:59 1.399.2.4 > +++ src/buffer.C 2003/08/27 08:09:11 > @@ -54,6 +54,7 @@ > #include "insets/inset.h" > #include "insets/inseterror.h" > #include "insets/insetlabel.h" > +#include "insets/insetlisting.h" > #include "insets/insetref.h" > #include "insets/inseturl.h" > #include "insets/insetnote.h" > @@ -1070,6 +1071,8 @@ void Buffer::readInset(LyXLex & lex, Par > } else if (cmdName == "url" > || cmdName == "htmlurl") { > inset = new InsetUrl(inscmd); > + } else if (cmdName == "lstinputlisting") { > + inset = new InsetListing(inscmd); Same here. > } else if (cmdName == "ref" > || cmdName == "pageref" > || cmdName == "vref" > Index: src/commandtags.h > =================================================================== > RCS file: /cvs/lyx/lyx-devel/src/Attic/commandtags.h,v > retrieving revision 1.104 > diff -u -p -r1.104 commandtags.h > --- src/commandtags.h 2002/11/29 13:22:38 1.104 > +++ src/commandtags.h 2003/08/27 08:09:12 > @@ -278,7 +278,8 @@ enum kb_action { > LFUN_ESCAPE, // 260 // Lgb 20010517 > LFUN_HELP_ABOUTLYX, // Edwin 20010712 > LFUN_THESAURUS_ENTRY, // Levon 20010720 > - LFUN_HELP_TEXINFO, // Herbert 20011001 > + LFUN_HELP_TEXINFO, // Herbert 20011001 > + LFUN_INSERT_LISTING, // Herbert 20011110 And here. Apart from that it looks ok... Andre'