[Top][All Lists]

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

Re: Nonsensical byte compiler warning.

From: Richard Stallman
Subject: Re: Nonsensical byte compiler warning.
Date: Fri, 06 Apr 2007 08:56:59 -0400

    Warnings stemming from the optimiser are commonly restricted to
    defun-level positional information. For example, byte compiling:

       (defun f ()
         (message "hi")
         (quote 0 1)
         (let ((x 0 1))))

    gives two warnings (both to the defun). Should these be fixed too?

I would like someone to try.  And if it can't be done, the second best
thing is to say explicitly in the warning that the line number
pertains only to the function, not the actual place.

Another solution might be to generate a dummy expression
to hold the warning.  The warning would actually be issued
when the compiler tries to really compile that expression.

I agree this is too hard to change now.
However, it would have been premature to give up without

reply via email to

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