[Lazarus] Code Completion Templates

Mattias Gaertner nc-gaertnma at netcologne.de
Mon Feb 11 09:46:03 CET 2013


On Sun, 10 Feb 2013 20:45:49 -0500
Donald Ziesig <donald at ziesig.org> wrote:

>[...]
> I have almost finished a patch that uses an xml file, a new unit and 
> mods to codecompletion.pas to implement configurable code completion.
> 
> I have a few questions remaining:
> 
> 1) What is the preferred way to specify the name and location of the xml 
> file?  I spent several hours trying to access PrimaryConfigPath or 
> SecondaryConfigPath from my unit which is in the codetools package.  
> Right now I am testing with a hard-coded path/file name.

You can add those options to the existing options.
See ide/codetoolsoptions.pas
 
> 2) What is the preferred way to submit the patch? (In my previous life, 
> before retirement, all I had to do was submit my code to the Quality 
> Control unit and wait for their inevitable nasty-grams; the classic of 
> which was "What is this thing called a 'state machine' you have in your 
> code?" ;-) ).

Attach it to
http://bugs.freepascal.org/view.php?id=15922

 
> 3) I have a separate program to parse the xml file and detect any 
> possible syntax errors before Lazarus tries to load it.  Where should I 
> put that?

What kind of syntax errors? For the xml or for the pascal snippets?

Mattias




More information about the Lazarus mailing list