[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
branch master updated: * tp/Texinfo/Config.pm (texinfo_set_from_init_fil
From: |
Patrice Dumas |
Subject: |
branch master updated: * tp/Texinfo/Config.pm (texinfo_set_from_init_file) (GNUT_set_customization_default): consistently use exists to determine if cmdline_options or init_files_options are set, and not defined. |
Date: |
Mon, 23 Dec 2024 17:33:01 -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 91e12ddfa2 * tp/Texinfo/Config.pm (texinfo_set_from_init_file)
(GNUT_set_customization_default): consistently use exists to determine if
cmdline_options or init_files_options are set, and not defined.
91e12ddfa2 is described below
commit 91e12ddfa23b38eba875cc2150f03a0d5bba24e1
Author: Patrice Dumas <pertusus@free.fr>
AuthorDate: Wed Dec 4 22:17:29 2024 +0100
* tp/Texinfo/Config.pm (texinfo_set_from_init_file)
(GNUT_set_customization_default): consistently use exists to determine
if cmdline_options or init_files_options are set, and not defined.
---
ChangeLog | 6 ++++++
tp/Texinfo/Config.pm | 6 +++---
2 files changed, 9 insertions(+), 3 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 51f06edfa9..059dd036e6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -567,6 +567,12 @@
* doc/texinfo-tex-test.texi (Images) [dvi output]: disable.
+2024-12-04 Patrice Dumas <pertusus@free.fr>
+
+ * tp/Texinfo/Config.pm (texinfo_set_from_init_file)
+ (GNUT_set_customization_default): consistently use exists to determine
+ if cmdline_options or init_files_options are set, and not defined.
+
2024-12-04 Patrice Dumas <pertusus@free.fr>
* tp/Texinfo/XS/teximakehtml.c: include langinfo.h and call
diff --git a/tp/Texinfo/Config.pm b/tp/Texinfo/Config.pm
index 06db2f8dd8..9473caa80c 100644
--- a/tp/Texinfo/Config.pm
+++ b/tp/Texinfo/Config.pm
@@ -262,7 +262,7 @@ sub texinfo_set_from_init_file($$) {
'texinfo_set_from_init_file', $var));
return 0;
}
- return 0 if (defined($cmdline_options->{$var}));
+ return 0 if (exists($cmdline_options->{$var}));
delete $options_defaults->{$var};
$init_files_options->{$var} = $value;
return 1;
@@ -302,8 +302,8 @@ sub GNUT_set_customization_default($$)
return 1;
}
- return 0 if (defined($cmdline_options->{$var})
- or defined($init_files_options->{$var}));
+ return 0 if (exists($cmdline_options->{$var})
+ or exists($init_files_options->{$var}));
$options_defaults->{$var} = $value;
return 1;
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- branch master updated: * tp/Texinfo/Config.pm (texinfo_set_from_init_file) (GNUT_set_customization_default): consistently use exists to determine if cmdline_options or init_files_options are set, and not defined.,
Patrice Dumas <=
- Prev by Date:
branch master updated: Add a comment, correct a typo
- Next by Date:
branch master updated: * tp/Texinfo/XS/convert/texinfo.c (txi_set_base_default_options) (txi_converter_setup), tp/Texinfo/XS/teximakehtml.c (main): do not set options independent of converter format in txi_converter_setup, add txi_set_base_default_options for that, and call it early, before getting command-line options. In txi_set_base_default_options, also call add_program_cmdline_options_defaults and add_program_customization_options_defaults to set the same defaults as in texi2any.
- Previous by thread:
branch master updated: Add a comment, correct a typo
- Next by thread:
branch master updated: * tp/Texinfo/XS/convert/texinfo.c (txi_set_base_default_options) (txi_converter_setup), tp/Texinfo/XS/teximakehtml.c (main): do not set options independent of converter format in txi_converter_setup, add txi_set_base_default_options for that, and call it early, before getting command-line options. In txi_set_base_default_options, also call add_program_cmdline_options_defaults and add_program_customization_options_defaults to set the same defaults as in texi2any.
- Index(es):