The following lines are from the pod in package Texinfo::Parser (file: Parser.pm)

You can see examples of the tree structure by running makeinfo like
this:

  makeinfo -c DUMP_TREE=1 -c TEXINFO_OUTPUT_FORMAT=parse document.texi

However, makeinfo contains these lines in this order inside the file-argument processing loop:

  if (!defined($tree) or $format eq 'parse') {
    handle_errors($parser, $error_count, \@opened_files);
    next;
  }

  if (defined(get_conf('DUMP_TREE'))
      or (get_conf('DEBUG') and get_conf('DEBUG') >= 10)) {
    # this is very wrong, but a way to avoid a spurious warning.
    no warnings 'once';
    local $Data::Dumper::Purity = 1;
    no warnings 'once';
    local $Data::Dumper::Indent = 1;
    print STDERR Data::Dumper->Dump([$tree]);
  }

The result is that the parser's tree contents never get dumped if TEXINFO_OUTPUT_FORMAT is set to 'parse'.

Simply switching the order of the conditional blocks will remedy this.




Reply via email to