[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[8360] %line_commands %other_commands
From: |
gavinsmith0123 |
Subject: |
[8360] %line_commands %other_commands |
Date: |
Sun, 21 Oct 2018 05:36:42 -0400 (EDT) |
Revision: 8360
http://svn.sv.gnu.org/viewvc/?view=rev&root=texinfo&revision=8360
Author: gavin
Date: 2018-10-21 05:36:41 -0400 (Sun, 21 Oct 2018)
Log Message:
-----------
%line_commands %other_commands
Modified Paths:
--------------
trunk/ChangeLog
trunk/tp/Texinfo/Common.pm
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2018-10-20 19:27:24 UTC (rev 8359)
+++ trunk/ChangeLog 2018-10-21 09:36:41 UTC (rev 8360)
@@ -1,5 +1,9 @@
2018-10-20 Gavin Smith <address@hidden>
+ * tp/Texinfo/Common.pm (%line_commands): Change a comment.
+
+2018-10-20 Gavin Smith <address@hidden>
+
* tp/Texinfo/Common.pm (%other_commands): Remove 'itemx'.
@itemx is always a line command.
* tp/Texinfo/Parser.pm (_parse_texi) <misc commands>:
Modified: trunk/tp/Texinfo/Common.pm
===================================================================
--- trunk/tp/Texinfo/Common.pm 2018-10-20 19:27:24 UTC (rev 8359)
+++ trunk/tp/Texinfo/Common.pm 2018-10-21 09:36:41 UTC (rev 8360)
@@ -494,7 +494,7 @@
# formatting
'exdent' => 'line',
'item' => 'line', # or skipspace, depending on the context
- 'itemx' => 'line', # or skipspace, depending on the context
+ 'itemx' => 'line',
# not valid for info (should be in @iftex)
'vskip' => 'lineraw', # arg line in TeX
# obsolete @-commands.
@@ -514,17 +514,18 @@
'headitem' => 'skipspace',
'item' => 'skipspace', # or line, depending on the context
'tab' => 'skipspace',
- # only valid in heading or footing
- 'thischapter' => 'noarg',
- 'thischaptername' => 'noarg',
- 'thischapternum' => 'noarg',
- 'thisfile' => 'noarg',
- 'thispage' => 'noarg',
- 'thistitle' => 'noarg',
- # obsolete @-commands.
- 'refill' => 'noarg',
+ 'refill' => 'noarg', # obsolete
);
+# only valid in heading or footing
+our %in_heading_commands;
+foreach my $in_heading_command ('thischapter', 'thischaptername',
+ 'thischapternum', 'thisfile', 'thispage', 'thistitle') {
+ $in_heading_commands{$in_heading_command} = 1;
+
+ $other_commands{$in_heading_command} = 'noarg';
+}
+
our %index_names = (
'cp' => {'in_code' => 0},
'fn' => {'in_code' => 1},
@@ -666,12 +667,6 @@
}
-our %in_heading_commands;
-foreach my $in_heading_command ('thischapter', 'thischaptername',
- 'thischapternum', 'thisfile', 'thispage', 'thistitle') {
- $in_heading_commands{$in_heading_command} = 1;
-}
-
# brace command that is not replaced with text.
my %unformatted_brace_commands;
foreach my $unformatted_brace_command ('anchor', 'shortcaption',
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [8360] %line_commands %other_commands,
gavinsmith0123 <=