2019-01-04 Gavin Smith <gavinsmith0123@gmail.com>
pretest 6.5.91.
* configure.ac: version
2019-01-13 Gavin Smith <gavinsmith0123@gmail.com>
* info/man.c: Include stdio.h.
2019-01-12 Hans-Bernhard Bröker <HBBroeker@t-online.de> (tiny change)
Fix some warnings.
* tp/Texinfo/XS/parsetexi/close.c: Initialize a variable.
2019-01-12 Hans-Bernhard Bröker <HBBroeker@t-online.de> (tiny change)
Fix some warnings.
* tp/Texinfo/XS/parsetexi/end_line.c: Fix an unterminated
comment.
(check_empty_node): Avoid reaching end of undefined function.
* tp/Texinfo/XS/parsetexi/parser.c (register_global_command):
Add default cases.
* tp/Texinfo/XS/parsetexi/multitable.c (gather_previous_item):
Correct enum type in variable declaration.
2019-01-12 Gavin Smith <gavinsmith0123@gmail.com>
Remove unused variables.
* tp/Texinfo/XS/parsetexi/api.c (element_to_perl_hash),
* tp/Texinfo/XS/parsetexi/parser.c (register_global_command)
(process_remaining_on_line),
* tp/Texinfo/XS/parsetexi/convert.c (expand_cmd_args_to_texi),
* tp/Texinfo/XS/parsetexi/end_line.c (parse_line_command_args)
(end_line_starting_block, end_line_misc_line),
* tp/Texinfo/XS/parsetexi/macro.c (expand_macro_body),
* tp/Texinfo/XS/parsetexi/handle_commands.c (handle_other_command),
* tp/Texinfo/XS/parsetexi/def.c (split_delimiters, split_def_args)
(parse_def): Remove declarations of unused variables.
2019-01-12 Gavin Smith <gavinsmith0123@gmail.com>
Remove an unused variable.
* tp/Texinfo/ParserNonXS.pm (_parse_texi): Remove an unused
variable.
2019-01-12 Gavin Smith <gavinsmith0123@gmail.com>
Add a default case.
* tp/Texinfo/XS/parsetexi/parser.c (process_remaining_on_line):
Add an empty default clause in switch block.
2019-01-12 Gavin Smith <gavinsmith0123@gmail.com>
* tp/Texinfo/XS/parsetexi: Fix implicit function declarations.
2019-01-07 Gavin Smith <gavinsmith0123@gmail.com>
Make Parsetexi XS module conditional on iconv.
* tp/Texinfo/XS/configure.ac: Add an AM_CONDITIONAL checking
whether gnulib found that iconv worked.
* tp/Texinfo/XS/Makefile.am: Make building Parsetexi module
conditional.
2019-01-07 Gavin Smith <gavinsmith0123@gmail.com>
Set PERL_EXT_var in configure.ac.
* tp/Texinfo/XS/configure.ac,
* tp/Texinfo/XS/Makefile.am: Move setting of CFLAGS, CPPFLAGS
and LDFLAGS from PERL_EXT_CFLAGS, PERL_EXT_CPPFLAGS and
PERL_EXT_LDFLAGS from Makefile.am to configure.ac in order that
they are used during the Gnulib checks. Report from Bruno Haible.
2019-01-07 Gavin Smith <gavinsmith0123@gmail.com>
No buffering for pseudotty output.
* info/pseudotty.c: Set VMIN value on the c_cc array in the
termios structure to 1, meaning 'read' can return with a single
byte. (The default value on Solaris 10 was found to be 4, which
may be C-d for end-of-file.) Also set VTIME to 0.
2019-01-07 Gavin Smith <gavinsmith0123@gmail.com>
Turn off canonical input processing in pseudotty.
* info/pseudotty.c [HAVE_TERMIOS_H]: Clear the ICANON and ECHO
flags.
In the test suite, if bytes were passed through the pseudotty
program before ginfo could make this change, they could be
subject to undesired processing. This was not apparent as info
treated '\n' the same as '\r'. This could be shown by using a
"dribble" file and inserting a "sleep" in one of the test scripts.
Tests were failing on Solaris 10 and Solaris 11 because bytes
that were supposed to be sent to ginfo were being buffered,
awaiting a newline.
2019-01-07 Gavin Smith <gavinsmith0123@gmail.com>
Do not send debug output to infodebug file.
* info/session.c (vinfo_debug): Always sent debugging output to
stderr.
(close_debugfile, debug_file): Remove.
* doc/info-stnd.texi (Invoking Info): Update.
* NEWS: Mention change.
This is to make all the debugging output from info appear
together in a log files when output is diverted from a test
script.
2019-01-07 Gavin Smith <gavinsmith0123@gmail.com>
Avoid possible infinite loop in info test suite.
* info/t/replace-viewed.sh: Replace a loop that waits for ginfo
to create a file with a "sleep" statement. If the file weren't
created, this would be an infinte loop.
2019-01-07 Gavin Smith <gavinsmith0123@gmail.com>
Remove useless code in info test suite.
* info/t/replace-viewed.sh,
* info/t/resize-in-completions: Do not check for a variable
having a value that no code sets it to. This has been the case
since the way the PID of the process was found changed.
2019-01-06 Gavin Smith <gavinsmith0123@gmail.com>
Fix info tests under Solaris.
* info/pseudotty.c [__sun]: Additionally perform a "ttycompat"
ioctl on the slave fd. This is what is done in the gnulib
openpty module. Since these ioctls were no longer guarded by
isatty, it would lead to some of the info tests failing. I
don't know under what conditions the ioctls are actually needed
under Solaris: possibly they aren't needed at all.
2019-01-05 Gavin Smith <gavinsmith0123@gmail.com>
Include iconv.h unconditionally.
* tp/Texinfo/XS/parsetexi/input.c: Do not depend on HAVE_ICONV
for #include <iconv.h>. Use of iconv_t, iconv_open etc. later
on in the file is not conditional, and we don't have a way to
avoid using these. It's possible that gnulib set HAVE_ICONV to
0 because it found that iconv.h was buggy, even if it existed.
2019-01-05 Gavin Smith <gavinsmith0123@gmail.com>
Don't use variable in SOURCES in Makefile.am.
* tp/Texinfo/XS/Makefile.am (Parsetexi_la_SOURCES, BUILT_SOURCES):
Write out "parsetexi" explicitly instead of hiding it inside $p.
Although the latter works with automake 1.16 (which we are
using), the OpenCSW buildbot still uses automake 1.15.1, leading
to build failures.
2019-01-05 Gavin Smith <gavinsmith0123@gmail.com>
Integrate parsetexi with gnulib.
* tp/Texinfo/XS/parsetexi/input.c: Do not define ICONV_CONST.
2019-01-05 Gavin Smith <gavinsmith0123@gmail.com>
Fall back to pure Perl module when TEXINFO_XS_PARSER is set.
* tp/Texinfo/Parser.pm, tp/Texinfo/ParserNonXS.pm: Rename file.
* tp/Texinfo/ParserNonXS.pm: Make module symbols available under
both Texinfo::Parser and Texinfo::ParserNonXS.
* tp/Texinfo/ModulePath.pm.in: If TEXINFO_XS_PARSER is not set,
load Texinfo/ParserNonXS.pm instead of Texinfo/Parser.pm.
* tp/Texinfo/XS/parsetexi/Parsetexi.pm: Pass Texinfo::ParserNonXS
as a fallback module to Texinfo::XSLoader::init. Comment out
line to reset_parser in END block, as this won't work if
Texinfo::ParserNonXS is loaded.
2019-01-05 Gavin Smith <gavinsmith0123@gmail.com>
Fix info test suite hang under HP-UX 11.31.
* info/pseudotty.c [HAVE_STROPTS_H]: Do not call isatty on
pseudoterminal file descriptor. Bruno Haible reported that this
made a test hang. Do not use HAVE_STROPTS_H condition: replace
with "#if defined(__hpux) || defined(__sun)", as is done in
gnulib. Remove some commented-out code.
* configure.ac (AC_CHECK_HEADERS): Do not check for stropts.h.
2019-01-05 Gavin Smith <gavinsmith0123@gmail.com>
Improve XS loading error message.
* tp/Texinfo/XSLoader.pm: Improve error message in the case that
a module couldn't be loaded.
2019-01-05 Bruno Haible <bruno@clisp.org>
Fix build errors on AIX 7.1.
* info/Makefile.am (LDADD),
* install-info/Makefile.am (LDADD): Add $(LIBTHREAD).
2019-01-05 Gavin Smith <gavinsmith0123@gmail.com>
Check for Data::Dumper.
* configure.ac: Check for Data::Dumper as well as Encode. Bruno
Haible reported that Data::Dumper was missing on CentOS 7.3.
2019-01-05 Gavin Smith <gavinsmith0123@gmail.com>
Combine Makefiles for XS modules.
* tp/Texinfo/XS/configure.ac (AC_CONFIG_FILES): Remove Makefile
in parsetexi subdirectory.
* tp/Texinfo/XS/Makefile.am: Merge in contents of
tp/Texinfo/XS/parsetexi/Makefile.am.
* tp/Texinfo/XS/parsetexi/Makefile.am: Remove file.
This means that passing -lperl when linking will always be
conditional on HOST_NEEDS_NO_UNDEFINED.
2019-01-04 Gavin Smith <gavinsmith0123@gmail.com>
pretest 6.5.90.
* configure.ac: version
2019-01-04 Gavin Smith <gavinsmith0123@gmail.com>
* tp/Texinfo/XS/parsetexi: Include config.h in all files.
2019-01-04 Gavin Smith <gavinsmith0123@gmail.com>
Update texinfo-tex-test.texi.
* doc/texinfo-tex-test.texi (Final page of index hard to balance):
Update the description of what the output should look like.
(Changed on 2017-11-16).
2019-01-04 Gavin Smith <gavinsmith0123@gmail.com>
* doc/Makefile.am (EXTRA_DIST): List texinfo-tex-test.WIDOWs.
2019-01-04 Gavin Smith <gavinsmith0123@gmail.com>
Update copyright years.
* info/info.c (main),
* texindex/ti.twjr: 2019.
2019-01-04 Gavin Smith <gavinsmith0123@gmail.com>
Prepare for pretest release.
* util/srclist-txi: Remove EMACSSRC.
Add a per-user override.
* util/srclist.txt: Remove info.texi, as this is not distributed
with Texinfo any more. Update to three-column format used now
by gnulib srclist-update. Update locations of automake files.
* README-hacking: Update instructions for git.
* configure.ac (TEXINFO_DTD_VERSION): Increase to 6.6.
* doc/refcard/txirefcard.tex: Update version and copyright year.
Document @& and @ampchar.
2019-01-04 Gavin Smith <gavinsmith0123@gmail.com>
* NEWS: automake 1.16.
2019-01-03 Gavin Smith <gavinsmith0123@gmail.com>
* README-hacking: Remove some obsolete or personal instructions.
2019-01-03 Gavin Smith <gavinsmith0123@gmail.com>
* info/t/multiple-completions.sh: New test.
2019-01-03 Gavin Smith <gavinsmith0123@gmail.com>
Fix unclosed @inlinefmtifelse.
* tp/Texinfo/XS/parsetexi/separator.c (handle_comma): If we run
out of input inside @inlinefmtifelse, exit the function. This
matches change to Perl code made on 2018-10-29.
2019-01-03 Gavin Smith <gavinsmith0123@gmail.com>
* README-hacking: Update instructions to use git.
2019-01-03 Gavin Smith <gavinsmith0123@gmail.com>
Update gnulib.
* (top-level), tp/Texinfo/XS: Run gnulib-tool --add-import.
2019-01-03 Gavin Smith <gavinsmith0123@gmail.com>
Remove documentation of \ifusebracesinindexes conditional.
* doc/texinfo.tex: Add a comment at definition of
\ifusebracesinindexes.
* doc/texinfo.texi: Remove use of \usebracesinindexestrue.
(Details of texindex): Remove the documentation of it.
* NEWS: Mention that this is not required any more.
2019-01-03 Gavin Smith <gavinsmith0123@gmail.com>
Update refcard.
* doc/refcard/txirefcard.tex: @setfilename is no longer
mandatory. Do not mention @validatemenus or explicitly giving
@node pointers, as these are not very important features.
2019-01-03 Gavin Smith <gavinsmith0123@gmail.com>
* tp/tests/sectioning/Makefile.am: Update file list.
2019-01-03 Gavin Smith <gavinsmith0123@gmail.com>
Finish removing 'FIX_TEXINFO'.
* tp/Texinfo/Common.pm (@variable_string_settables): Remove
'FIX_TEXINFO'.
2019-01-03 Gavin Smith <gavinsmith0123@gmail.com>
Update NEWS.
* NEWS: Mention change to use 'id' attribute. Mention that
texi2any can pass flags set with -D on to TeX.
2019-01-03 Gavin Smith <gavinsmith0123@gmail.com>
Remove SVN keyword.
* util/texi2dvi (version): Do not use '$Revision$' keyword as
this doesn't work with git.
2019-01-03 Gavin Smith <gavinsmith0123@gmail.com>
* README-hacking: Update instructions for git.
2019-01-03 Gavin Smith <gavinsmith0123@gmail.com>
Ignore .git directories in dist-hook.
* Makefile.am (dist-hook),
* tp/Makefile.am (dist-hook),
* tp/tests/Makefile.am (dist-hook),
* tp/tests/contents/Makefile.am (dist-hook),
* tp/tests/coverage/Makefile.am (dist-hook),
* tp/tests/formatting/Makefile.am (dist-hook),
* tp/tests/indices/Makefile.am (dist-hook),
* tp/tests/layout/Makefile.am (dist-hook),
* tp/tests/many_input_files/Makefile.am (dist-hook),
* tp/tests/nested_formats/Makefile.am (dist-hook),
* tp/tests/sectioning/Makefile.am (dist-hook),
* tp/tests/tex_html/Makefile.am (dist-hook): Remove .git directories
instead of removing .svn directories.
2019-01-03 Gavin Smith <gavinsmith0123@gmail.com>
Remove obsolete comment.
* util/texi2dvi: Remove comment about use of file descriptors
3 and 4. (See info node '(autoconf)File Descriptors'.) Remove
comment about EGREP variable alluding to the fact that the
'egrep' command is not in Posix.
2019-01-03 Gavin Smith <gavinsmith0123@gmail.com>
Remove texi2html and C makeinfo.
* makeinfo, texi2html: Remove subdirectories.
* Makefile.am (po-check): Update list of skipped subdirectories.
* README-hacking: Remove mention of these subdirectories.
2019-01-02 Gavin Smith <gavinsmith0123@gmail.com>
Remove unused variable in test suite.
* tp/maintain/regenerate_cmd_tests.sh: Do not set 'srcdir_test'
in generated test scripts, as this variable is no longer used
anywhere.
* tp/tests/run_parser_all.sh: Remove commented-out code.
2019-01-02 Gavin Smith <gavinsmith0123@gmail.com>
Remove commented-out code.
* tp/tests/parser-tests.sh: Remove commented-out code.
2019-01-02 Gavin Smith <gavinsmith0123@gmail.com>
Fix Makefile rule for out-of-source builds.
* tp/tests/many_input_files/Makefile.am
(copy-tests, copy-tex-html): Work properly in out-of-source builds.
2019-01-02 Per Bother <per@bothner.com>
Use 'id' attribute instead of 'name' on <a>.
* tp/Texinfo/Convert/HTML.pm:
(_convert_float_command, _convert_item_command)
(_convert_index_command, _contents_inline_element)
(_convert_element_type, _convert_heading_command):
Use '<span id>' instead of '<a name>'.
(_convert_printindex_command, _convert_def_line_type):
Add 'id' attribute to <th> and <dt> elements, and remove
<a name>.
The 'name' attribute of <a> to define a hyperlink target is
deprecated in the HTML 5 standards. 'id' for this purpose was
specified by HTML 4 (in 1997) and can be expected to be
supported by all browsers.
2019-01-01 Gavin Smith <gavinsmith0123@gmail.com>
Document SECTION_NAME_IN_TITLE.
* doc/texinfo.texi (HTML Customization Variables),
* NEWS: Document SECTION_NAME_IN_TITLE.
2019-01-01 Gavin Smith <gavinsmith0123@gmail.com>
New customization variable SECTION_NAME_IN_TITLE.
* tp/Texinfo/Common.pm (@variable_string_settables),
* tp/Texinfo/Convert/HTML.pm (%defaults):
Add SECTION_NAME_IN_TITLE.
* tp/Texinfo/Convert/HTML.pm (_file_header_information): For
split output, if SECTION_NAME_IN_TITLE is set, try to use the
argument of the chapter structuring command instead of @node for
the contents of <title>. Feature suggestion from Akim Demaille
(help-texinfo, Nov. 2018).
2019-01-01 Gavin Smith <gavinsmith0123@gmail.com>
Fix error message from texinfo-js.
* js/texinfo-js.in: Remove extra `-' from an error message.
Report from Stefan Husmann.
2018-12-31 Gavin Smith <gavinsmith0123@gmail.com>
Document 'TEXINFO_XS_PARSER'.
* NEWS: Mention the XS parser implementation.
* tp/Texinfo/Parser.pm: Note that this module can be overridden.
* doc/texinfo.texi (texi2any Environment Variables):
Add TEXINFO_XS_PARSER.
2018-12-29 Gavin Smith <gavinsmith0123@gmail.com>
Pass on -D to texi2dvi.
* tp/texi2any.pl: If calling texi2dvi, pass along the values of
any flags set with -D on the command line. Suggestion from
Olivier Dion.
2018-12-28 Gavin Smith <gavinsmith0123@gmail.com>
Remove implementation of @cropmarks in texi2any.
* tp/Texinfo/Common.pm (%line_commands): Remove 'cropmarks'.
* tp/Texinfo/XS/parsetexi/command_data.txt: Remove cropmarks.
* tp/t/xml_tests.t (commands_and_spaces),
* tp/t/08misc_commands.t (also_not_line),
* tp/t/50value.t (value_in_misc_commands),
* tp/t/60macro.t (macro_in_misc_commands):
Remove @cropmarks from tests.
2018-12-28 Gavin Smith <gavinsmith0123@gmail.com>
Remove documentation of @cropmarks command.
* doc/texinfo.texi (Cropmarks and Magnification, Magnification):
Rename and remove mention of @cropmarks.
2018-12-28 Gavin Smith <gavinsmith0123@gmail.com>
Remove @cropmarks command.
* doc/texinfo.tex (\cropmarks, \ifcropmarks, \onepageout):
Remove implementation of @cropmarks.
* NEWS: Mention @cropmarks removal.
This command has hardly ever been used and it is questionable
whether it has worked correctly for many years. See bug-texinfo
discussion November 2018.
The code was introduced in 1986 by Pierre MacKay for use by
"Near East Publications".
2018-12-28 Gavin Smith <gavinsmith0123@gmail.com>
Tidy up info test suite infrastructure.
* info/t/Init-test.inc: Do not set GINFO_NAME variable as it is
not used. Do not set infodir variable. Do not try to set
srcdir, as it is already set. Change some shell variables to be
lower-case, to avoid confusion with variables exported to the
environment. Remove unused variable GINFO_OPTIONS.
2018-12-28 Gavin Smith <gavinsmith0123@gmail.com>
Select correct cross-reference.
* info/session.c (info_menu_or_ref_item): If there is more than
one cross-reference in the line after the point and no
cross-reference contains the point, use the first
cross-reference after the point, not the last one in the line.
This means that the cross-reference that is highlighted as
"active" will be the one that is used.
2018-12-28 Gavin Smith <gavinsmith0123@gmail.com>
Avoid memory leak for malformed files.
* info/nodes.c (info_load_file): Free 'contents' and 'encoding'
fields of file structure in case the node table couldn't be
built.
2018-12-28 Gavin Smith <gavinsmith0123@gmail.com>
Fix call to info_find_file.
* info/nodes.c (info_get_nodes_with_defaults): Restore the value
of the 'fullpath' field of a file structure before calling
info_find_file. Otherwise, info_find_file will not recognize
that a file has been loaded, and load it again. This can lead
to a file buffer being freed incorrectly in
gc_file_buffers_and_nodes, leading to a segmentation fault.
Segmentation fault reported by Keith Thompson.
2018-12-01 Gavin Smith <gavinsmith0123@gmail.com>
* tp/Makefile.am (Makefile.docstr): Fix to work out-of-source.
2018-12-01 Gavin Smith <gavinsmith0123@gmail.com>
Fix info/t/all-only.sh test in out-of-source builds.
* info/dir.c (dir_entry_of_infodir): Prefix a non-absolute path
with "./" so that other parts of the code recognize it is the
full path.
2018-12-01 Gavin Smith <gavinsmith0123@gmail.com>
* NEWS: Development now uses git.
2018-10-29 Gavin Smith <gavinsmith0123@gmail.com>
* tp/Texinfo/Parser.pm (_parse_texi) <inline conditionals>:
Avoid an infinite loop when skipping an unexpanded conditional
in case we run out of input.
* tp/t/55conditionals.t (inlineifset_false_not_closed): New test.
2018-10-29 Gavin Smith <gavinsmith0123@gmail.com>
* tp/Texinfo/Parser.pm (_parse_texi) <@inlinefmtifelse>:
Avoid an infinite loop if there is no more input.
* tp/t/55conditionals.t
(inlineiffmtifelse_not_closed, inlineiffmtifelse_not_closed_two_arg)
(inlineiffmtifelse_not_closed_three_arg): New tests.
2018-10-28 Gavin Smith <gavinsmith0123@gmail.com>
* tp/Texinfo/Parser.pm (_check_line_directive): Fix code for
checking if input is coming from a file.
2018-10-27 Gavin Smith <gavinsmith0123@gmail.com>
* tp/Texinfo/Parser.pm (_next_text, _new_line): Do not pass
$current as an argument, as it is not used any more now the
check for the #line directive has been moved out.
2018-10-27 Gavin Smith <gavinsmith0123@gmail.com>
* tp/t/80include.t (cpp_lines): Add test of macro where a
line that looks like a #line directive is not the very first
line, as these may be treated differently by Parser.pm.
2018-10-27 Gavin Smith <gavinsmith0123@gmail.com>
* tp/Texinfo/Parser.pm (_check_line_directive, _save_line_directive)
(_next_text): Split out sub from _next_text.
(_parse_texi) <BEGIN LINE>: Call _check_line_directive and
_save_line_directive. The condition for #line being meaningful
is the same as what was in _next_text.
2018-10-27 Gavin Smith <gavinsmith0123@gmail.com>
* doc/texinfo.texi (#line directive) <CPP_LINE_DIRECTIVES>:
Add a missing ).
2018-10-27 Gavin Smith <gavinsmith0123@gmail.com>
* tp/Texinfo/Common.pm (@obsolete_variables): Remove.
(obsolete_option): Remove.
(%customization_variable_classes): Remove 'obsolete_variables'.
* tp/texi2any.pl (set_from_init_file, set_from_cmdline),
* tp/Texinfo/Convert/Converter.pm (set_conf, force_conf):
Do not call Texinfo::Common::obsolete_option.
* NEWS: Mention that obsolete customization variables are no
longer recognized.
* tp/Texinfo/Parser.pm (_setup_parser): Do not look at
'INLINE_INSERTCOPYING'.
If more variables are deprecated, then it may be worth
reinstating some of this code.
2018-10-27 Gavin Smith <gavinsmith0123@gmail.com>
* tp/Texinfo/Parser.pm (_command_with_command_as_argument):
Remove code checking for a case where the command has two
elements in 'args', the first all whitespace, as this case never
seems to happen.
2018-10-27 Gavin Smith <gavinsmith0123@gmail.com>
* doc/texinfo.texi (@titlefont @center @sp):
Do not mention the possibility of using these outside of a title
page.
2018-10-27 Gavin Smith <gavinsmith0123@gmail.com>
* tp/Texinfo/Common.pm (%in_index_commands): New hash,
containing only 'sortas'.
* tp/Texinfo/Parser.pm (%in_full_text_commands): Do not
specially remove 'sortas'.
(_setup_parser, _parse_command_line_args): Use
%in_simple_text_commands for the commands that may appear in
index commands. This was done until 2017-04-01.
(_parse_texi) <brace commands>: Move check for valid nesting of
@sortas here. Change error message to mention index entry.
2018-10-27 Gavin Smith <gavinsmith0123@gmail.com>
* tp/Texinfo/Parser.pm (_parse_texi) <in heading commands>:
Do not set an 'invalid_nesting' value.
2018-10-26 Gavin Smith <gavinsmith0123@gmail.com>
* tp/Texinfo/Parser.pm (_check_valid_nesting): New sub, split
out from _parse_texi.
(_parser_texi): Call it.
(%in_full_line_commands): Remove useless variable, as the same
as %in_full_text_commands.
2018-10-26 Gavin Smith <gavinsmith0123@gmail.com>
* tp/Texinfo/Parser.pm (%in_full_text_commands): Do not
allow @indent, @noindent.
(%in_full_line_commands): No exception for @indent, @noindent.
* NEWS: Mention change in allowed nesting.
2018-10-26 Gavin Smith <gavinsmith0123@gmail.com>
* tp/Texinfo/Parser.pm (%simple_text_commands): Add all the
commands that have a number >= 1 as their argument type in
%brace_commands, except for inline conditional commands. This
includes @inforef which wasn't included before. This leaves
only @shortcaption and @math as explicitly listed commands.
2018-10-26 Gavin Smith <gavinsmith0123@gmail.com>
* tp/Texinfo/Parser.pm (%no_command_commands): Remove this list
of commands that shouldn't contain any other commands. Although
it is valid, it makes the picture of which commands can contain
others more complicated for the sake of only a few commands.
Introduced on 2016-07-09 for @errormsg and @U.
2018-10-25 Gavin Smith <gavinsmith0123@gmail.com>
* tp/Texinfo/Common.pm (%brace_commands): Change meaning of 1
as a value. Now only commands that were in
%simple_text_commands in Parser.pm have 1. Use words as well as
numbers, as is done for %line_commands. Accent commands get
'accent'. Style commands get 'style'. Context brace commands
get 'context'. Various other brace commands get 'other'.
(_parse_line_command_args): Commands defined by @definfoenclose
get 'style'.
* tp/Texinfo/Parser.pm
(%simple_text_commands): Change initialising code to use
%brace_commands for some brace commands. This shortens a
seemingly arbitrary list.
(%full_text_commands): Update initialising code for new meaning
of %brace_commands.
(_parse_texi): Change two conditions to compare values of
%brace_commands hash, without needing to look at
%simple_text_commands. Remove an unnecessary conditional.
* tp/Texinfo/Parser.pm (_parse_texi),
* tp/Texinfo/Convert/Plaintext.pm (%brace_no_arg_commands):
Use "eq '0'" instead of "== 0" for %brace_commands values.
No functional changes intended. This brings the implementation
closer to the C version under tp/Texinfo/XS/parsetexi.
2018-10-25 Gavin Smith <gavinsmith0123@gmail.com>
* tp/Texinfo/Parser.pm (%simple_text_commands): Add 'sortas'.
(%full_text_commands): No special case for 'sortas'.
(_parse_texi) <@copying in @insertcopying>: Undefine a variable.
2018-10-24 Gavin Smith <gavinsmith0123@gmail.com>
* tp/Texinfo/Parser.pm (_isolate_last_space): Set
'comment_at_end' value on element instead of parent. As well as
gaining consistency with 'spaces_after_argument', this means
that a comment at the end of a brace command argument is not
lost or output at the wrong place. Add a comment noting that
comments should not be inside brace commands anyway.
* tp/Texinfo/Convert/TexinfoXML.pm (_convert_argument_and_end_line),
* tp/Texinfo/Convert/Texinfo.pm (convert, _expand_cmd_args_to_texi):
* tp/Texinfo/Convert/Converter.pm _expand_cmd_args_to_texi):
Access 'comment_at_end' in the new place.
2018-10-23 Gavin Smith <gavinsmith0123@gmail.com>
* tp/Texinfo/Parser.pm: Change 'same than' to 'same as' in
comments.
2018-10-23 Gavin Smith <gavinsmith0123@gmail.com>
* tp/Texinfo/Parser.pm (%simple_text_commands): Remove @ctrl.
(_end_line): Change a comment.
2018-10-22 Gavin Smith <gavinsmith0123@gmail.com>
* tp/Texinfo/Parser.pm,
* tp/Texinfo/Structuring.pm,
* tp/Texinfo/Transformations.pm,
* tp/Texinfo/Convert/Converter.pm,
* tp/Texinfo/Convert/DocBook.pm,
* tp/Texinfo/Convert/NodeNameNormalization.pm,
* tp/Texinfo/Convert/Plaintext.pm,
* tp/Texinfo/Convert/TexinfoXML.pm,
* tp/Texinfo/Convert/Text.pm,
* tp/Texinfo/Convert/TextContent.pm:
Change 'misc_line_arg' to 'line_arg'.
* tp/Texinfo/Parser.pm
(%begin_line_commands, %in_full_text_commands):
Initialising code changed.
* tp/Texinfo/Convert/Common.pm (@inline_types): Remove
'misc_command_arg', as no such element type is used anywhere.
The reason for this change is that "line command" is more
descriptive than "miscellaneous command". No functional changes
intended.
2018-10-22 Gavin Smith <gavinsmith0123@gmail.com>
* tp/Texinfo/Parser.pm (_parse_texi): Check for unknown command
right after reading the command.
2018-10-21 Gavin Smith <gavinsmith0123@gmail.com>
* tp/tests/sectioning/list-of-tests
(node_footnote_end, node_footnote_use_node, node_footnote_separated)
(equivalent_nodes, equivalent_nodes_no_node)
(nodes_after_top_before_chapter)
(nodes_after_top_before_chapter_use_nodes_chapter)
(nodes_after_top_before_section)
(nodes_after_top_before_section_use_nodes)
(nodes_after_top_before_section_use_nodes_chapter)
(sectioning_frames, placed_things_before_element)
(more_sections_than_nodes, two_footnotes_in_nodes)
(two_footnotes_in_nodes_separated, top_node_up_implicit)
(top_node_up_explicit):
Remove tests.
* tp/t/96moresectioning.t: New test file. Add equivalent tests.
I checked the results were the same by running:
for T in \
node_footnote_end \
node_footnote_use_node \
node_footnote_separated \
equivalent_nodes \
equivalent_nodes_no_node \
nodes_after_top_before_chapter \
nodes_after_top_before_chapter_use_nodes_chapter \
nodes_after_top_before_section \
nodes_after_top_before_section_use_nodes \
nodes_after_top_before_section_use_nodes_chapter \
sectioning_frames \
placed_things_before_element \
more_sections_than_nodes \
two_footnotes_in_nodes \
two_footnotes_in_nodes_separated \
top_node_up_implicit \
top_node_up_explicit
do
echo TEST $T
(cd t/results/moresectioning/$T/res_html
for f in * ; do
echo diff $f
diff $f ../../../../../tests/sectioning/res_parser/$T/$f
done)
done
2018-10-21 Gavin Smith <gavinsmith0123@gmail.com>
* tp/Texinfo/Parser.pm (_parse_texi):
Issue an error message right after checking for an invalid
nesting. This produces little functional change but is intended
to make the code easier to understand.
(_mark_and_warn_invalid): Remove.
2018-10-21 Gavin Smith <gavinsmith0123@gmail.com>
* tp/Texinfo/Parser.pm (_mark_and_warn_invalid): Do not set
'invalid_nesting'.
2018-10-21 Gavin Smith <gavinsmith0123@gmail.com>
* tp/Texinfo/Common.pm (find_innermost_accent_command):
Do not check for invalid nesting.
* tp/Texinfo/Convert/HTML.pm (_convert): Remove some
commented-out code.
* tp/t/accents.t (command in accent): Remove test.
2018-10-21 Gavin Smith <gavinsmith0123@gmail.com>
* NEWS: @ctrl removed.
* tp/Texinfo/Common.pm (%brace_commands, %deprecated_commands):
Remove @ctrl.
* tp/Texinfo/Convert/HTML.pm (_convert_ctrl_command): Remove.
* tp/Texinfo/Convert/Plaintext.pm (@asis_commands): Remove @ctrl.
* tp/t/03coverage_braces.t (ctrl): Remove test.
* tp/tests/coverage_macro.texi: Remove test of @ctrl.
(Karl, bug-texinfo 2012-04-01).
2018-10-20 Gavin Smith <gavinsmith0123@gmail.com>
* tp/Texinfo/Common.pm (%line_commands): Change a comment.
(%other_commands): Set from %in_heading_commands.
2018-10-20 Gavin Smith <gavinsmith0123@gmail.com>
* tp/Texinfo/Common.pm (%other_commands): Remove 'itemx'.
@itemx is always a line command.
* tp/Texinfo/Parser.pm (_parse_texi) <misc commands>:
Only @item can sometimes be an 'other' command', not @itemx.
Error message for incorrectly nested @item or @itemx.
(_end_line): Add a check for an undefined value.
2018-10-20 Gavin Smith <gavinsmith0123@gmail.com>
* tp/Texinfo/Common.pm (%line_commands): Add all the sectioning,
index and def commands.
* tp/Texinfo/Parser.pm (%misc_commands): Remove.
(%line_commands): Add.
(_setup_parser, simple_parser): Set 'line_commands' on parser
rather than 'misc_commands'.
(_end_line, _parse_texi, _parse): Update.
2018-10-20 Gavin Smith <gavinsmith0123@gmail.com>
* tp/Texinfo/Parser.pm (_parse_texi) <misc commands>:
Deal with the commands that do not take a whole line as an
argument separately from those that do, using %other_commands
hash from Common.pm. Reinstate error message for @insertcopying
inside @copying.
2018-10-20 Gavin Smith <gavinsmith0123@gmail.com>
* tp/Texinfo/Parser.pm (_item_line_parent): If current element
is an @item or @itemx, do not check the parent of the parent of
the current element. This leads to a false positive for a
@table nested within an @enumerate. It is possible that this
was intended to account for the parent element being a
'table_term' element, but the condition is not met in the entire
test suite. (The false positive was not hit in practice due to
_item_container_parent being called before _item_line_parent.)
2018-10-20 Gavin Smith <gavinsmith0123@gmail.com>
* tp/Texinfo/Common.pm (%line_commands, %deprecated_commands):
Remove @quote-arg and @allow-recursion.
* NEWS: Mention this change.
2018-10-20 Gavin Smith <gavinsmith0123@gmail.com>
* tp/Texinfo/Common.pm (%misc_commands)
(%line_commands, %other_commands): Split %misc_commands into two
hashes.
2018-10-20 Gavin Smith <gavinsmith0123@gmail.com>
* tp/Texinfo/Common.pm (%misc_commands):
Change @insertcopying argument type from 'noarg' to 'skipline'.
* NEWS: Mention this change and the warning for @multitable.
2018-10-20 Gavin Smith <gavinsmith0123@gmail.com>
* tp/Texinfo/Parser.pm (_end_line) <@multitable>: Give a warning
messaage for any @-command appearing on the multitable line
outside of a braced prototype.
2018-10-19 Gavin Smith <gavinsmith0123@gmail.com>
* tp/tests/sectioning/list-of-tests: Do not run every test
twice, once with '--html', once with '-c TEXI2HTML'. Only use
the latter.
2018-10-19 Gavin Smith <gavinsmith0123@gmail.com>
* tp/tests/run_parser_all.sh: Do not substitute a
"@PATH_SEPARATOR@" sequence in the list-of-tests files.
It is only used in one test so is not worth the complication.
* tp/tests/sectioning/list-of-tests (test_two_include):
Remove this test.
* tp/defs.in: Do not set PATH_SEPARATOR.
2018-10-19 Gavin Smith <gavinsmith0123@gmail.com>
* tp/tests/sectioning/list-of-tests:
(no_section_no_top, no_section_no_top_no_node)
(more_nodes_than_sections, one_node_no_node, one_node)
(no_node_chapter_split):
Remove. Similar tests exist under tp/t/30sectioning.t.
2018-10-19 Gavin Smith <gavinsmith0123@gmail.com>
* tp/defs.in: Do not set srcdir if it is already set.
"make distcheck" works again now.
2018-10-19 Gavin Smith <gavinsmith0123@gmail.com>
* tp/tests/sectioning/list-of-tests (test_two_include): Move an
input file to this directory.
2018-10-19 Gavin Smith <gavinsmith0123@gmail.com>
* tp/t/test_utils.pl: Create the output directory for the test
before running the conversion. This means that if the test
needs to create output files, the directory to contain them will
exist. It didn't exist the first time a test file was run when
the very first test in the file needed to create output.
If there are conversion errors from texi2any, print them instead
of just printing a message "Warning: output generated".
2018-10-18 Gavin Smith <gavinsmith0123@gmail.com>
* tp/tests/formatting/list-of-tests
(documentlanguage_set_option, documentlanguage_set_unknown):
(formatting_documentlanguage_set_option_info)
(formatting_split_for_format_not_split)
Remove.
* tp/t/92formatting.t: Add the same tests.
* tp/tests/formatting/list-of-tests
(simple_with_menu_docbook_info): Remove. This tested the
combination of "--docbook --info" which is equivalent to just
"--info".
2018-10-18 Gavin Smith <gavinsmith0123@gmail.com>
* tp/tests/run_parser_all.sh: Source 'defs' before setting
srcdir.
2018-10-18 Gavin Smith <gavinsmith0123@gmail.com>
* README: State that we may use a range like 2008-2010 in
listing copyright years. (The GNU maintainers guide requires
such a statement.)
2018-10-18 Gavin Smith <gavinsmith0123@gmail.com>
* tp/defs.in: Add srcdir.
* tp/maintain/all_tests.sh (generate): Run test scripts in srcdir.
2018-10-17 Gavin Smith <gavinsmith0123@gmail.com>
* tp/Texinfo/Common.pm (parse_node_manual): Don't lose a leading (
in the case of incorrectly nested parentheses.
2018-10-17 Gavin Smith <gavinsmith0123@gmail.com>
* tp/Texinfo/Common.pm (parse_node_manual): Set parent fields on
new elements.
2018-10-17 Gavin Smith <gavinsmith0123@gmail.com>
* tp/Texinfo/Common.pm (parse_node_manual): Overwrite the
contents array of the element in the main tree.
2018-10-17 Gavin Smith <gavinsmith0123@gmail.com>
* tp/t/06columnfractions.t (invalid): New test.
* tp/Texinfo/Parser.pm (_parse_line_command_args) <@columnfractions>:
Change regex for a valid column fraction.
2018-10-17 Gavin Smith <gavinsmith0123@gmail.com>
* tp/Texinfo/Parser.pm (_parse_line_command_args) <@definfoenclose>:
Add new command to %brace_commands. This avoids having to check
whether a command has been added with @definfoenclose in several
places.
2018-10-17 Gavin Smith <gavinsmith0123@gmail.com>
* tp/t/09indices.t (def_existing_index): New test.
2018-10-17 Gavin Smith <gavinsmith0123@gmail.com>
* tp/t/55conditionals.t (false_format_not_closed): New test.
2018-10-17 Gavin Smith <gavinsmith0123@gmail.com>
* tp/Texinfo/Parser.pm (_expand_macro_arguments): Avoid using a
regex.
2018-10-17 Gavin Smith <gavinsmith0123@gmail.com>
* tp/t/60macro.t (empty_macro_argument): New test.
2018-10-17 Gavin Smith <gavinsmith0123@gmail.com>
* tp/Texinfo/Parser.pm (_parse_texi) <@titlepage>: Do not save
'@author' as a global command.
2018-10-17 Gavin Smith <gavinsmith0123@gmail.com>
* tp/Texinfo/Parser.pm (_register_global_command): Remove an
argument. Callers updated.
2018-10-17 Gavin Smith <gavinsmith0123@gmail.com>
* tp/Texinfo/Common.pm (labels_information): Avoiding creating
'extra' hash by mistake.
2018-10-16 Gavin Smith <gavinsmith0123@gmail.com>
* tp/Texinfo/Parser.pm,
* tp/Texinfo/Common.pm (labels_information): Move to Common.pm
so that it can be called from tp/Texinfo/XS/parsetexi/Parsetexi.pm.
2018-10-16 Gavin Smith <gavinsmith0123@gmail.com>
* tp/Texinfo/Common.pm,
* tp/Texinfo/Encoding.pm,
* tp/Texinfo/Parser.pm,
* tp/Texinfo/Report.pm,
* tp/Texinfo/Structuring.pm,
* tp/Texinfo/Transformations.pm,
* tp/Texinfo/Convert/Converter.pm
* tp/Texinfo/Convert/DocBook.pm,
* tp/Texinfo/Convert/HTML.pm,
* tp/Texinfo/Convert/IXIN.pm,
* tp/Texinfo/Convert/NodeNameNormalization.pm,
* tp/Texinfo/Convert/Plaintext.pm,
* tp/Texinfo/Convert/Texinfo.pm,
* tp/Texinfo/Convert/TexinfoSXML.pm,
* tp/Texinfo/Convert/TexinfoXML.pm,
* tp/Texinfo/Convert/Text.pm,
* tp/Texinfo/Convert/Unicode.pm:
Remove generated content such as "Mention other useful
documentation" and "Items to export into callers namespace by
default" (presumably from h2xs). Remove copyright and license
from POD section at ends of files, as the copyright statement is
at the beginning of each file. Update copyright years.
2018-10-16 Gavin Smith <gavinsmith0123@gmail.com>
* tp/Texinfo/Parser.pm (%global_multiple_commands): Remove 'author'.
(_register_global_command): No exception for 'author'.
2018-10-13 Gavin Smith <gavinsmith0123@gmail.com>
* tp/tests/sectioning/list-of-tests,
* tp/tests/contents/list-of-tests,
* tp/tests/indices/list-of-tests,
* tp/tests/tex_htmlindices/list-of-tests,
Use -c instead of --set-customization-variable, for brevity.
2018-10-13 Gavin Smith <gavinsmith0123@gmail.com>
* tp/tests/indices/list-of-tests
(split_chapter_index, index_split, index_split_nodes)
(index_no_node, nodes_before_top, nodes_before_top_nodes)
(nodes_before_top_no_nodes, nodes_before_top_and_sections_monolithic):
Remove tests.
* tp/t/95moreindices.t: Add the same tests.
I checked test results were unchanged by running commands like:
T=split_chapter_index
(cd t/results/moreindices/$T/res_html ; for f in * ; do \
echo diff $f ; \
diff $f ../../../../../tests/indices/res_parser/$T/$f ; \
done )
2018-10-13 Gavin Smith <gavinsmith0123@gmail.com>
* tp/t/95moreindices.t: New test file.
* tp/t/95moreindices.t (double_index_entry): Add.
* tp/tests/indices/list-of-tests (double_index_entry): Remove.
2018-10-13 Gavin Smith <gavinsmith0123@gmail.com>
* tp/tests/formatting/list-of-tests
(simplest_test_prefix, simplest_test_prefix_info)
(simplest_test_date_in_header, float_copying):
Remove.
* tp/t/92formatting.t: Add the same tests here.
2018-10-13 Gavin Smith <gavinsmith0123@gmail.com>
* tp/tests/formatting/list-of-tests
(split_nocopying, split_nocopying_split): Remove.
* tp/t/92formatting.t
(split_nocopying, split_nocopying_split): Add.
2018-10-13 Gavin Smith <gavinsmith0123@gmail.com>
* tp/t/README: Add advice about out-of-source builds.
2018-10-13 Gavin Smith <gavinsmith0123@gmail.com>
* tp/t/test_utils.pl: If -g flag is given to regenerate
reference test results, do so in srcdir rather than builddir.
2018-10-13 Gavin Smith <gavinsmith0123@gmail.com>
* tp/tests/formatting/list-of-tests (direntry_dircategory_info_split):
Remove.
* tp/t/92formatting.t (direntry_dircategory_info_split): Add.
2018-10-13 Gavin Smith <gavinsmith0123@gmail.com>
* tp/tests/Makefile.am (Makefile.onetst): Fix rule to work
in out-of-source builds.
2018-10-13 Gavin Smith <gavinsmith0123@gmail.com>
* tp/tests/formatting/list-of-tests (defcondx_Dbar, defcondx_Ubar):
Remove.
* tp/t/92formatting.t (defcondx_Dbar, defcondx_Ubar): Add.
2018-10-13 Gavin Smith <gavinsmith0123@gmail.com>
* tp/Texinfo/Parser.pm (%default_customization_values): Remove
'GLOBAL_COMMANDS' array as it is not used anywhere.
(_setup_parser): Do not access 'GLOBAL_COMMANDS' conf value.
2018-10-13 Gavin Smith <gavinsmith0123@gmail.com>
* tp/Makefile.am: List files under tp/t/include_reference.
* tp/maintain/regenerate_file_lists.pl: Do not automatically
generate a list of these files.
2018-10-13 Gavin Smith <gavinsmith0123@gmail.com>
* tp/maintain/regenerate_file_lists.pl:
Do not generate the variable 'test_copied_include_files'.
Remove copyright notice from generated file as the year is
out-of-date.
2018-10-13 Gavin Smith <gavinsmith0123@gmail.com>
* tp/t/test_utils.pl: Remove code copying 't/include_reference'
to build directory. Do not include any directories in the
current directory in the include path.
* tp/Makefile.am (all-local): Do not depend upon these copied files.
2018-10-13 Gavin Smith <gavinsmith0123@gmail.com>
* tp/t/test_utils.pl, tp/t/nodenormalisation.t:
Put tp/t/include_reference in srcdir in include path.
* tp/t/80include.t (test_paths, test_include_directories):
Remove tests.
* tp/t/converters_tests.t (verbatiminclude_paths):
test_include_directories): Remove tests.
* tp/t/info_tests.t (image_file_search): Remove test.
test_include_directories): Remove tests.
* tp/maintain/regenerate_file_lists.pl: Do not generate rules to
copy files to tp/t/include_dir in build directory.
This avoids the hassle of copying all the include files to the
build directory for out-of-source builds and avoids the
confusion of which of "t/include", "t/include_dir" or
"t/include_reference" a test file is to be added to. This
feature of the test suite is not used enough IMHO to be worth
the complexity.
2018-10-09 Gavin Smith <gavinsmith0123@gmail.com>
* configure.ac: Remove AM_CONDITIONAL for TEXI2HTML.
* Makefile.am (dist-local): Remove reult for updating
translations for texi2html.
2018-10-08 Gavin Smith <gavinsmith0123@gmail.com>
* tp/Texinfo/Convert/HTML.pm (_parse_htmlxref_files) [TEST]:
Strip leading directories from file name in order to have
reliable reference test results for out-of-source builds.
2018-10-06 Gavin Smith <gavinsmith0123@gmail.com>
* tp/Texinfo/Parser.pm (_end_line) <@columnfractions>: Set the
'columnfractions' extra value to the element for the
@columnfractions command, rather than to the 'misc_args' array
of that element. This is to make a 'misc_args' array only
referenced by one element, which makes it possible to free the
memory properly in the C rewrite.
* tp/Texinfo/Convert/DocBook.pm (_convert),
* tp/Texinfo/Convert/HTML.pm (_convert_tab_command),
* tp/Texinfo/Convert/Plaintext.pm (_convert),
* tp/Texinfo/Convert/TexinfoXML.pm (_convert): Update.
2018-10-06 Gavin Smith <gavinsmith0123@gmail.com>
* tp/t/README: Add more advice.
2018-09-30 Gavin Smith <gavinsmith0123@gmail.com>
* tp/t/test_utils.pl: Set 'TEST' to 1 for converters.
2018-09-30 Gavin Smith <gavinsmith0123@gmail.com>
* tp/tests/htmlxref
* tp/tests/htmlxref-only_mono,
* tp/tests/htmlxref-only_split: Remove.
* tp/tests/Makefile.am: Remove rules for copying htmlxref.cnf to
the build directory.
* configure.ac (AC_CONFIG_FILES): Don't list Makefiles in
removed directories.
* autogen.sh: Excise htmlxref and coverage subdirectories.
2018-09-30 Gavin Smith <gavinsmith0123@gmail.com>
* tp/t/94htmlxref.t (htmlxref_only_mono, htmlxref_only_mono_nodes)
(htmlxref_only_split, htmlxref_only_split_nodes): Add.
2018-09-30 Gavin Smith <gavinsmith0123@gmail.com>
* tp/t/94htmlxref.t (htmlxref_nodes): Add test.
2018-09-30 Gavin Smith <gavinsmith0123@gmail.com>
* tp/t/94htmlxref.t: New file.
* tp/t/94htmlxref.t (htmlxref): New test.
* tp/Texinfo/Convert/HTML.pm [TEST]: If HTMLXREF is set, look
for file in various directories.
2018-09-30 Gavin Smith <gavinsmith0123@gmail.com>
* tp/Texinfo/Converter/Converter.pm (%all_converter_defaults):
Remove 'htmlxref_files' and 'FIX_TEXINFO'. Add
'language_config_dirs'.
* tp/texi2any.pl: Do not set an 'htmlxref_files' configuration
value. Save the 'language_config_dirs' array in the converter
options.
* tp/Texinfo/Convert/HTML.pm (_load_htmlxref_files): Move code
here from texi2any.pl.
* tp/texi2any.pl, tp/Texinfo/Common.pm (locate_init_file):
Move to Common.pm.
2018-09-30 Gavin Smith <gavinsmith0123@gmail.com>
* tp/texi2any.pl: Get class of converter from string value,
rather than calling ref on a subroutine. This subroutine would
actually be called, which is not the intention.
2018-09-30 Gavin Smith <gavinsmith0123@gmail.com>
* tp/tests/layout/list-of-tests, tp/t/93layout.t
(navigation_section_no_header navigation_node_no_header)
(navigation_chapter_vertical navigation_section_vertical)
(navigation_node_vertical navigation_chapter_no_header_vertical)
(navigation_section_no_header_vertical)
(navigation_node_no_header_vertical):
Move tests to 93layout.t.
2018-09-29 Gavin Smith <gavinsmith0123@gmail.com>
* tp/t/93/layout.t: (navigation, navigation_no_header)
(navigation_vertical, navigation_no_header_vertical)
(navigation_chapter, navigation_section, navigation_node)
(navigation_chapter_no_header): New tests.
* tp/tests/layout/list-of-tests: Remove the same tests.
I checked the results were the same with a script like the
following:
OTHER=../../../../../tests/layout/res_parser
(for d in *[^.][^.][^.]? ; do echo "CHANGING TO $d" ; pushd \
$d/res_html ; for f in * ; do echo DIFFING $f ; diff $f \
$OTHER/$d/$f ; done ; popd ; done ) |& less
2018-09-29 Gavin Smith <gavinsmith0123@gmail.com>
* tp/t/93layout.t: New file.
* tp/t/93layout.t (no_monolithic): New test.
* tp/tests/layout/list-of-tests (no_monolithic): Remove test.
I checked the results were the same by running the following in
the results directory:
OTHER=../../../../../tests/layout/res_parser/no_monolithic
for f in * ; do diff $f $OTHER/$f ; done
2018-09-29 Gavin Smith <gavinsmith0123@gmail.com>
* tp/Texinfo/Common.pm (parse_node_manual):
Do not call trim_spaces_comment_from_content.
2018-09-29 Gavin Smith <gavinsmith0123@gmail.com>
* tp/tests/layout/list-of-tests: Use -c instead of
--set-customization-variable in the interests of concision.
2018-09-29 Gavin Smith <gavinsmith0123@gmail.com>
* tp/init/chm.pm (chm_init): Do not refer to a 'misc_content' array.
2018-09-28 Gavin Smith <gavinsmith0123@gmail.com>
* tp/tests/nested_formats/generate_all_texi.pl: Refer to
list-of-tests rather than tests-parser.txt.
2018-09-24 Gavin Smith <gavinsmith0123@gmail.com>
* tp/Texinfo/Parser.pm (_end_line): Do not set 'misc_content'.
2018-09-24 Gavin Smith <gavinsmith0123@gmail.com>
* tp/tests/Makefile.am (base_tests): Remove 'coverage'.
2018-09-24 Gavin Smith <gavinsmith0123@gmail.com>
* tp/tests/coverage/formatting.texi
* tp/tests/coverage/simplest.texi
* tp/tests/coverage/f--ile.e--xt,
* tp/tests/coverage/f--ile.jpg: Move to t/tests/layout.
* tp/tests/layout/list-of-tests,
* tp/tests/tex_html/list-of-tests:
Reference formatting.texi in new location.
* tp/tests/layout/f--ile.gif,
* tp/tests/layout/f--ile.jpeg: Remove.
* tp/tests/coverage/list-of-tests (formatting): Test moved from
here, to:
* tp/tests/layout/list-of-tests (formatting): Here.
This leads to "simplest.texi" being included in the output of
some the 'formatting_regions' test, and different image files
being referenced in 'formatting_regions' and
'formatting_docbook'.
2018-09-24 Gavin Smith <gavinsmith0123@gmail.com>
* tp/tests/coverage/list-of-tests (formatting): Test moved from
here, to:
* tp/tests/layout/list-of-tests (formatting): Here.
2018-09-24 Gavin Smith <gavinsmith0123@gmail.com>
* tp/tests/Makefile.am: Do not generate 'coverage_macro-cr.texi'.
It doesn't appear to be used for anything.
2018-09-24 Gavin Smith <gavinsmith0123@gmail.com>
* tp/Texinfo/Common.pm (_copy_tree): Change a comment.
* tp/Texinfo/Structuring.pm (_print_root_command_texi),
* tp/Texinfo/Transformations.pm (insert_nodes_for_sectioning_commands)
(print_down_menus): Use 'args' instead of 'misc_content'.
* tp/Texinfo/Transformations.pm (fill_gaps_in_sectioning): Do
not set 'misc_content'.
2018-09-24 Gavin Smith <gavinsmith0123@gmail.com>
* tp/Texinfo/Convert/Converter.pm
(_sectioning_command_normalized_filename),
* tp/Texinfo/Convert/DocBook.pm (_convert),
* tp/Texinfo/Convert/HTML.pm
(command_text _convert_quotation_command, output),
* tp/Texinfo/Convert/Info.pm (_info_header),
* tp/Texinfo/Convert/Plaintext.pm (_contents, _convert):
Use 'args' instead of 'misc_content'.
2018-09-24 Gavin Smith <gavinsmith0123@gmail.com>
* tp/Texinfo/Parser.pm (_end_line) <misc command>:
Do not call _trim_spaces_comment_from_content. This leads to a
change in the 'misc_args' in a few cases of invalid nesting of
line commands.
(_trim_spaces_comment_from_content): Remove wrapper for
Texinfo::Common::trim_spaces_comment_from_content.
2018-09-24 Gavin Smith <gavinsmith0123@gmail.com>
* tp/Texinfo/Parser.pm (_parse_texi): Remove a comment.
(_merge_text, _abort_empty_line, _parse_texi_regex): Add a
comment noting these subs have XS overrides.
(_gather_def_item, _close_commands, _end_line, _parse_texi)
(_gather_previous_item): Remove commented-out debugging
statements.
2018-09-24 Gavin Smith <gavinsmith0123@gmail.com>
* tp/tests/run_parser_all.sh: Delete 'staging_res' directories
once finished.
2018-09-24 Gavin Smith <gavinsmith0123@gmail.com>
* tp/tests/run_parser_all.sh: Don't store string
"raw_out_parser" in a variable.
2018-09-24 Gavin Smith <gavinsmith0123@gmail.com>
* tp/tests/run_parser_all.sh: Only use flags for latex2html in
the latex2html tests.
2018-09-24 Gavin Smith <gavinsmith0123@gmail.com>
* tp/tests/run_parser_all.sh: Put flags for latex2html inside a
variable so they are less distracting when reading the code.
Use -c instead of --set-customization-variable in the interests
of concision. Put code post-processing the output files in a
separate shell function.
2018-09-24 Gavin Smith <gavinsmith0123@gmail.com>
* tp/Texinfo/Parser.pm (_end_line) <misc command with text argument>:
Do not call _trim_spaces_comment_from_content.
2018-09-24 Gavin Smith <gavinsmith0123@gmail.com>
* tp/tests/run_parser_all.sh: Remove some commented-out code.
2018-09-24 Gavin Smith <gavinsmith0123@gmail.com>
* NEWS: Mention changes for newer versions of Perl.
2018-09-23 Gavin Smith <gavinsmith0123@gmail.com>
* tp/tests/formatting/list_of_tests
(texi_glossary, texi_bib_example, texi_cond, cond, cond_xml):
(cond_no-ifhtml_no-ifinfo_no-iftex, cond_ifhtml_ifinfo_iftex)
(cond_info, cond_info_no-ifhtml_no-ifinfo_no-iftex)
(cond_info_ifhtml_ifinfo_iftex): Removed.
* t/92formatting.t
(texi_glossary, texi_bib_example, texi_cond, cond, cond_xml):
(cond_no-ifhtml_no-ifinfo_no-iftex, cond_ifhtml_ifinfo_iftex)
(cond_info, cond_info_no-ifhtml_no-ifinfo_no-iftex)
(cond_info_ifhtml_ifinfo_iftex): Added.
2018-09-23 Gavin Smith <gavinsmith0123@gmail.com>
* tp/Texinfo/Parser.pm (parse_texi_file): Save name of subdirectory
containing input file.
* tp/Texinfo/Common.pm (parse_renamed_nodes_file): Check for
noderename.cnf in subdirectory containing input file first.
* t/92formatting.t (unknown_nodes_renamed): Output a file for
the test and use a renamed nodes file. This restores an error
message that was present in the test this one replaced.
2018-09-23 Gavin Smith <gavinsmith0123@gmail.com>
* tp/tests/formatting/list-of-tests
(unknown_nodes_renamed, one_line, empty): Remove.
* tp/t/92formatting.t
(unknown_nodes_renamed, one_line, empty): New tests.
* tp/maintain/regenerate_cmd_tests.sh: Wipe tests directory.
* tp/tests/README: Do not mention wiping tests directory.
Explain which other files to delete.
2018-09-23 Gavin Smith <gavinsmith0123@gmail.com>
* tp/t/92formatting.t: New file.
* tp/t/92formatting.t (one_line_no_content): New test.
* tp/tests/formatting/list-of-tests (one_line_no_content): Remove test.
2018-09-23 Gavin Smith <gavinsmith0123@gmail.com>
* tp/maintain/regenerate_cmd_tests.sh: Remove code dealing with
"texi" as a special test case name. Do not use separate '$arg'
and '$name' variables in the test scripts.
2018-09-23 Gavin Smith <gavinsmith0123@gmail.com>
* tp/Texinfo/Convert/PlainTexinfo.pm: Do not pass a
'FIX_TEXINFO' value into Texinfo.pm.
* tp/Texinfo/Convert/Texinfo.pm (convert, _expand_cmd_args_to_texi):
Remove '$fix' argument.
* tp/t/fix_texinfo.t: Remove test.
* doc/texinfo.texi (Other Customization Variables): Remove
'FIX_TEXINFO'.
* NEWS: 'FIX_TEXINFO' customization variable has been removed.
2018-09-22 Gavin Smith <gavinsmith0123@gmail.com>
* tp/Texinfo/Parser.pm (_end_line): Reparent an empty argument
of a block command to the contents before possibly processing a
float command, instead of after.
(_parse_float_type): Allow args to be undefined. Do not use
_trim_spaces_comment_from_content.
2018-09-22 Gavin Smith <gavinsmith0123@gmail.com>
* tp/Texinfo/Parser.pm (_parse_line_command_args): Do not call
_trim_spaces_comment_from_content.
2018-09-22 Gavin Smith <gavinsmith0123@gmail.com>
* tp/Texinfo/Parser.pm (_isolate_last_space): Isolate the last
space on a misc_line_arg if it has a 'type' set, including
'empty_line_after_command'.
2018-09-22 Gavin Smith <gavinsmith0123@gmail.com>
* tp/Texinfo/Parser.pm (_isolate_last_space): Simplify code by
taking out conditionals that are common to two blocks.
2018-09-22 Gavin Smith <gavinsmith0123@gmail.com>
* tp/Texinfo/Parser.pm (_parse_texi) <@sortas>: Don't call
_trim_spaces_comment_from_content.
2018-09-22 Gavin Smith <gavinsmith0123@gmail.com>
* tp/Texinfo/Parser.pm (_parse_texi) <@U>: Don't call
_trim_spaces_comment_from_content.
* t/02coverage.t (invalid_U): Add use of @U with whitespace
surrounding argument.
2018-09-22 Gavin Smith <gavinsmith0123@gmail.com>
* tp/Texinfo/Parser.pm (_parse_texi) <@errormsg>: Don't call
_trim_spaces_comment_from_content.
* t/02coverage.t (test_errormsg): Add use of @errormsg with
whitespace surrounding error message.
2018-09-22 Gavin Smith <gavinsmith0123@gmail.com>
* tp/Texinfo/Parser.pm (_parse_texi) <',' seen for inline commands>:
Use text in 'args' directly instead of calling
_trim_spaces_comment_from_content.
2018-09-22 Gavin Smith <gavinsmith0123@gmail.com>
* tp/tests/run_parser_all.sh: Remove all code dealing with a
test case specially if its name was 'texi'.
* tp/tests/README: Don't mention a 'texi' special case.
2018-09-22 Gavin Smith <gavinsmith0123@gmail.com>
* tp/tests/formatting/list-of-tests (texi_glossary):
Define test using '-c TEXINFO_OUTPUT_FORMAT=plaintexinfo'. This
leads to an extra error message due to more processing taking
place after '-c DUMP_TEXI=1' would have been processed.
2018-09-22 Gavin Smith <gavinsmith0123@gmail.com>
* tp/tests/README: Explain how to run tests with run-parser-all.sh.
2018-09-22 Gavin Smith <gavinsmith0123@gmail.com>
* tp/tests/formatting/list-of-tests
(texi_bib-example, texi_cond, texi_ignore_and_comments):
Define tests using '-c TEXINFO_OUTPUT_FORMAT=plaintexinfo'.
2018-09-22 Gavin Smith <gavinsmith0123@gmail.com>
* tp/tests/nested_formats/list-of-tests (texi, texi_nested_formats):
Rename test and use '-c TEXINFO_OUTPUT_FORMAT=plaintexinfo' to
get a macro-expanded Texinfo output instead of using the special
test name "texi". This means that the output will have the
".txi" extension instead of "texi", and in the out_parser_info
directory, the output format will be info instead of texi.
2018-09-22 Gavin Smith <gavinsmith0123@gmail.com>
* tp/texi2any.pl: Allow '-c TEXINFO_OUTPUT_FORMAT' to override
'-c TEXI2HTML'.
2018-09-22 Gavin Smith <gavinsmith0123@gmail.com>
* tp/tests/README: Update to mention list-of-tests file.
2018-09-21 Gavin Smith <gavinsmith0123@gmail.com>
* tp/Texinfo/Common.pm (%no_brace_commands): Add '&'.
(%brace_commands): Add 'ampchar'.
* tp/Texinfo/Convert/Converter.pm
(%defaul_xml_commands_formatting): Add 'ampchar'.
* tp/Texinfo/Convert/TexinfoXML.pm (%commands_formatting): Add
'&', 'ampchar'.
* tp/Texinfo/Convert/Text.pm (%text_brace_no_arg_commands): Add
'ampchar'.
* tp/Texinfo/Convert/Unicode.pm (%unicode_map): Add 'ampchar'.
* tp/Texinfo/XS/misc.c (xs_parse_texi_regex),
* tp/Texinfo/Parser.pm (_parse_texi_regex): Include & as a
single letter command.
* tp/t/19def.t (ampchar): New test.
* util/texinfo.dtd: Add 'ampchar'.
* configure.ac (TEXINFO_DTD_VERSION): Increase to '6.4dev'.
* doc/texinfo.tex (\ampchar): Define.
* doc/texinfo.texi (Inserting an Ampersand): New section.
* NEWS: Mention @&, @ampchar{}.
2018-09-21 Gavin Smith <gavinsmith0123@gmail.com>
* tp/Texinfo/Parser.pm (_parse_texi):
Do not set a 'spaces_after_command_elt' value.
(_abort_empty_line): Do not clear a 'spaces_before_argument_elt'
value.
* tp/Texinfo/XS/misc.c (xs_abort_empty_line): Make the same change.
2018-09-21 Gavin Smith <gavinsmith0123@gmail.com>
* tp/Texinfo/Parser.pm (_start_empty_line_after_command):
Do not set a 'spaces_after_command_elt' value.
(_abort_empty_line): Do not clear a 'spaces_after_command_elt' value.
* tp/Texinfo/XS/misc.c (xs_abort_empty_line): Make the same change.
2018-09-16 Gavin Smith <gavinsmith0123@gmail.com>
* tp/maintain/regenerate_cmd_tests.sh: Less indirection in test
scripts.
2018-09-15 Gavin Smith <gavinsmith0123@gmail.com>
* tp/Texinfo/Parser.pm (_remove_empty_content_arguments):
Remove function.
(_register_command_arg): Remove function.
(module documentation section): Remove mention of
'block_command_line_contents'.
(_end_line): Do not set or access 'block_command_line_contents'
extra value.
This is intended to simplify the parse tree. Reducing
duplication of information makes it easier to track what data
leads to output at later stages of processing. It reduces
memory use and may increase speed. It makes it easier to
inspect data structures that are "dumped" to a text stream. It
is also easier to handle memory allocation in a rewrite in
another programming language if the data structures are less
cyclic.
2018-09-15 Gavin Smith <gavinsmith0123@gmail.com>
* tp/t/91morecoverage.t: New file.
* tp/t/91morecoverage.t (texi_formatting, formatting_fr):
New tests.
* tp/tests/coverage/list-of_tests (texi, formatting_fr): Remove.
Moving some tests into the test framework under tp/t is intended
to reduce the running time for the tests.
* tp/tests/README: Add advice on deleting a test.
2018-09-15 Gavin Smith <gavinsmith0123@gmail.com>
* tp/t/README: Add a note about how to check test results.
2018-09-15 Gavin Smith <gavinsmith0123@gmail.com>
* tp/maintain/regenerate_cmd_tests.sh,
* tp/tests/run_parser_all.sh:
Rename file with the specifications of tests to be run from
'tests-parser.txt' to 'list-of-tests'.
2018-09-15 Gavin Smith <gavinsmith0123@gmail.com>
* tp/Texinfo/Convert/DocBook.pm (_convert):
Do not use the 'block_command_line_contents' array: use the
'args' array directly.
2018-09-15 Gavin Smith <gavinsmith0123@gmail.com>
* tp/Texinfo/Convert/Plaintext.pm (_convert)
<@quotation, @item, @listoffloats>:
Do not use the 'block_command_line_contents' array: use the
'args' array directly.
2018-09-15 Gavin Smith <gavinsmith0123@gmail.com>
* tp/Texinfo/Convert/HTML.pm (_quotation_arg_to_prepend):
Do not use the 'block_command_line_contents' array: use the
'args' array directly.
2018-09-15 Gavin Smith <gavinsmith0123@gmail.com>
* tp/Texinfo/Convert/HTML.pm (_convert_item_line_command),
* tp/Texinfo/Convert/TexinfoXML.pm (_convert):
Do not use the 'block_command_line_contents' array: use the
'args' array directly.
* tp/Texinfo/Parser.pm (_end_line): Include an inserted
'command_as_argument' element in the 'args' with the type
'command_as_argument_inserted'.
* tp/Texinfo/Convert/Texinfo.pm (@ignored_types): Ignore
'command_as_argument_inserted'.
(_expand_cmd_args_to_texi): Avoid outputing a comma after an
ignored element.
* tp/Texinfo/Common.pm: Remove mention of
'block_command_line_contents' from a comment.
2018-09-15 Gavin Smith <gavinsmith0123@gmail.com>
* tp/Texinfo/Parser.pm (_isolate_last_space): Remove useless
argument. Callers updated.
(module documentation section): Remove mention of
'space_at_end_block_command'.
* tp/Texinfo/Convert/TexinfoXML.pm (_index_entry): Remove code
stripping final whitespace.
(_convert): Remove a commented-out statement for debugging.
2018-09-15 Gavin Smith <gavinsmith0123@gmail.com>
* tp/Texinfo/Parser.pm (_isolate_last_space): For all element
types except 'menu_entry_node', store trailing spaces as a
'spaces_after_argument' value. This was already done for
'brace_command_arg'.
* tp/Texinfo/Convert/Texinfo.pm (convert, _expand_cmd_args_to_texi):
Check for and output these spaces.
* tp/Texinfo/Convert/Converter.pm (_end_line_or_comment): Look
for these spaces in new location.
* tp/Texinfo/Convert/Converter.pm (_convert_argument_and_end_line):
Replace with two new subroutines, one in DocBook.pm, one in
TexinfoXML.pm. This allows end-of-line spaces to continue to be
ignored in DocBook output.
* tp/Texinfo/Convert/TexinfoXML.pm (_end_line_spaces): Check for
end-of-line spaces in new location.
(_convert): Check for and output 'spaces_after_argument' in a
few places.
2018-09-15 Gavin Smith <gavinsmith0123@gmail.com>
* tp/Texinfo/Convert/TexinfoXML.pm (_index_entry): Remove
trailing spaces from the text of an index entry.
2018-09-15 Gavin Smith <gavinsmith0123@gmail.com>
* tp/Texinfo/Convert/TexinfoXML.pm (_convert) <def line>: Remove
trailing spaces from bracketed terms.
2018-09-12 Gavin Smith <gavinsmith0123@gmail.com>
* tp/Texinfo/Convert/Converter.pm (_end_line_or_comment): Do
not call _tree_without_comment.
* tp/Texinfo/Convert/TexinfoXML.pm (_texinfo_line):
Do not call _tree_without_comment.
* tp/Texinfo/Convert/Converter.pm (tree_without_comment): Remove.
2018-09-11 Gavin Smith <gavinsmith0123@gmail.com>
* tp/Texinfo/Parser.pm (_isolate_last_space): If @c or @comment
is the last in the line, remove it from the 'args' and store it
as 'comment_at_end' extra value.
* tp/Texinfo/Convert/TexinfoXML.pm ():
(_end_line_spaces): Do not handle the case of a comment being in
the 'args'.
(_convert) <@item or @itemx in @table>: Check for and output a
comment.
* tp/Texinfo/Convert/Converter.pm (_end_line_or_comment)
(_tree_without_comment, _convert_argument_and_end_line):
Meaning of arguments changed. Check for a comment in the new
location. Callers updated.
* tp/Texinfo/Convert/Texinfo.pm (_expand_cmd_args_to_texi):
Check for and output a comment.
2018-09-09 Gavin Smith <gavinsmith0123@gmail.com>
* tp/Texinfo/Parser.pm (_end_line) <@multitable>:
Call _isolate_last_space.
2018-09-09 Gavin Smith <gavinsmith0123@gmail.com>
* tp/Texinfo/Parser.pm (_abort_empty_line): Always get the
element that refers to the space element through the 'command'
value. This saves the trouble of looking at $current,
$current->{'parent'}, $current->{'parent'}->{'parent'} etc.
Delete the 'spaces_after_command_elt' value properly.
(_parse_texi): Set 'command' on created
'empty_spaces_before_argument' elements.
* tp/Texinfo/XS/misc.c (xs_abort_empty_line): Make the same
change.
2018-09-09 Gavin Smith <gavinsmith0123@gmail.com>
* tp/Texinfo/Parser.pm (_start_empty_line_after_command):
Refer to spaces element at start of line as
'spaces_after_command_elt' instead of 'spaces_after_command'.
Refer back to the main element for the command as 'command'.
(_abort_empty_line): Use 'command' extra value to find an
element that refers to the spaces element
as 'spaces_after_command'. If found, change the reference to
the element to a reference to a simple string. This was already
done for 'spaces_before_argument_elt' but is now done for
'spaces_after_command_elt' too.
* tp/Texinfo/XS/misc.c (xs_abort_empty_line): Make the same change.
* tp/Texinfo/Structuring.pm (new_block_command),
* tp/Texinfo/Transformations (fill_gaps_sectioning):
Update to store spaces after the command in 'spaces_before_argument'.
* tp/Texinfo/Convert/TexinfoXML.pm (_leading_spaces, _convert):
Update to access 'spaces_after_command'.
* tp/Texinfo/Common.pm (move_index_entries_after_item):
Insert a newline in the 'spaces_before_argument' value if it is
present.
* tp/Texinfo/Convert/Texinfo.pm (_expand_cmd_args_to_texi):
Output a space in 'spaces_before_argument' if it is present.
* tp/t/collect_spaces.t: Test removed.
2018-09-02 Gavin Smith <gavinsmith0123@gmail.com>
* tp/Texinfo/Parser.pm (_parse_texi, _close_brace_command),
* tp/Texinfo/Convert/Texinfo.pm (_expand_cmd_args_to_texi),
* tp/Texinfo/Convert/TexinfoXML.pm (_convert):
Save the delimiter character of @verb as the 'delimiter' extra
value, instead of putting in 'type'.
2018-09-02 Gavin Smith <gavinsmith0123@gmail.com>
* tp/Texinfo/Parser.pm (module documentation): Update.
2018-09-02 Gavin Smith <gavinsmith0123@gmail.com>
* tp/Texinfo/Convert/TexinfoXML.pm (_convert),
* tp/Texinfo/Convert/DocBook.pm (_convert): Leave an
'empty_line_after_command' element alone just as
'empty_spaces_after_command' is left alone.
2018-09-01 Gavin Smith <gavinsmith0123@gmail.com>
* tp/maintain/regenerate_cmd_tests.sh: Do not print diffs if
perl exited with a non-zero exit status, as the diffs will be
out of date and this could hide a syntax error.
2018-09-01 Gavin Smith <gavinsmith0123@gmail.com>
* tp/Texinfo/Parser.pm (_parse_def): Update 'parent' on
elements of a 'def_aggregate'.
2018-09-01 Gavin Smith <gavinsmith0123@gmail.com>
* tp/Texinfo/Parser.pm (_parse_def): Leave an
'empty_line_after_command' element alone just as
'empty_spaces_after_command' is left alone.
2018-09-01 Gavin Smith <gavinsmith0123@gmail.com>
* tp/maintain/all_tests.sh <generate>: Use "set -e" to make
script stop if a test script stops.
2018-09-01 Gavin Smith <gavinsmith0123@gmail.com>
* tp/Texinfo/Parser.pm (_parse_def): Set 'parent' on
'def_aggregate' element.
2018-09-01 Gavin Smith <gavinsmith0123@gmail.com>
* tp/Texinfo/Parser.pm (_parse_def, _split_def_args)
(_split_delimiters): Set 'parent' on new elements.
2018-08-26 Gavin Smith <gavinsmith0123@gmail.com>
* tp/Texinfo/Parser.pm (_end_line): Do not set 'def_args'
extra value.
2018-08-26 Gavin Smith <gavinsmith0123@gmail.com>
* tp/Texinfo/Convert/TexinfoXML.pm (_convert),
* tp/Texinfo/Convert/DocBook.pm (_convert): Use the def args in
the main tree instead of the 'def_args' extra array.
2018-08-26 Gavin Smith <gavinsmith0123@gmail.com>
* tp/Texinfo/Parser.pm (_parse_def): Include inserted content on
def line in main tree.
* tp/Texinfo/Convert/Texinfo.pm (convert): Ignore this inserted
content when converting back to Texinfo.
2018-08-26 Gavin Smith <gavinsmith0123@gmail.com>
* tp/Texinfo/Parser.pm (_parse_def, _split_def_args),
* tp/Texinfo/Convert/TexinfoXML.pm (_convert): Give inserted
elements at front of def line the types 'bracketed_inserted'
and 'spaces_inserted' instead of 'bracketed_def_content' and
'spaces'.
2018-08-26 Gavin Smith <gavinsmith0123@gmail.com>
* tp/Texinfo/Convert/Text.pm (_convert),
* tp/Texinfo/Convert/Plaintext.pm (_convert),
* tp/Texinfo/Convert/HTML.pm (_convert_def_line_type):
Refer to 'def_parsed_hash' instead of 'def_args'.
2018-08-26 Gavin Smith <gavinsmith0123@gmail.com>
* tp/Texinfo/Common.pm (definition_arguments_content)
(definition_category): Refer to 'def_parsed_hash' instead
of 'def_args'.
2018-08-26 Gavin Smith <gavinsmith0123@gmail.com>
* tp/Texinfo/Parser.pm (_parse_def): Copy the element label in
a 'def_args' pair into the 'def_role' extra value on the
element.
2018-08-26 Gavin Smith <gavinsmith0123@gmail.com>
* tp/Texinfo/Parser.pm (_parse_def): Collect adjacent
non-whitespace elements into a 'def_aggregate' element and
make this change in the main tree as well as in the 'def_args'
array.
2018-08-25 Gavin Smith <gavinsmith0123@gmail.com>
* tp/Texinfo/Parser.pm (_parse_def): Use the same hashes in the
main tree as in the def_args array for the arguments on a
@def* line. This means that delimiter characters are in their
own elements now.
2018-08-25 Gavin Smith <gavinsmith0123@gmail.com>
* tp/Texinfo/Parser.pm (_parse_def): Change the type
of final spaces elements to 'spaces_at_end'. This leads to
the spaces being ignored in some output formats.
(_next_bracketed_or_word): Remove unused.
* tp/Texinfo/Convert/TexinfoXML.pm (_convert) <def commands>:
Strip off a final newline.
2018-08-25 Gavin Smith <gavinsmith0123@gmail.com>
* tp/Texinfo/Parser.pm (_split_delimiters): New function.
(_parse_def): Do not produce def_args array via an intermediate
array of a similar format. Use "map" with _split_delimiters to
place [](), in separate elements, before processing the
arguments on the line.
2018-08-25 Gavin Smith <gavinsmith0123@gmail.com>
* tp/Texinfo/Parser.pm (_parse_def): Reorder some code.
2018-08-25 Gavin Smith <gavinsmith0123@gmail.com>
* tp/Texinfo/Parser.pm (_split_def_args): New function.
(_parse_def): Use "map" with _split_def_args to create the
array of def line contents. This does all at once what
_next_bracketed_or_word did across all the times it was called.
(_next_bracketed_or_word): Collect elements from the array that
has already been processed.
2018-08-25 Gavin Smith <gavinsmith0123@gmail.com>
* tp/Texinfo/Structuring.pm (new_block_command)
* tp/Texinfo/Parser.pm (_parse_texi, _end_line):
Do not set 'command' extra value on 'empty_line_after_command'
or 'empty_spaces_after_command'.
2018-08-25 Gavin Smith <gavinsmith0123@gmail.com>
* tp/Texinfo/Convert/TexinfoXML.pm (_convert): Remove
conditional block that checks for a raw formatting command (e.g.
@html if --html is given to texi2any) that is being expanded.
It appears that this code is never executed as an earlier clause
of the "if" statement is executed if this format is being expanded.
2018-08-25 Gavin Smith <gavinsmith0123@gmail.com>
* tp/Texinfo/Parser.pm (_parse_texi) <CLOSED raw>: Do
not add a 'command' extra value on the 'empty_line_after_command'.
2018-08-25 Gavin Smith <gavinsmith0123@gmail.com>
* tp/Texinfo/Parser.pm (_end_line) <after @end verbatim>:
Do not use 'command' extra value to check if we are after
@end verbatim.
2018-08-25 Gavin Smith <gavinsmith0123@gmail.com>
* tp/texi2any.pl: Set top_srcdir as well as top_builddir in case
these are not defined. This compensates for a recent change in
Texinfo::ModulePath.
2018-08-25 Gavin Smith <gavinsmith0123@gmail.com>
* tp/Texinfo/Parser.pm
(parse_def): Split up text elements in the main tree into
separate elements. This means in most cases, the elements in
the 'def_args' hash and the elements in the main tree will be
the same. (The exceptions are when "(" or ")" is split into a
"delimiter" element in def_args, and when there is trailing
whitespace on a line before the LF.)
(next_bracketed_or_word): Include any trailing newline in the
returned values.
(parse_def): Avoid adding elements with a trailing newline to
'def_args'.
This change should only affect the main tree, not the value of
the 'def_args' hash, or the output from any of the converters.
It is intended to reduce duplication of information in the parse
tree, and to make handling of allocated memory simpler in the C
replacement for this module.
2018-08-23 Gavin Smith <gavinsmith0123@gmail.com>
* util/htmlxref.cnf: Remove gcj, info. Add cvs. Report from
Ineiev <ineiev@gnu.org> and Thérèse Godefroy <godef.th@free.fr>.
2018-08-16 Gavin Smith <gavinsmith0123@gmail.com>
* tp/Texinfo/XS/xspara.c (xs_unicode_text, xs_process_text):
Use static buffers to avoid memory leaks.
2018-08-16 Gavin Smith <gavinsmith0123@gmail.com>
* tp/Texinfo/XS/xspara.c (xspara_get_pending, xspara_add_pending_word)
xspara_end, xspara_add_next, xspara_add_text): Save storage for
text buffers in static variables to avoid memory leak.
* tp/Texinfo/XS/text.c (text_reset): New function.
2018-08-16 Gavin Smith <gavinsmith0123@gmail.com>
* tp/Texinfo/XS/misc.c (xs_parse_texi_regex): Retain all memory
allocated on the heap in static pointers. Perl does not free
them, as when SV's are initialized with sv_setpv, the data
pointed to is copied, not the pointer itself. This memory leak
is visible with valgrind, e.g. run TEXINFO_XS=debug PERL_DESTRUCT_LEVEL=2 valgrind --log-file=val.log --leak-check=full perl -w t/02coverage.t commands
2018-08-16 Gavin Smith <gavinsmith0123@gmail.com>
* tp/Makefile.am (EXTRA_DIST) Do not distribute tp/Makefile.PL
or tp/MANIFEST.
* tp/Texinfo/XS/Makefile.am: Do not distribute Makefile.PL,
MANIFEST or prepare_standalone_perl_module.sh.
This is to reduce confusion about whether these files are needed
for "make dist".
2018-08-16 Gavin Smith <gavinsmith0123@gmail.com>
* tp/t/README: Clarify purpose of regenerate_file_lists.pl. Do
not mention prepare_perl_module_files.sh.
2018-08-16 Gavin Smith <gavinsmith0123@gmail.com>
* tp/Texinfo/XS: Run "gnulib --add-import strndup".
2018-08-15 Gavin Smith <gavinsmith0123@gmail.com>
* tp/Texinfo/XS: Run "gnulib --add-import iconv".
* tp/Texinfo/XS: Run "gnulib --add-import strchrnul".
2018-08-15 Gavin Smith <gavinsmith0123@gmail.com>
* tp/Texinfo/XS: Put subdirectories 'lib' and 'm4' inside new
subdirectory 'gnulib' (as is done in the top-level gnulib
import).
* tp/Texinfo/XS/Makefile.am (AM_CPPFLAGS, ACLOCAL_AMFLAGS, SUBDIRS)
(EXTRA_DIST),
* tp/Texinfo/XS/configure.ac (AC_CONFIG_MACRO_DIR, AC_CONFIG_FILES):
Update.
2018-08-15 Gavin Smith <gavinsmith0123@gmail.com>
* tp/Makefile.am (AM_LOG_T_FLAGS): Remove -I flags.
2018-08-15 Gavin Smith <gavinsmith0123@gmail.com>
* tp/Texinfo/XSLoader.pm (_find_file): Skip @INC hooks.
2018-08-15 Gavin Smith <gavinsmith0123@gmail.com>
* tp/Texinfo/XS/configure.ac (AC_CONFIG_FILES):
Add parsetexi/Makefile.
* tp/Texinfo/XS/Makefile.am (SUBDIRS): Add parsetexi.
2018-08-15 Gavin Smith <gavinsmith0123@gmail.com>
* tp/Texinfo/ModulePath.pm.in: Add 'parsetexi' directory to
@INC.
<TEXINFO_XS_PARSER environment variable set>: Add a subroutine
to @INC to override Texinfo::Parser with Parsetexi.pm.
2018-08-15 Gavin Smith <gavinsmith0123@gmail.com>
* tp/texi2any.pl <finding version number>: Refer to
Texinfo::Common instead of Texinfo::Parser.
2018-08-15 Gavin Smith <gavinsmith0123@gmail.com>
* tp/texi2any.pl: Do not check for module files relative to the
installed location.
2018-08-15 Gavin Smith <gavinsmith0123@gmail.com>
* tp/Texinfo/ModulePath.pm.in: Do not account for the case of
one of $top_builddir and $top_srcdir being set but not the
other.
2018-08-15 Gavin Smith <gavinsmith0123@gmail.com>
* tp/Texinfo/XS/Makefile.am: Do not install TestXS.pm, as this
is useless.
2018-08-15 Gavin Smith <gavinsmith0123@gmail.com>
* tp/texi2any.pl: Only call fileparse once (used for both
finding modules and translation files). Do not add a directory
to @INC that Texinfo::ModulePath takes care of adding. Add a
comment.
2018-08-14 Gavin Smith <gavinsmith0123@gmail.com>
* autogen.sh: Initialise tp/Texinfo/XS directory.
2018-08-14 Gavin Smith <gavinsmith0123@gmail.com>
* configure.ac (xs_srcdir): Update path from XS builddir to
srcdir.
* tp/Texinfo/XS/fail.pl: update path to TestXS module.
2018-08-14 Gavin Smith <gavinsmith0123@gmail.com>
* tp/Texinfo/XS/Makefile.am (modulesdir): Change to new
location.
(CLEANFILES, EXTRA_DIST, xs_LTLIBRARIES): Add MiscXS files.
(MiscXS_la_CFLAGS): Define.
* tp/Texinfo/MiscXS/MiscXS.pm,
* tp/Texinfo/MiscXS/miscxs.h,
* tp/Texinfo/MiscXS/misc.c: Move to tp/Texinfo/XS.
* tp/Texinfo/MiscXS: Remove subdirectory.
* tp/Texinfo/ModulePath.pm.in: Refer to Texinfo/XS instead of
Texinfo/MiscXS.
* tp/Makefile.am (SUBDIRS, DIST_SUBDIRS): Remove Texinfo/MiscXS.
* configure.ac: Do not configure in tp/Texinfo/MiscXS.
2018-08-14 Gavin Smith <gavinsmith0123@gmail.com>
* tp/Texinfo/Convert/XSParagraph, tp/Texinfo/XS:
Move subdirectory. This is intended to be a subdirectory for all
XS modules and to remove the duplication that exists between
tp/Texinfo/Convert/XSParagraph and tp/Texinfo/MiscXS.
* configure.ac,
* tp/Makefile.am,
* tp/Texinfo/Convert/Paragraph.pm,
* tp/Texinfo/ModulePath.pm.in,
* tp/Texinfo/XS/XSParagraph.xs,
* tp/Texinfo/XS/TestXS.pm:
Refer to Texinfo/XS subdirectory instead of
Texinfo/Convert/XSParagraph and namespaces beginning
"Texinfo::XS" instead of "Texinfo::Convert::XSParagraph".
2018-08-14 Gavin Smith <gavinsmith0123@gmail.com>
* info/t/Init-test.inc: Do not check whether the terminal needs
to be reset with stty, because the command that caused this
problem ("read -t") is not being used any more.
2018-08-14 Gavin Smith <gavinsmith0123@gmail.com>
* tp/t/01use.t: Inline file tp/t/manual_tree.pl.
2018-08-13 Gavin Smith <gavinsmith0123@gmail.com>
* tp/Texinfo/ModulePath.pm.in (init): Remove subroutine
prototype.
* tp/Texinfo/ModulePath.pm.in (import): Wrap 'init' to allow
using module with "use Texinfo::ModulePath".
2018-08-13 Gavin Smith <gavinsmith0123@gmail.com>
* tp/t/01use.t, tp/t/02coverage.t, tp/t/03coverage_braces.t,
tp/t/04verb.t, tp/t/05paragraph.t,
tp/t/06columnfractions.t, tp/t/08misc_commands.t, tp/t/09indices.t,
tp/t/10menu.t, tp/t/16raw.t, tp/t/181quotation.t, tp/t/18itemize.t,
tp/t/19def.t, tp/t/20preformatted.t, tp/t/21multitable.t,
tp/t/22xtable.t, tp/t/25regions.t, tp/t/27float.t, tp/t/28heading.t,
tp/t/30sectioning.t, tp/t/50value.t, tp/t/55conditionals.t,
tp/t/57invalid_nestings.t, tp/t/58alias.t, tp/t/60macro.t,
tp/t/70value_and_macro.t, tp/t/80include.t, tp/t/accents.t,
tp/t/automatic_menus.t, tp/t/automatic_nodes.t, tp/t/collect_spaces.t,
tp/t/converters_tests.t, tp/t/do_master_menu.t, tp/t/docbook_tests.t,
tp/t/fix_texinfo.t, tp/t/html_tests.t, tp/t/index_before_item.t,
tp/t/info_tests.t, tp/t/languages.t, tp/t/nodenormalization.t,
tp/t/paragraph.t, tp/t/plaintext_tests.t,
tp/t/protect_character_in_texinfo.t, tp/t/reference_to_text_in_tree.t,
tp/t/test_brace_count.t, tp/t/test_fill_gaps_in_sectioning.t,
tp/t/test_is_content_empty.t,
tp/t/test_protect_hashchar_at_line_beginning.t, tp/t/test_sort.t,
tp/t/test_tree_copy.t, tp/t/xml_tests.t:
Add "use lib '.'" to add current working directory to @INC, the
Perl module include path. This directory is not present in @INC
in recent versions of Perl, which makes running tests from the
command-line (like "perl -w t/02coverage.t") difficult. Require
Texinfo::ModulePath to add all the other required directories to
@INC. As tp/Texinfo/ModulePath.pm is generated in the builddir,
this should work for out-of-source builds.
2018-08-13 Gavin Smith <gavinsmith0123@gmail.com>
* tp/t/01use.t: Use Texinfo::ModulePath.
2018-08-12 Gavin Smith <gavinsmith0123@gmail.com>
* tp/Texinfo/Parser.pm (parser): Remove code allowing calling
this function in an object-oriented way.
2018-08-12 Gavin Smith <gavinsmith0123@gmail.com>
* tp/Texinfo/Parser.pm (parser, duplicate_parser): Move code out
for duplicating an existing parser to a new function.
* tp/Texinfo/Convert/HTML.pm (output) <renamed nodes>: Call
'duplicate_parser'.
2018-08-12 Gavin Smith <gavinsmith0123@gmail.com>
* tp/Texinfo/Common.pm (%default_parser_state_configuration):
Remove 'gettext' and 'pgettext'.
* tp/texi2any.pl ($parser_default_options): Remove 'gettext' and
'pgettext'.
* tp/Texinfo/Parser.pm (%parser_default_configration_subs):
(%parser_default_configration_no_subs): Remove. There are no
subroutines in the parser configuration any more.
(_setup_parser_default_configuration): Remove.
(parser, simple_parser): Call dclone directly instead of
_setup_parser_default_configuration. Do not check for CODE
values on the parser hash object when duplicating a parser.
(_setup_conf): Do not check for CODE values on the parser hash
object when copying a parser configuration.
(MODULE DOCUMENTATION SECTION): Remove mention of 'gettext'
configuration.
* tp/Texinfo/Common.pm (warn_unknown_language, warn_unknown_split):
Do not take a 'gettext' argument. Callers updated.
* tp/Texinfo/Report.pm (new): Do not set 'gettext' or 'pgettext'
on object.
* tp/Texinfo/Convert/Converter.pm (converter): Do not set
'gettext' or 'pgettext' on object.
2018-08-12 Gavin Smith <gavinsmith0123@gmail.com>
* tp/Texinfo/Common.pm (__, __p): Copy functions from
texi2any.pl. Place these in @EXPORT.
(%default_parser_state_configuration): Refer to __ and __p
for 'gettext' and 'pgettext' instead of stub functions.
* t/test_utils.pl: Call Locale::Messages::bindtextdomain for
'texinfo' domain as well as 'texinfo_document'.
* tp/texi2any.pl (__, __p): Remove definitions.
* tp/Texinfo/Report.pm (__, __p): Do not take a first argument
that is a parser object. Do not look at 'gettext' and
'pgettext' configuration values: call the functions in
Locale::Messages directly.
* tp/Texinfo/Common.pm,
* tp/Texinfo/Structuring.pm,
* tp/Texinfo/Parser.pm,
* tp/Texinfo/Convert/Converter.pm,
* tp/Texinfo/Convert/Docbook.pm,
* tp/Texinfo/Convert/HTML.pm,
* tp/Texinfo/Convert/IXIN.pm,
* tp/Texinfo/Convert/Info.pm,
* tp/Texinfo/Convert/Plaintext.pm,
* tp/Texinfo/Convert/TexinfoXML.pm:
Do not call __ or __p as methods on a parser object: use the
functions exported from Common.pm instead.
The only effect of this change should be in the test suite where
the default stub values for 'gettext' and 'pgettext' were used
for Texinfo. This should have no user-visible effect. The name
of the translation domain ("texinfo") is no longer set from the
name of the package in texi2any.pl, but this was already
hard-coded in Texinfo/Report.pm.
2018-08-10 Gavin Smith <gavinsmith0123@gmail.com>
* tp/t/test_utils.pl (test): Avoid method call syntax for
calling Texinfo::Parser::parser.
2018-08-10 Gavin Smith <gavinsmith0123@gmail.com>
* doc/texinfo.texi (Customization Variables for @-Commands):
Mention that these variables are not passed on to TeX. Comment
out commands that only do anything for TeX. Report from Karl.
2018-08-10 Gavin Smith <gavinsmith0123@gmail.com>
* tp/Texinfo/Convert/HTML.pm (_parse_node_and_warn_external):
Call 'parse_node_manual' from Texinfo::Common instead of
Texinfo::Parser.
2018-08-09 Gavin Smith <gavinsmith0123@gmail.com>
* tp/Texinfo/Report.pm (gdt): Remove unused call to pgettext.
2018-08-09 Gavin Smith <gavinsmith0123@gmail.com>
* tp/t/60macro.t (line_after_recursive_call): New test.
2018-08-09 Gavin Smith <gavinsmith0123@gmail.com>
* tp/Texinfo/Transformations.pm (_new_node): Call
'parse_node_manual' from Texinfo::Common instead of
Texinfo::Parser, and do not call Texinfo::Parser::register_label.
2018-08-09 Gavin Smith <gavinsmith0123@gmail.com>
* tp/Texinfo/Common.pm (%default_parser_state_configuration):
Do not allow customizing the root parser context.
* tp/Texinfo/Parser.pm (parser, simple_parser, _parse_texi):
Hard-code '_root' as the root context.
* tp/t/accents.t (test_accent_stack, test_enable_encoding):
Do not set 'context' on created parser. Allow for an extra
level of element nesting on the tree returned from the parser.
2018-08-09 Gavin Smith <gavinsmith0123@gmail.com>
* tp/Texinfo/Parser.pm (_register_label): Remove a useless
variable assignment. Remove an unused argument. Do not return
a value.
2018-08-07 Gavin Smith <gavinsmith0123@gmail.com>
* info/t/Infokey-config: Use C-x for aborting in echo area in
test suite.
* info/t/echo-area-no-completions.sh,
* info/t/index-apropos.sh: Update.
2018-08-07 Vitezslav Crhonek <vcrhonek@redhat.com> (tiny change)
* info/info.c (get_initial_file) <man page fallback>: Avoid
leaking memory.
2018-08-07 Gavin Smith <gavinsmith0123@gmail.com>
* info/t/Init-test.inc (run_ginfo, timeout_test): Record process
ID of background process that does the timing out, and kill this
process if ginfo exited first.
2018-08-07 Gavin Smith <gavinsmith0123@gmail.com>
* info/infomap.c (default_emacs_like_ea_keys)
(default_vi_like_ea_keys): Remove ineffectual key bindings.
Remove key bindings for sequences beginning with ESC, as these
have not worked since ESC was made an abort key. Remove binding
for "C-x o" as it is not possible to escape the echo area any
more. Remove bindings for SPC and ? which are self-inserting.
2018-08-07 Gavin Smith <gavinsmith0123@gmail.com>
* info/t/Init-inter.inc: File removed. All contents moved into
Init-test.inc.
2018-08-07 Gavin Smith <gavinsmith0123@gmail.com>
* info/t/Init-inter.inc (init_interactive_test): New function,
containing commands that were at the top-level of this file.
2018-08-07 Gavin Smith <gavinsmith0123@gmail.com>
* info/t/Init-inter.inc (run_ginfo): Run ginfo inside a subshell
with parentheses instead of using "sh -c". This enables the use
of "$@" and avoids the need for an extra level of quoting when
calling run_ginfo. Time out the process outside of the
subshell.
2018-08-07 Gavin Smith <gavinsmith0123@gmail.com>
* info/t/echo-area-no-completions.sh: New test.
2018-08-07 Gavin Smith <gavinsmith0123@gmail.com>
* info/echo-area.c, info/session.c (pause_or_input):
Move to session.c. Do not pause if there is already buffered
input waiting.
2018-08-07 Vitezslav Crhonek <vcrhonek@redhat.com> (tiny change)
* info/echo-area.c (info_read_completing_internal): Avoid memory leak.
2018-07-13 Niko Tyni <ntyni@debian.org> (tiny change)
Perl 5.28 introduced thread-safe locales, where 'setlocale'
only affects the locale of the current thread. External code
like 'mbrtowc' isn't aware of this thread specific locale,
so we need to explicitly modify the global one instead.
Without this we could enter a busy loop in xspara__add_next
(Texinfo::Convert::XSParagraph) for UTF-8 documents when mbrtowc
returned -1.
* tp/Texinfo/Convert/XSParagraph/xspara.c (xspara_init)
[Perl version >= 5.28]: Call 'switch_to_global_locale' and
'sync_locale'.
2018-07-13 Niko Tyni <ntyni@debian.org> (tiny change)
* tp/Texinfo/Parser.pm (_parse_special_misc_command) <@clickstyle>:
Escape braces in regex to be compatible with recent Perl
versions.
2018-06-04 Gavin Smith <gavinsmith0123@gmail.com>
* tp/Texinfo/Transformations.pm (_reference_to_arg):
Refer to 'args' array instead of 'brace_command_contents'.
(Makes a couple of tests failing since 2017-10-29 pass.)
2018-06-04 Gavin Smith <gavinsmith0123@gmail.com>
* tp/Texinfo/Convert/Plaintext.pm (_convert):
When checking if a node name in a cross-reference includes a
`.', do not include in the check any manual name that may have
already been stored inside the paragraph formatter. Rical Jasan
reported that an error message mentioning the "node name" would
be given for output like "(gcc.info)Debugging Options" which is
confusing as the `.' is not in the node name "Debugging
Options". (bug-texinfo 2018-02-09)
2018-06-02 Gavin Smith <gavinsmith0123@gmail.com>
* info/nodes.c (info_node_of_tag_ext): Always call
node_set_body_start regardless of the value of
preprocess_nodes_p. Benno Schulenberg reported that searching
commands could find matches in the node information line if the
use set "hide-note-references=On".
2018-06-02 Gavin Smith <gavinsmith0123@gmail.com>
* doc/texinfo.tex (\pdfgettoks): Add a comment.
2018-03-10 Paul Eggert <eggert@cs.ucla.edu>
* doc/texinfo.tex, contrib/psfonts-bronger.tex: Replace
"write-file-hooks" with "before-save-hook".
See https://lists.gnu.org/r/bug-gnulib/2018-03/msg00008.html.
2018-01-15 Gavin Smith <gavinsmith0123@gmail.com>
* README-hacking: Mention js/ subdirectory.
* js/README: Explain how to get git history of this project and
refer to some background info on the web.
2018-01-09 Gavin Smith <gavinsmith0123@gmail.com>
* doc/texinfo.tex (\definefontsizexi, \definefontsizex):
Add new set of fonts \sevenrm, \seventt, \sevenbf, \sevenit,
\sevensl, \sevensf \sevensc, \seventtsl, \seveni, \sevensy.
(\resetmathfonts): Use them for math mode superscript.
Vincent Lefevre reported that @var didn't work in superscript in
math mode (bug-texinfo, 2017-11-27).
2018-01-09 Gavin Smith <gavinsmith0123@gmail.com>
* doc/texinfo.tex (\assignfonts): Add a comment explaining
purpose of \ifont and \syfont.
2017-12-26 Gavin Smith <gavinsmith0123@gmail.com>
* doc/texinfo.tex (\setupmarkupstyle): Remove conditionals used
for checking "markup styles in effect". They are not used
anywhere.
2017-12-26 Gavin Smith <gavinsmith0123@gmail.com>
* doc/texinfo.tex (\codequoteright, \codequoteleft): Check if we
are still in a monospace font in case we are inside @r, like
@code{@r{`}}. Report from rms.
2017-12-18 Gavin Smith <gavinsmith0123@gmail.com>
* doc/texinfo.tex (\resetmathfonts): Revert last change. Wrong
font used in footnote superscripts reported by Mohammad Akhlaghi.
2017-12-18 Bruno Haible <bruno@clisp.org>
* util/htmlxref.cnf: Use https for sourceware.org, puszcza.gnu.org.ua,
gcc.gnu.org, www.complang.tuwien.ac.at, www.gmplib.org, www.gnupg.org,
ftp.gwdg.de, www.nano-editor.org, cran.r-project.org, tug.org.
Update info for avl, flex, myserver, readline.
2017-12-11 Gavin Smith <gavinsmith0123@gmail.com>
* util/htmlxref.cnf: Use https instead of http for links to
manuals on gnu.org. Report from Bruno Haible.
2017-12-02 Gavin Smith <gavinsmith0123@gmail.com>
* doc/texinfo.tex (\resetmathfonts): Define \scriptfont and
\scriptscriptfont in addition to \textfont. Vincent Lefevre
reported that @var didn't work in superscript in math mode
(bug-texinfo, 2017-11-27).
2017-11-17 Gavin Smith <gavinsmith0123@gmail.com>
* doc/texinfo.tex (\enddoublecolums): Correct a conditional
checking \pagetotal.
2017-11-16 Gavin Smith <gavinsmith0123@gmail.com>
* doc/texinfo.tex (\balancecolumns): If it appears that we have
been called on to balance too much material for the final page
of the double column material, output some of it using
\doublecolumnout and leave remainder on current page.
Otherwise, two problems occurred with the output: first, that
the material on the last page of the index extended too low on
the page (see "Final page of index hard to balance" case in
texinfo-tex-test.texi); and second, a blank page could occur
before the final page of the index (report from Arnold Robbins)
(this happened because of marks output in \savemarks and
\restoremarks).
(\enddoublecolumns): Only change the output routine back to the
usual one and reset all the formatting variables if no extra
material has been added to the current page. Otherwise, repeat.
2017-11-09 Gavin Smith <gavinsmith0123@gmail.com>
* doc/texinfo.tex (\pagesizes): Add one inch to height and width
so that text will still fit on the page if @pagesizes is used
with a small width. Report from Christopher Diemech
2017-10-12.
2017-10-29 Gavin Smith <gavinsmith0123@gmail.com>
* tp/Texinfo/Parser.pm (_parse_texi): Remove all calls to
_register_command_arg that added elements to
'brace_command_contents' array. Look at 'args' instead
of 'brace_command_contents'.
(_remove_empty_content_arguments): Do not check for a
'brace_command_contents' array.
(module documentation section): Remove mention of
brace_command_contents.
* tp/Texinfo/Report.pm (_substitute): Do not look at
'brace_command_contents' array.
* tp/Texinfo/Convert/Converter.pm (_table_item_content_tree):
Do not call _register_command_arg.
The effect of this change is to make the parse tree less cyclic,
which should make it easier to understand, for example when it
is printed. It may also reduce memory use.
2017-10-29 Gavin Smith <gavinsmith0123@gmail.com>
* tp/Texinfo/Convert/DocBook.pm (_convert):
Use 'args' array instead of 'brace_command_contents' array.
2017-10-29 Gavin Smith <gavinsmith0123@gmail.com>
* tp/Texinfo/Convert/Plaintext.pm (_image),
* tp/Texinfo/Convert/IXIN.pm (output_ixin),
* tp/Texinfo/Convert/HTML.pm (_convert_explained_command, output):
Use 'args' array instead of 'brace_command_contents' array.
2017-10-29 Gavin Smith <gavinsmith0123@gmail.com>
* tp/Texinfo/Convert/Plaintext.pm (_convert)
(_image_formatted_text, _image):
Use 'args' array instead of 'brace_command_contents' array.
2017-10-28 Gavin Smith <gavinsmith0123@gmail.com>
* tp/Texinfo/Convert/TexinfoXML.pm (_convert): Check if array
elements are defined to avoid creating them accidentally.
2017-10-26 Gavin Smith <gavinsmith0123@gmail.com>
* tp/Texinfo/Convert/TexinfoXML.pm (_convert): Replace use
of 'brace_command_contents' array in the 'extra' hash with
the 'args' in the main tree.
2017-10-26 Gavin Smith <gavinsmith0123@gmail.com>
* tp/Texinfo/Parser.pm (_isolate_last_space): For
'brace_command_arg' only, save trailing spaces in
'spaces_after_argument' extra value instead of adding a
'spaces_at_end' element to the main tree.
* tp/Texinfo/Convert/TexinfoXML.pm (_convert),
* tp/Texinfo/Convert/Texinfo.pm (_expand_cmd_args_to_texi):
Update to look at 'spaces_after_argument' after an argument to
a brace command.
* tp/Texinfo/Convert/Converter.pm
(_collect_leading_trailing_spaces_arg): Check for a
'spaces_after_argument' record to find trailing spaces.
2017-10-26 Gavin Smith <gavinsmith0123@gmail.com>
* tp/Texinfo/Convert/TexinfoXML.pm (_leading_spaces_arg): Remove
unused.
2017-10-25 Gavin Smith <gavinsmith0123@gmail.com>
* tp/Texinfo/MiscXS/misc.c (xs_abort_empty_line): Update to
match Perl implementation.
* tp/Texinfo/Parser.pm (import): Re-enable XS overrides.
2017-10-25 Gavin Smith <gavinsmith0123@gmail.com>
* tp/Texinfo/Parser.pm (_parse_texi): Rename reference to spaces
element from 'spaces_before_argument' to 'spaces_before_argument_elt'.
(_abort_empty_line): Replace 'spaces_before_argument_elt' value
with 'spaces_before_argument', a simple string value.
(_close_current),
(_parse_texi) <new line>: Call '_abort_empty_line' to remove
spaces element.
* tp/Texinfo/Convert/Converter.pm
(_collect_leading_trailing_spaces_arg),
* tp/Texinfo/Convert/Texinfo.pm (convert, _expand_cmd_args_to_texi),
* tp/Texinfo/Convert/TexinfoXML.pm (_leading_spaces_before_argument):
Access 'spaces_before_argument' as a string value.
2017-09-25 Gavin Smith <gavinsmith0123@gmail.com>
* tp/Texinfo/Parser.pm (_abort_empty_line): Change code to
keep track of which element refers to space element in its
'extra' hash. No functional change intended.
2017-09-25 Gavin Smith <gavinsmith0123@gmail.com>
* tp/Texinfo/Parser.pm (_abort_empty_line): Change the name of a
variable. Use a variable to simplify the code.
2017-09-24 Gavin Smith <gavinsmith0123@gmail.com>
* tp/Texinfo/Parser.pm (_abort_empty_line): Remove
'empty_spaces_before_argument' element from main tree.
(import): Temporarily disable XS overrides.
(_parse_texi) <new line>: Remove an
'empty_spaces_before_argument' element.
Otherwise it will not be removed in '_abort_empty_line' because
a 'new_line' element is in the way.
Do not call '_abort_empty_line' for a continuation with @ inside
a def command, as this leads to an 'empty_spaces_before_argument'
element being removed when it was not before.
(close_current) <bracketed>: Remove an
'empty_spaces_before_argument' element. This happens for some
cases of malformed input.
* tp/Texinfo/Convert/Texinfo.pm (convert, _expand_cmd_args_to_texi):
Check for a 'spaces_before_argument' extra value, and output the
spaces in it.
* tp/Texinfo/Convert/TexinfoXML.pm (_leading_trailing_spaces_arg):
Call _leading_spaces_before_argument to check for
'spaces_before_argument' extra value.
* tp/t/test_tree_copy.t: Disable all tests, temporarily.
* tp/Texinfo/Convert/Converter.pm
(_collect_leading_trailing_spaces_arg): Check for
'spaces_before_argument' extra value.
The effect of this change is to make the parse tree less cyclic,
which should make it easier to understand.
2017-09-24 Gavin Smith <gavinsmith0123@gmail.com>
* tp/Texinfo/Parser.pm (_parse_texi) <after ',' separating arguments>:
Save 'spaces_before_argument' on element corresponding to argument.
* tp/Texinfo/Convert/TexinfoXML.pm (_convert): Call
_leading_spaces_before_argument instead of _leading_spaces_arg.
This uses the 'spaces_before_argument' element we saved in
'_parse_texi'.
2017-09-22 Mathieu Lirzin <mthl@gnu.org>
* Makefile.am (CLEANFILES): Remove $(noinst_SCRIPTS) to
keep 'pre-inst-env' when doing 'make clean'.
2017-09-22 Gavin Smith <gavinsmith0123@gmail.com>
* tp/Texinfo/Parser.pm (_parse_texi) <'{' seen>: Set
spaces_before_argument on element for the argument itself, not
for the element corresponding to the command, which is the
parent element.
* tp/Texinfo/Convert/TexinfoXML.pm (_convert): Allow 'spaces'
attribute to be set for the element output for the first
argument to a brace command.
2017-09-22 Gavin Smith <gavinsmith0123@gmail.com>
* tp/maintain/change_perl_modules_version.pl: Account for
letters after version number.
2017-09-22 Gavin Smith <gavinsmith0123@gmail.com>
* configure.ac: Increase version to 6.5dev.
2017-09-22 Mathieu Lirzin <mthl@gnu.org>
* build-aux/pre-inst-env.in: New file, for launching programs
from build directory.
* Makefile.am (noinst_SCRIPTS, CLEANFILES): Add pre-inst-env.
2017-09-16 Paul Eggert <eggert@cs.ucla.edu>
* doc/texinfo.tex: Use 'https' in preference to 'http' in comments.
2017-09-12 Gavin Smith <gavinsmith0123@gmail.com>
6.5 release.
* configure.ac, NEWS, util/texi2dvi, util/texi2pdf,
doc/refcard/txirefcard.tex: Version number.
Copyright 2017, 2018 Free Software Foundation, Inc.
Copying and distribution of this file, with or without modification,
are permitted in any medium without royalty provided the copyright
notice and this notice are preserved.