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 20:25:46 +0200 Message-ID: <87d52kvvx1.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> <877issii2y.fsf@gmx.at> <86bqi430kv.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 1175711206 25083 80.91.229.12 (4 Apr 2007 18:26:46 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 4 Apr 2007 18:26:46 +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 20:26:42 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 1HZABh-0004aj-I1 for ged-emacs-devel@m.gmane.org; Wed, 04 Apr 2007 20:26:29 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HZAEy-0003je-Ut for ged-emacs-devel@m.gmane.org; Wed, 04 Apr 2007 14:29:52 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HZAEv-0003ge-Cp for emacs-devel@gnu.org; Wed, 04 Apr 2007 14:29:49 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HZAEt-0003eH-V9 for emacs-devel@gnu.org; Wed, 04 Apr 2007 14:29:49 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HZAEt-0003eA-LU for emacs-devel@gnu.org; Wed, 04 Apr 2007 14:29:47 -0400 Original-Received: from mail.gmx.net ([213.165.64.20]) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1HZABb-0001XH-0M for emacs-devel@gnu.org; Wed, 04 Apr 2007 14:26:23 -0400 Original-Received: (qmail invoked by alias); 04 Apr 2007 18:26:21 -0000 Original-Received: from chello062178240212.3.14.tuwien.teleweb.at (EHLO enterprise) [62.178.240.212] by mail.gmx.net (mp037) with SMTP; 04 Apr 2007 20:26:21 +0200 X-Authenticated: #4064391 X-Provags-ID: V01U2FsdGVkX1/WPuMn0NXWcpO/nYqomSeE5Jm6sXy3lTWDxh+CiU 5kynKhe1yomPcQ In-Reply-To: <86bqi430kv.fsf@lola.quinscape.zz> (David Kastrup's message of "Wed\, 04 Apr 2007 12\:17\:52 +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:69068 Archived-At: David Kastrup writes: > So you are of the opinion that a function that calls any other > function from more than one place is a grave problem, and the byte > compiler is not supposed to be helpful with grave problems? No, I think it's already good enough in this case. For example, set `byte-optimize-log' to t. The warning is then preceded by: (char-before) ==> (char-after (1- (point))) (if (and (= arg 0) (c-syntactic-skip-backward "^}") (eq (char-after ...) 125)) nil) ==> (progn (and (= arg 0) (c-syntactic-skip-backward "^}") (eq (char-after ...) 125)) nil) eq called for effect; deleted I hope you find that remotely helpful.