[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
branch master updated: * tp/Texinfo/Structuring.pm (new_node_menu_entry)
From: |
Patrice Dumas |
Subject: |
branch master updated: * tp/Texinfo/Structuring.pm (new_node_menu_entry), tp/Texinfo/XS/structuring_transfo/structuring.c (new_node_menu_entry): set source info for added node menu entries, as a source info is expected for node menu entries. Report from Dario Gjorgjevski and Gavin Smith. |
Date: |
Sat, 17 Aug 2024 03:02:54 -0400 |
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 4174fe2155 * tp/Texinfo/Structuring.pm (new_node_menu_entry),
tp/Texinfo/XS/structuring_transfo/structuring.c (new_node_menu_entry): set
source info for added node menu entries, as a source info is expected for node
menu entries. Report from Dario Gjorgjevski and Gavin Smith.
4174fe2155 is described below
commit 4174fe2155d679f935103d07d2e75c382d9d0e30
Author: Patrice Dumas <pertusus@free.fr>
AuthorDate: Sat Aug 17 09:00:33 2024 +0200
* tp/Texinfo/Structuring.pm (new_node_menu_entry),
tp/Texinfo/XS/structuring_transfo/structuring.c (new_node_menu_entry):
set source info for added node menu entries, as a source info is
expected for node menu entries. Report from Dario Gjorgjevski and
Gavin Smith.
---
ChangeLog | 8 ++++++++
tp/Texinfo/Structuring.pm | 3 ++-
tp/Texinfo/XS/structuring_transfo/structuring.c | 1 +
3 files changed, 11 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog
index 522273f9ea..4f979e2914 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2024-08-17 Patrice Dumas <pertusus@free.fr>
+
+ * tp/Texinfo/Structuring.pm (new_node_menu_entry),
+ tp/Texinfo/XS/structuring_transfo/structuring.c (new_node_menu_entry):
+ set source info for added node menu entries, as a source info is
+ expected for node menu entries. Report from Dario Gjorgjevski and
+ Gavin Smith.
+
2024-08-15 Gavin Smith <gavinsmith0123@gmail.com>
* build-aux/ar-lib: Remove. It does not appear to be
diff --git a/tp/Texinfo/Structuring.pm b/tp/Texinfo/Structuring.pm
index 7a978ffdfa..dc40a81b7d 100644
--- a/tp/Texinfo/Structuring.pm
+++ b/tp/Texinfo/Structuring.pm
@@ -1235,7 +1235,8 @@ sub new_node_menu_entry
Texinfo::ManipulateTree::protect_colon_in_tree($menu_entry_name);
}
- my $entry = {'type' => 'menu_entry'};
+ my $entry = {'type' => 'menu_entry',
+ 'source_info' => {%{$node->{'source_info'}}}};
my $menu_entry_node
= Texinfo::ManipulateTree::copy_contentsNonXS($node_name_element,
diff --git a/tp/Texinfo/XS/structuring_transfo/structuring.c
b/tp/Texinfo/XS/structuring_transfo/structuring.c
index fdaebf334d..693ce4a153 100644
--- a/tp/Texinfo/XS/structuring_transfo/structuring.c
+++ b/tp/Texinfo/XS/structuring_transfo/structuring.c
@@ -1722,6 +1722,7 @@ new_node_menu_entry (const ELEMENT *node, int
use_sections)
}
entry = new_element (ET_menu_entry);
+ entry->source_info = node->source_info;
menu_entry_node = copy_contents (node_name_element, ET_menu_entry_node);
for (i = 0; i < menu_entry_node->contents.number; i++)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- branch master updated: * tp/Texinfo/Structuring.pm (new_node_menu_entry), tp/Texinfo/XS/structuring_transfo/structuring.c (new_node_menu_entry): set source info for added node menu entries, as a source info is expected for node menu entries. Report from Dario Gjorgjevski and Gavin Smith.,
Patrice Dumas <=