[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
branch master updated: * doc/texi2any_api.texi, tp/Texinfo/Common.pm, t
From: |
Patrice Dumas |
Subject: |
branch master updated: * doc/texi2any_api.texi, tp/Texinfo/Common.pm, tp/Texinfo/Config.pm: remove texinfo_add_valid_customization_option and add_valid_customization_option. Remove already @ignore'd text in texi2any_api.texi. |
Date: |
Sun, 19 Jan 2025 09:24:26 -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 23167775a0 * doc/texi2any_api.texi, tp/Texinfo/Common.pm,
tp/Texinfo/Config.pm: remove texinfo_add_valid_customization_option and
add_valid_customization_option. Remove already @ignore'd text in
texi2any_api.texi.
23167775a0 is described below
commit 23167775a0ccad5b7fd5852b1c9d5aa1d60e7a01
Author: Patrice Dumas <pertusus@free.fr>
AuthorDate: Sun Jan 19 15:24:27 2025 +0100
* doc/texi2any_api.texi, tp/Texinfo/Common.pm, tp/Texinfo/Config.pm:
remove texinfo_add_valid_customization_option and
add_valid_customization_option. Remove already @ignore'd text in
texi2any_api.texi.
---
ChangeLog | 7 +++++++
README-hacking | 2 +-
doc/texi2any_api.texi | 20 --------------------
tp/Texinfo/Common.pm | 14 --------------
tp/Texinfo/Config.pm | 10 ----------
5 files changed, 8 insertions(+), 45 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 06f87225c3..5e081f98d4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2025-01-19 Patrice Dumas <pertusus@free.fr>
+
+ * doc/texi2any_api.texi, tp/Texinfo/Common.pm, tp/Texinfo/Config.pm:
+ remove texinfo_add_valid_customization_option and
+ add_valid_customization_option. Remove already @ignore'd text in
+ texi2any_api.texi.
+
2025-01-19 Gavin Smith <gavinsmith0123@gmail.com>
* info/variables.c (set_variable_to_value): Set 'where_set'
diff --git a/README-hacking b/README-hacking
index de5e37f6b7..3f520ec8fe 100644
--- a/README-hacking
+++ b/README-hacking
@@ -415,7 +415,7 @@ available version, then run:
Check that this results in a newer version.
Check what changes ppport.h reports:
- perl ppport.h --compat-version=5.8.1 *.xs */*.xs main/get_perl_info.*
main/build_perl_info.* main/api_to_perl.* main/call_perl_function.*
convert/call_html_perl_function.* convert/call_conversion_perl.*
convert/build_html_perl_info.* convert/build_html_perl_state.*
convert/get_converter_perl_info.* convert/get_html_perl_info.*
+ perl ppport.h --compat-version=5.8.1 *.xs */*.xs main/get_perl_info.*
main/build_perl_info.* main/api_to_perl.* main/call_perl_function.*
convert/call_html_perl_function.* convert/call_conversion_perl.*
convert/call_embed_perl.* convert/build_html_perl_info.*
convert/build_html_perl_state.* convert/get_converter_perl_info.*
convert/get_html_perl_info.*
make po-check # update po/POTFILES.in as needed
make po_document-check # update po_document/POTFILES.in as needed
diff --git a/doc/texi2any_api.texi b/doc/texi2any_api.texi
index 58862eb03d..236caa1611 100644
--- a/doc/texi2any_api.texi
+++ b/doc/texi2any_api.texi
@@ -507,26 +507,6 @@ my $section_header_buttons_list
@end example
-@ignore
-@c problematic for XS, need a type, to add dynamically...
-@node Adding Customization Variables
-@subsection Adding Customization Variables
-
-@cindex Customization variables, adding
-
-Trying to set a customization variable that is not known as a valid
-customization variable in @command{texi2any} is an error. It is possible,
however,
-to add new customization variables from init files. To add a customization
-variable, call @code{texinfo_add_valid_customization_option}:
-
-@defun texinfo_add_valid_customization_option ($variable_name)
-@var{$variable_name} is added as a valid customization variable name.
-@end defun
-
-The variable value, if set, should also be available in the converters and
therefore
-in the init file functions registered and called from the converters.
-@end ignore
-
@node Init File Loading Error Reporting
@section Init File Loading Error Reporting
diff --git a/tp/Texinfo/Common.pm b/tp/Texinfo/Common.pm
index 61be5e6914..8e05fca4b2 100644
--- a/tp/Texinfo/Common.pm
+++ b/tp/Texinfo/Common.pm
@@ -209,20 +209,6 @@ sub valid_customization_option($)
return $valid_customization_options{$option};
}
-# not documented on purpose, should not be directly called in user-defined
-# codes
-# FIXME not implementable in XS, would need a type, dynamically added
-# customization variables...
-sub add_valid_customization_option($)
-{
- my $option = shift;
- if ($option =~ /^[A-Z][A-Z_]{2,}$/) {
- $valid_customization_options{$option} = 1;
- return 1;
- }
- return 0;
-}
-
# Output formats
diff --git a/tp/Texinfo/Config.pm b/tp/Texinfo/Config.pm
index 594096e723..79439e310e 100644
--- a/tp/Texinfo/Config.pm
+++ b/tp/Texinfo/Config.pm
@@ -404,16 +404,6 @@ sub texinfo_get_conf($)
}
}
-# to dynamically add customization options from init files
-# FIXME not implementable in XS, would need a type, dynamically added
-# customization variables...
-# Documentation in texi2any api manual is ignored.
-sub texinfo_add_valid_customization_option($)
-{
- my $option = shift;
- return Texinfo::Common::add_valid_customization_option($option);
-}
-
########################################################################
# Output format API. Handled differently from customization option
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- branch master updated: * doc/texi2any_api.texi, tp/Texinfo/Common.pm, tp/Texinfo/Config.pm: remove texinfo_add_valid_customization_option and add_valid_customization_option. Remove already @ignore'd text in texi2any_api.texi.,
Patrice Dumas <=