Hi,

Writing texinfo doco for the new @verb commands, I stumbled
upon another bug:

    20:35:48 appel ~/usr/src/texinfo$ cat urg6.texi
    \input texinfo   @c -*-texinfo-*-
    @settitle foo

    @c @node Top
    @c @top

    @menu
    * foo:: the foo
    @end menu

    @node foo
    @section foo

    @exdent @example
    @end example

    Use @code{@@lisp} instead of @code{@@example} to preserve information
    regarding the nature of the example.  This is useful, for example, if
    you write a function that evaluates only and all the Lisp code in a
    Texinfo file.  Then you can use the Texinfo file as a Lisp
    library.@footnote{It would be straightforward to extend Texinfo to work
    in a similar fashion for C, Fortran, or other languages.}@refill

    @bye
    20:35:53 appel ~/usr/src/texinfo$ ../makeinfo-3.12s urg6.texi
    urg6.texi:7: warning: @menu seen before first @node, creating `Top' node.
    urg6.texi:7: warning: perhaps your @top node should be wrapped in @ifnottex rather 
than @ifinfo?.
    urg6.texi:16: end_insertion internal error: current indent=-5.
    Segmentation fault (core dumped)


Here's a fix:

--- makeinfo/makeinfo.c.orig    Wed Sep  1 20:32:05 1999
+++ makeinfo/makeinfo.c Wed Sep  1 20:33:02 1999
@@ -2195,7 +2195,7 @@
                         }
 
                         /* Filled, but now indent if that is right. */
-                        if (indented_fill && current_indent)
+                        if (indented_fill && (current_indent > 0))
                           {
                             int buffer_len = ((output_paragraph_offset - temp)
                                               + current_indent);


Btw, no need to include any of the @verb stuff yet, made some fixes
again, today.

Greetings,

Jan.

Jan Nieuwenhuizen <[EMAIL PROTECTED]> | GNU LilyPond - The music typesetter
http://www.xs4all.nl/~jantien/      | http://www.lilypond.org/

Reply via email to