Mail Archives: djgpp/1996/11/13/11:31:52
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 -