<br><br><div class="gmail_quote">On Mon, Jul 14, 2008 at 7:46 PM, David Lutterkort <<a href="mailto:dlutter@redhat.com">dlutter@redhat.com</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d">On Fri, 2008-07-11 at 17:22 +0200, Raphaël Pinson wrote:<br>
> I've been playing with comments a bit. Here is the code I've been<br>
> playing with. I hope it can be useful :<br>
<br>
</div>This is really nice - my only concern is how usable that is from<br>
applications: now, you need to make sure that a node with a value does<br>
not have a 'commented' subnode - otherwise you might have changed the<br>
value, but have the setting still commented out.</blockquote><div><br>Yes indeed. There's also still the problem of finding out what is a commented value vs a real comment. A comment could not be declared as 'del /#[ \t]*/ "# " . store /[^ \t][\n]*/' or so anymore since it would conflict with the commented value. I would have to use a '- whatever_definition_of_a_valid_value' in the regex defining the comment. As you pointed out, it makes it a bit tricky to use because the commented flag has to be checked for each value. On the other hand, it might slightly improve the usability by allowing people to easily comment/uncomment settings without losing them.<br>
<br><br>Raphaël<br></div></div><br>