[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Line numbers reported by the byte compiler
From: |
Colin Walters |
Subject: |
Re: Line numbers reported by the byte compiler |
Date: |
Mon, 10 Dec 2001 01:21:10 -0500 |
User-agent: |
Gnus/5.090004 (Oort Gnus v0.04) Emacs/21.1.50 (powerpc-debian-linux-gnu) |
Richard Stallman <address@hidden> writes:
> What line is the byte compiler supposed to report with the messages
> it prints? Is that the exact line where it found the problem, or
> maybe the first line of the function where the problem happens?
>
> It is the first line of the function. That is the only data it can
> get.
We could modify Fread to optionally return character positions in the
stream of the components of the form it reads, perhaps by recursively
substituting every form with (form . position), in the way
Fread_from_string does. This would be generated by an optional
argument to Fread, or perhaps a new Fread_with_positions function.