texinfo-commits
[Top][All Lists]
Advanced

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

branch master updated: * tp/Texinfo/Common.pm (%default_parser_specific_


From: Patrice Dumas
Subject: branch master updated: * tp/Texinfo/Common.pm (%default_parser_specific_customization), tp/Texinfo/ParserNonXS.pm (parse_texi_file), tp/Texinfo/XS/parsetexi/Parsetexi.pm (_maybe_ignore_before_setfilename), doc/texinfo.texi (Other Customization Variables): remove IGNORE_BEFORE_SETFILENAME (always set).
Date: Fri, 31 Dec 2021 09:56:24 -0500

This is an automated email from the git hooks/post-receive script.

pertusus pushed a commit to branch master
in repository texinfo.

The following commit(s) were added to refs/heads/master by this push:
     new 8dc11661cf * tp/Texinfo/Common.pm 
(%default_parser_specific_customization), tp/Texinfo/ParserNonXS.pm 
(parse_texi_file), tp/Texinfo/XS/parsetexi/Parsetexi.pm 
(_maybe_ignore_before_setfilename), doc/texinfo.texi (Other Customization 
Variables): remove IGNORE_BEFORE_SETFILENAME (always set).
8dc11661cf is described below

commit 8dc11661cfd056cd7e4a826eb416710078d8a718
Author: Patrice Dumas <pertusus@free.fr>
AuthorDate: Fri Dec 31 15:56:13 2021 +0100

    * tp/Texinfo/Common.pm (%default_parser_specific_customization),
    tp/Texinfo/ParserNonXS.pm (parse_texi_file),
    tp/Texinfo/XS/parsetexi/Parsetexi.pm
    (_maybe_ignore_before_setfilename),
    doc/texinfo.texi (Other Customization Variables):
    remove IGNORE_BEFORE_SETFILENAME (always set).
---
 ChangeLog                            |  9 +++++++++
 doc/texinfo.texi                     |  4 ----
 tp/Texinfo/Common.pm                 |  1 -
 tp/Texinfo/ParserNonXS.pm            | 12 ++----------
 tp/Texinfo/XS/parsetexi/Parsetexi.pm |  4 +---
 5 files changed, 12 insertions(+), 18 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 4edf8d9eab..314f4c25e3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2021-12-30  Patrice Dumas  <pertusus@free.fr>
+
+       * tp/Texinfo/Common.pm (%default_parser_specific_customization),
+       tp/Texinfo/ParserNonXS.pm (parse_texi_file),
+       tp/Texinfo/XS/parsetexi/Parsetexi.pm
+       (_maybe_ignore_before_setfilename),
+       doc/texinfo.texi (Other Customization Variables):
+       remove IGNORE_BEFORE_SETFILENAME (always set).
+
 2021-12-30  Patrice Dumas  <pertusus@free.fr>
 
        * tp/Texinfo/ParserNonXS.pm (%parser_state_configuration)
diff --git a/doc/texinfo.texi b/doc/texinfo.texi
index e82e71a9f4..ac1902fc5f 100644
--- a/doc/texinfo.texi
+++ b/doc/texinfo.texi
@@ -16625,10 +16625,6 @@ menus.
 This variable is set to @samp{nomenu} when generating DocBook, or when
 @option{--no-headers} is specified.
 
-@item IGNORE_BEFORE_SETFILENAME
-If set, begin outputting at @code{@@setfilename}, if
-@code{@@setfilename} is present; default true.
-
 @item IGNORE_SPACE_AFTER_BRACED_COMMAND_NAME
 If set, spaces are ignored after an @@-command that takes braces.
 Default true, matching the @TeX{} behavior.
diff --git a/tp/Texinfo/Common.pm b/tp/Texinfo/Common.pm
index 766f93079a..a3068b4cc3 100644
--- a/tp/Texinfo/Common.pm
+++ b/tp/Texinfo/Common.pm
@@ -112,7 +112,6 @@ my %default_parser_common_customization = (
 
 # Customization variables obeyed only by the parser, and the default values.
 my %default_parser_specific_customization = (
-  'IGNORE_BEFORE_SETFILENAME' => 1,
   'IGNORE_SPACE_AFTER_BRACED_COMMAND_NAME' => 1,
   'CPP_LINE_DIRECTIVES' => 1, # handle cpp like synchronization lines
   'MAX_MACRO_CALL_NESTING' => 100000, # max number of nested macro calls
diff --git a/tp/Texinfo/ParserNonXS.pm b/tp/Texinfo/ParserNonXS.pm
index 37c0ba840b..99c192617c 100644
--- a/tp/Texinfo/ParserNonXS.pm
+++ b/tp/Texinfo/ParserNonXS.pm
@@ -981,8 +981,7 @@ sub parse_texi_file($$)
 
   # Put everything before @setfilename in a special type.  This allows to
   # ignore everything before @setfilename.
-  if ($self->{'IGNORE_BEFORE_SETFILENAME'}
-      and $self->global_commands_information()->{'setfilename'}
+  if ($self->global_commands_information()->{'setfilename'}
       and $self->global_commands_information()->{'setfilename'}->{'parent'}
                                                  eq $before_node_section) {
     my $before_setfilename = {'type' => 'preamble_before_setfilename',
@@ -6013,12 +6012,6 @@ conditional blocks should be expanded.  Default is empty.
 An array reference of directories in which C<@include> files should be
 searched for.  Default contains the working directory, F<.>.
 
-=item IGNORE_BEFORE_SETFILENAME
-
-If set, and C<@setfilename> exists, everything before C<@setfilename>
-is put in a special container type, @C<preamble_before_setfilename>.
-This option is set in the default case.
-
 =item IGNORE_SPACE_AFTER_BRACED_COMMAND_NAME
 
 If set, spaces after an @-command name that take braces are ignored.
@@ -6696,8 +6689,7 @@ the C<\input texinfo.tex> line and following blank lines.
 
 =item preamble_before_setfilename
 
-This container holds everything that appears before C<@setfilename>
-if I<IGNORE_BEFORE_SETFILENAME> parser option is set.
+This container holds everything that appears before C<@setfilename>.
 
 =item paragraph
 
diff --git a/tp/Texinfo/XS/parsetexi/Parsetexi.pm 
b/tp/Texinfo/XS/parsetexi/Parsetexi.pm
index 5b6d8d9969..6a71237724 100644
--- a/tp/Texinfo/XS/parsetexi/Parsetexi.pm
+++ b/tp/Texinfo/XS/parsetexi/Parsetexi.pm
@@ -207,14 +207,12 @@ sub get_parser_info {
 
 use File::Basename; # for fileparse
 
-# Handle 'IGNORE_BEFORE_SETFILENAME' conf value.
 # Put everything before @setfilename in a special type.  This allows
 # ignoring everything before @setfilename.
 sub _maybe_ignore_before_setfilename {
   my ($self, $before_node_section) = @_;
 
-  if ($self->{'IGNORE_BEFORE_SETFILENAME'}
-      and $self->global_commands_information()->{'setfilename'}
+  if ($self->global_commands_information()->{'setfilename'}
       and $self->global_commands_information()->{'setfilename'}->{'parent'}
                                                  eq $before_node_section) {
     my $before_setfilename = {'type' => 'preamble_before_setfilename',



reply via email to

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