texinfo-commits
[Top][All Lists]
Advanced

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

[no subject]


From: Patrice Dumas
Date: Sun, 4 Feb 2024 12:38:18 -0500 (EST)

branch: master
commit fc3b11587dcc08dcbacf0ade751528aac7869cc8
Author: Patrice Dumas <pertusus@free.fr>
AuthorDate: Sun Feb 4 16:36:17 2024 +0100

    * tp/Texinfo/Indices.pm (setup_sortable_index_entries),
    tp/Texinfo/XS/main/manipulate_indices.c
    (setup_sortable_index_entries): do not set INCLUDE_DIRECTORIES, as it
    is only useful for @verbatiminclude, which cannot appear in index
    entries.
---
 ChangeLog                               | 8 ++++++++
 tp/Texinfo/Indices.pm                   | 7 +++++--
 tp/Texinfo/XS/main/manipulate_indices.c | 4 ++++
 3 files changed, 17 insertions(+), 2 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 9b582f63b0..9dcdb3a0e5 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2024-02-04  Patrice Dumas  <pertusus@free.fr>
+
+       * tp/Texinfo/Indices.pm (setup_sortable_index_entries),
+       tp/Texinfo/XS/main/manipulate_indices.c
+       (setup_sortable_index_entries): do not set INCLUDE_DIRECTORIES, as it
+       is only useful for @verbatiminclude, which cannot appear in index
+       entries.
+
 2024-02-04  Patrice Dumas  <pertusus@free.fr>
 
        Update po files
diff --git a/tp/Texinfo/Indices.pm b/tp/Texinfo/Indices.pm
index 3aa75c6e1c..ee5860a193 100644
--- a/tp/Texinfo/Indices.pm
+++ b/tp/Texinfo/Indices.pm
@@ -359,8 +359,11 @@ sub setup_sortable_index_entries($$$$$)
   # independently of input and output encodings
   my $convert_text_options = {};
   $convert_text_options->{'enabled_encoding'} = 'utf-8';
-  $convert_text_options->{'INCLUDE_DIRECTORIES'}
-     = $customization_information->get_conf('INCLUDE_DIRECTORIES');
+  # It could be possible to set INCLUDE_DIRECTORIES, but there is no
+  # point doing so, as it is only useful for @verbatiminclude, which
+  # cannot appear in index entries.
+  #$convert_text_options->{'INCLUDE_DIRECTORIES'}
+  #   = $customization_information->get_conf('INCLUDE_DIRECTORIES');
 
   # The 'Non-Ignorable' for variable collation elements means that they are
   # treated as normal characters.   This allows to have spaces and punctuation
diff --git a/tp/Texinfo/XS/main/manipulate_indices.c 
b/tp/Texinfo/XS/main/manipulate_indices.c
index 82c1d81338..eba29ea985 100644
--- a/tp/Texinfo/XS/main/manipulate_indices.c
+++ b/tp/Texinfo/XS/main/manipulate_indices.c
@@ -310,8 +310,12 @@ setup_sortable_index_entries (ERROR_MESSAGE_LIST 
*error_messages,
      independently of input and output encodings */
   TEXT_OPTIONS *convert_text_options = new_text_options ();
   convert_text_options->encoding = strdup ("utf-8");
+  /*  It could be possible to set INCLUDE_DIRECTORIES, but there is no
+      point doing so, as it is only useful for @verbatiminclude, which
+      cannot appear in index entries.
   copy_strings (&convert_text_options->include_directories,
                 options->INCLUDE_DIRECTORIES.strlist);
+   */
 
   /* similar to using Unicode::Collate in Perl */
   *collation_locale = 0;



reply via email to

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