[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[5664] all-files node naming
From: |
Gavin D. Smith |
Subject: |
[5664] all-files node naming |
Date: |
Fri, 13 Jun 2014 12:52:36 +0000 |
Revision: 5664
http://svn.sv.gnu.org/viewvc/?view=rev&root=texinfo&revision=5664
Author: gavin
Date: 2014-06-13 12:52:35 +0000 (Fri, 13 Jun 2014)
Log Message:
-----------
all-files node naming
Modified Paths:
--------------
trunk/ChangeLog
trunk/info/info.c
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2014-06-13 12:40:31 UTC (rev 5663)
+++ trunk/ChangeLog 2014-06-13 12:52:35 UTC (rev 5664)
@@ -8,6 +8,10 @@
the top-level file instead of the subfile.
* info/t/split-file-menu.sh: New test.
+ * info/info.c (allfiles_create_node): Set filename to an empty string
+ so that "*no file*" won't be shown in window mode line. Surround node
+ name with asterisks.
+
2014-06-12 Gavin Smith <address@hidden>
* info/info.h, info/makedoc.c, info/doc.h, info/infomap.c,
Modified: trunk/info/info.c
===================================================================
--- trunk/info/info.c 2014-06-13 12:40:31 UTC (rev 5663)
+++ trunk/info/info.c 2014-06-13 12:52:35 UTC (rev 5664)
@@ -474,6 +474,7 @@
INFO_NODE_LABEL,
term, term);
+ /* Mark as an index so that destinations are never hidden. */
text_buffer_add_string (&text, "\000\010[index\000\010]", 11);
text_buffer_printf (&text, "\n* Menu:\n\n");
@@ -486,9 +487,10 @@
}
allfiles_node = info_create_node ();
- allfiles_node->nodename = xstrdup ("Info File Index");
- allfiles_node->contents = text.base;
- allfiles_node->nodelen = text.off;
+ allfiles_node->filename = xstrdup ("");
+ allfiles_node->nodename = xstrdup ("*Info File Index*");
+ allfiles_node->contents = text_buffer_base (&text);
+ allfiles_node->nodelen = text_buffer_off (&text);
allfiles_node->body_start = strcspn (allfiles_node->contents, "\n");
scan_node_contents (0, &allfiles_node);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [5664] all-files node naming,
Gavin D. Smith <=