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: Mon, 09 Apr 2007 11:42:05 -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> <87tzvqpp95.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 1176137530 23667 80.91.229.12 (9 Apr 2007 16:52:10 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 9 Apr 2007 16:52:10 +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 Mon Apr 09 18:51:28 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 1HawYd-0000v3-Tb for ged-emacs-devel@m.gmane.org; Mon, 09 Apr 2007 18:17:32 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HawcT-0003IJ-GN for ged-emacs-devel@m.gmane.org; Mon, 09 Apr 2007 12:21:29 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HawcQ-0003I0-1l for emacs-devel@gnu.org; Mon, 09 Apr 2007 12:21:26 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HawcP-0003HZ-HH for emacs-devel@gnu.org; Mon, 09 Apr 2007 12:21:25 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HawcP-0003HT-5m for emacs-devel@gnu.org; Mon, 09 Apr 2007 12:21:25 -0400 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1HawYY-000654-Bw for emacs-devel@gnu.org; Mon, 09 Apr 2007 12:17:26 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.60) (envelope-from ) id 1Haw0L-0004aE-GZ; Mon, 09 Apr 2007 11:42:05 -0400 In-reply-to: <87tzvqpp95.fsf@gmx.at> (message from Markus Triska on Sun, 08 Apr 2007 22:47:34 +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:69226 Archived-At: Sure; here's a rather trivial compromise for `char-before': It makes the compiler rewrite calls to char-before at the time the byte-code is emitted instead of during the optimisation phase. This retains the correct function call in the warning. It can yield slightly inferior byte-code though (with usage-patterns that don't occur in Emacs trunk and are probably rather atypical). This is a good improvement. Would someone please install it? If you find this change advisable, I'll implement analogous changes for backward-char and backward-word. Please do, and thanks.