[augeas-devel] [PATCH 2 of 7] Rewrite inifile.aug entirely

Raphaël Pinson raphink at gmail.com
Fri Aug 15 10:57:20 UTC 2008


On Fri, Aug 15, 2008 at 2:33 AM, David Lutterkort <dlutter at redhat.com>wrote:

> On Thu, 2008-08-14 at 17:52 +0200, Raphael Pinson wrote:
> > # HG changeset patch
> > # User Raphael Pinson <raphink at gmail.com>
> > # Date 1218728917 -7200
> > # Node ID 2d254500331759e7334d28d5af680e4b360da724
> > # Parent  9dfd488a44716a108971f084228d36dd1d682476
> > Rewrite inifile.aug entirely
>
> I like where this is going;



I'm happy of this.




> one suggestion:
>
> > +let record_noempty (title:lens) (entry:lens)
> > +                       = [ title
> > +                    . entry* ]
> > +let record (title:lens) (entry:lens)
> > +                       = record_noempty title ( entry | empty )
> > +let record_re          = ( /[^]\n\/]+/ - /#comment/ )
> > +let record_label_re    = /[^]\n]+/
>
> What do you think about renaming all the lenses that have 'record' in
> their name to 'section...', since that's what they are dealing with ? If
> you agree, don't worry about making that change now ... I can do that
> easily after your patch series has been committed, otherwise the patches
> will get too confusing.
>


Yes, I agree that 'section' would be nicer for INI files. I will finish to
set all this, and I'll send a patch to rename all 'record' to 'section'
afterwards as you suggested.


 Raphael
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/augeas-devel/attachments/20080815/3a29fbf1/attachment.htm>


More information about the augeas-devel mailing list