texinfo-commits
[Top][All Lists]
Advanced

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

[5614] don't preprocess node contents when dumping output to a file


From: Gavin D. Smith
Subject: [5614] don't preprocess node contents when dumping output to a file
Date: Thu, 29 May 2014 20:15:52 +0000

Revision: 5614
          http://svn.sv.gnu.org/viewvc/?view=rev&root=texinfo&revision=5614
Author:   gavin
Date:     2014-05-29 20:15:50 +0000 (Thu, 29 May 2014)
Log Message:
-----------
don't preprocess node contents when dumping output to a file

Modified Paths:
--------------
    trunk/ChangeLog
    trunk/info/info.c
    trunk/info/session.c
    trunk/info/session.h

Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog     2014-05-29 19:56:34 UTC (rev 5613)
+++ trunk/ChangeLog     2014-05-29 20:15:50 UTC (rev 5614)
@@ -3,6 +3,11 @@
        * info/info.c (add_initial_nodes) <index lookup>: Look for
        case-ignoring initial substring in indices if no exact match found.
 
+       * info/info.c (main): Set preprocess_nodes=0 when dumping output
+       to a file.
+       * info/session.c (dump_nodes_to_file): Checks for DUMP_APPEND removed.
+       * info/session.h (DUMP_APPEND): Remove unused.
+
 2014-05-28  Gavin Smith  <address@hidden>
 
        * info/session.c (point_next_line, point_prev_line): Check for

Modified: trunk/info/info.c
===================================================================
--- trunk/info/info.c   2014-05-29 19:56:34 UTC (rev 5613)
+++ trunk/info/info.c   2014-05-29 20:15:50 UTC (rev 5614)
@@ -911,6 +911,7 @@
       if (error)
         info_error (error);
 
+      preprocess_nodes_p = 0;
       dump_nodes_to_file (ref_list, user_output_filename, dump_subnodes);
       return 0;
     }

Modified: trunk/info/session.c
===================================================================
--- trunk/info/session.c        2014-05-29 19:56:34 UTC (rev 5613)
+++ trunk/info/session.c        2014-05-29 20:15:50 UTC (rev 5614)
@@ -3242,7 +3242,7 @@
   if (strcmp (output_filename, "-") == 0)
     output_stream = stdout;
   else
-    output_stream = fopen (output_filename, flags & DUMP_APPEND ? "a" : "w");
+    output_stream = fopen (output_filename, "w");
 
   if (!output_stream)
     {
@@ -3253,8 +3253,6 @@
   initialize_dumping ();
 
   /* Print each node to stream. */
-  if (flags & DUMP_APPEND)
-    fputc ('\f', output_stream);
   for (i = 0; references[i]; i++)
     {
       if (dump_node_to_stream (references[i]->filename,

Modified: trunk/info/session.h
===================================================================
--- trunk/info/session.h        2014-05-29 19:56:34 UTC (rev 5613)
+++ trunk/info/session.h        2014-05-29 20:15:50 UTC (rev 5614)
@@ -93,7 +93,6 @@
 extern int info_any_buffered_input_p (void);
 extern void print_node (NODE *node);
 
-#define DUMP_APPEND   0x01
 #define DUMP_SUBNODES 0x02
 
 extern void dump_nodes_to_file (REFERENCE **references,




reply via email to

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