From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.devel Subject: Re: Nonsensical byte compiler warning. Date: 8 Apr 2007 13:27:52 +0200 Message-ID: <20070408124710.GA6804@muc.de> References: <85ps6okoe5.fsf@lola.goethe.zz> <87lkhcj791.fsf@stupidchicken.com> <87tzvwvj6c.fsf@gmx.at> <861wj04qcq.fsf@lola.quinscape.zz> <873b3gpn4u.fsf@gmx.at> <20070404212752.GA2717@muc.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1176031868 19963 80.91.229.12 (8 Apr 2007 11:31:08 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 8 Apr 2007 11:31:08 +0000 (UTC) Cc: Chong Yidong , rms@gnu.org, Markus Triska , emacs-devel@gnu.org To: "Kim F. Storm" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Apr 08 13:30:52 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 1HaVYv-0002L1-Iz for ged-emacs-devel@m.gmane.org; Sun, 08 Apr 2007 13:28:01 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HaVcc-0003bB-S0 for ged-emacs-devel@m.gmane.org; Sun, 08 Apr 2007 07:31:50 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HaVcZ-0003al-SI for emacs-devel@gnu.org; Sun, 08 Apr 2007 07:31:47 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HaVcW-0003Xx-Nr for emacs-devel@gnu.org; Sun, 08 Apr 2007 07:31:46 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HaVcW-0003Xt-IW for emacs-devel@gnu.org; Sun, 08 Apr 2007 07:31:44 -0400 Original-Received: from colin.muc.de ([193.149.48.1] helo=mail.muc.de) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HaVYo-0007Z2-B6 for emacs-devel@gnu.org; Sun, 08 Apr 2007 07:27:54 -0400 Original-Received: (qmail 74047 invoked by uid 3782); 8 Apr 2007 11:27:52 -0000 Original-Received: from acm.muc.de (p54a3ddfe.dip.t-dialin.net [84.163.221.254]) by colin2.muc.de (tmda-ofmipd) with ESMTP; Sun, 08 Apr 2007 13:27:49 +0200 Original-Received: (qmail 7939 invoked by uid 1000); 8 Apr 2007 12:47:10 -0000 Original-Date: Sun, 8 Apr 2007 13:47:10 +0100 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.9i X-Delivery-Agent: TMDA/1.1.5 (Fettercairn) X-Primary-Address: acm@muc.de X-detected-kernel: FreeBSD 4.6-4.9 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:69189 Archived-At: Hi, all! On Sun, Apr 08, 2007 at 03:21:07AM +0200, Kim F. Storm wrote: > Alan Mackenzie writes: > > But I did get "While compiling c-end-of-defun in file > > /home/acm/cc-mode-5.31.n/cc-cmds.el: ** `(char-after (1- > > (point)))' called for effect". Track this down: It's in > > c-end-of-defun. By commenting out bits of the function in a > > binary chop fashion, it's L1625, "(eq (char-before) ?\})". I > > can't make head or tail of this. FIXME!!! POSTPONED. > The problem is still not fixed ... The warning is still issued, and > the following post shows why: I've fixed it now. Thanks for the patch, Chong! Just for clarity, I wasn't being obtuse - just slow. (I've been concentrating on other bugs in the last few days). c-end-of-defun's code was clearly wrong, and in the paragraph you quoted, I was trying to show how the warning message left me confused, not to defend the code as it was. It's a relief to have that warning finally cleared up. > Kim F. Storm http://www.cua.dk -- Alan.