From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Luc Teirlinck Newsgroups: gmane.emacs.bugs Subject: Byte-compile problem Date: Thu, 11 Nov 2004 10:35:43 -0600 (CST) Message-ID: <200411111635.iABGZhM07395@raven.dms.auburn.edu> NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1100191057 25637 80.91.229.6 (11 Nov 2004 16:37:37 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 11 Nov 2004 16:37:37 +0000 (UTC) Cc: Andreas Schwab , bug-gnu-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Nov 11 17:37:21 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CSHwn-0004iv-00 for ; Thu, 11 Nov 2004 17:37:21 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CSI5I-0003zL-7V for geb-bug-gnu-emacs@m.gmane.org; Thu, 11 Nov 2004 11:46:08 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CSI5G-0003z2-Fe for bug-gnu-emacs@gnu.org; Thu, 11 Nov 2004 11:46:06 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CSI5F-0003yW-Cz for bug-gnu-emacs@gnu.org; Thu, 11 Nov 2004 11:46:05 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CSI5F-0003yM-9A for bug-gnu-emacs@gnu.org; Thu, 11 Nov 2004 11:46:05 -0500 Original-Received: from [131.204.53.104] (helo=manatee.dms.auburn.edu) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CSHw1-0005Va-NL for bug-gnu-emacs@gnu.org; Thu, 11 Nov 2004 11:36:33 -0500 Original-Received: from raven.dms.auburn.edu (raven.dms.auburn.edu [131.204.53.29]) by manatee.dms.auburn.edu (8.12.10/8.12.10) with ESMTP id iABGaOFu013160; Thu, 11 Nov 2004 10:36:24 -0600 (CST) Original-Received: (from teirllm@localhost) by raven.dms.auburn.edu (8.11.7p1+Sun/8.11.7) id iABGZhM07395; Thu, 11 Nov 2004 10:35:43 -0600 (CST) X-Authentication-Warning: raven.dms.auburn.edu: teirllm set sender to teirllm@dms.auburn.edu using -f Original-To: Sun Yijiang X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.bugs:9665 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:9665 I suspect that the reason why you see the bug and Andreas does not, is that you must have tried to byte compile the entire file, whereas Andreas only compiled the one function you sent. The bug is known and caused by a recent change in bytecomp.el. See the threads "Change in bytecomp.el breaks Gnus" on emacs-pretest-bug and "Byte compiling started doing strange things." on emacs-devel. The following patch was proposed by Katsumi Yamaoka on emacs-pretest-bug. I have not yet tried it out. *** bytecomp.el~ Tue Nov 9 21:53:14 2004 --- bytecomp.el Thu Nov 11 11:17:58 2004 *************** *** 3720,3726 **** (if (and (consp (cdr form)) (consp (nth 1 form)) (eq (car (nth 1 form)) 'quote) (consp (cdr (nth 1 form))) ! (symbolp (nth 1 (nth 1 form)))) (let ((constant (and (consp (nthcdr 2 form)) (consp (nth 2 form)) --- 3720,3727 ---- (if (and (consp (cdr form)) (consp (nth 1 form)) (eq (car (nth 1 form)) 'quote) (consp (cdr (nth 1 form))) ! (symbolp (nth 1 (nth 1 form))) ! (not (byte-code-function-p (nth 2 form)))) (let ((constant (and (consp (nthcdr 2 form)) (consp (nth 2 form)) Sincerely, Luc.