www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/11/13/11:31:52

Date: Wed, 13 Nov 1996 18:15:44 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Francois Charton <deef AT pobox DOT oleane DOT com>
Cc: djgpp AT delorie DOT com
Subject: Re: Problem with MakeInfo
In-Reply-To: <32889598.5B6E@pobox.oleane.com>
Message-Id: <Pine.SUN.3.91.961113180949.5516F-100000@is>
Mime-Version: 1.0

On Tue, 12 Nov 1996, Francois Charton wrote:

> On the FAQ (I did most of the checking on my translation of it), you 
> "lose" a lot of lines when you go through the SimTel list of mirrors : in 
> the succession of "@titem ... @ftpdir". So I highly suspect the expansion 
> of macros as a possible cause. 

Not just any macro: only macros which take the rest of the line as their 
only arguments (like @titem).  This is a genuine FSF bug.  The patch 
(unofficial, of course, since I don't maintain Texinfo) is below.  As you 
see, it pushes the newline that ends the line back onto the input stream 
(which is correct, so that the macro expansion doesn't include that 
newline), but fails to back up the line counter, and that newline is then
counted again when reading the source resumes.

*** makeinfo/makeinfo.c~0	Fri Oct 11 21:13:10 1996
--- makeinfo/makeinfo.c	Wed Nov 13 17:38:44 1996
***************
*** 8662,8668 ****
  
  	      get_rest_of_line (&word);
  	      if (input_text[input_text_offset - 1] == '\n')
! 		input_text_offset--;
  	      /* canon_white (word); */
  	      arglist = (char **)xmalloc (2 * sizeof (char *));
  	      arglist[0] = word;
--- 8662,8671 ----
  
  	      get_rest_of_line (&word);
  	      if (input_text[input_text_offset - 1] == '\n')
! 		{
! 		  input_text_offset--;
! 		  line_number--;
! 		}
  	      /* canon_white (word); */
  	      arglist = (char **)xmalloc (2 * sizeof (char *));
  	      arglist[0] = word;

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019