[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

makeinfo (v 6.4): Simple tree dump not working

From: Randall Sawyer
Subject: makeinfo (v 6.4): Simple tree dump not working
Date: Sat, 29 Jul 2017 13:29:44 -0400
User-agent: Mozilla/5.0 (X11; Linux i686; rv:45.0) Gecko/20100101 Thunderbird/45.1.1

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

  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, address@hidden);

  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

[Prev in Thread] Current Thread [Next in Thread]