[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
texinfo/tp TODO Texinfo/Parser.pm Texinfo/Conve...
From: |
Patrice Dumas |
Subject: |
texinfo/tp TODO Texinfo/Parser.pm Texinfo/Conve... |
Date: |
Mon, 18 Oct 2010 22:09:10 +0000 |
CVSROOT: /sources/texinfo
Module name: texinfo
Changes by: Patrice Dumas <pertusus> 10/10/18 22:09:10
Modified files:
tp : TODO
tp/Texinfo : Parser.pm
tp/Texinfo/Convert: Text.pm
tp/t/results/include: double_include.pl
value_expansion_in_include.pl
tp/t/results/macro: macro_in_index_commands.pl
macro_in_misc_commands.pl
text_before_after.pl
tp/t/results/misc_commands: also_not_line.pl bad.pl contents.pl
definfoenclose.pl many_lines.pl
tp/t/results/value: value_in_misc_commands.pl
Log message:
Warn if an @-command that should appear at the beginning of a line
isn't at the beginning of the line.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/TODO?cvsroot=texinfo&r1=1.24&r2=1.25
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/Texinfo/Parser.pm?cvsroot=texinfo&r1=1.80&r2=1.81
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/Texinfo/Convert/Text.pm?cvsroot=texinfo&r1=1.5&r2=1.6
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/t/results/include/double_include.pl?cvsroot=texinfo&r1=1.1&r2=1.2
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/t/results/include/value_expansion_in_include.pl?cvsroot=texinfo&r1=1.1&r2=1.2
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/t/results/macro/macro_in_index_commands.pl?cvsroot=texinfo&r1=1.4&r2=1.5
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/t/results/macro/macro_in_misc_commands.pl?cvsroot=texinfo&r1=1.8&r2=1.9
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/t/results/macro/text_before_after.pl?cvsroot=texinfo&r1=1.6&r2=1.7
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/t/results/misc_commands/also_not_line.pl?cvsroot=texinfo&r1=1.8&r2=1.9
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/t/results/misc_commands/bad.pl?cvsroot=texinfo&r1=1.6&r2=1.7
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/t/results/misc_commands/contents.pl?cvsroot=texinfo&r1=1.5&r2=1.6
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/t/results/misc_commands/definfoenclose.pl?cvsroot=texinfo&r1=1.11&r2=1.12
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/t/results/misc_commands/many_lines.pl?cvsroot=texinfo&r1=1.7&r2=1.8
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/t/results/value/value_in_misc_commands.pl?cvsroot=texinfo&r1=1.6&r2=1.7
Patches:
Index: TODO
===================================================================
RCS file: /sources/texinfo/texinfo/tp/TODO,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -b -r1.24 -r1.25
--- TODO 18 Oct 2010 00:16:50 -0000 1.24
+++ TODO 18 Oct 2010 22:09:09 -0000 1.25
@@ -15,7 +15,6 @@
@heading A heading
@end example
-
test invalid, especially commands not closed/bad nesting
test root_commands, like nodes and sections
Index: Texinfo/Parser.pm
===================================================================
RCS file: /sources/texinfo/texinfo/tp/Texinfo/Parser.pm,v
retrieving revision 1.80
retrieving revision 1.81
diff -u -b -r1.80 -r1.81
--- Texinfo/Parser.pm 18 Oct 2010 00:16:50 -0000 1.80
+++ Texinfo/Parser.pm 18 Oct 2010 22:09:09 -0000 1.81
@@ -94,7 +94,6 @@
'bye' => 'skipline', # no arg
# set, clear
'set' => 'special', # special arg
- #'clear' => {'arg' => 1, 'skip' => 'line'}, # special arg
'clear' => 'special', # special arg
'unmacro' => 'special',
# comments
@@ -107,23 +106,22 @@
'columnfractions' => 1,
# file names
'setfilename' => 'line',
- 'verbatiminclude'=> 'line',
- 'include'=> 'line',
+ 'verbatiminclude' => 'line',
+ 'include' => 'line',
'raisesections' => 'skipline', # no arg
'lowersections' => 'skipline', # no arg
'contents' => 'noarg', # no arg
'shortcontents' => 'noarg', # no arg
- 'summarycontents'=> 'noarg', # no arg
- 'insertcopying'=> 'noarg', # no arg
+ 'summarycontents' => 'noarg', # no arg
+ 'insertcopying' => 'noarg', # no arg
'clickstyle' => 'special', # arg should be an @-command
# more relevant in preamble
- #'documentencoding' => {'arg' => 1, 'skip' => 'line'},
- 'documentencoding' => 'line',
+ 'documentencoding' => 'line', # or 1?
'setcontentsaftertitlepage' => 'skipline', # no arg
'setshortcontentsaftertitlepage' => 'skipline', # no arg
'novalidate' => 'skipline', # no arg
- 'dircategory'=> 'line', # line. Position with regard
+ 'dircategory' => 'line', # line. Position with regard
# with direntry is significant
'pagesizes' => 'line', # can have 2 args
# or one? 200mm,150mm 11.5in
@@ -131,21 +129,19 @@
'paragraphindent' => 1, # arg none asis
# or a number and forbids anything else on the line
'firstparagraphindent' => 1, # none insert
- 'frenchspacing' => => 1, # on off
- # not so sure about 'skip' => 'line'
+ 'frenchspacing' => 1, # on off
'fonttextsize' => 1, # 10 11
'allowcodebreaks' => 1, # false or true
'exampleindent' => 1, # asis or a number
- 'footnotestyle'=> 1, # end and separate
- # and nothing else on the line
+ 'footnotestyle' => 1, # end and separate, nothing else on the line
'afourpaper' => 'skipline', # no arg
'afivepaper' => 'skipline', # no arg
'afourlatex' => 'skipline', # no arg
'afourwide' => 'skipline', # no arg
- 'headings'=> 1,
- #off on single double singleafter doubleafter
+ 'headings' => 1, #off on single double singleafter doubleafter
# interacts with setchapternewpage
'setchapternewpage' => 1, # off on odd
+
# FIXME for the following the @this* commands are not defined. Also
# @value and maybe macro invocations may also be delayed.
'everyheading' => 'lineraw', # @*heading @*footing use @|
@@ -434,8 +430,12 @@
$begin_line_commands{$no_paragraph_command} = 1;
}
+# verbatiminclude is not said to begin at the beginning of the line
+# in the manual
foreach my $misc_not_begin_line ('comment', 'c', 'sp', 'refill',
- 'noindent', 'indent', 'columnfractions') {
+ 'noindent', 'indent', 'columnfractions',
+ 'tab', 'item', 'headitem', 'verbatiminclude',
+ 'vskip') {
delete $begin_line_commands{$misc_not_begin_line};
}
@@ -1946,7 +1946,11 @@
}
}
- _abort_empty_line ($self, $current);
+ if (not _abort_empty_line ($self, $current)
+ and $begin_line_commands{$command}) {
+ _line_warn($self, sprintf($self->__("address@hidden should only
appear at a line beginning"),
+ $command), $line_nr);
+ }
if ($command eq 'end') {
# REMACRO
Index: Texinfo/Convert/Text.pm
===================================================================
RCS file: /sources/texinfo/texinfo/tp/Texinfo/Convert/Text.pm,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -b -r1.5 -r1.6
--- Texinfo/Convert/Text.pm 18 Oct 2010 00:16:52 -0000 1.5
+++ Texinfo/Convert/Text.pm 18 Oct 2010 22:09:09 -0000 1.6
@@ -30,10 +30,11 @@
# names by default without a very good reason. Use EXPORT_OK instead.
# Do not simply export all your public functions/methods/constants.
-# This allows declaration use Texinfo::Parser ':all';
+# This allows declaration use Texinfo::Covert::Text ':all';
# If you do not need this, moving things directly into @EXPORT or @EXPORT_OK
# will save memory.
%EXPORT_TAGS = ( 'all' => [ qw(
+ convert
) ] );
@EXPORT_OK = ( @{ $EXPORT_TAGS{'all'} } );
Index: t/results/include/double_include.pl
===================================================================
RCS file: /sources/texinfo/texinfo/tp/t/results/include/double_include.pl,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- t/results/include/double_include.pl 18 Oct 2010 00:16:52 -0000 1.1
+++ t/results/include/double_include.pl 18 Oct 2010 22:09:09 -0000 1.2
@@ -54,6 +54,15 @@
$result_errors{'double_include'} = [
{
+ 'error_line' => ':2: warning: @include should only appear at a line
beginning
+',
+ 'file_name' => '',
+ 'line_nr' => 2,
+ 'macro' => '',
+ 'text' => '@include should only appear at a line beginning',
+ 'type' => 'warning'
+ },
+ {
'error_line' => 'inc_file.texi:2: @include: Cannot find inc_file.texi In
included file.
',
'file_name' => 't/include//inc_file.texi',
Index: t/results/include/value_expansion_in_include.pl
===================================================================
RCS file:
/sources/texinfo/texinfo/tp/t/results/include/value_expansion_in_include.pl,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- t/results/include/value_expansion_in_include.pl 17 Oct 2010 19:59:32
-0000 1.1
+++ t/results/include/value_expansion_in_include.pl 18 Oct 2010 22:09:09
-0000 1.2
@@ -488,6 +488,34 @@
test_var verbatiminclude: ';
-$result_errors{'value_expansion_in_include'} = [];
+$result_errors{'value_expansion_in_include'} = [
+ {
+ 'error_line' => ':12: warning: @include should only appear at a line
beginning
+',
+ 'file_name' => '',
+ 'line_nr' => 12,
+ 'macro' => '',
+ 'text' => '@include should only appear at a line beginning',
+ 'type' => 'warning'
+ },
+ {
+ 'error_line' => ':17: warning: @include should only appear at a line
beginning
+',
+ 'file_name' => '',
+ 'line_nr' => 17,
+ 'macro' => '',
+ 'text' => '@include should only appear at a line beginning',
+ 'type' => 'warning'
+ },
+ {
+ 'error_line' => ':22: warning: @include should only appear at a line
beginning
+',
+ 'file_name' => '',
+ 'line_nr' => 22,
+ 'macro' => '',
+ 'text' => '@include should only appear at a line beginning',
+ 'type' => 'warning'
+ }
+];
Index: t/results/macro/macro_in_index_commands.pl
===================================================================
RCS file:
/sources/texinfo/texinfo/tp/t/results/macro/macro_in_index_commands.pl,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -b -r1.4 -r1.5
--- t/results/macro/macro_in_index_commands.pl 17 Oct 2010 10:50:46 -0000
1.4
+++ t/results/macro/macro_in_index_commands.pl 18 Oct 2010 22:09:09 -0000
1.5
@@ -1703,6 +1703,16 @@
fn
';
-$result_errors{'macro_in_index_commands'} = [];
+$result_errors{'macro_in_index_commands'} = [
+ {
+ 'error_line' => ':21: warning: @documentlanguage should only appear at a
line beginning
+',
+ 'file_name' => '',
+ 'line_nr' => 21,
+ 'macro' => '',
+ 'text' => '@documentlanguage should only appear at a line beginning',
+ 'type' => 'warning'
+ }
+];
Index: t/results/macro/macro_in_misc_commands.pl
===================================================================
RCS file:
/sources/texinfo/texinfo/tp/t/results/macro/macro_in_misc_commands.pl,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -b -r1.8 -r1.9
--- t/results/macro/macro_in_misc_commands.pl 18 Oct 2010 00:16:52 -0000
1.8
+++ t/results/macro/macro_in_misc_commands.pl 18 Oct 2010 22:09:09 -0000
1.9
@@ -3325,6 +3325,34 @@
';
-$result_errors{'macro_in_misc_commands'} = [];
+$result_errors{'macro_in_misc_commands'} = [
+ {
+ 'error_line' => ':45: warning: @definfoenclose should only appear at a
line beginning
+',
+ 'file_name' => '',
+ 'line_nr' => 45,
+ 'macro' => '',
+ 'text' => '@definfoenclose should only appear at a line beginning',
+ 'type' => 'warning'
+ },
+ {
+ 'error_line' => ':149: warning: @page should only appear at a line
beginning (possibly involving @page-macro)
+',
+ 'file_name' => '',
+ 'line_nr' => 149,
+ 'macro' => 'page-macro',
+ 'text' => '@page should only appear at a line beginning',
+ 'type' => 'warning'
+ },
+ {
+ 'error_line' => ':160: warning: @page should only appear at a line
beginning (possibly involving @page-macro)
+',
+ 'file_name' => '',
+ 'line_nr' => 160,
+ 'macro' => 'page-macro',
+ 'text' => '@page should only appear at a line beginning',
+ 'type' => 'warning'
+ }
+];
Index: t/results/macro/text_before_after.pl
===================================================================
RCS file: /sources/texinfo/texinfo/tp/t/results/macro/text_before_after.pl,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -b -r1.6 -r1.7
--- t/results/macro/text_before_after.pl 17 Oct 2010 10:50:47 -0000
1.6
+++ t/results/macro/text_before_after.pl 18 Oct 2010 22:09:09 -0000
1.7
@@ -66,6 +66,16 @@
$result_texts{'text_before_after'} = 'before after
';
-$result_errors{'text_before_after'} = [];
+$result_errors{'text_before_after'} = [
+ {
+ 'error_line' => ':1: warning: @macro should only appear at a line beginning
+',
+ 'file_name' => '',
+ 'line_nr' => 1,
+ 'macro' => '',
+ 'text' => '@macro should only appear at a line beginning',
+ 'type' => 'warning'
+ }
+];
Index: t/results/misc_commands/also_not_line.pl
===================================================================
RCS file: /sources/texinfo/texinfo/tp/t/results/misc_commands/also_not_line.pl,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -b -r1.8 -r1.9
--- t/results/misc_commands/also_not_line.pl 17 Oct 2010 10:50:47 -0000
1.8
+++ t/results/misc_commands/also_not_line.pl 18 Oct 2010 22:09:10 -0000
1.9
@@ -405,6 +405,52 @@
exdent line after exdent
';
-$result_errors{'also_not_line'} = [];
+$result_errors{'also_not_line'} = [
+ {
+ 'error_line' => ':3: warning: @page should only appear at a line beginning
+',
+ 'file_name' => '',
+ 'line_nr' => 3,
+ 'macro' => '',
+ 'text' => '@page should only appear at a line beginning',
+ 'type' => 'warning'
+ },
+ {
+ 'error_line' => ':14: warning: @page should only appear at a line beginning
+',
+ 'file_name' => '',
+ 'line_nr' => 14,
+ 'macro' => '',
+ 'text' => '@page should only appear at a line beginning',
+ 'type' => 'warning'
+ },
+ {
+ 'error_line' => ':16: warning: @novalidate should only appear at a line
beginning
+',
+ 'file_name' => '',
+ 'line_nr' => 16,
+ 'macro' => '',
+ 'text' => '@novalidate should only appear at a line beginning',
+ 'type' => 'warning'
+ },
+ {
+ 'error_line' => ':22: warning: @cropmarks should only appear at a line
beginning
+',
+ 'file_name' => '',
+ 'line_nr' => 22,
+ 'macro' => '',
+ 'text' => '@cropmarks should only appear at a line beginning',
+ 'type' => 'warning'
+ },
+ {
+ 'error_line' => ':24: warning: @exdent should only appear at a line
beginning
+',
+ 'file_name' => '',
+ 'line_nr' => 24,
+ 'macro' => '',
+ 'text' => '@exdent should only appear at a line beginning',
+ 'type' => 'warning'
+ }
+];
Index: t/results/misc_commands/bad.pl
===================================================================
RCS file: /sources/texinfo/texinfo/tp/t/results/misc_commands/bad.pl,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -b -r1.6 -r1.7
--- t/results/misc_commands/bad.pl 17 Oct 2010 10:50:47 -0000 1.6
+++ t/results/misc_commands/bad.pl 18 Oct 2010 22:09:10 -0000 1.7
@@ -51,6 +51,15 @@
$result_errors{'bad'} = [
{
+ 'error_line' => ':1: warning: @kbdinputstyle should only appear at a line
beginning
+',
+ 'file_name' => '',
+ 'line_nr' => 1,
+ 'macro' => '',
+ 'text' => '@kbdinputstyle should only appear at a line beginning',
+ 'type' => 'warning'
+ },
+ {
'error_line' => ':1: @kbdinputstyle arg must be
`code\'/`example\'/`distinct\', not `wrong arg on line following kbdinputstyle
\'
',
Index: t/results/misc_commands/contents.pl
===================================================================
RCS file: /sources/texinfo/texinfo/tp/t/results/misc_commands/contents.pl,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -b -r1.5 -r1.6
--- t/results/misc_commands/contents.pl 17 Oct 2010 10:50:47 -0000 1.5
+++ t/results/misc_commands/contents.pl 18 Oct 2010 22:09:10 -0000 1.6
@@ -165,6 +165,52 @@
summarycontents line following summarycontents
';
-$result_errors{'contents'} = [];
+$result_errors{'contents'} = [
+ {
+ 'error_line' => ':2: warning: @contents should only appear at a line
beginning
+',
+ 'file_name' => '',
+ 'line_nr' => 2,
+ 'macro' => '',
+ 'text' => '@contents should only appear at a line beginning',
+ 'type' => 'warning'
+ },
+ {
+ 'error_line' => ':3: warning: @contents should only appear at a line
beginning
+',
+ 'file_name' => '',
+ 'line_nr' => 3,
+ 'macro' => '',
+ 'text' => '@contents should only appear at a line beginning',
+ 'type' => 'warning'
+ },
+ {
+ 'error_line' => ':7: warning: @shortcontents should only appear at a line
beginning
+',
+ 'file_name' => '',
+ 'line_nr' => 7,
+ 'macro' => '',
+ 'text' => '@shortcontents should only appear at a line beginning',
+ 'type' => 'warning'
+ },
+ {
+ 'error_line' => ':8: warning: @shortcontents should only appear at a line
beginning
+',
+ 'file_name' => '',
+ 'line_nr' => 8,
+ 'macro' => '',
+ 'text' => '@shortcontents should only appear at a line beginning',
+ 'type' => 'warning'
+ },
+ {
+ 'error_line' => ':9: warning: @summarycontents should only appear at a
line beginning
+',
+ 'file_name' => '',
+ 'line_nr' => 9,
+ 'macro' => '',
+ 'text' => '@summarycontents should only appear at a line beginning',
+ 'type' => 'warning'
+ }
+];
Index: t/results/misc_commands/definfoenclose.pl
===================================================================
RCS file:
/sources/texinfo/texinfo/tp/t/results/misc_commands/definfoenclose.pl,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -b -r1.11 -r1.12
--- t/results/misc_commands/definfoenclose.pl 18 Oct 2010 00:16:52 -0000
1.11
+++ t/results/misc_commands/definfoenclose.pl 18 Oct 2010 22:09:10 -0000
1.12
@@ -358,6 +358,25 @@
is it really strong?
';
-$result_errors{'definfoenclose'} = [];
+$result_errors{'definfoenclose'} = [
+ {
+ 'error_line' => ':2: warning: @definfoenclose should only appear at a line
beginning
+',
+ 'file_name' => '',
+ 'line_nr' => 2,
+ 'macro' => '',
+ 'text' => '@definfoenclose should only appear at a line beginning',
+ 'type' => 'warning'
+ },
+ {
+ 'error_line' => ':6: warning: @definfoenclose should only appear at a line
beginning
+',
+ 'file_name' => '',
+ 'line_nr' => 6,
+ 'macro' => '',
+ 'text' => '@definfoenclose should only appear at a line beginning',
+ 'type' => 'warning'
+ }
+];
Index: t/results/misc_commands/many_lines.pl
===================================================================
RCS file: /sources/texinfo/texinfo/tp/t/results/misc_commands/many_lines.pl,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -b -r1.7 -r1.8
--- t/results/misc_commands/many_lines.pl 17 Oct 2010 10:50:47 -0000
1.7
+++ t/results/misc_commands/many_lines.pl 18 Oct 2010 22:09:10 -0000
1.8
@@ -1135,6 +1135,322 @@
Line after finalout
';
-$result_errors{'many_lines'} = [];
+$result_errors{'many_lines'} = [
+ {
+ 'error_line' => ':1: warning: @pagesizes should only appear at a line
beginning
+',
+ 'file_name' => '',
+ 'line_nr' => 1,
+ 'macro' => '',
+ 'text' => '@pagesizes should only appear at a line beginning',
+ 'type' => 'warning'
+ },
+ {
+ 'error_line' => ':2: warning: @afourpaper should only appear at a line
beginning
+',
+ 'file_name' => '',
+ 'line_nr' => 2,
+ 'macro' => '',
+ 'text' => '@afourpaper should only appear at a line beginning',
+ 'type' => 'warning'
+ },
+ {
+ 'error_line' => ':3: warning: @smallbook should only appear at a line
beginning
+',
+ 'file_name' => '',
+ 'line_nr' => 3,
+ 'macro' => '',
+ 'text' => '@smallbook should only appear at a line beginning',
+ 'type' => 'warning'
+ },
+ {
+ 'error_line' => ':4: warning: @headings should only appear at a line
beginning
+',
+ 'file_name' => '',
+ 'line_nr' => 4,
+ 'macro' => '',
+ 'text' => '@headings should only appear at a line beginning',
+ 'type' => 'warning'
+ },
+ {
+ 'error_line' => ':5: warning: @oddfooting should only appear at a line
beginning
+',
+ 'file_name' => '',
+ 'line_nr' => 5,
+ 'macro' => '',
+ 'text' => '@oddfooting should only appear at a line beginning',
+ 'type' => 'warning'
+ },
+ {
+ 'error_line' => ':6: warning: @everyheading should only appear at a line
beginning
+',
+ 'file_name' => '',
+ 'line_nr' => 6,
+ 'macro' => '',
+ 'text' => '@everyheading should only appear at a line beginning',
+ 'type' => 'warning'
+ },
+ {
+ 'error_line' => ':7: warning: @everyfooting should only appear at a line
beginning
+',
+ 'file_name' => '',
+ 'line_nr' => 7,
+ 'macro' => '',
+ 'text' => '@everyfooting should only appear at a line beginning',
+ 'type' => 'warning'
+ },
+ {
+ 'error_line' => ':8: warning: @evenheading should only appear at a line
beginning
+',
+ 'file_name' => '',
+ 'line_nr' => 8,
+ 'macro' => '',
+ 'text' => '@evenheading should only appear at a line beginning',
+ 'type' => 'warning'
+ },
+ {
+ 'error_line' => ':9: warning: @evenfooting should only appear at a line
beginning
+',
+ 'file_name' => '',
+ 'line_nr' => 9,
+ 'macro' => '',
+ 'text' => '@evenfooting should only appear at a line beginning',
+ 'type' => 'warning'
+ },
+ {
+ 'error_line' => ':10: warning: @oddheading should only appear at a line
beginning
+',
+ 'file_name' => '',
+ 'line_nr' => 10,
+ 'macro' => '',
+ 'text' => '@oddheading should only appear at a line beginning',
+ 'type' => 'warning'
+ },
+ {
+ 'error_line' => ':11: warning: @need should only appear at a line beginning
+',
+ 'file_name' => '',
+ 'line_nr' => 11,
+ 'macro' => '',
+ 'text' => '@need should only appear at a line beginning',
+ 'type' => 'warning'
+ },
+ {
+ 'error_line' => ':12: warning: @need should only appear at a line beginning
+',
+ 'file_name' => '',
+ 'line_nr' => 12,
+ 'macro' => '',
+ 'text' => '@need should only appear at a line beginning',
+ 'type' => 'warning'
+ },
+ {
+ 'error_line' => ':13: warning: @setchapternewpage should only appear at a
line beginning
+',
+ 'file_name' => '',
+ 'line_nr' => 13,
+ 'macro' => '',
+ 'text' => '@setchapternewpage should only appear at a line beginning',
+ 'type' => 'warning'
+ },
+ {
+ 'error_line' => ':14: warning: @raisesections should only appear at a line
beginning
+',
+ 'file_name' => '',
+ 'line_nr' => 14,
+ 'macro' => '',
+ 'text' => '@raisesections should only appear at a line beginning',
+ 'type' => 'warning'
+ },
+ {
+ 'error_line' => ':15: warning: @lowersections should only appear at a line
beginning
+',
+ 'file_name' => '',
+ 'line_nr' => 15,
+ 'macro' => '',
+ 'text' => '@lowersections should only appear at a line beginning',
+ 'type' => 'warning'
+ },
+ {
+ 'error_line' => ':16: warning: @kbdinputstyle should only appear at a line
beginning
+',
+ 'file_name' => '',
+ 'line_nr' => 16,
+ 'macro' => '',
+ 'text' => '@kbdinputstyle should only appear at a line beginning',
+ 'type' => 'warning'
+ },
+ {
+ 'error_line' => ':17: warning: @afourpaper should only appear at a line
beginning
+',
+ 'file_name' => '',
+ 'line_nr' => 17,
+ 'macro' => '',
+ 'text' => '@afourpaper should only appear at a line beginning',
+ 'type' => 'warning'
+ },
+ {
+ 'error_line' => ':18: warning: @afourlatex should only appear at a line
beginning
+',
+ 'file_name' => '',
+ 'line_nr' => 18,
+ 'macro' => '',
+ 'text' => '@afourlatex should only appear at a line beginning',
+ 'type' => 'warning'
+ },
+ {
+ 'error_line' => ':19: warning: @afourwide should only appear at a line
beginning
+',
+ 'file_name' => '',
+ 'line_nr' => 19,
+ 'macro' => '',
+ 'text' => '@afourwide should only appear at a line beginning',
+ 'type' => 'warning'
+ },
+ {
+ 'error_line' => ':20: warning: @paragraphindent should only appear at a
line beginning
+',
+ 'file_name' => '',
+ 'line_nr' => 20,
+ 'macro' => '',
+ 'text' => '@paragraphindent should only appear at a line beginning',
+ 'type' => 'warning'
+ },
+ {
+ 'error_line' => ':21: warning: @paragraphindent should only appear at a
line beginning
+',
+ 'file_name' => '',
+ 'line_nr' => 21,
+ 'macro' => '',
+ 'text' => '@paragraphindent should only appear at a line beginning',
+ 'type' => 'warning'
+ },
+ {
+ 'error_line' => ':22: warning: @paragraphindent should only appear at a
line beginning
+',
+ 'file_name' => '',
+ 'line_nr' => 22,
+ 'macro' => '',
+ 'text' => '@paragraphindent should only appear at a line beginning',
+ 'type' => 'warning'
+ },
+ {
+ 'error_line' => ':23: warning: @paragraphindent should only appear at a
line beginning
+',
+ 'file_name' => '',
+ 'line_nr' => 23,
+ 'macro' => '',
+ 'text' => '@paragraphindent should only appear at a line beginning',
+ 'type' => 'warning'
+ },
+ {
+ 'error_line' => ':24: warning: @firstparagraphindent should only appear at
a line beginning
+',
+ 'file_name' => '',
+ 'line_nr' => 24,
+ 'macro' => '',
+ 'text' => '@firstparagraphindent should only appear at a line beginning',
+ 'type' => 'warning'
+ },
+ {
+ 'error_line' => ':25: warning: @exampleindent should only appear at a line
beginning
+',
+ 'file_name' => '',
+ 'line_nr' => 25,
+ 'macro' => '',
+ 'text' => '@exampleindent should only appear at a line beginning',
+ 'type' => 'warning'
+ },
+ {
+ 'error_line' => ':26: warning: @exampleindent should only appear at a line
beginning
+',
+ 'file_name' => '',
+ 'line_nr' => 26,
+ 'macro' => '',
+ 'text' => '@exampleindent should only appear at a line beginning',
+ 'type' => 'warning'
+ },
+ {
+ 'error_line' => ':27: warning: @footnotestyle should only appear at a line
beginning
+',
+ 'file_name' => '',
+ 'line_nr' => 27,
+ 'macro' => '',
+ 'text' => '@footnotestyle should only appear at a line beginning',
+ 'type' => 'warning'
+ },
+ {
+ 'error_line' => ':28: warning: @footnotestyle should only appear at a line
beginning
+',
+ 'file_name' => '',
+ 'line_nr' => 28,
+ 'macro' => '',
+ 'text' => '@footnotestyle should only appear at a line beginning',
+ 'type' => 'warning'
+ },
+ {
+ 'error_line' => ':29: warning: @documentencoding should only appear at a
line beginning
+',
+ 'file_name' => '',
+ 'line_nr' => 29,
+ 'macro' => '',
+ 'text' => '@documentencoding should only appear at a line beginning',
+ 'type' => 'warning'
+ },
+ {
+ 'error_line' => ':31: warning: @frenchspacing should only appear at a line
beginning
+',
+ 'file_name' => '',
+ 'line_nr' => 31,
+ 'macro' => '',
+ 'text' => '@frenchspacing should only appear at a line beginning',
+ 'type' => 'warning'
+ },
+ {
+ 'error_line' => ':32: warning: @frenchspacing should only appear at a line
beginning
+',
+ 'file_name' => '',
+ 'line_nr' => 32,
+ 'macro' => '',
+ 'text' => '@frenchspacing should only appear at a line beginning',
+ 'type' => 'warning'
+ },
+ {
+ 'error_line' => ':33: warning: @fonttextsize should only appear at a line
beginning
+',
+ 'file_name' => '',
+ 'line_nr' => 33,
+ 'macro' => '',
+ 'text' => '@fonttextsize should only appear at a line beginning',
+ 'type' => 'warning'
+ },
+ {
+ 'error_line' => ':34: warning: @everyheadingmarks should only appear at a
line beginning
+',
+ 'file_name' => '',
+ 'line_nr' => 34,
+ 'macro' => '',
+ 'text' => '@everyheadingmarks should only appear at a line beginning',
+ 'type' => 'warning'
+ },
+ {
+ 'error_line' => ':38: warning: @finalout should only appear at a line
beginning
+',
+ 'file_name' => '',
+ 'line_nr' => 38,
+ 'macro' => '',
+ 'text' => '@finalout should only appear at a line beginning',
+ 'type' => 'warning'
+ },
+ {
+ 'error_line' => ':40: warning: @finalout should only appear at a line
beginning
+',
+ 'file_name' => '',
+ 'line_nr' => 40,
+ 'macro' => '',
+ 'text' => '@finalout should only appear at a line beginning',
+ 'type' => 'warning'
+ }
+];
Index: t/results/value/value_in_misc_commands.pl
===================================================================
RCS file:
/sources/texinfo/texinfo/tp/t/results/value/value_in_misc_commands.pl,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -b -r1.6 -r1.7
--- t/results/value/value_in_misc_commands.pl 18 Oct 2010 00:16:52 -0000
1.6
+++ t/results/value/value_in_misc_commands.pl 18 Oct 2010 22:09:10 -0000
1.7
@@ -2836,6 +2836,42 @@
$result_errors{'value_in_misc_commands'} = [
{
+ 'error_line' => ':34: warning: @definfoenclose should only appear at a
line beginning
+',
+ 'file_name' => '',
+ 'line_nr' => 34,
+ 'macro' => '',
+ 'text' => '@definfoenclose should only appear at a line beginning',
+ 'type' => 'warning'
+ },
+ {
+ 'error_line' => ':88: warning: @documentlanguage should only appear at a
line beginning
+',
+ 'file_name' => '',
+ 'line_nr' => 88,
+ 'macro' => '',
+ 'text' => '@documentlanguage should only appear at a line beginning',
+ 'type' => 'warning'
+ },
+ {
+ 'error_line' => ':115: warning: @page should only appear at a line
beginning
+',
+ 'file_name' => '',
+ 'line_nr' => 115,
+ 'macro' => '',
+ 'text' => '@page should only appear at a line beginning',
+ 'type' => 'warning'
+ },
+ {
+ 'error_line' => ':125: warning: @page should only appear at a line
beginning
+',
+ 'file_name' => '',
+ 'line_nr' => 125,
+ 'macro' => '',
+ 'text' => '@page should only appear at a line beginning',
+ 'type' => 'warning'
+ },
+ {
'error_line' => ':143: warning: Remaining argument on @clickstyle line:
{result_macro}
',
'file_name' => '',