Re: [frogs] Here, froggie froggies... python update-texinfo-menus

[ Thread Index | Date Index | More lilynet.net/frogs Archives ]


Hi Frogs,
2009/3/16 Graham Percival <graham@xxxxxxxxxxxxxxxxx>:
> On Fri, Mar 13, 2009 at 02:51:22PM -0600, Carl D. Sorensen wrote:
>> The emacs texinfo-update-all-menus macro simply goes through the file and
>> puts in menus that match the @node{} calls to the sectioning commands.
>>
>> I don't think you need to exactly duplicate the emacs macro.  I think you
>> just need to (re-)create the menus.
>
> Well, that's exactly what the emacs macro does.  Other then adding
> extra whitespace at the end of the "* FOO::        " lines, which
> we **do not** want to duplicate.  :)
>
> Another way to look at it is this: if you delete all the
>  * FOO::
> lines from a .itely file (but you can **keep** the
>  @menu
>  @end menu
> stuff), then the python script should produce the same file that
> you had before you deleted the "* FOO::" lines.

It should even work if you delete the @menu/@end menu blocks, in which case
the script should insert a @menu block just before the first node of the lower
sectioning level.

Cheers,
John

---

----
Join the Frogs!


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/