From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: Nonsensical byte compiler warning. Date: Fri, 06 Apr 2007 08:56:59 -0400 Message-ID: References: <85ps6okoe5.fsf@lola.goethe.zz> <87lkhcj791.fsf@stupidchicken.com> <87tzvwvj6c.fsf@gmx.at> <861wj04qcq.fsf@lola.quinscape.zz> <873b3gpn4u.fsf@gmx.at> <86fy7g34tk.fsf@lola.quinscape.zz> <87r6qzqmpg.fsf@gmx.at> Reply-To: rms@gnu.org NNTP-Posting-Host: lo.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: sea.gmane.org 1175864673 7356 80.91.229.12 (6 Apr 2007 13:04:33 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 6 Apr 2007 13:04:33 +0000 (UTC) Cc: acm@muc.de, cyd@stupidchicken.com, emacs-devel@gnu.org To: Markus Triska Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Apr 06 15:03:48 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HZo2J-0007Jh-HP for ged-emacs-devel@m.gmane.org; Fri, 06 Apr 2007 14:59:27 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HZo5n-0006Se-9R for ged-emacs-devel@m.gmane.org; Fri, 06 Apr 2007 09:03:03 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HZo5k-0006RQ-EA for emacs-devel@gnu.org; Fri, 06 Apr 2007 09:03:00 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HZo5j-0006RB-RQ for emacs-devel@gnu.org; Fri, 06 Apr 2007 09:02:59 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HZo5j-0006R8-O3 for emacs-devel@gnu.org; Fri, 06 Apr 2007 09:02:59 -0400 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1HZo2F-00072R-0e for emacs-devel@gnu.org; Fri, 06 Apr 2007 08:59:23 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.60) (envelope-from ) id 1HZnzv-0007t3-UT; Fri, 06 Apr 2007 08:56:59 -0400 In-reply-to: <87r6qzqmpg.fsf@gmx.at> (message from Markus Triska on Thu, 05 Apr 2007 09:55:55 +0200) X-detected-kernel: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:69122 Archived-At: 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 checking.