From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Markus Triska Newsgroups: gmane.emacs.devel Subject: Re: Nonsensical byte compiler warning. Date: Wed, 04 Apr 2007 11:50:45 +0200 Message-ID: <877issii2y.fsf@gmx.at> 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> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1175680301 31453 80.91.229.12 (4 Apr 2007 09:51:41 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 4 Apr 2007 09:51:41 +0000 (UTC) Cc: acm@muc.de, Chong Yidong , rms@gnu.org, emacs-devel@gnu.org To: David Kastrup Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Apr 04 11:51:39 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 1HZ29R-0000at-Dh for ged-emacs-devel@m.gmane.org; Wed, 04 Apr 2007 11:51:37 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HZ2Cg-00022l-5y for ged-emacs-devel@m.gmane.org; Wed, 04 Apr 2007 05:54:58 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HZ2Bv-0001ul-Ff for emacs-devel@gnu.org; Wed, 04 Apr 2007 05:54:11 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HZ2Bt-0001ts-Qz for emacs-devel@gnu.org; Wed, 04 Apr 2007 05:54:11 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HZ2Bt-0001tj-LH for emacs-devel@gnu.org; Wed, 04 Apr 2007 05:54:09 -0400 Original-Received: from mail.gmx.net ([213.165.64.20]) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1HZ28d-0001Mk-F9 for emacs-devel@gnu.org; Wed, 04 Apr 2007 05:50:47 -0400 Original-Received: (qmail invoked by alias); 04 Apr 2007 09:50:46 -0000 Original-Received: from chello062178240212.3.14.tuwien.teleweb.at (EHLO enterprise) [62.178.240.212] by mail.gmx.net (mp010) with SMTP; 04 Apr 2007 11:50:46 +0200 X-Authenticated: #4064391 X-Provags-ID: V01U2FsdGVkX1/IfPcCzYHImOiEZixVrB8/3Ym+kLbEQbIkLdy195 LwFgvlQP26vICE In-Reply-To: <86fy7g34tk.fsf@lola.quinscape.zz> (David Kastrup's message of "Wed\, 04 Apr 2007 10\:46\:15 +0200") X-Y-GMX-Trusted: 0 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:69040 Archived-At: David Kastrup writes: > I reported this warning without being able to figure out where it > came from, remember? Yes, I remember. I also remember that at least 3 other people figured it out. One of them submitted a patch. Another one couldn't see the problem despite having pinpointed the exact location of the call (as you suggest that the optimiser report), believing in a "bug in the byte compiler". While the error text can be improved, I find it unjustified to call the current behaviour "nonsensical", "plain useless" or "a compiler bug". It's a reasonable choice to point to the enclosing defun, and if your function has dozens of calls to char-before, there are probably graver problems to worry about.